GCSE · Algebra

Solving Quadratic Equations

A quadratic equation, like x² − 5x + 6 = 0, usually has two answers. This page gives you three ways to find them: factorising, completing the square and the quadratic formula. It shows why each one works, what the answers mean on a graph, and how to choose the best method for the question in front of you.

GCSE subject content: solve quadratic equations algebraically by factorising; find approximate solutions using a graph; Higher: solve by completing the square and by using the quadratic formula; identify turning points by completing the square

Before you start. You need to be able to factorise x² + bx + c (see Double brackets and factorising quadratics) and to know what the graph of a quadratic looks like: a symmetrical U-shaped curve called a parabola (see Quadratic graphs). Remember that every positive number has two square roots: √9 = 3, but both 3² and (−3)² make 9.

1 · What "solve" means: roots on a graph

A quadratic equation has an x² term and no higher power, and you want to find the value(s) of x that make it true. To solve ax² + bx + c = 0 means to find every x that makes the expression equal zero. On the graph of y = ax² + bx + c, those are the points where y = 0: where the curve crosses the x-axis. The solutions are also called the roots.

Drag the plum point along the curve. Where does y become 0? Then change the sliders: a parabola can cross the x-axis twice, touch it once, or miss it completely. That's why a quadratic has two, one or no solutions.

Your point
Roots (where y = 0)

Reading roots off a graph only gives approximate answers, often to 1 decimal place. The algebraic methods below give exact answers.

2 · Solving by factorising

If two numbers multiply to make 0, at least one of them must be 0. This is the zero-product rule. So once a quadratic is factorised, (x − 2)(x − 3) = 0, either x − 2 = 0 or x − 3 = 0, giving x = 2 or x = 3. You met this in Solving quadratics by factorising; here's a quick step-through, including the traps.

Two traps. (1) The equation must equal zero before you factorise: x(x + 2) = 15 does not mean x = 15 or x + 2 = 15. (2) Never divide both sides by x: from x² = 7x you'd get x = 7 and lose the solution x = 0.

3 · Completing the square Higher

Most quadratics don't factorise with whole numbers, so we need another method. Completing the square rewrites x² + bx + c in the form (x + p)² + q. Here's the picture behind it. x² is a square tile; bx is a strip of width b. Cut the strip in half, move one half underneath, and you almost have a bigger square, of side x + b/2. One small corner is missing: a square of side b/2.

So adding the corner completes the square, and then we must take it away again to keep the value the same:

x² + bx = (x + b/2)² − (b/2)²

Recipe: halve b to get the number in the bracket, then subtract that number squared. Any constant c just comes along for the ride: x² + 6x + 5 = (x + 3)² − 9 + 5 = (x + 3)² − 4.

4 · Turning points and solving from the completed square Higher

The completed form tells you the turning point (the lowest point of a U-shaped parabola, also called the vertex). In y = (x + p)² + q, the squared bracket is never negative, so it is smallest (zero) when x = −p. Then y = q. So the turning point is (−p, q). Notice the sign flips for the x-coordinate but not for the y-coordinate.

Turning point
Roots
Expanded

Try it. Write the expression in the form (x + p)² + q.

To solve by completing the square, rearrange to (x + p)² = number, then square-root both sides. Remember the ±: both the positive and negative square roots work.

5 · The quadratic formula Higher

Complete the square on the general equation ax² + bx + c = 0 once, with letters, and you get a formula that solves every quadratic. Step through the derivation; each line uses only the completing-the-square recipe from section 3.

x = −b ± √(b² − 4ac)2a

Learn it by heart: it solves every quadratic, including ones that don't factorise. Use it like this: write down a, b and c with their signs, substitute with brackets around negatives, work out the part under the square root first, then do the + version and the − version.

Formula mistakes examiners see every year

Practice. Solve with the formula. Give both answers to 2 decimal places (either order).

6 · The discriminant: how many roots? Higher

The part under the square root, b² − 4ac, is called the discriminant. It "discriminates" between the three cases before you do any more work:

