Completing the Square (Cambridge (CIE) IGCSE Maths: Extended): Revision Note

Exam code: 0580 & 0980

Completing the Square

How can I rewrite the first two terms of a quadratic expression as the difference of two squares?

  • Look at the quadratic expression x2 + bx +

  • The first two terms can be written as the difference of two squares using the following rule

x2+bx is the same as (x+p)2p2 where p is half of b

  • Check this is true by expanding the right-hand side

    • Is x2+2x the same as (x+1)212?

      • Yes: (x + 1)(x + 1) - 12 = x2 + 2x + 1 - 1 = x2 + 2x

  • This works for negative values of b too

    •  x220x can be written as (x10)2(10)2 which is (x10)2100

    • A negative b does not change the sign at the end

How do I complete the square?

  • Completing the square is a way to rewrite a quadratic expression in a form containing a squared bracket

  • To complete the square on x2 + 10x + 9

    • Use the rule above to replace the first two terms, x2 + 10x, with (x + 5)2 - 52

    • then add 9:  (x + 5)2 - 52 + 9

    • simplify the numbers:  (x + 5)2 - 25 + 9

    • answer: (x + 5)2 - 16 

How do I complete the square when there is a coefficient in front of the x2 term?

  • You first need to take a out as a factor of the x2 and x terms only

    • Factorise the first two terms

    • ax2+bx+c=a[x2+bax]+c

      • Use square-shaped brackets here to avoid confusion with round brackets later

  • Then complete the square on the bit inside the brackets: x2+bax

    • This gives a[(x+p)2p2]+c

      • where p is half of ba

  • Finally multiply this expression through by a (from outside the square brackets) and add the c on to the end

    • a(x+p)2ap2+c

      • This looks far more complicated than it is in practice!

    • Usually you are asked to give your final answer in the form  a(x+p)2+q 

    • For example, y = 4x2 + 16x + 5

      • Factorise out 'a' on the right-hand side (use square brackets)

        • y = 4[x2 + 4x] + 5

      • Replace x2 + 4x with (x + 2)2 - 22  (because p = 42 = 2)

        • y = 4[(x + 2)2 - 22] + 5

      • Simplify the terms inside the square brackets

        • y = 4[(x + 2)2 - 4] + 5

      • Multiply everything inside the square brackets by 4

        • y = 4(x + 2)2 - 16 + 5

      • Simplify to get the final answer

        • y = 4(x + 2)2 - 11

  • For quadratics like x2+bx+c, do the above but with a = -1

How do I find the turning point by completing the square?

  • Completing the square helps us find the turning point on a quadratic graph

    • If y=(x+p)2+q then the turning point is at (p,q)

      • Notice the negative sign in the x-coordinate

      • This links to transformations of graphs

      • A translation of y=x2 by p to the left and q up

    • If y=a(x+p)2+q then the turning point is still at (p,q)

      • The a does not change the coordinates

      • The turning point is a minimum point if a > 0

      • or a maximum point if a < 0

  • This can also help you create the equation of a quadratic when given the turning point

Completing the square Notes Diagram 3, A Level & AS Level Pure Maths Revision Notes
  • It can also be used to prove or show results using the fact that any squared term, such as the squared bracket (x ± p)2, will always be greater than or equal to 0

    • You cannot square a number and get a negative value

    • The smallest a squared term can be is 0

Completing the square Notes Diagram 4, A Level & AS Level Pure Maths Revision Notes

Examiner Tips and Tricks

  • To know if you have completed the square correctly, expand your answer to check

Worked Example

(a) By completing the square, find the coordinates of the turning point on the graph of y=x2+6x11.

Answer:

Find half of +6 (call this p)

p=62=3

Write x2 + 6x in the form (x + p)2 - p2

x2+6x is the same as (x+3)232

Put this result into the equation of the curve

y=(x+3)23211 

Simplify the numbers

y=(x+3)220 

Use the fact that the turning point of y=(x+p)2+q is at (p,q) 
Here p = 3 and q = -20

turning point at (-3, -20)

(b) Write 3x2+12x+24 in the form a(x+p)2+q

Answer:

Factorise -3 out of the first two terms only
Use square-shaped brackets

3[x24x]+24 

