Lesson 5 of 8 · 18 min

Completing the square

Rewrite a quadratic in turning point form by completing the square, read off its turning point, and solve quadratic equations exactly with the same method.

What you will be able to do

  • Complete the square to write x2+bx+cx^2 + bx + c in the form (x−h)2+k(x - h)^2 + k.
  • Complete the square when a≠1a \ne 1 to write ax2+bx+cax^2 + bx + c as a(x−h)2+ka(x - h)^2 + k.
  • Find the turning point of a quadratic by completing the square.
  • Solve quadratic equations exactly by completing the square.

y=x2−6x+5y = x^2 - 6x + 5 and y=(x−3)2−4y = (x - 3)^2 - 4 are the same function: expand the second one and check. The first hides the turning point, while the second shows it, (3,−4)(3, -4). Completing the square is how you get from the first form to the second.

x2+6xx^2 + 6x is a square with a corner missing. Adding 32=93^2 = 9 completes it: x2+6x+9=(x+3)2x^2 + 6x + 9 = (x + 3)^2.

The picture works for any bb. Split bxbx into two strips of b2x\frac{b}{2}x, and the missing corner is (b2)2\left(\frac{b}{2}\right)^2. Adding it makes a perfect square, so subtract it as well to keep the expression unchanged:

Completing the square
x2+bx=(x+b2)2−(b2)2x^2 + bx = \left(x + \frac{b}{2}\right)^2 - \left(\frac{b}{2}\right)^2
Interactive

Where is the turning point?

Change bb and watch the turning point. Its xx-coordinate is half of bb with the sign changed. Then use cc to set its height.

Worked example

Find the turning point of y=x2−6x+5y = x^2 - 6x + 5

  • Simple familiar
  • Technology free

Find the coordinates of the turning point of y=x2−6x+5y = x^2 - 6x + 5 by completing the square.

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Halve the coefficient of xx, and square it.

  2. Add and subtract that number.

  3. Factorise to (x−h)2(x - h)^2 and collect the constants.

  4. Read off (h,k)(h, k).

Watch out for

  • Writing (x+3)2(x + 3)^2: the sign inside the bracket matches the sign of the xx coefficient.

  • Adding 9 without subtracting it, which changes the function.

Write x2+10x+18x^2 + 10x + 18 in the form (x+p)2+q(x + p)^2 + q. Give pp and qq.

When a≠1a \ne 1, factor aa out of the x2x^2 and xx terms first, complete the square inside the bracket, then multiply back out. The square you subtract inside the bracket is multiplied by aa on the way out, and that is the step students most often miss.

Worked example

Write y=2x2+12x+7y = 2x^2 + 12x + 7 in turning point form

  • Complex familiar
  • Technology free

Write y=2x2+12x+7y = 2x^2 + 12x + 7 in the form y=a(x−h)2+ky = a(x - h)^2 + k, and state the turning point.

5 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Factor aa out of the x2x^2 and xx terms.

  2. Complete the square inside the bracket.

  3. Multiply the subtracted square by aa, and collect the constants.

  4. Read off (h,k)(h, k), and expand to check.

Watch out for

  • Writing 2(x+3)2−9+72(x + 3)^2 - 9 + 7: the −9-9 must be multiplied by 2.

  • Halving 12 instead of 6, giving 2(x+6)22(x + 6)^2.

Common mistake

The subtracted square is multiplied by a

2x2+8x+1=2(x2+4x)+1=2[(x+2)2−4]+1=2(x+2)2−72x^2 + 8x + 1 = 2(x^2 + 4x) + 1 = 2\left[(x + 2)^2 - 4\right] + 1 = 2(x + 2)^2 - 7

Writing 2(x+2)2−4+12(x + 2)^2 - 4 + 1 forgets that the −4-4 is inside a bracket that is multiplied by 2. Expand your answer to check it: 2(x+2)2−7=2x2+8x+8−7=2x2+8x+12(x + 2)^2 - 7 = 2x^2 + 8x + 8 - 7 = 2x^2 + 8x + 1.

By completing the square, find the turning point of y=3x2−12x+5y = 3x^2 - 12x + 5.

Completing the square also solves equations, including ones that do not factorise. Get the equation into the form (x+p)2=q(x + p)^2 = q, then take the square root of both sides. Keep both roots: if (x+p)2=q(x + p)^2 = q and q>0q > 0, then x+p=±qx + p = \pm\sqrt{q}. If q<0q < 0 there are no real solutions, because no real number squares to a negative.

Worked example

Solve x2−4x−3=0x^2 - 4x - 3 = 0 by completing the square

  • Simple familiar
  • Technology free

Solve x2−4x−3=0x^2 - 4x - 3 = 0 by completing the square. Give exact answers.

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Complete the square on the x2x^2 and xx terms.

  2. Rearrange to (x−h)2=q(x - h)^2 = q.

  3. Take square roots, keeping ±\pm, and solve.

Watch out for

  • Forgetting the ±\pm and giving only 2+72 + \sqrt{7}.

  • Getting (x−2)2=−1(x - 2)^2 = -1 by adding the 4 instead of moving it: check the constant carefully.

Solve x2+2x−5=0x^2 + 2x - 5 = 0 by completing the square. Give exact answers.

x =

Press Enter or type a comma after each value.

Where x=−b2ax = -\frac{b}{2a} comes from

Complete the square on the general quadratic:

ax2+bx+c=a(x2+bax)+c=a[(x+b2a)2−b24a2]+c=a(x+b2a)2+c−b24a\begin{aligned} ax^2 + bx + c &= a\left(x^2 + \frac{b}{a}x\right) + c \\ &= a\left[\left(x + \frac{b}{2a}\right)^2 - \frac{b^2}{4a^2}\right] + c \\ &= a\left(x + \frac{b}{2a}\right)^2 + c - \frac{b^2}{4a} \end{aligned}

This is turning point form with h=−b2ah = -\frac{b}{2a} and k=c−b24ak = c - \frac{b^2}{4a}. So the axis of symmetry of every quadratic is x=−b2ax = -\frac{b}{2a}.

Exam tip

When the question names the method

If a question says "by completing the square", the method is what is being assessed. A turning point read from a graphics calculator, or roots from the quadratic formula, may earn no marks even when they are right. Show the line where you add and subtract (b2)2\left(\frac{b}{2}\right)^2.

Summary

  • x2+bx=(x+b2)2−(b2)2x^2 + bx = \left(x + \frac{b}{2}\right)^2 - \left(\frac{b}{2}\right)^2: halve bb, square it, then add and subtract it.

  • Turning point form a(x−h)2+ka(x - h)^2 + k shows the turning point (h,k)(h, k).

  • When a≠1a \ne 1, factor aa out of the xx terms first, and multiply the subtracted square by aa.

  • To solve, reach (x+p)2=q(x + p)^2 = q, then x=−p±qx = -p \pm \sqrt{q}. There are no real solutions if q<0q < 0.

  • Completing the square in general gives the axis of symmetry x=−b2ax = -\frac{b}{2a}.

Finished the lesson?

Try the 3 quick checks above and the lesson completes itself, or mark it complete now.

Lesson 5 of 80% read

Save your progress with a free account