Core Pure · Complex Numbers · Year 2

De Moivre's Theorem & Trigonometric Identities

One theorem turns raising a complex number to a power into simple multiplication of angles — and unlocks a whole family of multiple-angle trig identities.

16 min read 3 worked examples

De Moivre's theorem

Warm-up — squaring in modulus-argument form

Using $z=re^{i\theta}$, note that $z^2=(re^{i\theta})^2=r^2e^{i2\theta}=r^2(\cos2\theta+i\sin2\theta)$. Squaring a complex number doubles its argument and squares its modulus. The same pattern continues for any power.

Theorem 1.1 — De Moivre's theorem

For any integer $n$,

$$\big(r(\cos\theta+i\sin\theta)\big)^n=r^n(\cos n\theta+i\sin n\theta)$$

Equivalently, in exponential form: $\left(re^{i\theta}\right)^n=r^ne^{in\theta}$ — raising a complex number to an integer power multiplies its argument by that power and raises its modulus to that power.

ProofDe Moivre's theorem for positive integers, by induction
1
Base case: when $n=1$, $\big(r(\cos\theta+i\sin\theta)\big)^1=r(\cos\theta+i\sin\theta)=r^1(\cos1\theta+i\sin1\theta)$.
The statement holds trivially for $n=1$.
2
Assumption: suppose the result holds for $n=k$, i.e. $\big(r(\cos\theta+i\sin\theta)\big)^k=r^k(\cos k\theta+i\sin k\theta)$.
This is the inductive hypothesis.
3
$\big(r(\cos\theta+i\sin\theta)\big)^{k+1}=r^k(\cos k\theta+i\sin k\theta)\times r(\cos\theta+i\sin\theta)$
Write $z^{k+1}=z^k\cdot z$ and substitute the assumption.
4
$=r^{k+1}\big[(\cos k\theta\cos\theta-\sin k\theta\sin\theta)+i(\sin k\theta\cos\theta+\cos k\theta\sin\theta)\big]$
Multiply out and collect real and imaginary parts, using $i^2=-1$.
5
$=r^{k+1}\big[\cos((k+1)\theta)+i\sin((k+1)\theta)\big]$
Apply the cosine and sine addition formulae, so the statement holds for $n=k+1$.
6
Since the result holds for $n=1$, and $n=k$ true implies $n=k+1$ true, it holds for all $n\in\mathbb{Z}^+$ by mathematical induction.
The case $n=0$ is trivial ($z^0=1$), and negative integers follow by applying the positive-integer result to $\frac1z=z^{-1}$ and using $(z^{-1})^m=z^{-m}$.
∎
The quick proof, using exponential form

Once you're comfortable with $z=re^{i\theta}$, De Moivre's theorem is almost immediate: $z^n=(re^{i\theta})^n=r^ne^{in\theta}$, which is exactly the ordinary law of indices $(a^b)^c=a^{bc}$ applied to $e^{i\theta}$. Converting back with Euler's relation gives $r^n(\cos n\theta+i\sin n\theta)$. This shortcut is valid for any integer $n$ without needing a separate induction argument — the induction proof above is included because it's the classical, syllabus-expected derivation.

Example 1 · Applying De Moivre's theorem directly
Simplify $\left(\cos\dfrac{5\pi}{18}+i\sin\dfrac{5\pi}{18}\right)^4\left(\cos\dfrac{\pi}{9}-i\sin\dfrac{\pi}{9}\right)^{3}$, giving your answer in the form $\cos\theta+i\sin\theta$.

Rewrite the second bracket using $\cos\theta-i\sin\theta=\cos(-\theta)+i\sin(-\theta)$, so it becomes $\left(\cos\left(-\dfrac\pi9\right)+i\sin\left(-\dfrac\pi9\right)\right)^3$.

By De Moivre, the first bracket raised to the 4th power gives argument $4\times\dfrac{5\pi}{18}=\dfrac{10\pi}9$, and the second raised to the 3rd power gives argument $3\times\left(-\dfrac\pi9\right)=-\dfrac\pi3$.

