The quadratic formula
x = (−b ± √(b² − 4ac)) / (2a)
What the discriminant tells you
| D = b² − 4ac | Roots | Graph |
|---|---|---|
| D > 0 | two different real roots | parabola crosses the x-axis twice |
| D = 0 | one repeated real root | vertex touches the x-axis |
| D < 0 | two complex conjugate roots | parabola does not reach the x-axis |
Examples
| Equation | D | Roots |
|---|---|---|
| x² − 5x + 6 = 0 | 1 | 3, 2 |
| x² + 0x − 9 = 0 | 36 | 3, -3 |
| 2x² + 4x + 2 = 0 | 0 | -1 |
| x² + 2x + 5 = 0 | -16 | -1 ± 2i |
| 3x² − 7x + 2 = 0 | 25 | 2, 0.3333 |
| x² − 2x − 1 = 0 | 8 | 2.4142, -0.4142 |
The vertex of y = ax² + bx + c is at x = −b/(2a). The sum of the roots is −b/a and their product is c/a (Vieta’s formulas).