7 · Choosing a method and giving your answer

If the equation…useexample
has no x term, or is already (x + p)² = ksquare-root both sides (±)x² = 20 → x = ±2√5
factorises easily (product/sum pair exists)factorisingx² − x − 12 = 0 → x = 4, −3
says "complete the square" or a = 1 with even b, exact answer wanted Highercompleting the squarex² + 8x + 3 = 0 → x = −4 ± √13
says "to 2 d.p." or "3 s.f.", or won't factorise Higherthe quadratic formula2x² + x − 4 = 0

A question that asks for an answer "to 2 decimal places" is a hint that the quadratic will not factorise. "Give your answer in surd form" means leave the square root in, simplified: √20 = √(4 × 5) = 2√5, and cancel common factors: (6 ± 2√5)/2 = 3 ± √5.

Worked examples

Solve x² − 7x + 10 = 0
Factorise: product 10, sum −7: −2 and −5. So (x − 2)(x − 5) = 0.
Zero-product rule: x − 2 = 0 or x − 5 = 0.
Answer: x = 2 or x = 5. Check: 2² − 14 + 10 = 0 ✓, 25 − 35 + 10 = 0 ✓
Solve x² + 6x + 4 = 0, giving your answers in surd form Higher
Complete the square: half of 6 is 3, so x² + 6x = (x + 3)² − 9.
Substitute: (x + 3)² − 9 + 4 = 0, so (x + 3)² − 5 = 0.
Rearrange: (x + 3)² = 5.
Square-root, with ±: x + 3 = ±√5.
Answer: x = −3 + √5 or x = −3 − √5 (≈ −0.76 and −5.24).
Find the turning point of y = x² − 8x + 3 Higher
Complete the square: half of −8 is −4: x² − 8x = (x − 4)² − 16.
So y = (x − 4)² − 16 + 3 = (x − 4)² − 13.
Turning point: the bracket is 0 when x = 4, then y = −13. (4, −13), a minimum because the x² is positive.
Solve 2x² − 3x − 7 = 0, giving answers to 2 d.p. Higher
Identify: a = 2, b = −3, c = −7.
Discriminant: b² − 4ac = (−3)² − 4 × 2 × (−7) = 9 + 56 = 65.
Substitute: x = (−(−3) ± √65) ÷ (2 × 2) = (3 ± √65) ÷ 4.
Calculate: √65 = 8.0622…; (3 + 8.0622…) ÷ 4 = 2.7655… and (3 − 8.0622…) ÷ 4 = −1.2655…
Answer: x = 2.77 or x = −1.27 (2 d.p.).
Solve 3x² + 5x − 1 = 0, leaving your answer in surd form Higher
a = 3, b = 5, c = −1. Discriminant: 25 − 4 × 3 × (−1) = 25 + 12 = 37.
Formula: x = (−5 ± √37) ÷ 6.
Simplify? 37 is prime, so √37 doesn't simplify, and 5, 1 and 6 have no common factor. x = (−5 ± √37)/6.
Exam-style: a rectangle is x cm wide and (x + 3) cm long. Its area is 20 cm². Find x to 2 d.p. Higher
Form the equation: x(x + 3) = 20, so x² + 3x − 20 = 0.
It won't factorise (no pair multiplies to −20 and adds to 3), so use the formula with a = 1, b = 3, c = −20.
Discriminant: 9 − 4 × 1 × (−20) = 89. x = (−3 ± √89) ÷ 2 = 3.2169… or −6.2169…
Interpret: a width can't be negative, so reject −6.22. x = 3.22 cm (2 d.p.). Check: 3.2169… × 6.2169… = 20.0 ✓
How many real roots does 2x² + 4x + 5 = 0 have? Higher
Discriminant: b² − 4ac = 4² − 4 × 2 × 5 = 16 − 40 = −24.
Negative, so there are no real roots: the graph y = 2x² + 4x + 5 sits entirely above the x-axis.

Quick check

What you've learned