De Moivre Formula with Worked Examples

#Formula
TL;DR
The de moivre formula states that (cos⁡θ+isin⁡θ)n=cos⁡nθ+isin⁡nθ(\cos\theta + i\sin\theta)^n = \cos n\theta + i\sin n\theta. This article gives five worked examples including nth roots.
BT
Bhanzu TeamLast updated on November 7, 20266 min read

Key Points

  • The de moivre formula is (cos⁡θ+isin⁡θ)n=cos⁡nθ+isin⁡nθ(\cos\theta+i\sin\theta)^n = \cos n\theta + i\sin n\theta, which NIST's DLMF prints for any integer nn.

  • With a modulus included, a complex number r(cos⁡θ+isin⁡θ)r(\cos\theta+i\sin\theta) raised to the power nn gives rn(cos⁡nθ+isin⁡nθ)r^n(\cos n\theta + i\sin n\theta).

  • Raising to a power multiplies the angle and raises the modulus to that power, which turns a hard multiplication into simple arithmetic.

  • Every non-zero complex number has exactly nn distinct nnth roots, found by adding 2kπn\frac{2k\pi}{n} to the angle for k=0k = 0 to n−1n-1.

  • Expanding the left side for n=2n = 2 and comparing parts produces the double-angle identities, so the formula generates trigonometric results.

What Is the De Moivre Formula?

The de moivre formula connects powers of a complex number to multiples of its angle. NIST's Digital Library of Mathematical Functions prints it, under the heading DeMoivre's Theorem, as:

cos⁡nθ+isin⁡nθ=(cos⁡θ+isin⁡θ)n,n∈Z\cos n\theta + i \sin n\theta = (\cos\theta + i\sin\theta)^n, \qquad n \in \mathbb{Z}

Including a modulus gives the working form for any complex number:

[r(cos⁡θ+isin⁡θ)]n=rn(cos⁡nθ+isin⁡nθ)\left[r(\cos\theta+i\sin\theta)\right]^n = r^n(\cos n\theta + i\sin n\theta)

Why Powers Become Multiples of the Angle

Multiplying two complex numbers in polar form multiplies their moduli and adds their arguments. That single rule is the whole engine.

So squaring a number multiplies its modulus by itself and adds its argument to itself, giving r2r^2 and 2θ2\theta. Cubing repeats the step, giving r3r^3 and 3θ3\theta, and the pattern continues for any integer power.

The exponential form makes it immediate. NIST's DLMF gives eiθ=cos⁡θ+isin⁡θe^{i\theta} = \cos\theta + i\sin\theta, so the left side is (reiθ)n=rneinθ(re^{i\theta})^n = r^n e^{in\theta}, which is the formula written another way.

Variable Key

Symbol

Meaning

Unit or type

Notes

rr

modulus

non-negative number

raised to the power nn

θ\theta

argument

radians or degrees

multiplied by nn

nn

the power

integer

negative values allowed

kk

root index

00 to n−1n-1

selects which nnth root

Examples of the De Moivre Formula

Example 1

Evaluate (cos⁡30∘+isin⁡30∘)3(\cos 30^\circ + i\sin 30^\circ)^3.

=cos⁡90∘+isin⁡90∘=0+i=i= \cos 90^\circ + i\sin 90^\circ = 0 + i = i

Final answer: ii

Example 2

Evaluate (1+i)8(1+i)^8, treating the modulus as 1.

Writing 1+i1+i in polar form gives an argument of 45∘45^\circ, so multiplying the angle gives 8×45=360∘8 \times 45 = 360^\circ, and cos⁡360∘+isin⁡360∘=1\cos 360^\circ + i\sin 360^\circ = 1.

That answer of 1 cannot be right. The number 1+i1+i has modulus 2\sqrt{2}, which is greater than 1, so its eighth power must be much larger than 1 in size.

The modulus has to be raised too:

r=2,r8=(2)8=24=16r = \sqrt{2}, \qquad r^8 = (\sqrt{2})^8 = 2^4 = 16 (1+i)8=16(cos⁡360∘+isin⁡360∘)=16(1+i)^8 = 16(\cos 360^\circ + i \sin 360^\circ) = 16

Final answer: 16. The angle part was right; the modulus was the omission.

Example 3

Find all three cube roots of 8.

Write 88 as 8(cos⁡0∘+isin⁡0∘)8(\cos 0^\circ + i\sin 0^\circ). The roots take modulus 81/3=28^{1/3} = 2 and angles 0+360k3\frac{0+360k}{3} for k=0,1,2k = 0,1,2:

k=0: 2(cos⁡0+isin⁡0)=2k=0: \ 2(\cos 0 + i\sin 0) = 2 k=1: 2(cos⁡120∘+isin⁡120∘)=−1+i3k=1: \ 2(\cos 120^\circ + i\sin 120^\circ) = -1 + i\sqrt{3} k=2: 2(cos⁡240∘+isin⁡240∘)=−1−i3k=2: \ 2(\cos 240^\circ + i\sin 240^\circ) = -1 - i\sqrt{3}

Final answer: 22, −1+i3-1+i\sqrt{3} and −1−i3-1-i\sqrt{3}.

Only one is real, which is why the cube root of 8 is usually quoted as 2 alone.

Example 4

Use the formula with n=2n = 2 to derive the double-angle identities.

