Websink Prep UKGCSE MathsTextbook contentsMaths textbooksYear 1Year 2Year 4Year 5Year 6GCSEBrowse allPast papersFind a tutorBecome a tutor
GCSE Maths · EdexcelChapter 14 · Quadratics and simultaneous equations
GCSE Maths · Quadratic and Simultaneous Equations · Higher · Lesson 14.10

GCSE Maths: Completing the square (Higher)

Part of the GCSE Maths quadratic and simultaneous equations chapter (Higher). Chapter overview · whole chapter on one page · Download worksheet (PDF) · Answers (PDF)

Download worksheet (PDF)Answers (PDF)
14.10

Completing the square

Edexcel 1MA1: A18
Grade 6-9

Look at what happens when you expand a bracket that is squared: (x + 3)2 = x2 + 6x + 9. The expression x2 + 6x + 9 is a perfect square. Completing the square means rewriting any quadratic x2 + bx + c in the form (x + p)2 + q, where the letter x appears only once. It is useful for three things: solving equations, finding the turning point of a graph, and proving things about quadratics.

x²6/26/2?x6/2x6/2The red corner completes the square: (b/2)²
To make x2 + 6x into a square we split the 6x into two strips, each 3 by x. The big square then has side (x + 3), but it has a missing corner of area 3 × 3 = 9.

Why it works. In the picture, the area x2 + 6x is an x by x square plus two strips of 3 by x. To fill the corner you need 9 more. So x2 + 6x = (x + 3)2 − 9. The rule is: halve the number in front of x, put it in the bracket, and subtract its square. So x2 + bx + c = (x + b/2)2 − (b/2)2 + c. For x2 + 6x + 2 this gives (x + 3)2 − 9 + 2 = (x + 3)2 − 7.

When the number in front of x2 is not 1, take that number out of the first two terms first: 2x2 + 8x + 5 = 2(x2 + 4x) + 5 = 2[(x + 2)2 − 4] + 5 = 2(x + 2)2 − 8 + 5 = 2(x + 2)2 − 3.

Solving. To solve x2 + 6x + 2 = 0, write (x + 3)2 − 7 = 0, so (x + 3)2 = 7, so x + 3 = ±√7, and x = −3 ± √7. Always include both the + and the − square roots.

Turning points. The curve y = (x + p)2 + q has a squared bracket, which is never negative and is 0 when x = −p. So the curve’s lowest point is (−p, q). The x-coordinate has the opposite sign to the number in the bracket. For example y = x2 − 6x + 5 = (x − 3)2 − 4 has its minimum at (3, −4).

xy-11234567-5-4-3-2-112345678(3, -4)
The curve y = x2 − 6x + 5 = (x − 3)2 − 4 has its minimum point (turning point) at (3, −4).

Key ideas

  • x2 + bx + c = (x + b/2)2 − (b/2)2 + c: halve b, then subtract its square.
  • If the number in front of x2 is a (not 1), factor a out of the x2 and x terms first.
  • To solve: rearrange to (x + p)2 = number, square-root both sides (±), then subtract p.
  • y = a(x + p)2 + q has its turning point at (−p, q): a minimum if a > 0 and a maximum if a < 0.
  • Check by expanding the answer.
Worked example 14.10.1
Write x2 + 6x + 2 in the form (x + p)2 + q.

Key words. Completing the square means rewriting x2 + bx + c as (x + p)2 + q.

Method. Completing the square: take out a if it is not 1, halve the number in front of x to get p, then correct the number on the end.

  1. Write down the expression and what we want. We want to write it in the form a(x + p)2 + q, with x appearing only once.
    x2 + 6x + 2
  2. Halve the number in front of x. The bracket we want is (x + something)2. When you expand (x + p)2 you get x2 + 2px + p2, so the number in front of x is twice p. So p is half of it.
    6 ÷ 2 = 3
    The bracket is (x + 3)2.
  3. Expand the bracket to see what it really gives. The bracket gives the right x2 and x terms, but it also gives an extra number that is not in our expression.
    First: x × x = x2
    Outer: x × 3 = 3x
    Inner: 3 × x = 3x
    Last: 3 × 3 = 9
    (x + 3)2 = x2 + 6x + 9
  4. Adjust the number on the end. Our expression has x2 + 6x + 2, but the bracket gave an extra +9 at the end. So we must take that off again and then put on our own 2.
    x2 + 6x + 2 = (x + 3)2 − 9 + 2
    = (x + 3)2 − 7

