The formula
ax² + bx + c = 0 (a ≠ 0)
x = (−b ± √(b² − 4ac)) ÷ 2a
Discriminant D = b² − 4ac
Vertex: h = −b ÷ 2a, k = c − b² ÷ 4a
Worked example
- Solve x² − 2x − 3 = 0, so a = 1, b = −2, c = −3.
- D = (−2)² − 4 × 1 × (−3) = 4 + 12 = 16. D > 0, so there are two real roots.
- x = (2 ± √16) ÷ 2 = (2 ± 4) ÷ 2.
- x₁ = 6 ÷ 2 = 3 and x₂ = −2 ÷ 2 = −1.
- Vertex: h = 2 ÷ 2 = 1, and k = 1 − 2 − 3 = −4, so the vertex is (1, −4). Factored form: (x − 3)(x + 1) = 0.
The quadratic formula
A quadratic equation has the form ax² + bx + c = 0, where a, b and c are numbers and a isn't zero. Its graph is a parabola, a U-shaped curve, and its solutions (the roots or zeros) are where the parabola crosses the x-axis. The quadratic formula solves any quadratic:
x = (−b ± √(b² − 4ac)) ÷ 2a
The ± means there are usually two solutions: one using + and one using −. The formula is found by completing the square on the general equation, a technique known to Indian, Persian and Islamic mathematicians such as Brahmagupta and al-Khwarizmi more than a thousand years ago.
What the discriminant tells you
The expression under the square root, D = b² − 4ac, is the discriminant. It tells you what kind of roots to expect before you solve:
- D > 0: two different real roots. The parabola crosses the x-axis twice. If D is a perfect square and a, b, c are integers, the roots are rational and the quadratic factors neatly.
- D = 0: one repeated real root. The vertex touches the x-axis.
- D < 0: no real roots, but two complex conjugate roots of the form p ± qi, where i = √−1. The parabola doesn't reach the x-axis.
The vertex and shape
The vertex is the turning point of the parabola: its minimum if a > 0 (opening upward) or its maximum if a < 0 (opening downward). Its x-coordinate is h = −b ÷ 2a, which is also the axis of symmetry. Substitute h back into the equation to get k, the minimum or maximum value. Writing the quadratic in vertex form, y = a(x − h)² + k, makes the graph easy to sketch. Vertex problems appear in many optimisation questions, such as the maximum height of a thrown ball, the price that maximises revenue, or the dimensions that give the largest area for a fixed perimeter.
Other ways to solve quadratics
- Factoring: if you can write ax² + bx + c as (px + q)(rx + s), the roots are x = −q/p and x = −s/r. It's fast when it works, but not every quadratic factors over the integers.
- Completing the square: rewrite the equation as a(x − h)² + k = 0 and solve for x. This is how the quadratic formula is derived.
- Graphing: read the roots from where the curve crosses the x-axis, as in the chart above.
- Checking: for roots x₁ and x₂, x₁ + x₂ = −b/a and x₁ × x₂ = c/a (Vieta's formulas). In the example, 3 + (−1) = 2 and 3 × (−1) = −3 ✓.
If a = 0, the equation is linear (bx + c = 0), with the single solution x = −c/b.
Quadratics in the real world
Quadratic equations describe anything that changes at a steadily changing rate. A ball thrown upward follows h = −4.9t² + v₀t + h₀ (in metres, with v₀ the launch speed and h₀ the starting height). Solving h = 0 gives the time it hits the ground, and the vertex gives its maximum height. For example, a ball thrown at 15 m/s from 2 m up reaches its peak after about 1.53 s at about 13.5 m, and lands after about 3.19 s. In business, if revenue is price × quantity and quantity falls as price rises, revenue is often quadratic in price, and the vertex gives the revenue-maximising price. In geometry, fencing problems such as "what rectangle gives the largest area for 100 m of fence?" lead to quadratics, and the answer here is a 25 × 25 m square. Quadratics also appear in physics formulas for kinetic energy, in lens equations and in calculating areas.