Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Find All Complex Roots of a Polynomial

A polynomial of degree nn has exactly nn complex roots, counted with multiplicity. Peel them off a few at a time: a real root or a conjugate pair lowers the degree, until a quadratic is left for the quadratic formula.

Recognize the task

The question asks for "all zeros", "all complex solutions" or gives one complex root and asks for the rest: z3−3z2+7z−5=0z^3 - 3z^2 + 7z - 5 = 0, z3−8=0z^3 - 8 = 0, "2+i2 + i is a root of z3−5z2+9z−5z^3 - 5z^2 + 9z - 5". Test: the coefficients are real (needed for conjugate pairs) and the degree tells you how many roots to find.
Roots of polynomials over the complex numbers are covered in the polynomials with real coefficients lesson.

Ways to do it

Find a real root firstusual
p(r)=0  ⇒  p(z)=(z−r) q(z)p(r) = 0 \;\Rightarrow\; p(z) = (z - r)\,q(z)
Test candidates with the rational root test, then divide.
Use a given complex rootconjugate pair
(z−w)(z−w‾)=z2−2 Re(w) z+∣w∣2(z - w)(z - \overline{w}) = z^2 - 2\,\text{Re}(w)\,z + |w|^2
By the conjugate root theorem, w‾\overline{w} is a root too; divide by this real quadratic.
Factor a patternpatterns
z3−a3=(z−a)(z2+az+a2)z^3 - a^3 = (z - a)(z^2 + az + a^2)
Differences of cubes and quadratics in z2z^2 split at once; see sum and difference of cubes.

Steps

StepOn p(z)=z3−3z2+7z−5p(z) = z^3 - 3z^2 + 7z - 5
1Count the roots. By the fundamental theorem of algebra a degree-nn polynomial has nn roots in C\mathbb{C}.degree 33: three roots
2Find one root. Try the rational candidates (divisors of the constant term over divisors of the leading coefficient), or use a root you were given.p(1)=1−3+7−5=0p(1) = 1 - 3 + 7 - 5 = 0
3Divide it out. Use synthetic division by z−rz - r, or long division by a quadratic factor.p(z)=(z−1)(z2−2z+5)p(z) = (z - 1)(z^2 - 2z + 5)
4Solve the quadratic factor. Use the quadratic formula; a negative discriminant gives a conjugate pair, as in quadratics with complex roots.z=2±−162=1±2iz = \frac{2 \pm \sqrt{-16}}{2} = 1 \pm 2i
5List all roots. Check that the count matches the degree and that non-real roots come in conjugate pairs.z=1, 1+2i, 1−2iz = 1,\ 1 + 2i,\ 1 - 2i

Worked examples

Example 1 · a difference of cubes

pattern
z3−8=(z−2)(z2+2z+4)z^3 - 8 = (z - 2)(z^2 + 2z + 4)
difference of cubes
z2+2z+4=0z^2 + 2z + 4 = 0: z=−2±−122z = \frac{-2 \pm \sqrt{-12}}{2}
Δ=4−16\Delta = 4 - 16
z=2, −1+3i, −1−3iz = 2,\ -1 + \sqrt{3}i,\ -1 - \sqrt{3}i
−12=23i\sqrt{-12} = 2\sqrt{3}i

Example 2 · one complex root given

conjugate pair
2+i2 + i is a root of z3−5z2+9z−5z^3 - 5z^2 + 9z - 5, so 2−i2 - i is too
real coefficients
(z−(2+i))(z−(2−i))=z2−4z+5(z - (2 + i))(z - (2 - i)) = z^2 - 4z + 5
sum 44, product 55
z3−5z2+9z−5=(z2−4z+5)(z−1)z^3 - 5z^2 + 9z - 5 = (z^2 - 4z + 5)(z - 1)
divide
z=2+i, 2−i, 1z = 2 + i,\ 2 - i,\ 1
three roots

Example 3 · a quartic with two pairs

degree 4
2i2i is a root of z4−2z3+6z2−8z+8z^4 - 2z^3 + 6z^2 - 8z + 8
given
(z−2i)(z+2i)=z2+4(z - 2i)(z + 2i) = z^2 + 4
conjugate pair
z4−2z3+6z2−8z+8=(z2+4)(z2−2z+2)z^4 - 2z^3 + 6z^2 - 8z + 8 = (z^2 + 4)(z^2 - 2z + 2)
divide
z=±2i, 1±iz = \pm 2i,\ 1 \pm i
z2−2z+2z^2 - 2z + 2: Δ=−4\Delta = -4
See why conjugate roots mirror each other across the real axis in the complex conjugate explorer.

See it happen

A polynomial with real coefficients does not change when you conjugate everything, so if ww makes it zero, so does w‾\overline{w}. On the plane the non-real roots therefore come in mirror pairs across the real axis, and each pair multiplies to a real quadratic. A real cubic has room for at most one such pair, which is why it always has at least one real root.

Common mistakes

Stopping at the real roots

✗ z3−8=0z^3 - 8 = 0 has the only solution z=2z = 2
✓ degree 33 means three roots: 22 and −1±3i-1 \pm \sqrt{3}i

Taking the wrong conjugate

✗ if 2+i2 + i is a root, so is −2+i-2 + i
✓ the conjugate changes only the sign of the imaginary part: 2−i2 - i

Pairing roots without real coefficients

✗ −i-i is a root of z2+2iz−1z^2 + 2iz - 1, so ii is too
✓ the coefficient 2i2i is not real; z2+2iz−1=(z+i)2z^2 + 2iz - 1 = (z + i)^2 and −i-i is the only root