Check. Expand the answer: (x + 3)2 − 7 gives x2 + 6x + 2, the same as the original. ✓

Watch out. Halve the number in front of x, and then subtract its square. Do not add it.

Worked example 14.10.2
Write x2 − 8x + 5 in the form (x + p)2 + q.

Key words. Completing the square means rewriting x2 + bx + c as (x + p)2 + q.

Method. Completing the square: take out a if it is not 1, halve the number in front of x to get p, then correct the number on the end.

  1. Write down the expression and what we want. We want to write it in the form a(x + p)2 + q, with x appearing only once.
    x2 − 8x + 5
  2. Halve the number in front of x. The bracket we want is (x + something)2. When you expand (x + p)2 you get x2 + 2px + p2, so the number in front of x is twice p. So p is half of it.
    −8 ÷ 2 = −4
    The bracket is (x − 4)2.
  3. Expand the bracket to see what it really gives. The bracket gives the right x2 and x terms, but it also gives an extra number that is not in our expression.
    First: x × x = x2
    Outer: x × (−4) = −4x
    Inner: (−4) × x = −4x
    Last: (−4) × (−4) = 16
    (x − 4)2 = x2 − 8x + 16
  4. Adjust the number on the end. Our expression has x2 − 8x + 5, but the bracket gave an extra +16 at the end. So we must take that off again and then put on our own 5.
    x2 − 8x + 5 = (x − 4)2 − 16 + 5
    = (x − 4)2 − 11

Check. Expand the answer: (x − 4)2 − 11 gives x2 − 8x + 5, the same as the original. ✓

Watch out. Halve the number in front of x, and then subtract its square. Do not add it.

Worked example 14.10.3
Write 2x2 + 8x + 5 in the form a(x + p)2 + q.

Key words. Completing the square means rewriting x2 + bx + c as (x + p)2 + q.

Method. Completing the square: take out a if it is not 1, halve the number in front of x to get p, then correct the number on the end.

  1. Write down the expression and what we want. We want to write it in the form a(x + p)2 + q, with x appearing only once.
    2x2 + 8x + 5
  2. Take the number 2 out of the x2 and x terms only. We can only complete the square when the number in front of x2 is 1. So factorise just the first two terms, and leave the number on the end alone.
    2x2 + 8x + 5 = 2(x2 + 4x) + 5
  3. Complete the square inside the bracket. Halve the number in front of x inside the bracket. Then subtract its square, because squaring the bracket adds it.
    4 ÷ 2 = 2
    x2 + 4x = (x + 2)2 − 4
  4. Multiply the extra number by 2 and tidy up. The −4 is still inside the bracket that is multiplied by 2, so it must be multiplied by 2 to come outside. Then add the number on the end.
    2[(x + 2)2 − 4] + 5
    = 2(x + 2)2 − 8 + 5
    = 2(x + 2)2 − 3

Check. Expand the answer: 2(x + 2)2 − 3 gives 2x2 + 8x + 5, the same as the original. ✓

Watch out. Halve the number in front of x, and then subtract its square. Do not add it.

Worked example 14.10.4
Solve x2 + 6x + 2 = 0 by completing the square. Give your answers in the form p ± √q.

Key words. Completing the square means rewriting x2 + bx + c as (x + p)2 + q. A surd is a square root that is not a whole number.

Method. Completing the square: write the quadratic as a(x + p)2 + q, then rearrange to find x by square-rooting.

  1. Write the equation. We will rewrite the left-hand side so that x appears only once, inside a bracket that is squared.
    x2 + 6x + 2 = 0
  2. Halve the number in front of x. The bracket we want is (x + something)2. When you expand (x + p)2 you get x2 + 2px + p2, so the number in front of x is twice p. So p is half of it.
    6 ÷ 2 = 3
    The bracket is (x + 3)2.
  3. Expand the bracket to see what it really gives. The bracket gives the right x2 and x terms, but it also gives an extra number that is not in our expression.
    First: x × x = x2
    Outer: x × 3 = 3x
    Inner: 3 × x = 3x
    Last: 3 × 3 = 9
    (x + 3)2 = x2 + 6x + 9
  4. Adjust the number on the end. Our expression has x2 + 6x + 2, but the bracket gave an extra +9 at the end. So we must take that off again and then put on our own 2.
    x2 + 6x + 2 = (x + 3)2 − 9 + 2
    = (x + 3)2 − 7
  5. Write the equation using the new form. The expression is now equal to 0.
    (x + 3)2 − 7 = 0
  6. Move the number to the right-hand side. Add 7 to both sides.
    (x + 3)2 = 7
  7. Take the square root of both sides. There are two square roots of a positive number: a positive one and a negative one. For example 3 and −3 both square to make 9. So write ±.
    x + 3 = ±√7
  8. Subtract 3 from both sides. This leaves x on its own. This is the exact answer: it keeps the surd.
    x = −3 ± √7