Multiplying (moduli both $1$, arguments add): total argument $\dfrac{10\pi}9-\dfrac\pi3=\dfrac{10\pi}9-\dfrac{3\pi}9=\dfrac{7\pi}9$. Result: $\cos\dfrac{7\pi}9+i\sin\dfrac{7\pi}9$.

Deriving trigonometric identities

Method — expanding $(\cos\theta+i\sin\theta)^n$ two ways

De Moivre's theorem gives one expression for $(\cos\theta+i\sin\theta)^n$. Expanding the same power using the binomial theorem gives a second expression, in terms of powers and products of $\cos\theta$ and $\sin\theta$. Equating real parts (or imaginary parts) of these two expressions produces an identity for $\cos n\theta$ (or $\sin n\theta$) purely in terms of powers of $\cos\theta$ and $\sin\theta$.

Example 2 · Deriving a multiple-angle identity
Show that $\cos4\theta=8\cos^4\theta-8\cos^2\theta+1$.

By De Moivre's theorem, $\cos4\theta+i\sin4\theta=(\cos\theta+i\sin\theta)^4$.

Expanding the right-hand side by the binomial theorem, writing $c=\cos\theta$ and $s=\sin\theta$ for brevity:

$(c+is)^4=c^4+4c^3(is)+6c^2(is)^2+4c(is)^3+(is)^4$

$=c^4+4ic^3s-6c^2s^2-4ics^3+s^4$

$=(c^4-6c^2s^2+s^4)+i(4c^3s-4cs^3)$

Equating real parts: $\cos4\theta=\cos^4\theta-6\cos^2\theta\sin^2\theta+\sin^4\theta$.

Using $\sin^2\theta=1-\cos^2\theta$ throughout to eliminate $\sin\theta$: with $c=\cos\theta$,

$\cos4\theta=c^4-6c^2(1-c^2)+(1-c^2)^2=c^4-6c^2+6c^4+1-2c^2+c^4=8c^4-8c^2+1$

as required.

The $z+\frac1z$ and $z^n+\frac1{z^n}$ identities

Theorem 1.2 — reciprocal identities

Let $z=\cos\theta+i\sin\theta$. Since $|z|=1$, De Moivre's theorem gives $z^n=\cos n\theta+i\sin n\theta$ and $z^{-n}=\cos n\theta-i\sin n\theta$ (using $\cos(-n\theta)=\cos n\theta$, $\sin(-n\theta)=-\sin n\theta$). Adding and subtracting these:

$$z^n+\frac1{z^n}=2\cos n\theta$$

$$z^n-\frac1{z^n}=2i\sin n\theta$$

The special case $n=1$ gives the frequently-used pair $z+\dfrac1z=2\cos\theta$ and $z-\dfrac1z=2i\sin\theta$.

Why this is useful

These identities let you express powers like $\cos^n\theta$ or $\sin^n\theta$ as a sum of cosines/sines of multiple angles, by writing $(2\cos\theta)^n=\left(z+\dfrac1z\right)^n$, expanding with the binomial theorem, and grouping matching pairs $z^k+\dfrac1{z^k}$ back into $2\cos k\theta$. This is the reverse process to Example 2, and is the key technique for integrating powers of trig functions and for summing certain trigonometric series (next lesson).

Example 3 · Expressing $\cos^6\theta$ as a sum of cosines
Show that $\cos^6\theta=\dfrac1{32}\cos6\theta+\dfrac6{32}\cos4\theta+\dfrac{15}{32}\cos2\theta+\dfrac{10}{32}$.

Let $z=\cos\theta+i\sin\theta$, so $z+\dfrac1z=2\cos\theta$, giving $\left(z+\dfrac1z\right)^6=64\cos^6\theta$.

Expand by the binomial theorem: $\left(z+\dfrac1z\right)^6=z^6+6z^4+15z^2+20+\dfrac{15}{z^2}+\dfrac6{z^4}+\dfrac1{z^6}$ (using $\binom60=1,\binom61=6,\binom62=15,\binom63=20$ and symmetry).

