Skip to content
All apps

n-th roots

About this app

Visualise all n-th roots of a complex number as a regular polygon.

The idea

A complex number z ≠ 0 has exactly n distinct n-th roots, that is, numbers w with wⁿ = z. With z = r·e^{iφ} they are w_k = r^{1/n}·e^{i(φ + 2πk)/n} for k = 0, 1, …, n − 1. All of them have the same magnitude r^{1/n}, and their angles differ by 360°/n each. That is why they sit as vertices of a regular n-gon on a circle centred at the origin. The root with k = 0 is called the principal value.

What the app shows

The complex plane contains the draggable point z and its n roots w₁ to wₙ as coloured points on their circle, joined into a regular polygon. A formula gives the radius |w| = r^{1/n} and the angular step 360°/n, and a list shows every root in exponential form. As soon as z moves, the circle, polygon and list rotate and rescale with it, so the connection stays directly visible.

Things to try

Raise n with the slider from 2 to 20 and watch the polygon gain vertices while the radius r^{1/n} approaches 1. Drag z once around the origin: the roots only rotate on by 360°/n and swap places. For z = 1 you get the roots of unity, one of which always lies at 1.

Frequently asked questions

How many n-th roots does a complex number have?
Every complex number z ≠ 0 has exactly n distinct n-th roots. They all have the same magnitude and lie on a circle, spaced 360°/n apart. The number 0 has only the root 0.
How do you find the n-th roots of a complex number?
Write z = r·e^{iφ} and form w_k = r^{1/n}·e^{i(φ + 2πk)/n} for k = 0, …, n − 1. Example: the cube roots of i (r = 1, φ = 90°) have angles 30°, 150° and 270°, giving √3/2 + i/2, −√3/2 + i/2 and −i.
What are roots of unity?
The n-th roots of unity are the solutions of wⁿ = 1. They are e^{2πik/n} for k = 0, …, n − 1 and form a regular n-gon on the unit circle with one vertex at 1. For n ≥ 2 they add up to zero.
What does this n-th roots app show?
You drag z in the plane and choose n between 2 and 20. The app draws all n roots as a regular polygon and lists them together with the radius and the angular step.

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