Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


De Moivre Law Visual Calculator


De Moivre's Theorem

(r · e)n = rn · einθ
ReIm-10−10i-8−8i-6−6i-4−4i-2−2i22i44i66i88i1010iθz¹z²z³z
3
Try these
Input
z1 + i
|z|1.41
θ45° = π/4 rad
n3
z³ — Result
-2 + 2i
|z³| = 2.83, θ = 135° = 3π/4 rad
Step-by-Step (De Moivre's Theorem)
1Convert to polar form:
z = 1.41 · eπ/4
2Apply De Moivre's Theorem: (r · e)n = rn · einθ
3Raise the modulus to the n-th power:
|z|³ = 1.41³ = 2.83
4Multiply the angle by n:
nθ = 3 × 45° = 135°
5Convert back to rectangular:
z³ = 2.83(cos(135°) + i sin(135°))
= 2.83(-0.71 + 0.71i)
= -2 + 2i
Key Ideas
De Moivre's Theorem says (cos θ + i sin θ)n = cos(nθ) + i sin(nθ). In exponential form: (r·e)n = rn·einθ. Raising to a power means raising the modulus and multiplying the angle.
The purple trail shows intermediate powers z¹, z², z³, … Each step multiplies the modulus by |z| and adds θ to the angle. If |z| > 1 the points spiral outward; if |z| < 1 they spiral inward toward zero.
Negative exponents give reciprocals: z⁻ⁿ = 1/zⁿ. The modulus shrinks (r⁻ⁿ) and the angle reverses (−nθ). Try "(3+4i)⁻¹" to see how the result is a tiny vector in the opposite angular direction.
On the unit circle (|z|=1), powers only rotate — the point stays on the circle. This is why powers of i cycle: i¹, i², i³, i⁴ = i, −1, −i, 1 are four 90° rotations.





Getting Started — Set z and Choose n

Drag the navy point zz anywhere on the complex plane, or type values into the Re and Im input fields (range ±10\pm 10). Then set the exponent nn using the slider (10-10 to 1010), the input field (20-20 to 2020), or one of seven presets: (1+i)2(1+i)^2, (1+i)4(1+i)^4, i3i^3, (1+i)8(1+i)^8, (3+4i)1(3+4i)^{-1}, 2102^{10}, and (0.5+0.5i)6(0.5+0.5i)^6.

The green result vector znz^n updates instantly along with the step-by-step panel, polar values, and the purple intermediate power trail. Click Random to generate a random base and exponent.

The input summary on the right shows zz in rectangular form, its modulus z|z|, its argument θ\theta in both degrees and radians, and the current exponent nn. All values update in real time as you drag or type.

The Outward Spiral — When |z| > 1

Click (1+i)4(1+i)^4 to see the classic outward spiral. Since 1+i=21.414>1|1+i| = \sqrt{2} \approx 1.414 > 1, each successive power has a larger modulus: zk=zk|z^k| = |z|^k grows with kk. The purple trail dots z1,z2,z3z^1, z^2, z^3 fan outward from the origin, connected by a dashed polyline.

At each step the angle also increases by θ=45°\theta = 45°, so the trail rotates 45°45° per step while expanding. The result (1+i)4=4(1+i)^4 = -4 lands on the negative real axis at angle 4×45°=180°4 \times 45° = 180° with modulus (2)4=4(\sqrt{2})^4 = 4.

Now click (1+i)8(1+i)^8. The spiral extends further — the modulus reaches (2)8=16(\sqrt{2})^8 = 16 — but the angle wraps back to 8×45°=360°=0°8 \times 45° = 360° = 0°, placing the result at +16+16 on the positive real axis. The trail makes two full revolutions.

Try increasing nn with the slider while watching the spiral grow. Each click of nn adds one more purple dot and pushes the green result further outward.

The Inward Spiral — When |z| < 1

Click (0.5+0.5i)6(0.5 + 0.5i)^6 to see the inward spiral. Since 0.5+0.5i=220.707<1|0.5 + 0.5i| = \frac{\sqrt{2}}{2} \approx 0.707 < 1, each power has a smaller modulus: zk=zk|z^k| = |z|^k shrinks toward zero. The purple trail dots spiral inward, converging on the origin.

The result modulus is (0.707)60.125(0.707)^6 \approx 0.125 — very small. The zoom inset appears in the upper-right corner of the plane, magnifying the area near the origin so the green result point is visible and labeled.

This behavior is the opposite of the outward spiral: if z<1|z| < 1, repeated multiplication pulls the point closer to zero. The angle still accumulates (6×45°=270°6 \times 45° = 270°), but the distance from the origin shrinks exponentially.

Drag zz to any point inside the unit circle and increase nn to see the inward spiral get tighter. The higher the exponent, the closer the result is to zero.

Unit Circle Rotation — When |z| = 1

Set z=iz = i (type Re = 0, Im = 1) so that z=1|z| = 1. Now slide nn from 11 to 44. Because z=1|z| = 1, the modulus never changes: zn=1n=1|z^n| = 1^n = 1. Every power stays on the unit circle — the trail dots form a perfect arc with no spiraling.

At n=1n = 1: i1=ii^1 = i (angle 90°90°). At n=2n = 2: i2=1i^2 = -1 (angle 180°180°). At n=3n = 3: i3=ii^3 = -i (angle 270°270°). At n=4n = 4: i4=1i^4 = 1 (angle 360°=0°360° = 0°). The dashed modulus circles for zz and the result overlap because both have radius 11.

Click the i3i^3 preset to see three purple trail dots evenly spaced 90°90° apart on the unit circle, ending at i-i.

This is why powers of i cycle every four steps. On the unit circle, De Moivre's theorem is pure rotation: the modulus is fixed and only the angle changes. Any point on the unit circle produces this behavior — try z=cos(60°)+isin(60°)z = \cos(60°) + i\sin(60°) and watch the dots walk around the circle in 60°60° steps.

Negative Exponents — Reciprocals and Reversal

Click (3+4i)1(3+4i)^{-1} to see a negative exponent. De Moivre's theorem handles negative powers naturally: zn=rneinθz^{-n} = r^{-n} \cdot e^{-in\theta}. The modulus shrinks (reciprocal) and the angle reverses (negative direction).

Here 3+4i=5|3+4i| = 5, so z1=1/5=0.2|z^{-1}| = 1/5 = 0.2. The angle is θ53.1°\theta \approx 53.1°, so the result angle is 53.1°-53.1°. The green vector is short and points below the real axis — the reciprocal is a tiny vector in the opposite angular direction.

Try sliding nn into negative values with any base. The trail reverses: instead of spiraling outward (for z>1|z| > 1), it spirals inward. Instead of accumulating angle, it subtracts angle.

At n=0n = 0, the result is always z0=1z^0 = 1 regardless of zz — the green point sits at (1,0)(1, 0) on the positive real axis. This is the boundary between positive and negative exponents.

Pure Real Base — No Spiral, Just Scaling

Click 2102^{10} to see a purely real base. Since z=2z = 2 has angle θ=0°\theta = 0°, every power also has angle 0°: the result sits on the positive real axis. The modulus is 210=10242^{10} = 1024 — far off-screen — so the green result appears as a dashed ray pointing right with an arrow.

The purple trail dots z1,z2,,z9z^1, z^2, \dots, z^9 march along the positive real axis, each one doubling the previous: 2,4,8,16,,5122, 4, 8, 16, \dots, 512. There is no rotation because n×0°=0°n \times 0° = 0° for any nn.

Now try changing zz to 2-2 (angle 180°180°). The powers alternate between the positive and negative real axes: (2)1=2(-2)^1 = -2, (2)2=4(-2)^2 = 4, (2)3=8(-2)^3 = -8, and so on. The trail zigzags left and right along the real axis, growing in magnitude. The angle alternates between 0° and 180°180° because n×180°n \times 180° is 0° for even nn and 180°180° for odd nn.

Reading the Purple Trail and Modulus Circles

The purple trail shows every intermediate power from z1z^1 up to zn1z^{n-1} (for positive nn) or from z1z^{-1} down to z(n1)z^{-(|n|-1)} (for negative nn). Each dot is labeled with its power. A dashed polyline connects them in order, tracing the spiral path from zz to the final result.

Two dashed modulus circles appear when relevant. The inner navy circle has radius z|z| — the modulus of the base. The outer green circle has radius zn|z^n| — the modulus of the result. When z>1|z| > 1, the result circle is larger; when z<1|z| < 1, it is smaller. When z=1|z| = 1, both circles coincide.

Two angle arcs appear near the origin. The navy arc labeled θ\theta shows the argument of zz. The green arc labeled nθn\theta shows the argument of znz^n. The green arc is always nn times as wide as the navy arc — this is the "multiply the angle" rule of De Moivre's theorem made visible.

The Five-Step Calculation

The Step-by-Step panel on the right walks through De Moivre's theorem in five numbered stages.

Step 1 — convert zz to polar form: z=reiθz = r \cdot e^{i\theta}, showing the computed modulus and argument.

Step 2 — state the theorem: (reiθ)n=rneinθ(r \cdot e^{i\theta})^n = r^n \cdot e^{in\theta}.

Step 3 — raise the modulus to the nn-th power: zn=rn|z|^n = r^n.

Step 4 — multiply the angle by nn: nθn\theta. If the result exceeds ±180°\pm 180°, a normalized angle also appears.

Step 5 — convert back to rectangular form using cos(nθ)\cos(n\theta) and sin(nθ)\sin(n\theta), showing the evaluation and the final complex number.

Every value in every step updates dynamically with each drag, keystroke, or slider change. This makes the panel a live worked example for any base-exponent combination you choose.

What is De Moivre's Theorem?

De Moivre's theorem states that for any integer nn:

(cosθ+isinθ)n=cos(nθ)+isin(nθ)(\cos\theta + i\sin\theta)^n = \cos(n\theta) + i\sin(n\theta)


In exponential notation using Euler's formula:

(reiθ)n=rneinθ(re^{i\theta})^n = r^n \cdot e^{in\theta}


Raising a complex number to a power means raising the modulus to that power and multiplying the angle by nn. This converts exponentiation — normally a difficult operation in rectangular form — into a simple combination of real exponentiation and angle multiplication.

The theorem is a direct consequence of Euler's formula and the laws of exponents. Since eiθe^{i\theta} is a complex exponential, (eiθ)n=einθ(e^{i\theta})^n = e^{in\theta} follows from the rule amn=(am)na^{mn} = (a^m)^n.

De Moivre's theorem works for all integers nn — positive, negative, and zero. It is also the foundation for finding roots of unity and deriving trigonometric identities for cos(nθ)\cos(n\theta) and sin(nθ)\sin(n\theta) in terms of powers of cosθ\cos\theta and sinθ\sin\theta.

Connection to Roots of Unity

De Moivre's theorem in reverse gives the nn-th roots of any complex number. The nn-th roots of unity — the solutions to zn=1z^n = 1 — are:

zk=ei2πk/n=cos2πkn+isin2πkn,k=0,1,,n1z_k = e^{i \cdot 2\pi k / n} = \cos\frac{2\pi k}{n} + i\sin\frac{2\pi k}{n}, \quad k = 0, 1, \dots, n-1


These nn points are equally spaced around the unit circle, separated by angles of 360°n\frac{360°}{n}.

In the visualizer, set zz to any nn-th root of unity and raise it to the nn-th power — the result will always be 11. For example, set z=cos(72°)+isin(72°)0.31+0.95iz = \cos(72°) + i\sin(72°) \approx 0.31 + 0.95i and n=5n = 5. The trail traces five equally spaced dots around the unit circle, and the result lands at 11.

Roots of unity appear throughout mathematics: in Fourier transforms, polynomial factoring, and group theory. De Moivre's theorem is the computational tool that makes finding and verifying these roots straightforward.

Related Concepts and Tools

De Moivre's theorem ties together many areas of complex number theory. Explore these related pages.

Euler's Formula Explorer — the identity eiθ=cosθ+isinθe^{i\theta} = \cos\theta + i\sin\theta is the foundation of De Moivre's theorem. The explorer visualizes the unit circle trace and the right triangle connection.

Complex Multiplication Visualizer — multiplication is the single-step version of De Moivre: multiply moduli, add angles. Repeated multiplication gives exponentiation.

Polar-Rectangular Converter — De Moivre's theorem requires polar form. This converter handles the conversion between a+bia + bi and reiθre^{i\theta}.

Powers of i Calculator — the ini^n cycle is a special case of De Moivre with r=1r = 1 and θ=90°\theta = 90°. The mod 4 pattern emerges because 4×90°=360°4 \times 90° = 360°.

Complex Division Visualizer — division subtracts angles and divides moduli, the inverse of the power operation.

Complex Numbers — foundational theory covering the imaginary unit, algebraic operations, and the modulus-argument representation.