Complex numbers#
What you need to know
Complex numbers generalize oridnary 1D numbers to 2D To descirbe complex numbers we need two compoenents called real and imaginary parts. Complex numbers appear naturally in quantum mechanics and are essential part of physics.
The imaginary unit:
This symbol, , represents the imaginary component of a complex number, where .Complex numbers as roots of polynomial equations. For example, quadratic equations can have two complex roots, showcasing their relevance in solving equations.
Cartesian and polar representations Complex numbers can be expressed in Cartesian form
or polar form , where is the magnitude, and is the phase (angle).Euler’s formula: A beautiful and fundamental equation
, elegantly connects complex numbers to trigonometric functions. uler’s equation makes it much easier to manipulate complex numbers, especially in their polar form, simplifying multiplication and division.Rotation in the complex plane Multiplying by a complex number in polar form corresponds to a rotation. For instance,
rotates a vector of length counterclockwise by an angle , while rotates it clockwise by .Complex conjugate: Flipping the imaginary part The conjugate of a complex number
is given by .Multiplying by the conjugate When you multiply a complex number by its conjugate,
, the result is a real number equal to the square of its distance from the origin in the complex plane: .
Complex number living in 2D#
A complex number
is a kind of 2D number that lives in 2D space and requires two components for its full specification. Watch the video to get a visual feel for why we need complex numbers.
Introducing imaginary number #

Fig. 107 Visualizing complex numbers on cartesian plane#
Fundamental theorem of algebra. says that polynomial equations like quadratic, cubic, quartic etc must have numbers of roots equal to the highest power. E.g quadratic must have two roots. Complex numbers ensure the existence of roots for polynomials.
This equation must have two solutions/roots. How do we visualize them?
The answer: we will need two dimensions! quantifying how much real and how much imaginary component the number has.
What is the definition of
? The imaginary number is defined solely by the property that its square is , that is: .How does
change what I know about math of real variables? Imaginary numbers extend the real number system to the complex number system .

Fig. 108 Complex numbers live in 2D: You must specify real and imaginary components to fully define a complex number#
Cartesian vrepresentation#

Fig. 109 Visualizing complaex numbers in cartesian coordinates.#
Cartesian Representation
real component imaginary component
Example: Identify real and imaginary parts
Find real and imaginary components of the following complex numbers
Solution
, , ,
Polar representation#

Fig. 110 Visualizing complaex numbers in polar coordinates.#
Polar representation expresses complex numbers in terms of radius from origin
and angle of counterclockwise rotation .Using trigonometry we have:
and which can be plugged into cartesian representation:
Polar Representation via sin and cos
distance from origin. rotation angle in complex plane.
What’s the big deal with this polar representation? We will find that life is much much easier in polar represnation when deriving new expressions or manipulating complex numbers.
This dramatic simplification is thanks to “magical” Euler’s formula that turns trig functions into exponentss!
Euler’s formula
Polar Representation via complex exponential
distance from origin. rotation angle in complex plane.
Converting from Carteisan to Polar#
Now having established Euler’s formula we need a recepie to go back and forth between cartesian and polar representations.
Extract r The value
is the Euclidean distance of vector from the origin.
Extract
The value is the angle of with respect to the real axis. The tangent of is . Therefore using simple trigonometry we can backcalculate angle and sin, cos tan functions from cartesia representatn
Example: Convert to polar
Write complex number
Hot Tip use atan2 or arctan2 in your calculator which correctly identifies quadrant for angle.
Solution
We need to extract
and to write
We can always add
to angle we get from arctan2 to make angle positive. Reminder that leave trig functions unchanged.

Fig. 111 Visualization of Euler’s formula
Physical analogy to rotation
Imagine
as a spinning wheel where we are rotating anglevelocity would be given by first derivaive with respect to
and is equal .Mulitplicatin by i we know is rotation by 90 degree. Hence velocity is perpendicular or tangential to spinning wheel.
The magnitude of the velocity is
hence wheel is spinning with constant velocityThe velocity is always tangential to the circular motion, reflecting the nature of rotational movement in the complex plane.
In summary, the complex exponential function elegantly describes both rotation and scaling in the complex plane, and its derivative gives insight into the velocity of rotation, always perpendicular to the position vector.
Proof Euler’s formula
We will prove this by using the Taylor series expansions of the exponential function, cosine, and sine.
Step 1: Taylor Series Expansion of
The Taylor series expansion of
For
Step 2: Simplifying Powers of
Using these identities, we simplify each term in the series:
Step 3: Grouping Real and Imaginary Terms Now, we group the real and imaginary terms separately:
Step 4: Recognizing Taylor Series for
The Taylor series for
And the Taylor series for
Step 5: Substituting the Series Back
We see that the real part of the series matches
Conclusion This completes the proof of Euler’s formula:
Complex Conjugate#

