Skip to content
All apps

Powers of complex numbers

About this app

Raise a complex number to a power and explore the spiral of intermediate values.

The idea

Writing z in polar form as z = r·e^{iφ} gives zⁿ = rⁿ·e^{inφ}. The magnitude is raised to the n-th power and the angle is multiplied by n. This is de Moivre’s theorem, in trigonometric form (cos φ + i sin φ)ⁿ = cos nφ + i sin nφ. In Cartesian form you would have to expand (a + bi)ⁿ with the binomial theorem, which quickly gets laborious.

What the app shows

A point z sits in the complex plane with the result zⁿ drawn as an arrow. The intermediate powers z², z³, … up to zⁿ appear as lighter points that form a spiral. A formula updates live: |z|ⁿ gives the magnitude and n·∠z gives the angle in degrees. The unit circle separates growing from shrinking spirals.

Things to try

Drag z just outside the unit circle and raise n with the slider up to 30: the spiral winds outward. Just inside, it winds toward the origin. If z lies exactly on the circle, every power stays on it and only rotates. For a z with angle 360°/k, the k-th power returns to the positive real axis.

Frequently asked questions

How do you raise a complex number to the n-th power?
Polar form is easiest: for z = r·e^{iφ}, zⁿ = rⁿ·e^{inφ}. Raise the magnitude to the n-th power and multiply the angle by n. Example: 1 + i has magnitude √2 and angle 45°, so (1 + i)⁵ = (√2)⁵·e^{i·225°} = −4 − 4i.
What does de Moivre’s theorem state?
For every integer n, (cos φ + i sin φ)ⁿ = cos nφ + i sin nφ. It follows from Euler’s formula e^{iφ} = cos φ + i sin φ, because (e^{iφ})ⁿ = e^{inφ}. It can be used, for example, to derive multiple-angle formulas for sine and cosine.
Why do the powers of a complex number form a spiral?
Each further multiplication by z rotates by the same angle φ and scales by the same factor r. For r > 1 the distance from the origin grows, for r < 1 it shrinks, and for r = 1 the points stay on the unit circle. The result is a logarithmic spiral or a circle.
What can I adjust in this app?
You drag the point z in the plane and set the exponent n from 1 to 30. The app shows all intermediate powers as a spiral and works out the magnitude and angle of zⁿ.

Subject: Complex numbers

More from Complex numbers

A VisuApp by heyprof: interactive, free in your browser, no sign-up. What is a VisuApp? · All apps