Sub topic 11
Two roots, one repeated root, or no real roots
This chapter assumes you can complete the square when a = 1, use the square root method, and factor simple trinomials. If any of those feel shaky, review them first. Here you will learn to predict, from the equation (x + h)² = k, how many real solutions a quadratic has. You will also learn to read each outcome correctly.
One equation, three outcomes
Every quadratic equation ax² + bx + c = 0 with real coefficients falls into exactly one of three cases. You can see which one by completing the square. That process rewrites the equation as
(x + h)² = k
where h and k are numbers computed from a, b, and c. The left side is a square, so it can never be negative for real x. The sign of k therefore decides everything.
| Value of k | Real solutions | Solutions | Factored form |
|---|---|---|---|
| k > 0 | Two distinct roots | x = −h + √k and x = −h − √k | (x − r₁)(x − r₂) with r₁ ≠ r₂ |
| k = 0 | One repeated root | x = −h | (x − r)² |
| k < 0 | None | No real number works | Does not factor into real linear factors |
Case 1: two distinct real roots (k > 0)
Solve x² + 6x + 5 = 0.
- Move the constant: x² + 6x = −5.
- Add (6/2)² = 9 to both sides: x² + 6x + 9 = 4.
- Write the left side as a square: (x + 3)² = 4.
- Take square roots: x + 3 = 2 or x + 3 = −2.
- Solve: x = −1 or x = −5.
Here h = 3 and k = 4. Because k is positive, √k is a nonzero real number. The two signs give two different values.
The same equation factors as (x + 1)(x + 5) = 0. Two different linear factors give two different roots. The two methods always agree.
The roots need not be integers. For x² + 6x + 2 = 0, completing the square gives (x + 3)² = 7, so x = −3 ± √7. Those are two distinct real roots, even though the equation does not factor over the integers. Keep this in mind. "Does not factor nicely" does not mean "no real roots."
Case 2: one repeated root (k = 0)
Solve x² + 2x + 1 = 0.
The left side is already a perfect square trinomial, so (x + 1)² = 0. Taking square roots gives x + 1 = 0, so x = −1.
The "±" in x = −h ± √k still applies, but √0 = 0. Both signs land on the same number, so the two roots merge into one. This is why the case is called a repeated root (also called a double root). In factored form, the same factor appears twice: (x + 1)(x + 1) = 0.
The zero product property still holds. It gives x + 1 = 0 or x + 1 = 0, and both lead to x = −1. You list the solution once, but you can say it has multiplicity 2.
When a is not 1, the same thing happens. Take 4x² − 12x + 9 = 0. This factors as (2x − 3)² = 0, so x = 3/2 once.
Case 3: no real roots (k < 0)
Solve x² + 4 = 0.
Subtract 4: x² = −4. No real number squared gives −4, because squares of real numbers are never negative. The equation has no real solution.
A less obvious example is x² − 4x + 7 = 0:
- Move the constant: x² − 4x = −7.
- Add (−4/2)² = 4 to both sides: x² − 4x + 4 = −3.
- Write the left side as a square: (x − 2)² = −3.
The left side is at least 0 for every real x. The right side is −3. They can never be equal, so there are no real roots.
Stop at this line. Do not write x − 2 = ±√−3 as if it were a real answer. Over the real numbers, you conclude "no real solutions."
Predicting the case without finishing the work
You do not have to complete the whole process to learn which case you are in. For the monic form x² + bx + c = 0, the steps give h = b/2 and k = h² − c. Check the sign of k right after you add (b/2)² to both sides.
For the general form, divide by a first, so h = b/(2a) and k = h² − c/a. The code below applies exactly this computation. It uses exact fractions, so a result of k = 0 is never lost to rounding error.
from fractions import Fraction
def classify(a, b, c):
"""Classify a*x^2 + b*x + c = 0 by completing the square: (x + h)^2 = k."""
a, b, c = Fraction(a), Fraction(b), Fraction(c)
if a == 0:
raise ValueError("a must be nonzero for a quadratic equation")
h = b / (2 * a)
k = h * h - c / a
if k > 0:
return "two distinct real roots", h, k
if k == 0:
return "one repeated root", h, k
return "no real roots", h, k
for coeffs in [(1, 6, 5), (1, 2, 1), (1, 0, 4), (2, -4, 5), (4, -12, 9)]:
kind, h, k = classify(*coeffs)
print(coeffs, kind, "h =", h, "k =", k)The output is:
(1, 6, 5) two distinct real roots h = 3 k = 4
(1, 2, 1) one repeated root h = 1 k = 0
(1, 0, 4) no real roots h = 0 k = -4
(2, -4, 5) no real roots h = -1 k = -3/2
(4, -12, 9) one repeated root h = -3/2 k = 0Notice (2, −4, 5). Dividing by 2 gives x² − 2x + 5/2 = 0. Then (x − 1)² = 1 − 5/2 = −3/2, which is negative.
A preview of what is coming: k always has the same sign as the expression b² − 4ac, because k = (b² − 4ac)/(4a²) and the denominator is positive. A later chapter derives this and gives the expression a name. For now, the sign of k is all you need.
Connecting the cases to the graph
The solutions of ax² + bx + c = 0 are the x-values where the parabola y = ax² + bx + c meets the x-axis.
- Two distinct roots: the parabola crosses the x-axis at two points.
- One repeated root: the parabola touches the x-axis at its vertex and turns back.
- No real roots: the parabola stays entirely above or entirely below the x-axis.
Completing the square makes this visible. Writing y = a(x + h)² − ak puts the vertex at (−h, −ak). The vertex sits on the axis exactly when k = 0. For a > 0 it lies below the axis when k > 0, so the parabola crosses twice. It lies above the axis when k < 0, so there is no crossing.
Common errors
- Counting a repeated root twice. The solution set of (x + 1)² = 0 is {−1}. Say the root has multiplicity 2 if you want to record the repetition, but do not list −1 and −1 as two different answers.
- Forgetting the ±. In the k > 0 case, x + 3 = 2 alone loses a root. The equation (x + 3)² = 4 has two solutions.
- Taking a square root of a negative number and carrying on. If you reach (x − 2)² = −3, stop and report no real solutions.
- Assuming a failed factoring means no real roots. Trinomials such as x² + 6x + 2 have real roots but do not factor over the integers. Complete the square to find out.
- Sign mistakes on h. If (x + h)² = k, then the vertex is at x = −h. Check the sign when you move from h to the root.
- Skipping the check. Substitute each root back into the original equation. For a repeated root, substitute once. For no real roots, there is nothing to substitute, so double-check the arithmetic that produced the negative k.
Putting it together
Solve 2x² − 12x + 18 = 0.
- Divide by 2 to make the equation monic: x² − 6x + 9 = 0.
- Here h = −3 and k = 9 − 9 = 0, so the case is a repeated root.
- Factor to confirm: (x − 3)² = 0.
- The solution is x = 3.
- Check in the original equation: 2(9) − 12(3) + 18 = 18 − 36 + 18 = 0.
This example shows why dividing by a first is worthwhile. It reveals a hidden perfect square.
Exercise
Without solving fully, decide whether x² − 8x + 20 = 0 has two distinct real roots, one repeated root, or no real roots. Show the step that proves it.
Show answer
Move the constant and complete the square: x² − 8x = −20, then add 16 to both sides to get (x − 4)² = −4. The right side is negative and a real square cannot be negative, so there are no real roots.
Exercise
For what value of c does x² + 10x + c = 0 have exactly one repeated root, and what is that root?
Show answer
Completing the square gives (x + 5)² = 25 − c. A repeated root needs 25 − c = 0, so c = 25. The equation is (x + 5)² = 0 and the root is x = −5.
Exercise
Use classification by k to describe 3x² + 6x + 5 = 0, then explain how the graph of y = 3x² + 6x + 5 relates to your answer.
Show answer
Divide by 3: x² + 2x + 5/3 = 0. Then h = 1 and k = 1 − 5/3 = −2/3, so (x + 1)² = −2/3 and there are no real roots. Since a = 3 > 0, the parabola opens upward. Its vertex is at x = −1, where y = 3 − 6 + 5 = 2 > 0, so the whole parabola lies above the x-axis and never crosses it.