Skip to content

Completing the square: the method, solving equations and finding turning points

TutorAura guide · Updated

Completing the square rewrites a quadratic like x2+6x+1x^2 + 6x + 1 in the form (x+3)2−8(x + 3)^2 - 8. The new form has only one xx, which makes two things easy: solving the equation exactly (with surds if needed), and reading off the turning point of the graph, here (−3,−8)(-3, -8). It's also where the quadratic formula comes from. The method is short once you've seen the pattern: halve the coefficient of xx, square it, and adjust.

Key takeaways

  • x² + bx + c = (x + b/2)² − (b/2)² + c.
  • Take out the coefficient of x² first if it isn't 1.
  • y = (x + p)² + q has its turning point at (−p, q).
  • To solve, rearrange to (x + p)² = number, then square root both sides, remembering ±.

The method when the coefficient of x² is 1

x2+bx+c=(x+b2)2−(b2)2+cx^2 + bx + c = \left(x + \tfrac{b}{2}\right)^2 - \left(\tfrac{b}{2}\right)^2 + c

Example: complete the square for x2+6x+1x^2 + 6x + 1.

  1. Halve the coefficient of xx: 6÷2=36 \div 2 = 3, so start with (x+3)2(x + 3)^2.
  2. (x+3)2=x2+6x+9(x + 3)^2 = x^2 + 6x + 9, which has an extra +9+9 we don't want. Subtract it: (x+3)2−9(x + 3)^2 - 9.
  3. Add the constant from the original: (x+3)2−9+1=(x+3)2−8(x + 3)^2 - 9 + 1 = (x + 3)^2 - 8.

Check by expanding: (x+3)2−8=x2+6x+9−8=x2+6x+1(x+3)^2 - 8 = x^2 + 6x + 9 - 8 = x^2 + 6x + 1. ✓

With a negative middle term: x2−10x+7=(x−5)2−25+7=(x−5)2−18x^2 - 10x + 7 = (x - 5)^2 - 25 + 7 = (x - 5)^2 - 18.

When the coefficient of x² isn't 1

Take the coefficient out of the first two terms as a factor, complete the square inside, then multiply back out.

Example: 2x2+12x+52x^2 + 12x + 5

2(x2+6x)+5=2[(x+3)2−9]+5=2(x+3)2−18+5=2(x+3)2−132(x^2 + 6x) + 5 = 2\left[(x + 3)^2 - 9\right] + 5 = 2(x + 3)^2 - 18 + 5 = 2(x + 3)^2 - 13

The most common slip is forgetting to multiply the −9-9 by the 2. Our completing the square calculator shows every line for any quadratic.

Solving a quadratic equation

Solve x2+6x+1=0x^2 + 6x + 1 = 0, giving answers in surd form.

(x+3)2−8=0  ⇒  (x+3)2=8  ⇒  x+3=±8  ⇒  x=−3±22(x + 3)^2 - 8 = 0 \;\Rightarrow\; (x + 3)^2 = 8 \;\Rightarrow\; x + 3 = \pm\sqrt{8} \;\Rightarrow\; x = -3 \pm 2\sqrt{2}

So x=−3+22x = -3 + 2\sqrt{2} or x=−3−22x = -3 - 2\sqrt{2}. Don't forget the ±\pm when you square root: there are two solutions. If the right-hand side were negative, there would be no real solutions, because a square can't be negative.

The turning point of the graph

The graph of y=(x+p)2+qy = (x + p)^2 + q is a U-shaped parabola. The squared bracket is never negative and is zero when x=−px = -p, so the lowest point is at (−p,q)(-p, q).

  • y=(x+3)2−8y = (x + 3)^2 - 8: minimum at (−3,−8)(-3, -8).
  • y=(x−2)2+5y = (x - 2)^2 + 5: minimum at (2,5)(2, 5).
  • y=2(x+3)2−13y = 2(x + 3)^2 - 13: minimum at (−3,−13)(-3, -13) (the 2 stretches the graph but doesn't move the vertex).

If the coefficient of x2x^2 is negative, the parabola is upside down and the point is a maximum. The line of symmetry is x=−px = -p.

Why it's called completing the square

Picture x2+6xx^2 + 6x as a square of side xx with two strips of 3×x3 \times x attached to two sides. The shape is almost a square of side x+3x + 3; what's missing is a 3×33 \times 3 corner. Adding 9 completes the square, so x2+6x+9=(x+3)2x^2 + 6x + 9 = (x + 3)^2. The algebra just keeps track of the 9 we had to add.

Completing the square on ax2+bx+c=0ax^2 + bx + c = 0 in general produces the quadratic formula.

Practice questions

  1. Write x2+8x+3x^2 + 8x + 3 in the form (x+a)2+b(x + a)^2 + b.
  2. Write x2−4x−1x^2 - 4x - 1 in completed square form.
  3. Write 3x2+12x+73x^2 + 12x + 7 in the form a(x+p)2+qa(x + p)^2 + q.
  4. Solve x2+8x+3=0x^2 + 8x + 3 = 0, leaving your answer in surd form.
  5. State the turning point of y=x2−4x−1y = x^2 - 4x - 1.

Answers: 1. (x+4)2−13(x + 4)^2 - 13. 2. (x−2)2−5(x - 2)^2 - 5. 3. 3(x+2)2−53(x + 2)^2 - 5. 4. x=−4±13x = -4 \pm \sqrt{13}. 5. (2,−5)(2, -5).

More practice in our completing the square questions.

Frequently asked questions

When should I complete the square instead of factorising?

When the quadratic doesn't factorise, when the question asks for surd form, or when you need the turning point of the graph. Factorising is quicker when it works.

What is the turning point from completed square form?

For y = (x + p)² + q the turning point is (−p, q). Note the sign change on p: (x − 2)² + 5 has its vertex at (2, 5).

Is completing the square the same as the quadratic formula?

The formula is what you get by completing the square on the general quadratic ax² + bx + c = 0. They always give the same solutions.

Sources

  1. GCSE mathematics: subject content and assessment objectives. Department for Education.
  2. Cambridge IGCSE Mathematics 0580 syllabus. Cambridge International.