Sub topic 11
Two roots, one repeated root, or no real roots
Assume you can solve linear equations, use square roots, and complete the square. In this chapter, you will classify the real solutions of a quadratic equation and understand why some equations have two roots, one repeated root, or no real roots.
The three possible cases
A quadratic equation has the form
\[ ax^2+bx+c=0,\qquad a\ne0. \]
When you complete the square, you can rewrite it as
\[ \left(x+\frac{b}{2a}\right)^2 = \frac{b^2-4ac}{4a^2}. \]
The left side is a square, so it cannot be negative for a real number \(x\). Therefore, the sign of \(b^2-4ac\) determines the number of real solutions.
The expression \(b^2-4ac\) is called the discriminant. It is usually written as \(D\).
| Discriminant | Number of real roots | What happens |
|---|---|---|
| \(D>0\) | 2 | The square root produces two different values |
| \(D=0\) | 1 repeated root | The square root is zero |
| \(D<0\) | 0 | A real square cannot equal a negative number |
A repeated root counts as one distinct solution, but it occurs twice as a factor. For example,
\[ (x+3)^2=0 \]
has the repeated root \(x=-3\).
Two different real roots
Consider
\[ x^2-5x+6=0. \]
Here, \(a=1\), \(b=-5\), and \(c=6\). The discriminant is
\[ D=(-5)^2-4(1)(6)=25-24=1. \]
Because \(D>0\), there are two different real roots. Factoring confirms this:
\[ x^2-5x+6=(x-2)(x-3). \]
The zero product property gives
\[ x=2\quad\text{or}\quad x=3. \]
Completing the square gives the same result:
\[ x^2-5x=-6 \]
\[ \left(x-\frac52\right)^2=\frac14 \]
\[ x-\frac52=\pm\frac12. \]
Thus \(x=2\) or \(x=3\).
One repeated real root
Consider
\[ x^2+6x+9=0. \]
The discriminant is
\[ D=6^2-4(1)(9)=36-36=0. \]
There is one distinct real root. The equation is a perfect square:
\[ x^2+6x+9=(x+3)^2. \]
Therefore,
\[ (x+3)^2=0 \]
and
\[ x=-3. \]
The graph of this quadratic touches the \(x\)-axis at \(x=-3\) but does not cross it.
No real roots
Consider
\[ x^2+2x+4=0. \]
The discriminant is
\[ D=2^2-4(1)(4)=4-16=-12. \]
Since \(D<0\), the equation has no real solutions. Completing the square shows why:
\[ x^2+2x+4=0 \]
\[ (x+1)^2+3=0 \]
\[ (x+1)^2=-3. \]
No real number has a square equal to \(-3\). If complex numbers are included, the solutions are \(x=-1\pm i\sqrt3\), but these are not real roots.
>callout note > A negative discriminant does not mean the equation is invalid. It means the equation has no solutions on the real number line.
Use the discriminant before choosing a method
The discriminant gives a quick prediction, but it does not replace solving. Use factoring when the factors are easy to recognize. Use completing the square when the equation has a clear square pattern or when you need the exact structure of the solutions. For any quadratic, the discriminant tells you how many real answers to expect.
def discriminant(a, b, c):
return b * b - 4 * a * c
for coefficients in [(1, -5, 6), (1, 6, 9), (1, 2, 4)]:
a, b, c = coefficients
d = discriminant(a, b, c)
print(coefficients, d)Exercise
Classify the real solutions of 2x^2 - 4x + 2 = 0, then solve the equation.
Show answer
The discriminant is (-4)^2 - 4(2)(2) = 0, so there is one repeated real root. Since 2x^2 - 4x + 2 = 2(x - 1)^2, the root is x = 1.