📘 CodingMarble Learn

De Moivre's Theorem and Roots of Unity

A complex number can be written by its length r and angle θ: z = r(cos θ + i sin θ) = re^{iθ}. When you multiply, the lengths multiply and the angles add. So zⁿ = rⁿ(cos nθ + i sin nθ): this is De Moivre's theorem. It gives quick powers, formulas for cos nθ and sin nθ, and the n roots of any number. The n roots of 1 sit evenly on the unit circle like the corners of a regular polygon.

🎬 Step-by-step story

  1. Every complex number is a point on a flat map. Say how far it is (r) and which way it points (θ).
  2. When r = 1, the point sits on the circle of radius 1. That point is e^{iθ} = cos θ + i sin θ.
  3. Multiply two complex numbers: the lengths multiply and the angles add. Watch the orange arrow.
  4. Do it again and again: z, z², z³ … each one turns by θ more. That is De Moivre's theorem.
  5. Turn it round: the n roots of zⁿ = 1 sit evenly on the circle and make a regular polygon.
  6. Free play: change r, θ and n. Predict where zⁿ lands, then check.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why do angles add when we multiply?

Because re^{iθ} uses powers of e, and powers add when you multiply: e^{iα}e^{iβ} = e^{i(α+β)}. In the 3D, the orange product arrow sits at angle 30° + θ.

Where does e^{iθ} come from? It looks strange.

It is a short name for the point at angle θ on the circle of radius 1. Its x is cos θ and its y is sin θ. Change θ in the 3D and the point turns.

Why does zⁿ = 1 have n answers and not just 1?

An angle of 360°, 720°, … all bring you back to 1. Dividing these by n gives n different angles before they repeat. You can see n purple dots appear one by one.

Does De Moivre work for negative powers?

Yes. z⁻¹ has length 1/r and angle −θ, so z⁻ⁿ = r⁻ⁿe^{−inθ}. The arrow turns the other way and shrinks (if r > 1).

If r is bigger than 1, why do the powers spiral outwards?

Each power multiplies the length by r again. With r = 1.1 the length grows 1.1, 1.21, 1.33 … while the angle keeps adding θ. Try r below 1 in free play: the spiral goes inwards.

How do I find the argument without mistakes?

Plot the point first and see its quadrant, then use the reference angle tan⁻¹|y/x|. The 3D arrow shows which way z really points.

Polar (modulus-argument) form

A complex number z = x + iy is a point (x, y) on the Argand diagram (a graph where across = real part, up = imaginary part).

Then x = r cos θ and y = r sin θ, so z = r(cos θ + i sin θ). People often shorten this to r cis θ or r∠θ.

Take care with the quadrant: for z = −1 − i, tan θ = 1, but the point is in the third quadrant, so θ = −3π/4, not π/4.

Exponential (Euler) form

Euler's formula says e^{iθ} = cos θ + i sin θ. So any complex number is z = re^{iθ}.

This form makes rules easy, because powers of e already add: e^{iα}·e^{iβ} = e^{i(α+β)}.

Multiplying and dividing in polar form

If z₁ = r₁e^{iα} and z₂ = r₂e^{iβ}:

So multiplying by i (length 1, angle 90°) just turns a point by 90° anticlockwise. The 3D step 3 shows this as an arrow that stretches and turns.

De Moivre's theorem

[r(cos θ + i sin θ)]ⁿ = rⁿ(cos nθ + i sin nθ) for every integer n (positive, zero or negative).

Why? Multiplying z by itself n times multiplies r n times and adds θ n times. It can be proved for positive n by induction, and for negative n using 1/z = r⁻¹e^{−iθ}.

Use 1: fast powers

(1 + i)¹⁰: r = √2, θ = π/4. So (√2)¹⁰ e^{i·10π/4} = 32 e^{iπ/2} = 32i.

Use 2: multiple-angle formulas

Expand (cos θ + i sin θ)³ with the binomial theorem and compare with cos 3θ + i sin 3θ. Real parts: cos 3θ = cos³θ − 3cos θ sin²θ = 4cos³θ − 3cos θ. Imaginary parts: sin 3θ = 3sin θ − 4sin³θ.

Use 3: powers of cos θ

With z = e^{iθ}: z + 1/z = 2cos θ and zⁿ + 1/zⁿ = 2cos nθ. So (2cos θ)³ = (z + 1/z)³ = z³ + 1/z³ + 3(z + 1/z), giving cos³θ = (cos 3θ + 3cos θ)/4. This helps in integration.

