The quadratic formula: x = (−b ± √(b² − 4ac)) / 2a. It gives the solutions (roots) of every quadratic equation written in standard form ax² + bx + c = 0. Factoring only works when the roots are tidy; this formula works always — for integers, fractions, irrational numbers, and even the cases where the roots are not real at all. Learn to read it in three parts: −b on the left, the square root in the middle, and 2a underneath everything.
The Variables, Explained
- a is the coefficient of x². It cannot be 0 — if a = 0 the equation is linear, not quadratic.
- b is the coefficient of x, sign included. In 2x² − 5x + 2, b is −5, not 5.
- c is the constant term, also with its sign.
- x is the unknown: the formula returns its value(s).
- ± means "plus or minus": one pass with + and one with −, which is where the two roots come from.
- b² − 4ac, under the root, is the discriminant — it predicts how many real roots exist before you finish the calculation.
Where the Formula Comes From: Completing the Square
The formula is not a trick to memorise; it is completing the square done once, in general. Start with ax² + bx + c = 0 and divide everything by a: x² + (b/a)x + c/a = 0. Move the constant over: x² + (b/a)x = −c/a. Now complete the square by adding (b/2a)² to both sides — half the x-coefficient, squared. The left side becomes the perfect square (x + b/2a)², and the right side tidies, over the common denominator 4a², into (b² − 4ac) / 4a². Take the square root of both sides (remembering ± on the right), then subtract b/2a, and the quadratic formula is exactly what remains. Every step is ordinary algebra, which is why the formula can be trusted for every a, b and c.
Worked Example: 2x² − 5x + 2 = 0
Read off a = 2, b = −5, c = 2. Discriminant first: b² − 4ac = (−5)² − 4(2)(2) = 25 − 16 = 9, a perfect square, so the roots will be rational. Now substitute: x = (5 ± √9) / (2 × 2) = (5 ± 3) / 4. Split on the ±: x = (5 + 3) / 4 = 8 / 4 = 2, or x = (5 − 3) / 4 = 2 / 4 = 1/2. Check x = 2: 2(4) − 5(2) + 2 = 8 − 10 + 2 = 0 ✓. Check x = 1/2: 2(1/4) − 5(1/2) + 2 = 0.5 − 2.5 + 2 = 0 ✓.
The Discriminant: D = b² − 4ac
- D > 0: two different real roots. In the example D = 9, giving 2 and 1/2.
- D = 0: one repeated real root. For x² − 4x + 4 = 0, D = 16 − 16 = 0 and the only root is x = 2 (the graph just touches the axis).
- D < 0: no real roots, because the formula would need the square root of a negative number. For x² + x + 1 = 0, D = 1 − 4 = −3; the two roots exist only as complex numbers.
Common Mistakes
- Losing the sign of b. The formula starts with −b: when b = −5, −b is +5. Writing −5 anyway is the single most common error.
- Dividing only part of the top by 2a. The bar covers the whole numerator: (5 ± 3) / 4, never 5 ± 3/4.
- Computing −4ac with the wrong sign. If c is negative, −4ac is positive: for c = −2, −4(2)(−2) = +16.
- Forgetting the equation must equal zero. Move everything to one side first: 2x² = 5x − 2 becomes 2x² − 5x + 2 = 0 before you read off a, b, c.
- Stopping at one root. The ± always means two calculations, even when they happen to give the same value.
Run your own coefficients through the quadratic equation solver to check each step, read the standard treatment in OpenStax Elementary Algebra, and browse the full formulas library for more reference pages.