Complete the square by halving the coefficient of x{x}x
Completing the square is on the Higher tier only. It rewrites a quadratic in a form that gives its turning point and exact roots.
Completing the square
Completing the square means writing a quadratic in completed square form a(x+p)2+q,{a(x + p)^2 + q\text{,}}a(x+p)2+q, where a,{a\text{,}}a, p{p}p and q{q}q are constants.
The new square's side is x{x}x plus half the coefficient of x.{x\text{.}}x.
Expanding the bracket, as in the guide Expanding and Factorising Quadratics, proves the general rule:
x2+bx=(x+b2)2−(b2)2 x^2 + bx = \left(x + \frac{b}{2}\right)^2 - \left(\frac{b}{2}\right)^2 x2+bx=(x+2b)2−(2b)2Here b{b}b is the coefficient of x.{x\text{.}}x. Use the rule to find a quadratic's turning point without plotting its graph.
Turning point
The turning point of a quadratic graph is its minimum or maximum point, where the curve changes direction.
A square is never negative, so (x+p)2+q{(x + p)^2 + q}(x+p)2+q takes its least value, q,{q\text{,}}q, when the bracket is zero, at x=−p.{x = -p\text{.}}x=−p. The turning point is (−p,q).{(-p, q)\text{.}}(−p,q).
To complete the square on x2+bx+c:{x^2 + bx + c\text{:}}x2+bx+c:
- Halve b{b}b for the number in the bracket.
- Subtract that number squared.
- Add c{c}c and combine the constants.
Completing the square with an odd coefficient
Write x2+3x−1{x^2 + 3x - 1}x2+3x−1 in the form (x+p)2+q.{(x + p)^2 + q\text{.}}(x+p)2+q.
- Half of 3 is 1.5,{1.5\text{,}}1.5, so the bracket is (x+1.5)2.{(x + 1.5)^2\text{.}}(x+1.5)2.
- (x+1.5)2=x2+3x+2.25,{(x + 1.5)^2} = x^2 + 3x + 2.25\text{,}(x+1.5)2=x2+3x+2.25, so subtract 2.25,{2.25\text{,}}2.25, giving x2+3x−1=(x+1.5)2−2.25−1.x^2 + 3x - 1 = {(x + 1.5)^2} - 2.25 - 1\text{.}x2+3x−1=(x+1.5)2−2.25−1.
- −2.25−1=−3.25,{-2.25 - 1 = -3.25\text{,}}−2.25−1=−3.25, so (x+1.5)2−3.25{(x + 1.5)^2 - 3.25}(x+1.5)2−3.25 gives p=1.5{p = 1.5}p=1.5 and q=−3.25.{q = -3.25\text{.}}q=−3.25.
For a given form such as (x−a)2−b,{(x - a)^2 - b\text{,}}(x−a)2−b, complete the square first, then match each number to its letter.
Wrong. The turning point of y=(x+5)2−1{y = (x + 5)^2 - 1}y=(x+5)2−1 is (5,−1).{(5, -1)\text{.}}(5,−1).
Right. The bracket is zero when x=−5,{x = -5\text{,}}x=−5, so the turning point is (−5,−1).{(-5, -1)\text{.}}(−5,−1).
Wrong. x2−8x+5=(x−4)2−11,x^2 - 8x + 5 = {(x - 4)^2} - 11\text{,}x2−8x+5=(x−4)2−11, so in the form (x−a)2−b,{(x - a)^2 - b\text{,}}(x−a)2−b, a=−4{a = -4}a=−4 and b=−11.{b = -11\text{.}}b=−11.
Right. The form already holds both minus signs, so (x−4)2−11{(x - 4)^2 - 11}(x−4)2−11 gives a=4{a = 4}a=4 and b=11.{b = 11\text{.}}b=11.
Take out the coefficient of x2{x^2}x2 before completing the square
When x2{x^2}x2 has a coefficient, take it out of the x2{x^2}x2 and x{x}x terms only before completing the square. The turning point of a(x+p)2+q{a(x + p)^2 + q}a(x+p)2+q is still (−p,q).{(-p, q)\text{.}}(−p,q).
Each line of working equals 4x2+16x+9,{4x^2 + 16x + 9\text{,}}4x2+16x+9, so the curve never changes.
Wrong. 3x2−18x+20=3[(x−3)2−9]+20=3(x−3)2−9+20=3(x−3)2+11,3x^2 - 18x + 20 = 3[{(x - 3)^2} - 9] + 20 = 3{(x - 3)^2} - 9 + 20 = 3{(x - 3)^2} + 11\text{,}3x2−18x+20=3[(x−3)2−9]+20=3(x−3)2−9+20=3(x−3)2+11, so the turning point is (3,11).{(3, 11)\text{.}}(3,11).
Right. The −9{-9}−9 is inside the square bracket, so it is multiplied by 3 too. 3(x−3)2−27+20=3(x−3)2−7,3{(x - 3)^2} - 27 + 20 = 3{(x - 3)^2} - 7\text{,}3(x−3)2−27+20=3(x−3)2−7, so the turning point is (3,−7).{(3, -7)\text{.}}(3,−7).
Dividing 4x2+16x+9{4x^2 + 16x + 9}4x2+16x+9 by 4 instead gives x2+4x+2.25,{x^2 + 4x + 2.25\text{,}}x2+4x+2.25, a different curve with turning point (−2,−1.75).{(-2, -1.75)\text{.}}(−2,−1.75).
A negative coefficient of x2{x^2}x2 gives a maximum. Taking it out changes the sign of every term inside the bracket.
A maximum turning point
Show that the turning point of y=1−6x−3x2{y = 1 - 6x - 3x^2}y=1−6x−3x2 is (−1,4).{(-1, 4)\text{.}}(−1,4).
- Taking −3{-3}−3 out of the x2{x^2}x2 and x{x}x terms gives y=−3(x2+2x)+1.{y = -3(x^2 + 2x) + 1\text{.}}y=−3(x2+2x)+1.
- Half of 2 is 1, so x2+2x=(x+1)2−1{x^2 + 2x = (x + 1)^2 - 1}x2+2x=(x+1)2−1 and y=−3[(x+1)2−1]+1.{y = -3[(x + 1)^2 - 1] + 1\text{.}}y=−3[(x+1)2−1]+1.
- Multiply back by −3,{-3\text{,}}−3, so y=−3(x+1)2+3+1=−3(x+1)2+4.y = -3{(x + 1)^2} + 3 + 1 = -3{(x + 1)^2} + 4\text{.}y=−3(x+1)2+3+1=−3(x+1)2+4.
- The bracket is zero at x=−1,{x = -1\text{,}}x=−1, so the turning point is the maximum (−1,4).{(-1, 4)\text{.}}(−1,4).
In a "show that" question, write the completed square in full, then a line linking it to the given point. Unless the question says "by completing the square", substituting the x{x}x-coordinate also finds y.{y\text{.}}y.
Sketch a quadratic from its completed square
A sketch of a quadratic labels the points asked for exactly, using the completed square, not a table of values:
- the turning point
- the y{y}y-intercept
- the roots, where the curve meets the x{x}x-axis
The roots lie 2{\sqrt{2}}2 either side of the turning point's x{x}x-coordinate, 3.
Setting the completed square equal to 0 solves the quadratic equation, giving exact roots when there are any, in surd form where needed.
Sketching with exact roots
Sketch y=2x2+4x−8,{y = 2x^2 + 4x - 8\text{,}}y=2x2+4x−8, labelling the turning point and the exact axis intercepts.
- Take out 2 and complete the square, so y=2(x2+2x)−8=2[(x+1)2−1]−8=2(x+1)2−2−8=2(x+1)2−10.y = 2{(x^2 + 2x)} - 8 = 2[{(x + 1)^2} - 1] - 8 = 2{(x + 1)^2} - 2 - 8 = 2{(x + 1)^2} - 10\text{.}y=2(x2+2x)−8=2[(x+1)2−1]−8=2(x+1)2−2−8=2(x+1)2−10.
- The bracket is zero at x=−1,{x = -1\text{,}}x=−1, so the turning point is the minimum (−1,−10).{(-1, -10)\text{.}}(−1,−10).
- At x=0,{x = 0\text{,}}x=0, y=2(0+1)2−10=−8,{y = 2(0 + 1)^2 - 10 = -8\text{,}}y=2(0+1)2−10=−8, giving (0,−8).{(0, -8)\text{.}}(0,−8).
- At y=0,{y = 0\text{,}}y=0, 2(x+1)2=10,{2(x + 1)^2 = 10\text{,}}2(x+1)2=10, so (x+1)2=5{(x + 1)^2 = 5}(x+1)2=5 and x=−1±5.{x = -1 \pm \sqrt{5}\text{.}}x=−1±5.
- Draw the U-shaped curve through all four points, labelled.
With a letter in the coefficients, give each point in terms of the letter. Bracket half the coefficient before squaring it.
Sketching in terms of a letter
Sketch y=x2−4kx+3k2,{y = x^2 - 4kx + 3k^2\text{,}}y=x2−4kx+3k2, where k>0,{k > 0\text{,}}k>0, labelling the turning point and the axis intercepts.
- Half of 4k{4k}4k is 2k,{2k\text{,}}2k, and (2k)2=4k2,{(2k)^2 = 4k^2\text{,}}(2k)2=4k2, so y=(x−2k)2−4k2+3k2=(x−2k)2−k2.y = {(x - 2k)^2} - 4k^2 + 3k^2 = {(x - 2k)^2} - k^2\text{.}y=(x−2k)2−4k2+3k2=(x−2k)2−k2.
- The turning point is (2k,−k2),{(2k, -k^2)\text{,}}(2k,−k2), and x=0{x = 0}x=0 gives the y{y}y-intercept (0,3k2).{(0, 3k^2)\text{.}}(0,3k2).
- At y=0,{y = 0\text{,}}y=0, (x−2k)2=k2,{(x - 2k)^2 = k^2\text{,}}(x−2k)2=k2, so x−2k=±k,{x - 2k = \pm k\text{,}}x−2k=±k, giving x=k{x = k}x=k and x=3k.{x = 3k\text{.}}x=3k.
- Draw the U-shaped curve through all four points, labelled.
As k>0,{k > 0\text{,}}k>0, the minimum (2k,−k2){(2k, -k^2)}(2k,−k2) lies right of the y{y}y-axis and below the x{x}x-axis, so the curve has two roots.
- Why does (x+p)2+q{(x + p)^2 + q}(x+p)2+q turn at x=−p,{x = -p\text{,}}x=−p, not x=p?{x = p\text{?}}x=p?
- Why must the subtracted square be multiplied by the coefficient you took out?
What is the turning point of y=3(x+4)2?{y = 3(x + 4)^2\text{?}}y=3(x+4)2?
Solution
(−4,0){(-4, 0)}(−4,0)
What is c{c}c when x2−14x+c=(x−7)2?{x^2 - 14x + c = (x - 7)^2\text{?}}x2−14x+c=(x−7)2?
Solution
49