Fig. 112 Visualizing conjugate of complex number as a mirror image or rotation backwards#
Complex Conjugate
Extracting absolute value#
Multiplying complex number by its conjugate always results in positive real number!
Geometrically this means rotating back to real axis!
Product of complex number and its conjugate returns the distance from the origin in complex plane.
Expressing sin and cos via complex exponentials#
Using Euler’s formula we can take the sum and difference of
and to express sin and cos in terms of compelx exponentials.These representations of sin and cos are super powerful in simplifying various integrals and for deriving experssions.
Applications of complex numbers#
De Moivre’s Theorem
De Moivre’s theorem states that:
We raised complex number to power n, used polar representation and realized that exponent raised to power n simply multiplies polar angle by n.
Note that de Moivre’s theorem allows relating trigonometric functions of angle
The proof of de Moivre’s theorem can be done via induction, e.g one can expand the parentheses ans assert the equality for cases n=2, n=3, …
Deriving Pythagoras’ theorem
We can use de Moivre’s theorem to show that
We have
and thus
We recognize this as a theorem of Pythagoras.
Deriving Trigonometric Identities
We can obtain a complete suite of trigonometric identities by appropriately manipulating polar forms of complex numbers.
We’ll get many of them by deducing implications of the equality
For example, we’ll calculate identities for
Using the sine and cosine formulas presented at the beginning of this lecture, we have:
We can also obtain the trigonometric identities as follows:
Since both real and imaginary parts of the above formula should be equal, we get:
The equations above are also known as the angle sum identities.
Evaluating Trigonometric Integrals
We can also compute the trigonometric integrals using polar forms of complex numbers.
For example, we want to solve the following integral:
Using Euler’s formula, we have:
and thus:
Applications to X-ray diffraction and crystalography
Complex numbers play a significant role in various chemistry problems, especially in the context of X-ray diffraction and crystallography. These applications are crucial for determining the atomic structures of molecules and solids.
X-ray Diffraction and the Phase Problem In X-ray crystallography, a crystal is bombarded with X-rays, which are diffracted by the electrons in the crystal. The resulting diffraction pattern contains crucial information about the crystal’s structure. However, to reconstruct the atomic arrangement from the diffraction pattern, we must solve two key problems: the magnitude of the diffracted waves (intensity) and the phase of those waves.
The phase problem refers to the challenge of determining the phase of the diffracted X-rays, which is not directly observable from the diffraction pattern. The phase is necessary to accurately reconstruct the electron density of the crystal.
Complex Numbers in Diffraction To solve this, we model the diffracted waves as complex numbers. Each wave can be described in terms of a complex number:
where:
is the magnitude of the diffraction wave, corresponding to the intensity of the observed diffraction pattern. is the phase of the wave, which contains essential structural information but is not directly measurable.
By representing diffraction waves as complex numbers, we can manipulate and combine them to solve for the electron density in the crystal.
Structure Factor: The Key to Electron Density
The structure factor is a complex quantity that relates the electron density in a crystal to the observed diffraction pattern. The structure factor
where:
is the reciprocal lattice vector, representing the direction of diffraction. is the scattering factor for atom (how much it scatters X-rays). is the position of atom in the unit cell.
The structure factor is complex, with both real and imaginary components:
Here,
Electron Density Calculation
Once the structure factors are known, the electron density
where
In this equation:
The structure factor
is complex, and complex numbers allow for the combination of the magnitudes and phases of the diffracted waves to accurately reconstruct the electron density.The result is a 3D map of the electron density within the crystal, which reveals the positions of atoms.
Solving the Phase Problem
The phase problem is addressed using various techniques, such as:
Direct methods: Mathematical techniques that estimate phases based on probabilistic relationships between structure factors.
Molecular replacement: Using a known structure of a related molecule to estimate phases.
Anomalous dispersion: Utilizing the scattering of X-rays at different wavelengths to provide phase information.
In all these methods, complex numbers are central to solving for the electron density and, thus, determining the molecular structure.
Conclusion In chemistry, particularly in X-ray diffraction and crystallography, complex numbers provide a powerful framework for solving the phase problem and calculating structure factors. They allow for the accurate modeling and manipulation of waves, which are essential for determining the atomic structures of molecules and materials.
Problems#
Problem 1: Multiplication#
Multiply the two complex numbers
Solution 1
To multiply complex numbers, we use distributive property:
Expanding:
Since
Problem 2: Find conjugate#
Find the complex conjugate of
Solution 2
The complex conjugate of a complex number
Problem 3: from polar to cartesian#
Convert the complex number
Solution 3
Using Euler’s formula:
For
Since
Problem 4: Division#
Divide the complex numbers
Solution 4
To divide complex numbers, multiply both the numerator and denominator by the conjugate of the denominator:
First, multiply the numerator:
Next, multiply the denominator:
Now, divide the result:
Thus,
Problem 5: Find Modulus#
Find the modulus of the complex number
Solution 5
The modulus of a complex number
For
Thus, the modulus of
Problem 6: Multiplication#
Multiply the complex numbers
Solution 5
To multiply two complex numbers in polar form, multiply their magnitudes and add their angles:
Thus, the product is:
Problem 7: from cartesian to polar#
Express the complex number
Solution 5
Modulus:
Argument:
Since
is in the second quadrant:
Thus, the polar form of