This calculator finds all n distinct nth roots of a complex number. You enter the complex number (in rectangular a+bi or polar r∠θ form) and the root degree n, and it returns every root as a complex number in both polar and rectangular form, showing the step-by-step derivation.
Formula
For a complex number z = a + bi, write it in polar form: z = r(cos θ + i sin θ), where r = √(a² + b²) and θ = atan2(b, a) in degrees (or radians). The n nth roots are given by:
z_k = r^(1/n) [cos((θ + 360°k)/n) + i sin((θ + 360°k)/n)] for k = 0, 1, …, n−1.
Here r is the modulus (non-negative real), θ is the argument (angle) in degrees, n is a positive integer, and k is the root index. Each root has the same modulus r^(1/n) (the real nth root of r), but different angles spaced evenly by 360°/n. The first root (k=0) is called the principal root.
Worked Example
Using the default values: a = 1, b = 1, n = 3.
- Compute the modulus: r = √(1² + 1²) = √2 ≈ 1.4142.
- Compute the argument: θ = atan2(1, 1) = 45°.
- Find the modulus of the roots: r^(1/3) = (√2)^(1/3) ≈ 1.1225.
- For k=0: angle = 45°/3 = 15°. Root = 1.1225(cos 15° + i sin 15°) ≈ 1.0842 + 0.2905i.
- For k=1: angle = (45° + 360°)/3 = 135°. Root = 1.1225(cos 135° + i sin 135°) ≈ −0.7937 + 0.7937i.
- For k=2: angle = (45° + 720°)/3 = 255°. Root = 1.1225(cos 255° + i sin 255°) ≈ −0.2905 − 1.0842i.
These three roots are spaced 120° apart on a circle of radius 1.1225. The calculator shows the principal root as the headline answer and lists all roots in the “All n roots” output.
Why nth Roots of a Complex Number Differ from Real Roots
When you take the nth root of a positive real number, you get one real answer (for odd n) or two (for even n). But in the complex plane, every nonzero complex number has exactly n distinct nth roots. This is a consequence of the Fundamental Theorem of Algebra: the polynomial x^n − z = 0 has exactly n complex solutions. Geometrically, these roots are the vertices of a regular n-gon centered at the origin.
For example, the cube roots of 1 are not just 1; they are 1, −1/2 + (√3/2)i, and −1/2 − (√3/2)i. The calculator with a=1, b=0, n=3 gives these three points on the unit circle at 0°, 120°, and 240°.
How to Choose the Root Index k
The integer k runs from 0 to n−1. Each k gives a different root. The principal root (k=0) uses the angle θ/n, which lies between −180°/n and 180°/n (if θ is taken in (−180°, 180°]). The other roots are obtained by adding full turns (360°) to the argument before dividing by n. This ensures you get n distinct angles spaced evenly.
If you need the root in a specific quadrant or with a particular argument, you can select the appropriate k. For instance, to find the cube root of −8 that lies in the second quadrant, you would pick k=1 (angle 60°? Actually for −8, θ=180°, roots at 60°, 180°, 300°; the second-quadrant one is k=0? Let’s check: 180/3=60 (QI), (180+360)/3=180 (negative real), (180+720)/3=300 (QIV). So none in QII? Actually 60° is QI, 180° is negative real, 300° is QIV. So no QII root for −8. The point is you choose k to get the angle you need.)
Common Mistakes and Misconceptions
- Forgetting the +360°k: Without adding full turns, you only get one root, not all n.
- Using degrees vs radians: The formula works in both, but you must be consistent. The calculator uses degrees for clarity; if you use radians, replace 360° with 2π.
- Assuming the principal root is the only one: Many calculators and software return only the principal root, but the other roots are equally valid solutions.
- Mixing up the sign of the imaginary part: When b is negative, θ is negative (or >180° depending on convention). Using atan2 correctly handles the quadrant.
- Taking the real nth root of a negative r: r is always non-negative, so r^(1/n) is always a real positive number. The sign information is carried by the angle, not the modulus.
Applications of Complex nth Roots
Complex roots appear in many areas:
- Solving polynomial equations: Every polynomial of degree n has n complex roots, and finding them often involves nth roots.
- Signal processing: The discrete Fourier transform uses nth roots of unity (solutions to z^n = 1).
- Control theory: Root loci and stability analysis use complex roots of characteristic equations.
- Fractals: Newton’s method for complex polynomials uses roots to generate fractal images.
- Electrical engineering: Phasor analysis and AC circuits use complex numbers; nth roots appear in polyphase systems.
Limitations and Alternatives
This calculator handles any complex number with real coefficients a and b, and any positive integer n up to 100. It assumes the principal argument θ is in (−180°, 180°] (or equivalently (−π, π] in radians). Some textbooks use [0°, 360°), which shifts all angles by 360° but yields the same set of roots. The calculator gives results in both polar and rectangular form, but you must convert manually if you need exponential form (r e^(iθ)).
For very large n (over 100), the calculator may not display all roots clearly; you can still compute the principal root and generate the others using the formula. For symbolic (exact) roots, you would need a computer algebra system, but this calculator gives numerical approximations to 4 decimal places.
Frequently Asked Questions
Why are there n nth roots of a complex number?
Because the equation z^n = w has exactly n solutions in the complex numbers, as guaranteed by the Fundamental Theorem of Algebra. Geometrically, multiplying by a complex number rotates and scales; the nth roots are the n points on a circle that, when raised to the nth power, land on w.
What is the principal nth root?
The principal root is the one with k=0, giving the smallest non-negative argument (or the argument closest to zero if you use (−π, π]). It is the default returned by many calculators, but it is not the only root.
How do I find the nth roots of a negative real number?
Treat it as a complex number with b=0 and a negative. For example, −8 has modulus 8 and argument 180°. The cube roots have modulus 2 and arguments 60°, 180°, and 300°, giving 1+√3i, −2, and 1−√3i. For even n, there are no real roots, but there are complex ones.
Can I use this for fractional or negative n?
This calculator requires n to be a positive integer. Fractional powers are multi-valued in complex analysis; negative powers give reciprocals of roots, which are not roots in the usual sense. For those, you need more advanced tools.
What is the difference between nth root and nth power?
Raising to the nth power multiplies the argument by n and raises the modulus to the nth power. Taking the nth root reverses that, but because angles wrap around every 360°, there are n possible reversals, leading to n distinct roots.
Why does the calculator show the principal root as the headline answer?
Because it is the most commonly used root (e.g., in many engineering contexts). The full list of all roots is provided below it, so you can see every solution.
Related
Formula used
in a | Real part a | - | 1 | -100000 | 100000 in b | Imaginary part b | - | 1 | -100000 | 100000 in n | Root degree n | - | 3 | 1 | 100 out r | Modulus r | - | sqrt(a^2 + b^2) | 4 out theta | Argument θ (degrees) | ° | atan2(b, a) * 180 / pi | 2 out root0 | Principal root (k=0) | - | (r^(1/n)) * (cosd(theta/n) + i * sind(theta/n)) | 4 out all | All n roots (k=0..n-1) | - | (r^(1/n)) * (cosd((theta + 360*k)/n) + i * sind((theta + 360*k)/n)) | 4
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
- Roots of Complex Numbers Formula & Examples1.7100
- Roots of a Complex Number: Formula & Examples1.259921
- PCIe Root Complex: What It Does & Why It Matters32.00 GB/s
- New Roots Ultra B Complex: Uses, Benefits, and Facts
- New Roots B Complex: Uses, Benefits & Safety423
- Inverse Z-Transform: Complex Roots Explained