This calculator finds all n-th roots of a complex number using the standard formula. You enter the complex number (real and imaginary parts) and the root degree n, and you get every root in polar form (magnitude and angle) plus the rectangular coordinates. The first output shows the principal root, and the remaining roots are listed below.
Formula
For a complex number z = a + bi and a positive integer n, the n-th roots are given by:
zk = r1/n [ cos( (θ + 2πk) / n ) + i sin( (θ + 2πk) / n ) ]
where:
- r = √(a² + b²) is the modulus (magnitude) of z.
- θ = atan2(b, a) is the argument (angle) of z, in radians.
- k takes integer values 0, 1, 2, …, n−1.
The calculator uses degrees for the angle output. The principal root corresponds to k = 0. The magnitude of every root is the same: r1/n. The angles are evenly spaced by 2π/n radians (360°/n).
Worked Example
Using the default values: a = 3, b = 4, n = 3. This means we find the cube roots of 3 + 4i.
- Compute the modulus: r = √(3² + 4²) = √(9 + 16) = √25 = 5.
- Compute the argument: θ = atan2(4, 3) ≈ 53.130102° (0.927295 radians).
- Magnitude of each root: r1/3 = 51/3 ≈ 1.70998.
- For k = 0: angle = 53.130102°/3 ≈ 17.7100°. Root = 1.70998 (cos 17.71° + i sin 17.71°) ≈ 1.6289 + 0.5201i.
- For k = 1: angle = (53.130102° + 360°)/3 = 137.7100°. Root ≈ −1.2649 + 1.1506i.
- For k = 2: angle = (53.130102° + 720°)/3 = 257.7100°. Root ≈ −0.3640 − 1.6707i.
The calculator shows the principal root as magnitude 1.7100, angle 17.71°, real part 1.6289, imaginary part 0.5201. The other two roots are obtained by adding 120° to the angle (since 360°/3 = 120°).
How the Formula Works
The formula comes from De Moivre’s theorem. Any complex number can be written in polar form as z = r(cos θ + i sin θ). Raising to a power multiplies the angle and raises the modulus: zn = rn(cos nθ + i sin nθ). To find roots, we reverse this process. However, because angles are periodic (adding 360° gives the same point), we must consider all possible angles that, when multiplied by n, give θ plus a multiple of 360°. That yields exactly n distinct roots.
Each root has the same magnitude, so they all lie on a circle in the complex plane centered at the origin. The angles are equally spaced, dividing the circle into n equal arcs. This geometric view helps: the roots of a complex number form a regular n-gon.
Choosing the Principal Root
The principal root is conventionally the one with k = 0. Its angle is θ/n, where θ is the principal argument of the original number, usually taken in the interval (−180°, 180°] (or (−π, π] in radians). This means the principal root’s angle lies between −180°/n and 180°/n. For example, the principal square root of a negative real number (θ = 180°) has angle 90°, which is the positive imaginary axis. The principal cube root of a negative real number has angle 60°, not −60°.
Some calculators and software use a different convention, especially for roots of negative numbers. Always check the documentation. The formula itself is unambiguous; only the choice of which root is “principal” varies.
Common Mistakes and Pitfalls
- Forgetting all n roots: Many people compute only the principal root. For n > 1, there are exactly n distinct roots. Missing the others is the most common error.
- Angle units: The formula works in radians, but many calculators use degrees. Mixing them gives wrong angles. This calculator uses degrees for output, but the underlying math is the same.
- Negative real parts: When a < 0, atan2(b, a) returns an angle in the second or third quadrant. Using arctan(b/a) alone can give the wrong quadrant. Always use atan2.
- Rounding too early: Round intermediate values only at the end. Rounding the modulus too early can shift the final roots noticeably.
Limits of the Formula
The formula works for any positive integer n. For non-integer n (like square roots of complex numbers with fractional exponents), the concept of “n-th root” becomes multi-valued and more subtle. The formula also extends to n = 0 (undefined) and negative n (reciprocals), but those are not standard roots. The calculator restricts n to positive integers ≥ 1.
For very large n (say n > 1000), the angles become very close together, and numerical precision may cause slight errors. In practice, this is rarely an issue. The formula is exact in theory; errors come from floating-point arithmetic.
Frequently Asked Questions
How many roots does a complex number have?
Exactly n distinct n-th roots, for any positive integer n. For example, 2 has two square roots (√2 and −√2), three cube roots, four fourth roots, and so on. This is a fundamental theorem of algebra.
Why do the roots form a regular polygon?
Because all roots have the same magnitude (r^(1/n)) and their angles are equally spaced by 360°/n. Points with equal distance from the origin and equal angular spacing are the vertices of a regular n-gon.
What is the difference between principal root and other roots?
The principal root is the one with k = 0, giving the smallest non-negative angle (or the angle closest to zero). The other roots are obtained by adding multiples of 360°/n to that angle. For example, the principal cube root of 8 is 2 (angle 0°), while the other two are −1 + i√3 and −1 − i√3.
Can I use this formula for negative numbers?
Yes. For a negative real number like −4, the modulus is 4 and the argument is 180°. The square roots are 2(cos 90° + i sin 90°) = 2i and 2(cos 270° + i sin 270°) = −2i. The principal root is 2i.
What if n is even and the number is negative?
For even n, a negative real number has no real n-th roots, but it has complex roots. For example, the fourth roots of −16 are 2(cos 45° + i sin 45°), 2(cos 135° + i sin 135°), 2(cos 225° + i sin 225°), and 2(cos 315° + i sin 315°). None are purely real.
Does the formula work for n = 1?
Yes, n = 1 gives the number itself. The modulus is r, the angle is θ, and the root is just z. The calculator allows n = 1 for completeness.
Practical Uses
Roots of complex numbers appear in solving polynomial equations, analyzing electrical circuits (AC steady-state), signal processing (Fourier transforms), control theory, and quantum mechanics. For instance, the n-th roots of unity (roots of 1) are fundamental in discrete Fourier transforms. The formula is also used in finding eigenvalues of matrices and in fractal generation (e.g., Newton fractals).
Related
Formula used
in re | Real part a | - | 3 | -100000 | 100000 in im | Imaginary part b | - | 4 | -100000 | 100000 in n | Root degree n | - | 3 | 1 | 100 out r | Principal root (magnitude) | - | (re^2 + im^2)^(1/(2*n)) | 4 out theta | Principal root (angle) | degrees | (atan2(im, re) / n) | 2 out x | Principal root (real part) | - | r * cosd(theta) | 4 out y | Principal root (imaginary part) | - | r * sind(theta) | 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 a Complex Number: Formula & Examples1.259921
- PCIe Root Complex: What It Does & Why It Matters32.00 GB/s
- Nth Roots of a Complex Number Explained
- New Roots Ultra B Complex: Uses, Benefits, and Facts
- New Roots B Complex: Uses, Benefits & Safety423
- Inverse Z-Transform: Complex Roots Explained