Sub topic 8
The Discriminant and the Nature of Roots
Assume you can expand brackets, rearrange an equation, and identify the coefficients of a quadratic. A quadratic equation has the standard form
\[ ax^2+bx+c=0,\qquad a\ne0. \]
Its roots are the values of \(x\) that satisfy the equation. The discriminant is the expression
\[ D=b^2-4ac. \]
It tells you how many real roots the equation has without requiring you to solve it.
Reading the discriminant
The sign of \(D\) gives the nature of the roots.
| Discriminant | Nature of the roots | Meaning |
|---|---|---|
| \(D>0\) | Two distinct real roots | The graph crosses the \(x\)-axis twice |
| \(D=0\) | One repeated real root | The graph touches the \(x\)-axis once |
| \(D<0\) | No real roots | The graph does not meet the \(x\)-axis |
When \(D>0\), the roots may be rational or irrational. The discriminant only tells you that they are real and different. It does not by itself tell you whether they are integers or fractions.
Applying the test
Consider
\[ 2x^2-7x+3=0. \]
Here, \(a=2\), \(b=-7\), and \(c=3\). Therefore,
\[ D=(-7)^2-4(2)(3)=49-24=25. \]
Since \(D>0\), the equation has two distinct real roots. In fact, the roots are rational because \(25\) is a perfect square, but finding them is unnecessary if the question asks only for their nature.
Now consider
\[ x^2+6x+9=0. \]
Here, \(a=1\), \(b=6\), and \(c=9\).
\[ D=6^2-4(1)(9)=36-36=0. \]
The equation has one repeated real root. It can also be written as
\[ (x+3)^2=0, \]
so the repeated root is \(x=-3\).
Finally, for
\[ 3x^2+2x+5=0, \]
\[ D=2^2-4(3)(5)=4-60=-56. \]
Since \(D<0\), there are no real roots. The equation still has two complex roots, but CAT Quant questions normally distinguish these from real solutions.
Common errors and CAT checks
- Treat \(b\) as a signed number. If \(b=-5\), then \(b^2=(-5)^2=25\).
- Do not use \(4ac\) as \(4|a||c|\). The signs of \(a\) and \(c\) matter.
- Do not forget to move every term to one side first.
- If a question gives a parameter and asks when roots are real, set \(D\ge0\).
- If it asks for two distinct real roots, use \(D>0\).
- If it asks for equal roots, use \(D=0\).
def nature_of_roots(a, b, c):
discriminant = b * b - 4 * a * c
if discriminant > 0:
return "two distinct real roots"
if discriminant == 0:
return "one repeated real root"
return "no real roots"
print(nature_of_roots(2, -7, 3))
print(nature_of_roots(1, 6, 9))
print(nature_of_roots(3, 2, 5))Exercise
For which values of k does x² - 4x + k = 0 have two distinct real roots?
Show answer
Its discriminant must be positive: (-4)² - 4(1)(k) > 0, so 16 - 4k > 0 and k < 4.