Geometric Interpretation of Complex Numbers
Picture as the point in the plane. Then addition is vector addition, and multiplication is something more interesting: it multiplies lengths and adds angles. That makes complex numbers a compact language for 2D rotations.
The complex plane
Plot at : the real axis is horizontal, the imaginary axis vertical. In this picture
- is the parallelogram sum of two vectors (as in Addition),
- is the distance to the origin (Length of a Vector),
- is the mirror image in the real axis,
- is the distance between two points.
Polar form and Euler's formula
Any nonzero has a length and an angle measured from the positive real axis, so
The second equality is Euler's formula, . One way to see it: plug into the Taylor series of and separate the even powers (which give the cosine series) from the odd powers (the sine series, times ). Setting gives .
In code, use atan2(b, a) for the angle, never atan(b / a), because only atan2 knows the quadrant (atan2).
Multiplication rotates and scales
With and , the exponent rules give
So multiplying by scales the plane by and rotates it by . In particular, multiplying by is a pure rotation by , and multiplying by rotates by 90°.
Write the map in real coordinates. With and , , so
This is a rotation matrix times the scale : every complex number corresponds to the real matrix , and complex multiplication corresponds to matrix multiplication. That is the link between complex eigenvalues and rotations: the matrix has eigenvalues .
import cmath
import numpy as np
z = 3 + 1j
w = cmath.rect(2, np.pi / 6) # length 2, angle 30°
print("z in polar: r =", round(abs(z), 4), " theta =", round(np.degrees(cmath.phase(z)), 4), "deg")
zw = z * w
print("zw: r =", round(abs(zw), 4), " theta =", round(np.degrees(cmath.phase(zw)), 4), "deg")
M = np.array([[w.real, -w.imag], [w.imag, w.real]])
print("matrix of 'multiply by w':\n", np.round(M, 4))
print("M @ (3, 1) =", np.round(M @ [3, 1], 4), " zw =", np.round(zw, 4))
print("eigenvalues of M:", np.round(np.linalg.eigvals(M), 4))z in polar: r = 3.1623 theta = 18.4349 deg
zw: r = 6.3246 theta = 48.4349 deg
matrix of 'multiply by w':
[[ 1.7321 -1. ]
[ 1. 1.7321]]
M @ (3, 1) = [4.1962 4.7321] zw = (4.1962+4.7321j)
eigenvalues of M: [1.7321+1.j 1.7321-1.j]
The length doubled (3.1623 → 6.3246) and the angle grew by exactly 30°.
Powers and roots of unity
De Moivre's formula follows directly: . So : , , giving .
The equation has exactly solutions, the -th roots of unity , . They sit evenly spaced on the unit circle, forming a regular -gon. More generally, the -th roots of are .
import numpy as np
import matplotlib.pyplot as plt
n = 6
roots = np.exp(2j * np.pi * np.arange(n) / n)
print("6th roots of unity:", np.round(roots, 4))
print("each to the 6th power:", np.round(roots**6, 10) + 0)
print("sum of the roots:", np.round(roots.sum(), 10) + 0)
cube_roots = 2 * np.exp(1j * (np.pi / 2 + 2 * np.pi * np.arange(3)) / 3) # z^3 = 8i
print("cube roots of 8i:", np.round(cube_roots, 4) + 0, " cubed:", np.round(cube_roots**3, 8) + 0)
t = np.linspace(0, 2 * np.pi, 200)
plt.figure(figsize=(4, 4))
plt.plot(np.cos(t), np.sin(t), lw=0.8)
plt.plot(roots.real, roots.imag, "o", label="z⁶ = 1")
plt.plot(cube_roots.real / 2, cube_roots.imag / 2, "s", label="z³ = 8i (scaled 1/2)")
plt.gca().set_aspect("equal"); plt.legend(loc="lower left"); plt.axhline(0, lw=0.5); plt.axvline(0, lw=0.5)6th roots of unity: [ 1. +0.j 0.5+0.866j -0.5+0.866j -1. +0.j -0.5-0.866j 0.5-0.866j]
each to the 6th power: [1.+0.j 1.+0.j 1.+0.j 1.+0.j 1.+0.j 1.+0.j]
sum of the roots: 0j
cube roots of 8i: [ 1.7321+1.j -1.7321+1.j 0. -2.j] cubed: [0.+8.j 0.+8.j 0.+8.j]
The roots of unity add up to 0: rotating the set by leaves it unchanged, so its sum satisfies , forcing .
In software
- 2D games. Storing a heading as a unit complex number lets you rotate by multiplying and compose rotations without trigonometry; this is the 2D cousin of quaternions.
- FFT. The fast Fourier transform is built on the symmetries of the roots of unity.
- Signal processing. A sinusoid is the real part of ; phase shifts become multiplications.
- Procedural art. Regular polygons, star shapes and spirals come from powers of .
Exercises
Exercise 1: Polar form
Write in polar form.
Answer
, that is and .
Solution
. The point is in the second quadrant, so (not ).
Exercise 2: A power
Compute .
Answer
Solution
, . So the power is .
Exercise 3: Matrix of a complex number
Which complex number corresponds to the matrix , and what does it do to the plane?
Answer
: rotate by 90° and scale by 3.
Solution
with , is .
Exercise 4: Fourth roots (code)
Find all solutions of .
Answer
, that is .
Solution
. The roots are .
import numpy as np
z = 2 * np.exp(1j * (np.pi + 2 * np.pi * np.arange(4)) / 4)
print(np.round(z, 4))
print(np.round(z**4, 8) + 0)[ 1.4142+1.4142j -1.4142+1.4142j -1.4142-1.4142j 1.4142-1.4142j]
[-16.+0.j -16.+0.j -16.+0.j -16.+0.j]
Test yourself
Multiplying a complex number by does what to its point in the plane?
- Reflects it in the real axis
- Rotates it 90° counter-clockwise
- Doubles its length
- Moves it up by 1
If , and , , then has…
- modulus 5, angle 70°
- modulus 6, angle 1000°
- modulus 6, angle 70°
- modulus 6, angle 30°
How many solutions does have in ?
- 1
- 2
- 5
- infinitely many