Check. Substitute x = −5.65: 1 × (−5.65)2 + 6 × (−5.65) + 2 ≈ 0.023, which is very close to 0 (not exactly 0 only because −5.65 is rounded). ✓
Substitute x = −0.35: 1 × (−0.35)2 + 6 × (−0.35) + 2 ≈ 0.023, which is very close to 0 (not exactly 0 only because −0.35 is rounded). ✓

Watch out. Square-rooting gives two answers (±). And the number inside the bracket is half of the number in front of x: remember to halve it, and to use the opposite sign when you solve.

Worked example 14.10.5
Solve 2x2 + 12x + 6 = 0 by completing the square. Give your answers correct to 2 decimal places.

Key words. Completing the square means rewriting x2 + bx + c as (x + p)2 + q. A surd is a square root that is not a whole number.

Method. Completing the square: write the quadratic as a(x + p)2 + q, then rearrange to find x by square-rooting.

  1. Write the equation. We will rewrite the left-hand side so that x appears only once, inside a bracket that is squared.
    2x2 + 12x + 6 = 0
  2. Take the number 2 out of the x2 and x terms only. We can only complete the square when the number in front of x2 is 1. So factorise just the first two terms, and leave the number on the end alone.
    2x2 + 12x + 6 = 2(x2 + 6x) + 6
  3. Complete the square inside the bracket. Halve the number in front of x inside the bracket. Then subtract its square, because squaring the bracket adds it.
    6 ÷ 2 = 3
    x2 + 6x = (x + 3)2 − 9
  4. Multiply the extra number by 2 and tidy up. The −9 is still inside the bracket that is multiplied by 2, so it must be multiplied by 2 to come outside. Then add the number on the end.
    2[(x + 3)2 − 9] + 6
    = 2(x + 3)2 − 18 + 6
    = 2(x + 3)2 − 12
  5. Write the equation using the new form. The expression is now equal to 0.
    2(x + 3)2 − 12 = 0
  6. Move the number to the right-hand side. Add 12 to both sides.
    2(x + 3)2 = 12
  7. Divide both sides by 2. This leaves the bracket squared on its own.
    (x + 3)2 = 12 ÷ 2 = 6
  8. Take the square root of both sides. There are two square roots of a positive number: a positive one and a negative one. For example 3 and −3 both square to make 9. So write ±.
    x + 3 = ±√6
  9. Subtract 3 from both sides. This leaves x on its own. This is the exact answer: it keeps the surd.
    x = −3 ± √6
  10. Use a calculator to round to 2 decimal places. Work out the + and the − separately.
    x = −3 + √6 = −0.5505… ≈ −0.55
    x = −3 − √6 = −5.4495… ≈ −5.45

Check. Substitute x = −5.45: 2 × (−5.45)2 + 12 × (−5.45) + 6 ≈ 0.005, which is very close to 0 (not exactly 0 only because −5.45 is rounded). ✓
Substitute x = −0.55: 2 × (−0.55)2 + 12 × (−0.55) + 6 ≈ 0.005, which is very close to 0 (not exactly 0 only because −0.55 is rounded). ✓

Watch out. Square-rooting gives two answers (±). And the number inside the bracket is half of the number in front of x: remember to halve it, and to use the opposite sign when you solve.

Worked example 14.10.6
Write y = x2 − 4x + 7 in completed-square form and find the coordinates of its turning point.

Key words. The turning point is the lowest point (minimum) or highest point (maximum) of a quadratic curve.

