Skip to content
Tutorials Center
My learning

Topics

Lesson 9 of 36 · Complex Numbers and the Plane

Roots of Complex Numbers

Find all n-th roots of any complex number using polar form, understand roots of unity as regular polygons, and learn why the principal root is only one of n values.

In the real numbers, the equation x² = 4 has two solutions, 2 and -2, and the symbol √4 is defined to mean the nonnegative one. In the complex numbers, every nonzero number has exactly n different n-th roots. This lesson shows how to find all of them with polar form, and why they always form a regular polygon.

The formula

We want all w with wⁿ = z, where z = r e^(iθ) is nonzero. Write w = ρ e^(iφ). By De Moivre, wⁿ = ρⁿ e^(inφ). For this to equal r e^(iθ) we need ρⁿ = r and nφ = θ + 2πk for some integer k (angles are equal when they differ by a multiple of 2π). So

Text
w_k = r^(1/n) · e^( i(θ + 2πk)/n ),     k = 0, 1, ..., n - 1

Here r^(1/n) is the ordinary positive real root. Values of k beyond n - 1 repeat the same numbers, so there are exactly n distinct roots. They all have the same modulus, and their arguments are spaced 2π/n apart. They sit at the corners of a regular n-gon inscribed in the circle of radius r^(1/n).

Worked example: the cube roots of 8i. Here r = 8, θ = π/2, n = 3. So ρ = 2 and the angles are (π/2 + 2πk)/3 = π/6, 5π/6, 3π/2 for k = 0, 1, 2. The roots are

  • 2e^(iπ/6) = √3 + i
  • 2e^(i5π/6) = -√3 + i
  • 2e^(i3π/2) = -2i

Check the last: (-2i)³ = -8 i³ = -8(-i) = 8i.

Python All n-th roots

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Each cube comes out as 8i and each fourth power as -16, apart from tiny rounding noise such as -0.0000. Notice that the fourth roots of the negative real number -16 are all non-real: ±√2 ± √2 i.

Roots of unity

The n-th roots of 1 are special enough to have a name. Taking z = 1 (so r = 1, θ = 0) gives

Text
ω_k = e^(2πik/n),     k = 0, 1, ..., n - 1

They include 1 itself and form a regular n-gon on the unit circle. Facts you can check:

  • If ω = e^(2πi/n) (the primitive root), the others are its powers ω⁰, ω¹, ..., ωⁿ⁻¹.
  • Their sum is 0 for n ≥ 2, because they are balanced around the center (equivalently, 1 + ω + ... + ωⁿ⁻¹ = (ωⁿ - 1)/(ω - 1) = 0).
  • Their product is (-1)^(n+1).
  • The cube roots of unity are 1, -1/2 + (√3/2)i and -1/2 - (√3/2)i.

Once you know one n-th root w₀ of z, the other roots are w₀ times the roots of unity. That is the quickest way to list them.

Python Roots of unity as a regular polygon

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The title of each plot shows that the sum of the roots has modulus essentially zero, confirming the balancing property.

The principal root versus all roots

For nonnegative real numbers, √x means the unique nonnegative root. For complex numbers we likewise pick a distinguished one, the principal n-th root, using the principal argument: z^(1/n) = r^(1/n) e^(i Arg(z)/n). It is the k = 0 root in the formula above when θ = Arg z. This is what z ** (1/n) returns in Python.

But the principal root is not the only answer to "solve wⁿ = z". If a problem asks for solutions, list all n. And be careful: unlike for positive reals, rules like √(zw) = √z √w can fail by a sign. For instance, with z = w = -1, √z √w = i · i = -1 but √(zw) = √1 = 1.

The jump of the principal root along the negative real axis (where Arg z flips from π to -π) is the first example of a branch cut. We study it properly in the lesson on the complex logarithm.

Solving equations with roots

Solve z⁴ + 16 = 0. It means z⁴ = -16, so the four solutions are the fourth roots of -16, namely √2(±1 ± i). Solve z³ = 1: use the roots of unity. Solve (z - 1)⁵ = 32: the fifth roots of 32 are 2e^(2πik/5), so z = 1 + 2e^(2πik/5), five points on a circle of radius 2 centered at 1.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. How many distinct fourth roots does a nonzero complex number have?

    For any n, a nonzero complex number has exactly n distinct n-th roots.
  2. 2. What is the sum of the five fifth roots of unity?

    They form a regular pentagon centered at the origin, so they cancel; algebraically 1 + ω + ... + ω⁴ = (ω⁵ - 1)/(ω - 1) = 0.
  3. 3. The roots of z^6 = 64 lie on which shape?

    The modulus is 64^(1/6) = 2 and the arguments are spaced 2π/6 apart.
  4. 4. In the formula w_k = r^(1/n) e^(i(θ + 2πk)/n), what range of k gives all distinct roots?

    k and k + n give the same angle modulo 2π, so only n consecutive integers are needed.

Summary

  • Every nonzero z = r e^(iθ) has exactly n n-th roots: r^(1/n) e^(i(θ + 2πk)/n) for k = 0, ..., n - 1.
  • They are the corners of a regular n-gon centered at the origin.
  • The n-th roots of unity are e^(2πik/n); they sum to 0 for n ≥ 2.
  • The principal root is one of the n roots; √(zw) = √z √w can fail in ℂ.

Next: Complex Functions as Mappings