Completing the Square (Cambridge O Level Maths)

Revision Note

Test yourself
Mark

Author

Mark

Last updated

Did this video help you?

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

x squared plus b x is the same as open parentheses x plus p close parentheses squared minus p squared where p is half of b

  • Check this is true by expanding the right-hand side
    • Is x squared plus 2 x the same as open parentheses x plus 1 close parentheses squared minus 1 squared?
      • Yes: (x + 1)(x + 1) - 12 = x2 + 2x + 1 - 1 = x2 + 2x
  • This works for negative values of b too
    •  x squared minus 20 x can be written as open parentheses x minus 10 close parentheses squared minus open parentheses negative 10 close parentheses squared which is open parentheses x minus 10 close parentheses squared minus 100
    • 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
    • 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
    • a x squared plus b x plus c equals a open square brackets x squared plus b over a x close square brackets plus c
      • Use square-shaped brackets here to avoid confusion with curly brackets later
  • Then complete the square on the bit inside the square-brackets: x squared plus b over a x
    • This gives a open square brackets open parentheses x plus p close parentheses squared minus p squared close square brackets plus c
      • where p is half of b over a
  • Finally multiply this expression by the a outside the square-brackets and add the c
    • a open parentheses x plus p close parentheses squared minus a p squared plus c
    • This looks far more complicated than it is in practice!
      • Usually you are asked to give your final answer in the form  a open parentheses x plus p close parentheses squared plus q 
  • For quadratics like negative x squared plus b x plus c, do the above with a = -1

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

 

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 equals open parentheses x plus p close parentheses squared plus q then the turning point is at open parentheses negative p comma q close parentheses
      • Notice the negative sign in the x-coordinate
      • This links to transformations of graphs (translating y equals x squared by p to the left and q up)
    • If y equals a open parentheses x plus p close parentheses squared plus q then the turning point is still at open parentheses negative p comma q close parentheses
      • It's at a minimum point if a > 0
      • It's at a maximum point if a < 0
  • It 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 and/or show results using the fact that any "squared term", i.e. the bracket (x ± p)2, will always be greater than or equal to 0
    • You cannot square a number and get a negative value

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

Examiner Tip

  • 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 equals x squared plus 6 x minus 11.

Find half of +6 (call this p)
 

p equals 6 over 2 equals 3
 
Write x2 + 6x in the form (x + p)2 - p2 
 
x squared plus 6 x is the same as open parentheses x plus 3 close parentheses squared minus 3 squared
 
Put this result into the equation of the curve
 
y equals open parentheses x plus 3 close parentheses squared minus 3 squared minus 11
 
Simplify the numbers
 
y equals open parentheses x plus 3 close parentheses squared minus 20
 
Use that the turning point of y equals open parentheses x plus p close parentheses squared plus q is at open parentheses negative p comma q close parentheses 
 
p = 3 and q = -20
turning point at (-3, -20)

(b)
Write negative 3 x squared plus 12 x plus 24 in the form a open parentheses x plus p close parentheses squared plus q
 

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

negative 3 open square brackets x squared minus 4 x close square brackets plus 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)
 

negative 3 open square brackets open parentheses x minus 2 close parentheses squared minus open parentheses negative 2 close parentheses squared close square brackets plus 24
 

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

 

negative 3 open square brackets open parentheses x minus 2 close parentheses squared minus 4 close square brackets plus 24
 

Multiply -3 by all the terms inside the square-shaped brackets
 

negative 3 open parentheses x minus 2 close parentheses squared plus 12 plus 24
 

Simplify the numbers
 

negative 3 open parentheses x minus 2 close parentheses squared plus 36
 

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

Error converting from MathML to accessible text.

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 called 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  = ±4 - 5
      • x  = -1 or x  = -9
  • If the equation is ax2 + bx + c = 0 with a number in front of x2, then divide both sides by a first, before completing the square 

How does completing the square link to the quadratic formula?

  • The quadratic formula actually comes from completing the square to solve ax2 + bx + c = 0
    • a, b and c are left as letters, to be 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  = ± 4 - 5 (from above) 
      • by the quadratic formula,  x equals fraction numerator negative 10 plus-or-minus square root of 64 over denominator 2 end fraction equals negative 5 plus-or-minus 8 over 2 = ± 4 - 5 (the same structure)

Examiner Tip

  • When making x the subject to find the solutions at the end, don't expand the squared brackets back out again!
    •  Remember to use ±√ to get two solutions

Worked example

Solve 2 x squared minus 8 x minus 24 equals 0 by completing the square

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

x squared minus 4 x minus 12 equals 0
 

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

 

open parentheses x minus 2 close parentheses squared minus open parentheses negative 2 close parentheses squared minus 12 equals 0
 

Simplify the numbers
 

table attributes columnalign right center left columnspacing 0px end attributes row cell open parentheses x minus 2 close parentheses squared minus 4 minus 12 end cell equals 0 row cell open parentheses x minus 2 close parentheses squared minus 16 end cell equals 0 end table
 

Add 16 to both sides
 

open parentheses x minus 2 close parentheses squared equals 16
 

Square root both sides
Include the ± sign to get two solutions

 

x minus 2 equals plus-or-minus square root of 16 equals plus-or-minus 4
 

Add 2 to both sides
 

x equals plus-or-minus 4 plus 2
 

Work out each solution separately

x = 6 or x = -2

You've read 0 of your 10 free revision notes

Unlock more, it's free!

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

the (exam) results speak for themselves:

Did this page help you?

Mark

Author: Mark

Expertise: Maths

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.