1MA1 · A11, A18AlgebraHigherGrades 7–9

Completing the Square

Every quadratic x2+bx+cx^{2} + bx + c can be rewritten in the form (x+p)2+q(x + p)^{2} + q. That rearrangement — completing the square\textbf{completing the square} — does two jobs at once: it solves the equation exactly, and it tells you the turning point of the graph without plotting a single point.

50 min Quadratics

The big picture

The idea comes from expanding a squared bracket: (x+3)2=x2+6x+9(x + 3)^{2} = x^{2} + 6x + 9. The number inside the bracket is always half the coefficient of xx. So to rewrite x2+6x−7x^{2} + 6x - 7, start with (x+3)2(x + 3)^{2}, which gives x2+6x+9x^{2} + 6x + 9, and subtract the unwanted 9.

In completed-square form, the squared term can never be negative, so its smallest value is 0. That immediately gives the minimum of the quadratic and where it occurs — the turning point — which Edexcel links to graph sketching and, at A-Level, to circles.

What you'll learn

  • Write x2+bx+cx^{2} + bx + c in the form (x+p)2+q(x + p)^{2} + q
  • Complete the square when the x2x^{2} coefficient is not 1
  • Solve quadratic equations by completing the square, giving exact answers
  • Find the turning point of a quadratic graph from completed-square form
1

The method for x² + bx + c

Halve the coefficient of xx to get pp, and write (x+p)2(x + p)^{2}.

Expanding (x+p)2(x + p)^{2} produces an extra p2p^{2}, so subtract it, then add the original constant.

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.

x2+bx+c=(x+b2)2−b24+cx^{2} + bx + c = \left(x + \tfrac{b}{2}\right)^{2} - \tfrac{b^{2}}{4} + c
Completing the square.
Example 1Write x2+6x−7x^{2} + 6x - 7 in the form (x+p)2+q(x + p)^{2} + q.
1Half of 6 is 3: (x+3)2=x2+6x+9(x + 3)^{2} = x^{2} + 6x + 9.
2Subtract 9 and include −7-7: (x+3)2−9−7(x + 3)^{2} - 9 - 7.
Answer(x+3)2−16(x + 3)^{2} - 16
Your turnSame method, new numbers — try it before moving on.

Write x2+8x+3x^2 + 8x + 3 in the form (x+p)2+q(x + p)^2 + q.

Type it like (x+3)^2-5.

Show worked solution
Solution
  1. 1Half of 8 is 4: (x+4)2=x2+8x+16(x + 4)^2 = x^2 + 8x + 16.
  2. 216−13=316 - 13 = 3, so (x+4)2−13(x + 4)^2 - 13.

Answer: (x+4)2−13(x + 4)^2 - 13

Example 2Write x2−5x+2x^{2} - 5x + 2 in completed-square form.
1Half of −5-5 is −52-\tfrac52: (x−52)2=x2−5x+254\left(x - \tfrac52\right)^{2} = x^{2} - 5x + \tfrac{25}{4}.
2Subtract 254\tfrac{25}{4} and add 2.
Answer(x−52)2−174\left(x - \tfrac52\right)^{2} - \tfrac{17}{4}

Tip — Check by expanding your answer. It takes seconds and catches sign errors in qq.

2

When the x² coefficient is not 1

Factor the coefficient out of the x2x^{2} and xx terms only, complete the square inside the bracket, then multiply back out.

For 2x2−8x+52x^{2} - 8x + 5: 2(x2−4x)+5=2[(x−2)2−4]+5=2(x−2)2−8+52(x^{2} - 4x) + 5 = 2\big[(x - 2)^{2} - 4\big] + 5 = 2(x - 2)^{2} - 8 + 5.

Example 1Write 2x2−8x+52x^{2} - 8x + 5 in the form a(x+p)2+qa(x + p)^{2} + q.
1Factor 2 from the first two terms: 2(x2−4x)+52(x^{2} - 4x) + 5.
2Complete the square inside: x2−4x=(x−2)2−4x^{2} - 4x = (x - 2)^{2} - 4.
32(x−2)2−8+52(x - 2)^{2} - 8 + 5.
Answer2(x−2)2−32(x - 2)^{2} - 3
Your turnSame method, new numbers — try it before moving on.