nth roots and roots of unity

To solve zⁿ = w where w = Re^{iφ}: the length must be R^{1/n} and nθ must equal φ plus any whole turn.

z = R^{1/n} e^{i(φ + 2πk)/n}, k = 0, 1, …, n − 1. There are exactly n different roots.

Complex roots of polynomials

Fundamental theorem of algebra: a polynomial of degree n has exactly n complex roots (counting repeats).

Try it

In the free-play step, set n = 6 and choose n roots. Before you look, predict: what shape, and what angle between neighbours? Then set θ = 60°, r = 1 and choose Power zⁿ: where does z⁶ land? (Answer: a hexagon, 60°, and z⁶ = 1.) At home: draw a circle, mark 5 points 72° apart with a protractor — you have drawn the fifth roots of unity.

Key formulas and definitions

Worked examples

1. Write z = 1 + √3 i in polar and exponential form.

r = √(1 + 3) = 2. tan θ = √3, first quadrant, so θ = π/3. z = 2(cos π/3 + i sin π/3) = 2e^{iπ/3}.

2. Find (1 + √3 i)⁶.

From above, z = 2e^{iπ/3}. z⁶ = 2⁶ e^{i·6π/3} = 64 e^{2πi} = 64(cos 2π + i sin 2π) = 64.

3. Find (1 − i)⁻⁴.

r = √2, θ = −π/4. z⁻⁴ = (√2)⁻⁴ e^{i·π} = (1/4)(−1) = −1/4.

4. Use De Moivre to show cos 2θ = cos²θ − sin²θ and sin 2θ = 2 sin θ cos θ.

(c + is)² = c² + 2ics − s² (writing c = cos θ, s = sin θ). By De Moivre this equals cos 2θ + i sin 2θ. Real parts: cos 2θ = c² − s². Imaginary parts: sin 2θ = 2sc.

5. Solve z³ = 1 and draw the roots.

z = e^{2πik/3}, k = 0, 1, 2: z = 1, −½ + (√3/2)i, −½ − (√3/2)i. They are corners of an equilateral triangle on the unit circle, 120° apart.

6. Solve z⁴ = −16.

−16 = 16e^{iπ}. Length 16^{1/4} = 2. Angles (π + 2πk)/4 = π/4, 3π/4, 5π/4, 7π/4. Roots: 2e^{iπ/4} = √2 + √2 i, −√2 + √2 i, −√2 − √2 i, √2 − √2 i (a square of radius 2).

7. Show cos³θ = ¼(cos 3θ + 3cos θ).

Let z = e^{iθ}, so z + 1/z = 2cos θ. (z + 1/z)³ = z³ + 3z + 3/z + 1/z³ = (z³ + 1/z³) + 3(z + 1/z) = 2cos 3θ + 6cos θ. So 8cos³θ = 2cos 3θ + 6cos θ, giving cos³θ = ¼(cos 3θ + 3cos θ).

8. A real cubic has roots 2 and 1 + 2i. Find it (leading coefficient 1).

Real coefficients, so 1 − 2i is also a root. Pair gives x² − 2x + 5. Cubic = (x − 2)(x² − 2x + 5) = x³ − 4x² + 9x − 10.

Common mistakes

Practice quiz

1. z = 3e^{iπ/2}. What is z in x + iy form?
2. When you multiply two complex numbers, their arguments…
3. (cos 20° + i sin 20°)⁹ equals
4. How many different 5th roots does 32 have?
5. If ω is a non-real cube root of unity, 1 + ω + ω² =

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is De Moivre's theorem?

For any integer n, (cos θ + i sin θ)ⁿ = cos nθ + i sin nθ. With length r it becomes [r(cos θ + i sin θ)]ⁿ = rⁿ(cos nθ + i sin nθ).

What are the nth roots of unity?

The n solutions of zⁿ = 1: e^{2πik/n} for k = 0 to n − 1. They lie on the unit circle at the corners of a regular n-sided polygon and add to zero.

What is the exponential form of a complex number?

z = re^{iθ}, where r is the modulus and θ the argument. It comes from Euler's formula e^{iθ} = cos θ + i sin θ.

Where this is taught

England (GCSE, A level)Year 13B Complex numbers (part 2)
USA (Common Core, NGSS, AP)Grade 12Complex numbers
China高一Ch.7 Complex numbers

Learn first

Learn next

Related lessons

All Maths lessons