The quadratic formula
Every quadratic can be solved by completing the square, and doing that once with letters gives the formula: divide through by a, move c across, add (b ÷ 2a)² to both sides so the left is a perfect square, and take the square root. The ± appears because a number and its negative have the same square, which is why there can be two solutions.
The textbook formula loses accuracy when b is large and 4ac small, because subtracting two nearly equal numbers wipes out digits. The calculator therefore finds the larger root first and gets the other from the product of the roots, c ÷ a.
x = (−b ± √(b² − 4ac)) ÷ 2a
What the discriminant tells you
The expression under the square root, b² − 4ac, is the discriminant, and its sign decides the kind of answer. Positive means two distinct real roots, where the parabola crosses the x-axis twice. Zero means one repeated root, where it just touches the axis at its vertex. Negative means no real roots: the parabola never reaches the axis.
The roots are then complex numbers p ± qi, where i is the square root of −1, p = −b ÷ 2a (the axis of symmetry) and q = √(4ac − b²) ÷ 2a. With real coefficients they always come as a conjugate pair.
Vertex and axis of symmetry
A parabola is symmetrical about a vertical line through its vertex, at x = −b ÷ 2a, and two real roots sit equally far either side of it. Put that x into the equation to get the vertex height k: the minimum value of the expression when a is positive, the maximum when a is negative. That is how quadratics find the top of a thrown ball's flight.
To evaluate the expression at one value of x, use the scientific calculator. Quadratics also turn up in Pythagorean theorem problems where one side is written in terms of another.
Worked examples
Example 1
Solving 2x² − 4x − 6 = 0
Here a = 2, b = −4 and c = −6. The discriminant is (−4)² − 4 × 2 × (−6) = 16 + 48 = 64, a perfect square, so the roots are whole numbers: x = (4 ± 8) ÷ 4, giving x = -1 or x = 3. The vertex is at x = 1, where the value is 2 − 4 − 6 = −8.
Example 2
Complex roots of x² + 2x + 5 = 0
The discriminant is 2² − 4 × 1 × 5 = −16, so there are no real roots. The real part is −2 ÷ 2 = −1 and the imaginary part is √16 ÷ 2 = 2, giving x = -1 ± 2i. The vertex, (−1, 4), sits 4 units above the x-axis, so the curve never crosses it.
Example 3
When a ball thrown upwards lands
A ball thrown upwards at 20 m/s from 1.5 m up has height h = −4.9t² + 20t + 1.5 metres after t seconds, ignoring air resistance. It lands when h = 0. The discriminant is 400 + 29.4 = 429.4, and the roots, with t in place of x, are x = -0.0737 or x = 4.1553. Only the positive root makes sense, so it lands after about 4.16 seconds; the vertex shows it peaks at about 2.04 seconds, roughly 21.9 m (72 ft) up.
Questions people ask
Should I factorise or use the formula?
Factorising is quicker when the roots are whole numbers or simple fractions, which happens when the discriminant is a perfect square. The formula always works, so use it when no factorisation jumps out.
How do I check the roots?
Substitute each root back into ax² + bx + c and check the result is zero, allowing for rounding. Quicker still, the roots add up to −b ÷ a and multiply to c ÷ a: for 2x² − 4x − 6 = 0, −1 and 3 add to 2 and multiply to −3.
Do I need to rearrange my equation first?
Yes, into the form ax² + bx + c = 0. For x² = 3x + 10, subtract 3x and 10 from both sides to get x² − 3x − 10 = 0, so a = 1, b = −3 and c = −10, with roots −2 and 5.