The formula gives (cos⁡θ+isin⁡θ)2=cos⁡2θ+isin⁡2θ(\cos\theta+i\sin\theta)^2 = \cos 2\theta + i\sin 2\theta. Expanding the left side directly:

cos⁡2θ+2isin⁡θcos⁡θ+i2sin⁡2θ=(cos⁡2θ−sin⁡2θ)+i(2sin⁡θcos⁡θ)\cos^2\theta + 2i\sin\theta\cos\theta + i^2\sin^2\theta = (\cos^2\theta - \sin^2\theta) + i(2\sin\theta\cos\theta)

Comparing real and imaginary parts:

Final answer: cos⁡2θ=cos⁡2θ−sin⁡2θ\cos 2\theta = \cos^2\theta - \sin^2\theta and sin⁡2θ=2sin⁡θcos⁡θ\sin 2\theta = 2\sin\theta\cos\theta.

Taking n=3n = 3 produces the triple-angle identities the same way, which is how the whole family is generated.

Example 5

Evaluate (cos⁡20∘+isin⁡20∘)−3(\cos 20^\circ + i \sin 20^\circ)^{-3}.

Negative powers are allowed, since the DLMF states the result for any integer nn:

=cos⁡(−60∘)+isin⁡(−60∘)=12−i32= \cos(-60^\circ) + i\sin(-60^\circ) = \frac{1}{2} - i\frac{\sqrt{3}}{2}

Final answer: 12−i32\frac{1}{2} - i\frac{\sqrt{3}}{2}

Powers, Roots and the Polar Form Compared

Task

What to do

Result

Power nn

multiply angle by nn, raise modulus to nn

one answer

nnth roots

divide angle by nn, add 360kn\frac{360k}{n}

nn distinct answers

Multiplication

add arguments, multiply moduli

one answer

Division

subtract arguments, divide moduli

one answer

The second row is the one that catches people. A power has a single value, but an nnth root has nn of them, spaced equally around a circle of radius r1/nr^{1/n}.

De Moivre, Where Things Go Sideways

Mistake 1: Forgetting to raise the modulus

Where it slips in: The memorable form of the formula has no rr in it, because it is stated for a number already on the unit circle.

Don't do this: (1+i)8=cos⁡360∘+isin⁡360∘=1(1+i)^8 = \cos 360^\circ + i\sin 360^\circ = 1

The correct way: Use rn(cos⁡nθ+isin⁡nθ)r^n(\cos n\theta + i\sin n\theta). Check the modulus first: if it is not 1, it must be raised to the power as well.

Students who compute rr and θ\theta as two separate labelled quantities before touching the power never drop the modulus, because it is already written down waiting to be used. Reading the bare unit-circle form as the general formula is what causes the omission.

Mistake 2: Finding only one nth root

Where it slips in: The formula returns an expression, and one substitution produces one answer.

Don't do this: Report the cube root of 8 as just 2.

The correct way: Step kk through 00 to n−1n-1. There are exactly nn distinct nnth roots, equally spaced by 360∘n\frac{360^\circ}{n} around the circle.

Mistake 3: Mixing degrees and radians

Where it slips in: The angle gets multiplied by nn in one unit and evaluated in another.

Don't do this: Multiply π6\frac{\pi}{6} by 3 and then read the cosine of 90 degrees.

The correct way: Pick one unit and keep it throughout. Multiplying the angle is safe in either, but the final evaluation must match the unit used.

Bottom Line

  • The de moivre formula is (cos⁡θ+isin⁡θ)n=cos⁡nθ+isin⁡nθ(\cos\theta+i\sin\theta)^n = \cos n\theta + i\sin n\theta, for any integer nn.

  • Including the modulus gives rn(cos⁡nθ+isin⁡nθ)r^n(\cos n\theta+i\sin n\theta), and forgetting the rnr^n is the dominant error.

  • It follows from the rule that multiplying complex numbers adds arguments and multiplies moduli.

  • An nnth root has nn distinct values, found by stepping kk from 00 to n−1n-1.

  • To work through complex numbers with a teacher, explore a trigonometry tutor or math classes online.

Where to Go From Here

Evaluate (3+i)6(\sqrt{3}+i)^6 by converting to polar form first. Then find all four fourth roots of 16 and plot them to confirm they are equally spaced.

Want a live Bhanzu trainer to walk through more complex number problems? Book a free demo class.

Read More

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is the de moivre formula?
(cos⁡θ+isin⁡θ)n=cos⁡nθ+isin⁡nθ(\cos\theta+i\sin\theta)^n = \cos n\theta + i\sin n\theta, and with a modulus, [r(cos⁡θ+isin⁡θ)]n=rn(cos⁡nθ+isin⁡nθ)[r(\cos\theta+i\sin\theta)]^n = r^n(\cos n\theta+i\sin n\theta).
Does the de moivre formula work for negative powers?
Yes. NIST's DLMF states it for any integer nn, so negative powers are covered, as in Example 5.
How many nth roots does a complex number have?
Exactly nn distinct roots, provided the number is non-zero. They share the modulus r1/nr^{1/n} and are spaced 360∘n\frac{360^\circ}{n} apart.
Who was de Moivre?
Abraham de Moivre, 1667 to 1754. MacTutor records that he pioneered work in analytic geometry and probability theory, and that this formula took trigonometry into analysis.
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →