Completing the Square (SQA National 5 Maths): Revision Note

Exam code: X847 75

Roger B

Written by: Roger B

Reviewed by: Dan Finlay

Updated on

Completing the square in a quadratic expression

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

  • Look at the quadratic expression x2+px+q 

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

x2+px is the same as (x+p2)2−(p2)2

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

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

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

  • This works for negative values of  ptoo

    •  x2−20x can be written as (x−10)2−(−10)2 which is (x−10)2−100

    • A negative  pdoes not change the sign at the end

How do I complete the square?

  • Completing the square is a way to rewrite a quadratic expression into 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

    • Substitute back into the original expression:  (x + 5)2 - 52 + 9

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

    • answer: (x + 5)2 - 16 

  • Completing the square can also be used to prove or show results using the fact that any squared term, such as the squared bracket (x ± a)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 that it gets you back to the original form.

Worked Example

Express x2+6x−11 in the form (x+a)2+b.

Answer:

Use x2+px=(x+p2)2−(p2)2 to rewrite x2+6x

  • Here  p=6, so p2=3

x2+6x=(x+3)2−32=(x+3)2−9

Substitute that back into the original expression

x2+6x−11=(x+3)2−9−11

Simplify the numbers at the end

=(x+3)2−20

(x+3)2−20

Unlock more, it's free!

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

the (exam) results speak for themselves:

Build on this topic

Roger B

Author: Roger B

Expertise: Development Editor

Roger's teaching experience stretches all the way back to 1992, and in that time he has taught students at all levels between Year 7 and university undergraduate. Having conducted and published postgraduate research into the mathematical theory behind quantum computing, he is more than confident in dealing with mathematics at any level the exam boards might throw at you.

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.