Factorising and completing the square

Completing the square rewrites a quadratic so you can read off its turning point and solve it exactly.

Practise this lesson free (6 questions)

More tools

Factorising

For ax2 + bx + c, find two numbers that multiply to ac and add to b, then split the middle term.
3x2 − 10x − 8: ac = −24, use −12 and 2
3x2 − 12x + 2x − 8 = 3x(x − 4) + 2(x − 4) = (3x + 2)(x − 4)

Completing the square

x2 + bx + c = (x + b2)2 − (b2)2 + c
x2 + 8x + 3 = (x + 4)2 − 16 + 3 = (x + 4)2 − 13
The minimum value is −13, when x = −4.

When a is not 1

Take a out of the x terms first.
2x2 + 12x + 5 = 2(x2 + 6x) + 5
= 2[(x + 3)2 − 9] + 5 = 2(x + 3)2 − 13
Worked example

Write 5 + 4x − x2 in the form a − (x − b)2 and state its maximum value.

  1. 5 + 4x − x2 = 5 − (x2 − 4x)
  2. x2 − 4x = (x − 2)2 − 4
  3. 5 − [(x − 2)2 − 4] = 9 − (x − 2)2

Answer: 9 − (x − 2)2, maximum value 9 when x = 2

Key idea

x2 + bx + c = (x + b2)2 − (b2)2 + c. Take out a first if a ≠ 1. (x + p)2 + q has its minimum value q when x = −p.

Quick check

Try two quick questions

See if it has sunk in. Answers are marked straight away.

Extra practice

2 more questions

Try each one, then tap to check.

  1. Write x2 + 10x + 7 in the form (x + p)2 + q.

    1. (x + 5)2 + 7
    2. (x + 10)2 − 93
    3. (x + 5)2 − 18
    4. (x + 5)2 + 32
    Show the answer

    Answer: (x + 5)2 − 18

    (x + 5)2 = x2 + 10x + 25, so x2 + 10x + 7 = (x + 5)2 − 18.

  2. x2 − 8x + 20 = (x − 4)2 + q. Find q.

    Show the answer

    Answer: 4

    (x − 4)2 = x2 − 8x + 16, so q = 20 − 16 = 4.

Check you have got it

Answer 6 quick questions with instant marking. If you get one wrong, GCSE-ready shows you why and gives you another go. It is free, and you do not need an account.

Video for this lesson coming soon. Subscribe on YouTube

Sources and references

Facts checked against the sources below, 17 October 2026. Last updated 2 October 2026. Spotted a mistake? Tell us and we will fix it.

Related lessons