Group into reciprocal pairs: $=\left(z^6+\dfrac1{z^6}\right)+6\left(z^4+\dfrac1{z^4}\right)+15\left(z^2+\dfrac1{z^2}\right)+20$.

Using $z^n+\dfrac1{z^n}=2\cos n\theta$: $=2\cos6\theta+12\cos4\theta+30\cos2\theta+20$.

So $64\cos^6\theta=2\cos6\theta+12\cos4\theta+30\cos2\theta+20$, and dividing by $64$ gives $\cos^6\theta=\dfrac1{32}\cos6\theta+\dfrac6{32}\cos4\theta+\dfrac{15}{32}\cos2\theta+\dfrac{10}{32}$, as required.

Watch out — sign changes with $\sin^n\theta$

When $n$ is even, $\left(z-\dfrac1z\right)^n=(2i\sin\theta)^n$ picks up a factor of $i^n$, which is real when $n$ is even but $\pm1$ or $\pm i$ depending on $n\bmod4$ — always simplify $i^n$ carefully before comparing real parts, or you'll introduce a sign error. When $n$ is odd, the whole expression is purely imaginary, and you should compare imaginary parts (dividing through by $i$) instead of real parts.

Exam-style questions

Question 1 6 marks

Use De Moivre's theorem to show that $\sin3\theta=3\sin\theta-4\sin^3\theta$.

$\cos3\theta+i\sin3\theta=(\cos\theta+i\sin\theta)^3$. (M1)

Expanding with $c=\cos\theta,\,s=\sin\theta$: $(c+is)^3=c^3+3ic^2s-3cs^2-is^3=(c^3-3cs^2)+i(3c^2s-s^3)$. (M1, A1)

Equating imaginary parts: $\sin3\theta=3c^2s-s^3=3(1-s^2)s-s^3=3s-3s^3-s^3=3\sin\theta-4\sin^3\theta$. (M1, A1, A1)

Question 2 6 marks

Express $\sin^5\theta$ in the form $a\sin5\theta+b\sin3\theta+c\sin\theta$, where $a$, $b$ and $c$ are constants to be found.

Let $z=\cos\theta+i\sin\theta$. Then $z-\dfrac1z=2i\sin\theta$, so $\left(z-\dfrac1z\right)^5=32i^5\sin^5\theta=32i\sin^5\theta$ (using $i^5=i$). (M1, A1)

Binomial expansion: $z^5-5z^3+10z-\dfrac{10}z+\dfrac5{z^3}-\dfrac1{z^5}$, grouped as $\left(z^5-\dfrac1{z^5}\right)-5\left(z^3-\dfrac1{z^3}\right)+10\left(z-\dfrac1z\right)$. (M1, A1)

$=2i\sin5\theta-5(2i\sin3\theta)+10(2i\sin\theta)=2i\sin5\theta-10i\sin3\theta+20i\sin\theta$. (M1)

So $32i\sin^5\theta=2i\sin5\theta-10i\sin3\theta+20i\sin\theta$; dividing by $32i$: $\sin^5\theta=\dfrac1{16}\sin5\theta-\dfrac5{16}\sin3\theta+\dfrac{10}{16}\sin\theta$, so $a=\dfrac1{16},\,b=-\dfrac5{16},\,c=\dfrac58$. (A1)

Question 3 5 marks

Given $\cos4\theta=8\cos^4\theta-8\cos^2\theta+1$ (Example 2), find all solutions of $8\cos^4\theta-8\cos^2\theta+1=0$ in the interval $0\leq\theta<\pi$, giving your answers as exact multiples of $\pi$.

The equation is equivalent to $\cos4\theta=0$. (M1)

For $0\leq\theta<\pi$, $4\theta$ ranges over $[0,4\pi)$. Solving $\cos4\theta=0$: $4\theta=\dfrac\pi2,\dfrac{3\pi}2,\dfrac{5\pi}2,\dfrac{7\pi}2$ (the values in $[0,4\pi)$ where cosine is zero). (M1, A1)

So $\theta=\dfrac\pi8,\dfrac{3\pi}8,\dfrac{5\pi}8,\dfrac{7\pi}8$. (A1, A1)