Complete the square on the x2 - 4x inside the brackets
Write in the form (x + p)2 - p2 where p is half of -4

3[(x2)2(2)2]+24 

Simplify the numbers inside the brackets
(-2)2 is 4

3[(x2)24]+24 

Multiply -3 by all the terms inside the square brackets
(You do not multiply -3 by the 24)

3(x2)2+12+24 

Simplify the numbers

3(x2)2+36 

This is now in the form a(x + p)2 + q where a = -3, p = -2 and q = 36

3(x2)2+36

Solving by Completing the Square

How do I solve a quadratic equation by completing the square?

  • To solve x2 + bx + c = 0 

    • replace the first two terms, x2 + bx, with (x + p)2 - p2 where p is half of b

    • This is completing the square

      • x2 + bx + c = 0 becomes (x + p)2 - p2 + c = 0

      • (where p is half of b)

    • rearrange this equation to make x the subject (using ±√)

  • For example, solve x2 + 10x + 9 = 0 by completing the square

    • x2 + 10x becomes (x + 5)2 - 52

    • so x2 + 10x + 9 = 0 becomes (x + 5)2 - 52 + 9 = 0

    • make x the subject (using ±√)

      • (x + 5)2 - 25 + 9 = 0

      • (x + 5)2 = 16

      • x + 5 = ±√16

      • x + 5 = ±4

      • x  = -5 ±4

      • x  = -1 or x  = -9

  • It also works with numbers that lead to surds

    • The answers found will be in exact (surd) form

Examiner Tips and Tricks

  • When making x the subject to find the solutions, don't expand the squared bracket back out again!

    •  Remember to use ±√ to get two solutions

How do I solve by completing the square when there is a coefficient in front of the x2 term?

  • If the equation is ax2 + bx + c = 0 with a number (other than 1) in front of x2

    • you can divide both sides by a first (before completing the square)

      • For example 3x2 + 12x + 9 = 0

      • Divide both sides by 3

        • x2 + 4x + 3 = 0

      • Complete the square on this easier equation

  • This trick only works when completing the square to solve a quadratic equation

    • i.e. it has an "=0" on the right-hand side

  • Don't do this when using completing the square to rewrite a quadratic expression in a new form

    • i.e. when there is no "=0"

    • For that, you must factorise out the a (but not divide by it)

      • ax2+bx+c=a[x2+bax]+c and so on

  • The quadratic formula actually comes from completing the square to solve ax2 + bx + c = 0

    • a, b and c are left as letters when completing the square

      • This makes it as general as possible

  • You can see hints of this when you solve quadratics 

    • For example, solving x2 + 10x + 9 = 0 

      • by completing the square, (x + 5)2 = 16 so x  = -5 ± 4 (as above) 

      • by the quadratic formula,  x=10±642=5±82 = -5 ± 4 (the same structure)

Worked Example

Solve 2x28x24=0 by completing the square.

Answer:

Divide both sides by 2 to make the quadratic start with x2 

x24x12=0 

Halve the middle number, -4, to get -2
Replace the first two terms, x2 - 4x, with (x - 2)2 - (-2)2

(x2)2(2)212=0 

Simplify the numbers

(x2)2412=0(x2)216=0 

Add 16 to both sides

(x2)2=16

Take the square root of both sides
Include the ± sign to get two solutions

x2=±16=±4 

Add 2 to both sides

x=2±4

Work out each solution separately

x = 6  or  x = -2

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Build on this topic

Mark Curtis

Author: Mark Curtis

Expertise: Maths Content Creator

Mark graduated twice from the University of Oxford: once in 2009 with a First in Mathematics, then again in 2013 with a PhD (DPhil) in Mathematics. He has had nine successful years as a secondary school teacher, specialising in A-Level Further Maths and running extension classes for Oxbridge Maths applicants. Alongside his teaching, he has written five internal textbooks, introduced new spiralling school curriculums and trained other Maths teachers through outreach programmes.

Dan Finlay

Reviewer: Dan Finlay

Expertise: Portfolio Lead

Dan graduated from the University of Oxford with a First class degree in mathematics. As well as teaching maths for over 8 years, Dan has marked a range of exams for Edexcel, tutored students and taught A Level Accounting. Dan has a keen interest in statistics and probability and their real-life applications.