Completing the Square
On this page
How to complete the square for a quadratic, read off the turning point of its graph, and solve an equation with a squared bracket, giving both solutions.
Builds on: Expanding Double Brackets, Surds
The method
Halve the number of x's, keeping its sign. x^2-10x starts (x-5)^2, not (x-10)^2.
Always take away the half squared. It is positive even when the half is negative: x^2-10x=(x-5)^2-25
Check by expanding: (x+5)^2-22=x^2+10x+25-22=x^2+10x+3
Now try this
Write x^2+12x+5 in the form (x+a)^2+b where a and b are integers.
- Half of 12 is 6: (x+6)^2=x^2+12x+36
- x^2+12x+5=(x+6)^2-36+5
- =(x+6)^2-31
Worked example 1: The turning point from the completed square
Given that x^2-12x+7=(x-a)^2-b for all values of x,
(i) find the value of a and the value of b.
(ii) Hence write down the coordinates of the turning point on the graph of y=x^2-12x+7
- (i) Half of −12 is −6: (x-6)^2=x^2-12x+36
- x^2-12x+7=(x-6)^2-36+7=(x-6)^2-29
- Match it with (x-a)^2-b: a=6 and b=29
- The form already has the minus signs, so a and b are positive here. a=-6, b=-29 loses the mark.
- (ii) (x-6)^2 is never negative, and it is 0 when x=6. Then y=-29, the lowest value y takes.
- The turning point is (6,-29). Its x-coordinate makes the bracket 0, so its sign is the opposite of the number in the bracket.
- With a letter the steps are the same: x^2-2kx+9=(x-k)^2+9-k^2, so the turning point is (k,\ 9-k^2).
Now try this
Find the coordinates of the turning point on the graph of y=x^2+10x+18
- Half of 10 is 5: x^2+10x+18=(x+5)^2-25+18=(x+5)^2-7
- (x+5)^2 is 0 when x=-5, and then y=-7
- The turning point is (-5,-7)
Worked example 2: Both square roots
Solve (x+1)^2=6
Give your solutions correct to 3 significant figures.
- x+1=\sqrt6 or x+1=-\sqrt6
- x=-1+\sqrt6=1.449\ldots or x=-1-\sqrt6=-3.449\ldots
- x=1.45 or x=-3.45
- A positive number has two square roots. Writing only x+1=\sqrt6 loses a solution.
Now try this
Solve (x-3)^2=10
Give your solutions correct to 3 significant figures.
- x-3=\sqrt{10} or x-3=-\sqrt{10}
- x=3+\sqrt{10}=6.162\ldots or x=3-\sqrt{10}=-0.162\ldots
- x=6.16 or x=-0.162
Worked example 3: Solving by completing the square
Solve x^2+6x-4=0 by completing the square.
Give your solutions in the form a\pm\sqrt b where a and b are integers.
- x^2+6x-4=(x+3)^2-9-4=(x+3)^2-13
- (x+3)^2-13=0so (x+3)^2=13
- x+3=\pm\sqrt{13}
- x=-3\pm\sqrt{13}
- Leave the root in: the form asked for is exact, not a decimal.
Now try this
Solve x^2-2x-4=0 by completing the square.
Give your solutions in the form a\pm\sqrt b where a and b are integers.
- x^2-2x-4=(x-1)^2-1-4=(x-1)^2-5
- (x-1)^2=5so x-1=\pm\sqrt5
- x=1\pm\sqrt5
Next: Turning Points by Completing the Square, Completing the Square - Harder
More on this topic: Completing the Square worksheet with full solutions