TExcelTAD
Home › Linear Algebra & Matrix Theory › Geometric Interpretation of Complex Numbers

Geometric Interpretation of Complex Numbers

Picture a+bia + bi as the point (a,b)(a, b) 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 z=a+biz = a + bi at (a,b)(a, b): the real axis is horizontal, the imaginary axis vertical. In this picture

  • z+wz + w is the parallelogram sum of two vectors (as in Addition),
  • ∣z∣=a2+b2\lvert z \rvert = \sqrt{a^2 + b^2} is the distance to the origin (Length of a Vector),
  • zˉ=a−bi\bar{z} = a - bi is the mirror image in the real axis,
  • ∣z−w∣\lvert z - w \rvert is the distance between two points.

Polar form and Euler's formula

Any nonzero zz has a length r=∣z∣r = \lvert z \rvert and an angle θ=arg⁡z\theta = \arg z measured from the positive real axis, so

z=r(cos⁡θ+isin⁡θ)=reiθz = r(\cos\theta + i\sin\theta) = re^{i\theta}

The second equality is Euler's formula, eiθ=cos⁡θ+isin⁡θe^{i\theta} = \cos\theta + i\sin\theta. One way to see it: plug iθi\theta into the Taylor series of exe^x and separate the even powers (which give the cosine series) from the odd powers (the sine series, times ii). Setting θ=π\theta = \pi gives eiπ=−1e^{i\pi} = -1.

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 z=reiαz = re^{i\alpha} and w=seiβw = se^{i\beta}, the exponent rules give

zw=(rs)ei(α+β)∣zw∣=∣z∣∣w∣,arg⁡(zw)=arg⁡z+arg⁡wzw = (rs)e^{i(\alpha + \beta)} \qquad \lvert zw \rvert = \lvert z \rvert\lvert w \rvert, \quad \arg(zw) = \arg z + \arg w

So multiplying by ww scales the plane by ∣w∣\lvert w \rvert and rotates it by arg⁡w\arg w. In particular, multiplying by eiθe^{i\theta} is a pure rotation by θ\theta, and multiplying by ii rotates by 90°.

Write the map z↦wzz \mapsto wz in real coordinates. With w=c+diw = c + di and z=x+yiz = x + yi, wz=(cx−dy)+(dx+cy)iwz = (cx - dy) + (dx + cy)i, so

[xy]↦[c−ddc][xy]\begin{bmatrix} x \\ y \end{bmatrix} \mapsto \begin{bmatrix} c & -d \\ d & c \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix}

This is a rotation matrix times the scale s=c2+d2s = \sqrt{c^2 + d^2}: every complex number c+dic + di corresponds to the 2×22 \times 2 real matrix [c−ddc]\begin{bmatrix} c & -d \\ d & c \end{bmatrix}, and complex multiplication corresponds to matrix multiplication. That is the link between complex eigenvalues and rotations: the matrix [c−ddc]\begin{bmatrix} c & -d \\ d & c \end{bmatrix} has eigenvalues c±dic \pm di.

python · try it yourself
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: (reiθ)n=rneinθ(re^{i\theta})^n = r^ne^{in\theta}. So (1+i)8(1 + i)^8: r=2r = \sqrt{2}, θ=45∘\theta = 45^\circ, giving (2)8ei⋅360∘=16(\sqrt{2})^8 e^{i \cdot 360^\circ} = 16.

The equation zn=1z^n = 1 has exactly nn solutions, the nn-th roots of unity e2πik/ne^{2\pi ik/n}, k=0,…,n−1k = 0, \ldots, n - 1. They sit evenly spaced on the unit circle, forming a regular nn-gon. More generally, the nn-th roots of w=seiφw = se^{i\varphi} are s1/nei(φ+2πk)/ns^{1/n} e^{i(\varphi + 2\pi k)/n}.

python · try it yourself
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 2π/n2\pi/n leaves it unchanged, so its sum ss satisfies e2πi/ns=se^{2\pi i/n}s = s, forcing s=0s = 0.

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 Acos⁡(ωt+φ)A\cos(\omega t + \varphi) is the real part of AeiφeiωtAe^{i\varphi}e^{i\omega t}; phase shifts become multiplications.
  • Procedural art. Regular polygons, star shapes and spirals come from powers of eiθe^{i\theta}.

Exercises

Exercise 1: Polar form

Write −2+2i-2 + 2i in polar form.

Answer

22⋅ei⋅3π/42\sqrt{2} \cdot e^{i \cdot 3\pi/4}, that is r≈2.8284r \approx 2.8284 and θ=135∘\theta = 135^\circ.

Solution

r=4+4=22r = \sqrt{4 + 4} = 2\sqrt{2}. The point (−2,2)(-2, 2) is in the second quadrant, so θ=atan2⁡(2,−2)=135∘=3π/4\theta = \operatorname{atan2}(2, -2) = 135^\circ = 3\pi/4 (not atan⁡(−1)=−45∘\operatorname{atan}(-1) = -45^\circ).

Exercise 2: A power

Compute (1−i3)6(1 - i\sqrt{3})^6.

Answer
Solution

r=1+3=2r = \sqrt{1 + 3} = 2, θ=−60∘\theta = -60^\circ. So the power is 26e−i⋅360∘=642^6 e^{-i \cdot 360^\circ} = 64.

Exercise 3: Matrix of a complex number

Which complex number corresponds to the matrix [0−330]\begin{bmatrix} 0 & -3 \\ 3 & 0 \end{bmatrix}, and what does it do to the plane?

Answer

3i3i: rotate by 90° and scale by 3.

Solution

[c−ddc]\begin{bmatrix} c & -d \\ d & c \end{bmatrix} with c=0c = 0, d=3d = 3 is c+di=3i=3eiπ/2c + di = 3i = 3e^{i\pi/2}.

Exercise 4: Fourth roots (code)

Find all solutions of z4=−16z^4 = -16.

Answer

z=2(±1±i)z = \sqrt{2}(\pm 1 \pm i), that is ±1.4142±1.4142i\pm 1.4142 \pm 1.4142i.

Solution

−16=16eiπ-16 = 16e^{i\pi}. The roots are 161/4ei(π+2πk)/4=2ei(45∘+90∘k)16^{1/4} e^{i(\pi + 2\pi k)/4} = 2e^{i(45^\circ + 90^\circ k)}.

python · try it yourself
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 ii does what to its point in the plane?

  1. Reflects it in the real axis
  2. Rotates it 90° counter-clockwise
  3. Doubles its length
  4. Moves it up by 1

If ∣z∣=2\lvert z \rvert = 2, arg⁡z=50∘\arg z = 50^\circ and ∣w∣=3\lvert w \rvert = 3, arg⁡w=20∘\arg w = 20^\circ, then zwzw has…

  1. modulus 5, angle 70°
  2. modulus 6, angle 1000°
  3. modulus 6, angle 70°
  4. modulus 6, angle 30°

How many solutions does z5=1z^5 = 1 have in C\mathbb{C}?

  1. 1
  2. 2
  3. 5
  4. infinitely many