Write 2x2+12x+72x^2 + 12x + 7 in the form a(x+p)2+qa(x + p)^2 + q.

Type it like 2(x+3)^2-11.

Show worked solution
Solution
  1. 12(x2+6x)+7=2[(x+3)2−9]+72(x^2 + 6x) + 7 = 2[(x + 3)^2 - 9] + 7.
  2. 2=2(x+3)2−18+7=2(x+3)2−11= 2(x + 3)^2 - 18 + 7 = 2(x + 3)^2 - 11.

Answer: 2(x+3)2−112(x + 3)^2 - 11

Why this works

The −4-4 inside the square bracket is multiplied by 2 when you expand the outer bracket, giving −8-8. Forgetting that multiplication is the most common error with non-unit coefficients.

3

Solving by completing the square

Write the quadratic in completed-square form, set it equal to zero, and isolate the squared bracket.

Square root both sides, remembering ±\pm, then solve.

This gives exact answers in surd form, which is why questions ask for it by name.

Example 1Solve x2−4x−1=0x^{2} - 4x - 1 = 0 by completing the square, giving exact answers.
1(x−2)2−4−1=0(x - 2)^{2} - 4 - 1 = 0, so (x−2)2=5(x - 2)^{2} = 5.
2x−2=±5x - 2 = \pm\sqrt5.
Answerx=2±5x = 2 \pm \sqrt5
Your turnSame method, new numbers — try it before moving on.

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

Type both, e.g. -3+sqrt7, -3-sqrt7.

Show worked solution
Solution
  1. 1(x+3)2−9+2=0(x + 3)^2 - 9 + 2 = 0, so (x+3)2=7(x + 3)^2 = 7.
  2. 2x+3=±7x + 3 = \pm\sqrt{7}, so x=−3±7x = -3 \pm \sqrt{7}.

Answer: x=−3±7x = -3 \pm \sqrt{7}

Tip — Leave answers in surd form unless told to round. "Exact" means 2+52 + \sqrt5, not 4.244.24.

4

Turning points

In (x+p)2+q(x + p)^{2} + q, the squared term is at least 0 and equals 0 when x=−px = -p. So the minimum value is qq, at x=−px = -p.

The turning point of y=(x+p)2+qy = (x + p)^{2} + q is (−p,q)(-p, q).

For y=a(x+p)2+qy = a(x + p)^{2} + q, the turning point is still (−p,q)(-p, q); it is a minimum if a>0a > 0 and a maximum if a<0a < 0.

Example 1Find the turning point of y=x2+6x−7y = x^{2} + 6x - 7 and state whether it is a maximum or minimum.
1From before, y=(x+3)2−16y = (x + 3)^{2} - 16.
2Minimum when x+3=0x + 3 = 0.
AnswerMinimum at (−3,−16)(-3, -16)
Your turnSame method, new numbers — try it before moving on.

Find the turning point of y=x2−10x+18y = x^2 - 10x + 18.

Type coordinates like (2, -3).

Show worked solution
Solution
  1. 1y=(x−5)2−25+18=(x−5)2−7y = (x - 5)^2 - 25 + 18 = (x - 5)^2 - 7.
  2. 2Minimum at (5,−7)(5, -7).

Answer: (5,−7)(5, -7)

Think like an examiner

  • Show the intermediate form (x+p)2−p2+c(x + p)^{2} - p^{2} + c before simplifying.
  • Include ±\pm when square rooting to solve.
  • Give turning points as coordinates and state the nature if asked.

Completed square

(x+p)2+q(x + p)^{2} + q
Completed-square form.
(−p, q)(-p,\ q)
Turning point.
p=b2p = \tfrac{b}{2}
Half the x coefficient.

Watch out for these

