Sub topic 17
The Discriminant and the Number of Real Roots
This chapter assumes you can write a quadratic in standard form, ax² + bx + c = 0 with a ≠ 0, and that you know the quadratic formula. You should also be comfortable with square roots of perfect squares and simple radicals.
What the Discriminant Is
The quadratic formula gives the roots of ax² + bx + c = 0:
x = (−b ± √(b² − 4ac)) / (2a)
The expression under the square root is called the discriminant. It is usually written D (or Δ):
D = b² − 4ac
The sign of D decides whether the square root is a real number. That is why you can learn how many real roots exist without finishing the formula.
The Three Cases
| Value of D | Square root part | Real roots | Graph of y = ax² + bx + c |
|---|---|---|---|
| D > 0 | √D is a positive real number | Two distinct | Crosses the x-axis twice |
| D = 0 | √D = 0, so ± makes no difference | One (a repeated root) | Touches the x-axis once |
| D < 0 | √D is not real | None | Never meets the x-axis |
When D = 0, both signs in ± give the same value, x = −b / (2a). This is called a repeated or double root.
Computing D in Practice
Always read a, b, and c from standard form first, including their signs. For 2x² − 3x − 5 = 0, a = 2, b = −3, c = −5:
D = (−3)² − 4(2)(−5) = 9 + 40 = 49
D is positive, so there are two real roots. Because 49 is a perfect square, the roots are also rational: x = (3 ± 7) / 4, giving 5/2 and −1.
This points to a second use. If a, b, and c are integers, then:
- D is a perfect square (0, 1, 4, 9, ...) exactly when the roots are rational, which is also when the quadratic factors over the integers or rationals.
- D is positive but not a perfect square when the roots are irrational, such as 1 ± √3.
You can check the three cases in code. The function below returns the real roots, and the sign of D controls how many it returns.
import math
def solve_quadratic(a, b, c):
# Real solutions of a*x**2 + b*x + c = 0, with a != 0.
d = b * b - 4 * a * c
if d < 0:
return []
r = math.sqrt(d)
return sorted({(-b - r) / (2 * a), (-b + r) / (2 * a)})
print(solve_quadratic(1, -5, 6)) # [2.0, 3.0]
print(solve_quadratic(1, -6, 9)) # [3.0]
print(solve_quadratic(1, 0, 1)) # []The set in the return statement collapses the two equal values when D = 0, which is why the second call prints one root.
Worked Examples
Example 1: Classify without solving
How many real roots does 3x² − 4x + 2 = 0 have?
Here a = 3, b = −4, c = 2. Then D = 16 − 24 = −8. Since D < 0, there are no real roots.
Example 2: Find a parameter value
For what value of k does x² + kx + 9 = 0 have exactly one real root?
One root means D = 0. With a = 1, b = k, c = 9:
k² − 36 = 0, so k = 6 or k = −6.
Both values work. Check k = 6: x² + 6x + 9 = (x + 3)², with the single root x = −3. Check k = −6: x² − 6x + 9 = (x − 3)², with the single root x = 3. A question that asks for "the value of k" usually expects you to report both, or to notice that the question asks for something like the product or the positive value.
Example 3: Find a range of parameter values
For which values of k does x² − 4x + k = 0 have two distinct real roots?
D = 16 − 4k. We need D > 0, so 16 − 4k > 0, which gives k < 4.
When you divide by a negative number, flip the inequality. For example, if the condition were 4 − k·(−1) style rearrangements like −4k > −16, you would divide by −4 and get k < 4.
Example 4: A quick sign shortcut
If a and c have opposite signs, then ac < 0, so −4ac > 0. Since b² ≥ 0, D = b² − 4ac is positive. A quadratic such as 5x² + 2x − 7 = 0 must therefore have two real roots, and you never need b. This shortcut is useful in quantitative comparison questions.
Connecting D to the Graph
The graph of y = ax² + bx + c is a parabola. Its x-intercepts are the real roots. The discriminant tells you how many intercepts there are:
- D > 0: two intercepts.
- D = 0: the vertex sits on the x-axis.
- D < 0: the parabola lies entirely above the axis (if a > 0) or entirely below it (if a < 0).
The last point means that when D < 0, the expression ax² + bx + c has the same sign as a for every real x. For instance, x² + 2x + 5 has D = 4 − 20 = −16, so it is positive for all real x.
Common Errors
- Using the wrong signs for b and c. In x² − 5x + 6, b is −5, not 5. Squaring hides the sign of b, but the sign of c and a still matters in −4ac.
- Forgetting standard form. For x² = 3x − 2, move everything to one side first: x² − 3x + 2 = 0. Only then read a = 1, b = −3, c = 2.
- Dropping the 4. The discriminant is b² − 4ac, not b² − ac or b² − 2ac.
- Treating D = 0 as "no roots." It gives one real root, repeated.
- Assuming a quadratic always has two roots. The count depends on D. A question that says "the two roots of..." may be a trap if D ≤ 0.
- Ignoring that a ≠ 0. If a parameter appears in the x² coefficient, such as kx² + 2x + 1 = 0, setting a = 0 turns the equation into a linear one. The discriminant analysis applies only when k ≠ 0.
GRE Applications
Quantitative comparison questions often ask you to compare a quantity to a number using only the existence of roots. For example, if x² + bx + 4 = 0 has real roots, then b² − 16 ≥ 0, so b ≥ 4 or b ≤ −4. You can then decide whether b² is at least 16, which holds in every case.
Numeric entry questions may ask for the sum or product of the possible values of a parameter. In Example 2, the two values of k sum to 0 and multiply to −36. Setting D = 0 leads to a quadratic in k, and the sum and product of roots from the previous chapter's idea gives these without solving.
Use the discriminant when a question asks "how many," "does it have real solutions," or "for what values." Use factoring or the formula when it asks for the actual roots.
Exercise
For which values of k does the equation 2x² + 4x + k = 0 have no real roots?
Show answer
Here a = 2, b = 4, c = k, so D = 16 − 8k. No real roots requires D < 0, so 16 − 8k < 0, which gives k > 2.
Exercise
The equation x² + (k + 1)x + 4 = 0 has exactly one real root, and k > 0. Find k.
Show answer
D = (k + 1)² − 16 = 0, so k + 1 = 4 or k + 1 = −4. That gives k = 3 or k = −5. Since k > 0, k = 3.
Exercise
Without solving, decide how many real roots 7x² − 3x − 2 = 0 has, and say whether they are rational.
Show answer
a = 7 and c = −2 have opposite signs, so D is positive and there are two real roots. D = 9 − 4(7)(−2) = 9 + 56 = 65. Since 65 is not a perfect square, the roots are irrational.