Method. Complete the square: y = a(x + p)2 + q has its turning point at (−p, q).

  1. Write down the expression. The turning point of the graph y = x2 − 4x + 7 can be read straight from the completed-square form.
    x2 − 4x + 7
  2. Halve the number in front of x. The bracket we want is (x + something)2. When you expand (x + p)2 you get x2 + 2px + p2, so the number in front of x is twice p. So p is half of it.
    −4 ÷ 2 = −2
    The bracket is (x − 2)2.
  3. Expand the bracket to see what it really gives. The bracket gives the right x2 and x terms, but it also gives an extra number that is not in our expression.
    First: x × x = x2
    Outer: x × (−2) = −2x
    Inner: (−2) × x = −2x
    Last: (−2) × (−2) = 4
    (x − 2)2 = x2 − 4x + 4
  4. Adjust the number on the end. Our expression has x2 − 4x + 7, but the bracket gave an extra +4 at the end. So we must take that off again and then put on our own 7.
    x2 − 4x + 7 = (x − 2)2 − 4 + 7
    = (x − 2)2 + 3
  5. Read off the turning point. A squared bracket is never negative, and it is exactly 0 when the bracket is 0. That happens when x − 2 = 0, i.e. x = 2. At that point the whole expression equals the number on the end, 3. Every other value of the bracket makes the expression bigger, so this is the minimum.
    (x − 2)2 + 3
    Turning point = (2, 3), a minimum.

Check. Check using the graph: the curve should be symmetrical about x = 2. At x = 2: y = 22 − 4 × 2 + 7 = 4 − 8 + 7 = 3. ✓

Watch out. The x-coordinate of the turning point has the opposite sign to the number inside the bracket: (x + 3)2 gives x = −3.

Watch out

When you complete the square you subtract the square of half the number (not add it), and when you read off the turning point from (x + 3)2 − 7 the x-coordinate is −3, not 3. The number outside the bracket is q, with its own sign: (x + 3)2 − 7 has y-coordinate −7.

Exercise 14J  Completing the square

Non-calculator
1
FWrite each expression in the form (x + p)2 + q.
(a)x2 + 4x + 1
(b)x2 + 10x + 3
(c)x2 − 6x + 2
(d)x2 − 2x − 5
(e)x2 + 3x + 1
(f)x2 − 12x + 40
2
FWrite each expression in the form a(x + p)2 + q.
(a)2x2 + 8x + 3
(b)3x2 − 12x + 5
(c)2x2 − 4x − 1
(d)5x2 + 10x + 2
(e)4x2 + 8x + 9
(f)−x2 + 6x + 1
3
FSolve by completing the square.
x2 + 4x − 1 = 0. Give your answers in the form p ± √q.
4
FSolve by completing the square.
x2 − 6x + 1 = 0. Give your answers in the form p ± √q.
5
FSolve by completing the square.
x2 + 8x + 3 = 0. Give your answers in the form p ± √q.
6
FSolve by completing the square.
x2 − 2x − 5 = 0. Give your answers in the form p ± √q.
7
FSolve by completing the square.
x2 + 6x + 2 = 0. Give your answers correct to 2 decimal places.
8
FSolve by completing the square.
2x2 + 12x + 6 = 0. Give your answers in the form p ± √q.
9
FSolve by completing the square (the numbers are all multiples of 3).
3x2 − 18x + 15 = 0. Give your answers in the form p ± √q.
10
FWrite each quadratic in completed-square form and write down the coordinates of its turning point.
(a)y = x2 + 6x + 5
(b)y = x2 − 4x + 7
(c)y = x2 + 2x − 8
(d)y = 2x2 − 8x + 9
(e)y = x2 − 10x
(f)y = −x2 + 6x + 1
11
PSFind the minimum value of x2 − 6x + 15 and the value of x at which it occurs.
12
RShow that x2 + 6x + 11 is always positive, whatever the value of x.
13
Rx2 − 10x + 30 = (x + p)2 + q for all values of x. Find the values of p and q.
14
RThe curve y = x2 + bx + c has its turning point at (3, −2). Find the values of b and c.
15
RComplete the square to explain why x2 + 6x + 11 = 0 has no real solutions.

Websink Prep UK is an independent site. It is not affiliated with, endorsed by or sponsored by AQA, Pearson Edexcel, OCR, WJEC, Eduqas, CCEA, SQA, GL Assessment, CEM or the Department for Education. All exam board names and trademarks belong to their owners. Past papers are linked from the exam boards' own websites and are not hosted here.

About Websink Prep UK · Find a tutor · Privacy · Terms · Cookie settings