The quadratic formula works for every quadratic over the complex numbers. When the discriminant is negative, its square root is times a real root, and the two solutions come out as a conjugate pair.
| Step | On | |
|---|---|---|
| 1 | Compute the discriminant. Read , , with their signs and find . | |
| 2 | Take the square root of the discriminant. For , use the square root of a negative: . For a non-real , use complex square roots. | |
| 3 | Apply the quadratic formula. Divide both terms of the numerator by . | |
| 4 | Check with the sum and product of the roots. By Vieta's formulas the sum is and the product is . | sum ✓, product ✓ |