Writing x2+6x−7=(x+6)2−43x^{2} + 6x - 7 = (x + 6)^{2} - 43.
Halve the coefficient: (x+3)2−16(x + 3)^{2} - 16.
Adding p2p^{2} instead of subtracting it.
The bracket already creates +p2+p^{2}, so subtract it.
Giving the turning point of (x−2)2+5(x - 2)^{2} + 5 as (−2,5)(-2, 5).
The xx-coordinate has the opposite sign: (2,5)(2, 5).
Solving (x−2)2=5(x - 2)^{2} = 5 as x=2+5x = 2 + \sqrt5 only.
Use ±\pm: x=2±5x = 2 \pm \sqrt5.

Stretch yourself

The curve y=x2+bx+cy = x^{2} + bx + c has a turning point at (3,−5)(3, -5). Find bb and cc, and state the yy-intercept.

Hint — Write the curve in completed-square form using the turning point, then expand.

Reveal solution
SolutionA turning point at (3,−5)(3, -5) means y=(x−3)2−5y = (x - 3)^{2} - 5. Expanding: x2−6x+9−5=x2−6x+4x^{2} - 6x + 9 - 5 = x^{2} - 6x + 4. So b=−6b = -6 and c=4c = 4, and the yy-intercept is (0,4)(0, 4). Check: at x=3x = 3, 9−18+4=−59 - 18 + 4 = -5 ✓. ■\blacksquare

Questions students ask

Why is it called completing the square?
Geometrically, x2+bxx^{2} + bx is a square with two rectangles attached; adding (b2)2\left(\tfrac{b}{2}\right)^{2} fills in the missing corner to make a complete square.
Is completing the square better than the formula?
For solving, both give the same answers. Completing the square also gives the turning point, and the quadratic formula is actually derived from it.
What if bb is odd?
Use fractions: half of 5 is 52\tfrac52, and (52)2=254\left(\tfrac52\right)^{2} = \tfrac{25}{4}.

Key takeaways

  • 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.
  • For ax2+bx+cax^{2} + bx + c, factor aa from the first two terms first.
  • Solve by isolating the square, square rooting with ±\pm.
  • Turning point of (x+p)2+q(x + p)^{2} + q is (−p,q)(-p, q).
  • Positive aa gives a minimum; negative aa gives a maximum.

Exam-style questions

Practise it the way it is examined

3 original questions · 9 marks, written to match the style and mark allocation of the real papers. Work on paper, then open the mark scheme and tick the marks you earned — method marks count even if the final answer slips.

Question 1Grade 73 marks
  1. (a)Write x2−12x+40x^2 - 12x + 40 in the form (x−a)2+b(x - a)^2 + b.[2]
    Show mark scheme (a)

    Answer: (x−6)2+4(x - 6)^2 + 4

  2. (b)Hence explain why x2−12x+40>0x^2 - 12x + 40 > 0 for all xx.[1]
    Show mark scheme (b)
Answer on paper first, then mark it.
Question 2Grade 83 marks
  1. Write 3x2−12x+53x^2 - 12x + 5 in the form a(x+b)2+ca(x + b)^2 + c.[3]
    Show mark scheme

    Answer: 3(x−2)2−73(x - 2)^2 - 7

Answer on paper first, then mark it.
Question 3Grade 93 marks
  1. Solve x2+4x−3=0x^2 + 4x - 3 = 0 by completing the square. Give your answers in the form a±ba \pm \sqrt{b}.[3]
    Show mark scheme

    Answer: x=−2±7x = -2 \pm \sqrt{7}

Answer on paper first, then mark it.

Unlimited practice

Skill drill

A new question every time, marked instantly, with a full worked solution. Aim for a streak of five, then move up a level.

0 / 0 first-time correct Streak 0Best at this level: 0

Generating a question…

Test yourself

Answer a few questions, then review anything you missed.

Next step

Keep practising

Start with the quiz above to check the key ideas. You can also choose another topic from the practice library.

Browse practice topics

Related lessons

All 4 lessons