Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Solve a Quadratic Equation with Complex Roots

The quadratic formula works for every quadratic over the complex numbers. When the discriminant is negative, its square root is ii times a real root, and the two solutions come out as a conjugate pair.

Recognize the task

A quadratic az2+bz+c=0az^2 + bz + c = 0 with no real solutions, or with complex coefficients: z2−4z+13=0z^2 - 4z + 13 = 0, z2+9=0z^2 + 9 = 0, 2z2−2z+5=02z^2 - 2z + 5 = 0, z2+z+(1−i)=0z^2 + z + (1 - i) = 0. Test: compute Δ=b2−4ac\Delta = b^2 - 4ac first; Δ<0\Delta < 0 or a non-real Δ\Delta means complex roots.
Quadratics over the complex numbers are covered in the complex equations lesson.

Two ways to do it

Quadratic formulausual
z=−b±b2−4ac2az = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
The quadratic formula holds unchanged; see also using the quadratic formula.
Completing the squarevertex form
z2−4z+13=0  ⇒  (z−2)2=−9z^2 - 4z + 13 = 0 \;\Rightarrow\; (z - 2)^2 = -9
Isolate the square and take ±\pm the square root, as in completing the square.

Steps

StepOn z2−4z+13=0z^2 - 4z + 13 = 0
1Compute the discriminant. Read aa, bb, cc with their signs and find Δ=b2−4ac\Delta = b^2 - 4ac.Δ=16−52=−36\Delta = 16 - 52 = -36
2Take the square root of the discriminant. For Δ<0\Delta < 0, use the square root of a negative: −k=ik\sqrt{-k} = i\sqrt{k}. For a non-real Δ\Delta, use complex square roots.−36=6i\sqrt{-36} = 6i
3Apply the quadratic formula. Divide both terms of the numerator by 2a2a.z=4±6i2=2±3iz = \frac{4 \pm 6i}{2} = 2 \pm 3i
4Check with the sum and product of the roots. By Vieta's formulas the sum is −ba-\frac{b}{a} and the product is ca\frac{c}{a}.sum 44 ✓, product 4+9=134 + 9 = 13 ✓

Worked examples

Example 1 · no linear term

b = 0
z2+9=0⇒z2=−9z^2 + 9 = 0 \Rightarrow z^2 = -9
isolate z2z^2
z=±−9=±3iz = \pm\sqrt{-9} = \pm 3i
−9=3i\sqrt{-9} = 3i

Example 2 · a leading coefficient

a ≠ 1
2z2−2z+5=02z^2 - 2z + 5 = 0: Δ=4−40=−36\Delta = 4 - 40 = -36
a=2a = 2, b=−2b = -2, c=5c = 5
z=2±6i4z = \frac{2 \pm 6i}{4}
2a=42a = 4
z=12±32iz = \frac{1}{2} \pm \frac{3}{2}i
divide both terms

Example 3 · a complex coefficient

complex Δ
z2+z+(1−i)=0z^2 + z + (1 - i) = 0: Δ=1−4(1−i)=−3+4i\Delta = 1 - 4(1 - i) = -3 + 4i
discriminant is not real
−3+4i=±(1+2i)\sqrt{-3 + 4i} = \pm(1 + 2i)
complex square root
z=−1±(1+2i)2z = \frac{-1 \pm (1 + 2i)}{2}
quadratic formula
z=iz = i or z=−1−iz = -1 - i
not a conjugate pair
Plot a conjugate pair of roots and see the mirror symmetry in the complex number explorer.

See it happen

With real coefficients, the formula gives −b2a±-\frac{b}{2a} \pm something. When Δ<0\Delta < 0 that something is purely imaginary, so the two roots sit straight above and below the point −b2a-\frac{b}{2a} on the real axis: a conjugate pair, mirror images in the real axis. That is the complex version of the parabola never touching the xx-axis. With complex coefficients the symmetry is lost, and the roots can be anywhere.

Common mistakes

Writing the root of a negative without i

✗ −36=−6\sqrt{-36} = -6
✓ −36=6i\sqrt{-36} = 6i, since (6i)2=−36(6i)^2 = -36

Dividing only one term by 2a

✗ z=4±6i2=4±3iz = \frac{4 \pm 6i}{2} = 4 \pm 3i
✓ both terms: z=2±3iz = 2 \pm 3i

Expecting a conjugate pair with complex coefficients

✗ z2+z+(1−i)=0z^2 + z + (1 - i) = 0 has roots ii and −i-i
✓ −i-i gives −1−i+1−i=−2i≠0-1 - i + 1 - i = -2i \neq 0; the roots are ii and −1−i-1 - i