StudyDeck

Completing the Square

Exam code: 4024
Written by: Ashika|Reviewed by: Caroline Carroll|Updated 2 July 2026

Completing the Squarevideo

Completing the Square

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 + c 

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

x2+bx{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true} is the same as x+p2-p2{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true} where p{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true} is half of b{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true}

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

    • Is x2+2x{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true} the same as x+12-12{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true}?

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

  • This works for negative values of b too

    •  x2-20x{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true} can be written as x-102--102{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true} which is x-102-100{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true}

    • 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{"language":"en","fontFamily":"Times New Roman","fontSize":"18"} out as a factor of the x2 and x terms only

    • Factorise the first two terms

    • ax2+bx+c=ax2+bax+c{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true}

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

  • Then complete the square on the bit inside the brackets: x2+bax{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true}

    • This gives ax+p2-p2+c{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true}

      • where p is half of ba{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true}

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

    • ax+p2-ap2+c{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true}

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

    • Usually you are asked to give your final answer in the form  ax+p2+q{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true} 

    • 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{"fontFamily":"Times New Roman","fontSize":"18","autoformat":true,"toolbar":""} = 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{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true}, 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+p2+q{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true} then the turning point is at -p,q{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true}

      • Notice the negative sign in the x-coordinate

      • This links to transformations of graphs

      • A translation of y=x2{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true} by p to the left and q up

    • If y=ax+p2+q{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true} then the turning point is still at -p,q{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true}

      • 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

Solving by Completing the Square

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

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=ax2+bax+c{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true} and so on

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 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{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true} = -5 ± 4 (the same structure)