StudyDeck

Completing the Square

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

Completing the Square

Completing the square

What is completing the square?

  • Completing the square is another way of writing a quadratic function

  • It means rewriting y =ax2+bx+c{"language":"en","fontFamily":"Times New Roman","fontSize":"18"} in the form y = a(x+p)2+q{"language":"en","fontFamily":"Times New Roman","fontSize":"18"}

    • The key point is that x{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true} now only occurs once in the equation

  • It can be used to solve quadratic equations, sketch their graphs and to find the coordinates of the turning point

How do I complete the square?

The method used will depend on the value of the coefficient of the x2{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true} term in y =ax2+bx+c{"language":"en","fontFamily":"Times New Roman","fontSize":"18"}

  • When a=1{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true}

    • 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}

    • q{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true} is c-p2{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true}

Example of completing the square

 

  • When a ≠ 1 

    • First take a factor of a{"language":"en","fontFamily":"Times New Roman","fontSize":"18"} out of the x2{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true} and x{"language":"en","fontFamily":"Times New Roman","fontSize":"18","autoformat":true} terms

    • Then continue as above

Harder example of completing the square

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