Completing the square is a way to rewrite a quadratic into turning point form. The main move is finding the magic number.
Find the magic number
Add and subtract this number. That changes the shape of the expression, but not its value.
Start with the move
Example 1
Complete the square:
Find the magic number. Halve the coefficient of , then square it.
Add and subtract the magic number. This keeps the total value of the expression exactly the same.
Recognise that the first three terms are a perfect square.
Rewrite the perfect square and leave the subtracted magic number outside.
General form
Where the trick comes from
Why do we halve the middle number and square it? It helps to look at what happens when we multiply out a perfect square.
The pattern: working backwards
Think about expanding . Using FOIL or grid multiplication, we get:
Notice two things about our final expression:
- The middle number () is double the original number ().
- The final number () is that same original number squared ().
So, if we only start with , we reverse-engineer this pattern: halve the to get back to , then square it to find the missing piece ().
Optional: why this works in general
The general algebraic proof
If a quadratic starts with , we want to force it to match that perfect square structure. To do that, we equate the middle terms:
The final term of the perfect square must be , so the magic number is:
We add this value to create the perfect square, then subtract it to keep the expression unchanged.
More examples
Example 2: with a constant
Find the magic number from the coefficient of x.
Add and subtract the magic number.
Recognise the perfect square.
Simplify the leftover constants.
Example 3: negative middle term
The magic number is still positive because it is squared.
Add and subtract the magic number.
Recognise the perfect square.
Simplify the leftover constants.
Why do this?
Completing the square is useful because it rewrites a quadratic in a form that reveals structure. Later, this helps with turning points, graphing, and sometimes factorising.
Worked walkthrough
Worked walkthrough