Worked example
Solve 2x² − 4x − 6 = 0. Here a = 2, b = −4, c = −6. The discriminant is (−4)² − 4 × 2 × (−6) = 16 + 48 = 64, and √64 = 8. So x = (4 ± 8) ÷ 4, giving x = 3 or x = −1. Because the roots are whole numbers, the equation factors as 2(x + 1)(x − 3) = 0, and the vertex is at (1, -8).
Three kinds of answer
| Equation | Discriminant | Roots |
|---|---|---|
| 2x² − 4x − 6 = 0 | 64 (positive) | 3 and −1 |
| x² + 2x − 1 = 0 | 8 (positive, not a square) | −1 ± √2 |
| x² + 2x + 5 = 0 | -16 (negative) | −1 ± 2i |
Other ways to solve
- Factoring: find two numbers that multiply to a × c and add to b. Quick when the roots are whole numbers, as in x² − 5x + 6 = (x − 2)(x − 3).
- Completing the square: rewrite ax² + bx + c as a(x + b/2a)² + (c − b²/4a). This is where the quadratic formula comes from, and it gives the vertex directly.
- Graphing: the roots are where the parabola crosses the x-axis. Useful for checking, less precise.
The formula always works, which is why exams expect you to know it. When b is large and 4ac small, one root can lose precision on a calculator because two nearly equal numbers are subtracted; working with the exact surd avoids that.
Checking your answer
Put each root back into the equation: for x = 3, 2(9) − 4(3) − 6 = 18 − 12 − 6 = 0. A second check is Vieta’s formulas: the roots add up to −b/a (here 3 + (−1) = 2 = 4 ÷ 2) and multiply to c/a (3 × (−1) = −3 = −6 ÷ 2).
Related tools
- LCM and GCF calculator
- Prime number checker
- Scientific notation converter
- Long division calculator
- Pythagorean theorem calculator
- Exponent and log calculator
- Matrix calculator
- Fraction calculator
- Scientific calculator
Sources
Checked on November 26, 2026:
Frequently asked questions
What is the quadratic formula?
What does the discriminant tell me?
Can it give exact answers?
What if a = 0?
How do I enter x² − 9 = 0?
What is the vertex?
Last updated: 2026-11-26