5 / 6 · Intermediate
The discriminant
For x² + 2x + 5 = 0, b² − 4ac = 4 − 20 = −16. One negative number tells you, before solving anything, that the parabola never touches the x-axis.
Jump to the 10 practice questionsYou will learn
- Compute b² − 4ac
- Tell from it how many solutions there are, and what kind
Before this: The quadratic formula
1Explain
Will the fountain jet reach 5 metres?
Picture a fountain in a park. The jet leaves a nozzle on the ground and lands 4 metres away, and at x metres from the nozzle its height is y = −x² + 4x metres. (The fountain and its numbers are made up.) Does the water reach 5 metres? Set −x² + 4x = 5 and tidy it up: x² − 4x + 5 = 0. Then b² − 4ac = 16 − 20 = −4. Negative. No real x works, so the water never gets that high. Try 3 metres instead. x² − 4x + 3 = 0 gives 16 − 12 = 4, so the jet passes that height twice, at x = 1 and x = 3.
2Explain
b² − 4ac decides how many solutions there are
In the quadratic formula, the expression b² − 4ac sits under the square root. It is called the discriminant, because it discriminates, or tells apart, the kinds of solutions an equation has. Its sign decides everything. If it is positive, the square root is a real number and the ± gives two different solutions. If it is zero, the ± adds and subtracts nothing, so both answers are the same number. If it is negative, there is no real square root at all, and the equation has no real solutions.
3Problem
x² − 5x + 6
What is the discriminant of x² − 5x + 6 = 0?
Hint
25 − 24.
Solution
Answer: 1
Take a = 1, b = −5 and c = 6, keeping the sign of b. Then (−5)² − 4(1)(6) = 25 − 24 = 1; square the whole negative coefficient inside the parentheses.
4Problem
3x² + 2x − 1
What is the discriminant of 3x² + 2x − 1 = 0?
Hint
4 − (−12).
Solution
Answer: 16
Here c is negative, so subtracting 4ac adds a positive amount: 2² − 4(3)(−1) = 4 + 12 = 16. Losing the minus sign on c would change the result.
5Problem
2x² − 3x + 5
What is the discriminant of 2x² − 3x + 5 = 0?
Hint
9 − 40.
Solution
Answer: −31
Compute (−3)² − 4(2)(5) = 9 − 40 = −31. The square is positive, but the subtraction makes the discriminant negative, so this equation has no real roots.
6Explain
Rational or irrational
OpenStax refines the positive case into two. For integer coefficients, when b² − 4ac is a positive perfect square such as 1, 16 or 25, the two solutions are rational. A rational number can be written as a fraction of integers, such as 1/2. Such an equation could also have been factored. When it is positive but not a perfect square, such as 5 or 17, the solutions contain an irrational square root. The table collects all four cases. In the negative case the solutions are complex numbers, which involve the square root of a negative number; they belong to a later course, and on a graph of real numbers they do not appear.
| b² − 4ac | Solutions | Example |
|---|---|---|
| positive square | two rational, 2 x-intercepts | x² − 5x + 6: 1 |
| positive, not square | two irrational, 2 x-intercepts | x² + x − 1: 5 |
| zero | one double root, touches at the vertex | x² − 4x + 4: 0 |
| negative | no real solutions, no x-intercepts | x² + 2x + 5: −16 |
7Problem
x² + x − 1 = 0
What kind of solutions does x² + x − 1 = 0 have?
Hint
b² − 4ac = 5.
Solution
Answer: Two irrational
1 + 4 = 5 is positive but not a perfect square.
8Problem
x² + 2x + 5 = 0
What kind of solutions does x² + 2x + 5 = 0 have?
Hint
b² − 4ac = −16.
Solution
Answer: No real solutions
4 − 20 = −16 is negative.
9Problem
Discriminant 49
A quadratic equation with integer coefficients has discriminant 49. What are its solutions like?
Hint
49 = 7².
Solution
Answer: Two rational solutions
49 = 7² is a positive perfect square.
10Explain
Two crossings, one touch, or none
The solutions of ax² + bx + c = 0 are the x-intercepts of y = ax² + bx + c, so the discriminant also counts the x-intercepts. A positive discriminant means the parabola cuts through the x-axis twice. Zero means it just touches the axis at its vertex; that is why the vertex of y = (x − 3)² sits on the axis. A negative discriminant means the whole parabola stays above the axis (if a > 0) or below it (if a < 0). For y = 2x² − 3x + 5, b² − 4ac = 9 − 40 = −31, and since a > 0 the curve floats above the axis.
Two crossings, one touch at the vertex, or none. D stands for the discriminant b² − 4ac.
11Explore
Move c and count
Start at x² − 4x + 4, discriminant 0. Move c to 3 or 5 and watch b² − 4ac change sign, and the green x-intercepts appear or vanish.
12Problem
x² − 4x + 4 = 0
How many real solutions does x² − 4x + 4 = 0 have?
Hint
16 − 16 = 0.
Solution
Answer: One (a double root)
16 − 16 = 0, so there is one repeated solution, x = 2.
13Problem
−x² + 4x − 5
How many x-intercepts does y = −x² + 4x − 5 have?
Hint
16 − 20.
Solution
Answer: 0
16 − 4(−1)(−5) = 16 − 20 = −4 < 0. The parabola opens down and stays below the axis.
14Explain
Working backwards: which c makes the curve touch the axis?
Because the discriminant is a formula in a, b and c, you can work backwards. Which c makes x² − 6x + c touch the x-axis exactly once? Set the discriminant to zero: 36 − 4c = 0, so c = 9, and indeed x² − 6x + 9 = (x − 3)². Which positive k gives x² + kx + 9 = 0 a double root? k² − 36 = 0, so k = 6. The fountain question used the same habit. Ask whether a solution exists before spending time on finding it.
15Problem
Touch once: x² − 6x + c
Which c makes y = x² − 6x + c touch the x-axis exactly once?
Hint
36 − 4c = 0.
Solution
Answer: 9
Touching the axis once means a double root, so set the discriminant to zero: 36 − 4c = 0 gives c = 9. A positive discriminant would give two crossings instead.
16Problem
x² + kx + 9
For which positive k does x² + kx + 9 = 0 have exactly one solution?
Hint
k² − 36 = 0.
Solution
Answer: 6
Exactly one real solution requires discriminant zero: k² − 36 = 0 gives k = 6 or −6. The positive-k condition selects 6, and x² + 6x + 9 = (x + 3)².
17Explore
The lab
The lab starts at y = x² − 4x + 4, whose discriminant is 0. Move c down by one and the discriminant becomes positive: two intercepts appear. Move c up and it turns negative: the parabola lifts off the axis. Watch the panel: it works out b² − 4ac with your numbers and names the case.
Drag to turn. Scroll or pinch to zoom.
18Explain
Common mistakes
Writing b² = −25 when b = −5.
Squaring a negative number gives a positive one: (−5)² = (−5) × (−5) = 25. For x² − 5x + 4 = 0 the slip gives −25 − 16 = −41 and the verdict "no real solutions", but the right value is 25 − 16 = 9, and 1 and 4 both work.
Treating −4ac as negative when c is negative, as in x² + 4x − 5 = 0: 16 − 20 = −4.
−4(1)(−5) = +20, so b² − 4ac = 16 + 20 = 36 and the solutions are 1 and −5. Whenever a and c have opposite signs, −4ac is positive, so the discriminant is positive and there are always two real solutions.
Taking a discriminant of 0 to mean there is no solution.
Zero means one solution, a double root. x² − 8x + 16 = 0 has b² − 4ac = 64 − 64 = 0 and x = 4. No real solution goes with a negative discriminant.
Thinking a negative discriminant means negative solutions.
The sign of the discriminant says nothing about the signs of the roots. x² + 4x + 3 = 0 has b² − 4ac = 16 − 12 = 4, which is positive, and both of its roots, −1 and −3, are negative.
19
Summary
- The discriminant is b² − 4ac, the part under the square root.
- Positive: two real solutions (rational if a perfect square). Zero: one double root. Negative: no real solutions.
- It also counts the x-intercepts: 2, 1 or 0.
- Set it to 0 to find the value that makes a parabola touch the axis.