Quadratic Equations with Complex Roots
A negative discriminant used to end a question with the words "no real roots". Once complex numbers are available the same equation has two perfectly good solutions, and this lesson shows where they come from. You will derive the quadratic formula by completing the square, see exactly why the square root of a negative number splits into times a real square root, and learn the pairing rule that lets you rebuild a quadratic from its roots in one line.
What You'll Learn
- 1Derive the quadratic formula by completing the square and locate the discriminant inside it
- 2Classify the roots of any quadratic from the sign of the discriminant
- 3Extract the factor i from a negative square root and write roots in standard form
- 4Use Vieta's formulas to find an unknown coefficient when one complex root is given
Deriving the Formula and Locating the Discriminant
Start from with and divide through by :
Move the constant across, then add to both sides so the left side becomes a perfect square:
Taking square roots on both sides gives , and the formula follows.
Everything interesting lives under that radical. The discriminant decides the character of the roots before any arithmetic begins, and completing the square shows why: the square root is the only step that can fail in the real numbers.
When , write with , and use to pull the outside:
The first fraction is the real part and the second coefficient is the imaginary part, so the answer is already in standard form .
Why the Roots Always Come in Pairs
The reason is visible in Vieta's formulas. The sum of the roots equals , which is real, so the imaginary parts must cancel; the product equals , also real, and is automatically real and positive. One root therefore forces the other, and the quadratic can be written down without solving anything:
For complex conjugate roots this becomes , where the coefficient of is always real and the constant term is always positive.
| Discriminant | Sign of | Root type | Example equation | Roots |
|---|---|---|---|---|
| Positive and a perfect square | distinct rational real | |||
| Positive, not a perfect square | distinct irrational real | |||
| Zero | repeated real | |||
| Negative | complex conjugate pair |
Four Worked Problems
The Three Facts Examiners Reuse
- A negative discriminant never means "no solution" once complex numbers are permitted; it means a conjugate pair.
- The real part of both roots is always , which is the -coordinate of the vertex of the parabola.
- Because the product is positive, a quadratic with complex roots has and of the same sign.
Solving and Checking in Python
Python's cmath module returns complex square roots automatically, so a discriminant that looks impossible still produces the right answer.
import cmath
def solve_quadratic(a, b, c):
delta = b * b - 4 * a * c
r1 = (-b + cmath.sqrt(delta)) / (2 * a)
r2 = (-b - cmath.sqrt(delta)) / (2 * a)
return delta, r1, r2
for coeffs in [(1, 2, 5), (2, -4, 5), (1, -5, 6), (1, 0, 1)]:
d, r1, r2 = solve_quadratic(*coeffs)
print(f"delta={d:>5} roots={r1}, {r2}")
The second block proves the pairing and the Vieta checks numerically for random coefficients.
import cmath, random
for _ in range(5):
a = random.randint(1, 5)
b = random.randint(-9, 9)
c = random.randint(1, 9)
d = b * b - 4 * a * c
if d >= 0:
continue # keep only complex cases
r1 = (-b + cmath.sqrt(d)) / (2 * a)
r2 = (-b - cmath.sqrt(d)) / (2 * a)
assert abs(r1 - r2.conjugate()) < 1e-12 # roots are conjugates
assert abs((r1 + r2) - (-b / a)) < 1e-12 # sum equals -b/a
assert abs(r1 * r2 - (c / a)) < 1e-12 # product equals c/a
print(a, b, c, "->", r1, r2, "ok")
What CBSE Asks on This Topic
The recurring three-mark item gives a quadratic with small integer coefficients, asks for the discriminant, then for the roots in the form . A second pattern withholds one coefficient and supplies one complex root, which is solved entirely through Vieta without ever calling the quadratic formula. Objective questions test sign recognition: "for how many values of does the equation have real roots" reduces to asking when . Write the discriminant as a separate line even when it is obvious, because the marking scheme almost always reserves a mark for it. When asked to form a quadratic, never leave the answer as â expand it.
Common Mistakes
Writing the square root of a negative number as a real number
Fix: Pull out i first: the square root of minus 16 is 4i, not 4 or minus 4.
Dividing only the real part by 2a
Fix: The denominator 2a applies to the whole numerator, both the minus b term and the imaginary term.
Giving two unrelated complex roots
Fix: For real coefficients the roots are conjugates of each other, so check that their imaginary parts are opposite.
Key Takeaways
- Completing the square produces the quadratic formula and shows that the discriminant is the only obstruction to real roots
- A negative discriminant means a complex conjugate pair, never a missing solution
- For real coefficients the roots sum to minus b over a and multiply to c over a, both real
- A quadratic with roots alpha plus or minus beta i is x squared minus 2 alpha x plus alpha squared plus beta squared
Practice Problems
- Find the roots of and state the real part of each.
- If one root of is , find .
- Find the quadratic equation with roots and .
- Determine the values of for which has non-real roots.
- Prove that the product of complex conjugate roots is always a positive real number.