The quadratic formula: how and why it works
Use x = (−b ± √(b² − 4ac)) / 2a to solve any quadratic. Worked example, what the discriminant tells you, and where the formula comes from.
For any equation ax² + bx + c = 0:
x = (−b ± √(b² − 4ac)) / (2a)
It works even when the quadratic won't factor.
Worked example
Solve 2x² + 3x − 2 = 0. Here a = 2, b = 3, c = −2.
- b² − 4ac = 9 − 4(2)(−2) = 9 + 16 = 25
- x = (−3 ± √25) / 4 = (−3 ± 5) / 4
- x = 2/4 = ½ or x = −8/4 = −2
Check x = ½: 2(¼) + 3(½) − 2 = 0.5 + 1.5 − 2 = 0 ✓
The discriminant: b² − 4ac
- Positive: two real solutions (the graph crosses the x-axis twice).
- Zero: one solution (the graph just touches the axis).
- Negative: no real solutions. For x² + 2x + 5 = 0, b² − 4ac = 4 − 20 = −16, so the graph never reaches the x-axis.
Where it comes from
The formula is what you get by completing the square on ax² + bx + c = 0 with letters instead of numbers. Nothing to take on faith: it's the same steps, done once for every quadratic.
Common mistakes
- Forgetting that b² is positive even when b is negative: (−4)² = 16.
- Dividing only the square root by 2a. The whole top, −b ± √…, is divided by 2a.
- Not writing the equation as "= 0" first.
Practice it free
Watch the full lesson and try questions with new numbers every time, with the worked steps shown if you get one wrong.