2.2PureCore

Completing the Square

Completing the square rewrites a quadratic as a perfect square plus a constant: a(x+p)2+qa(x + p)^2 + q. This instantly reveals the turning point of the curve and gives another way to solve equations — including ones that will not factorise.

35 min Quadratics
Edexcel AS Maths: 2.2 Completing The SquareCurated by Kepler, not produced by us. Watch it before the notes below.
Open on YouTube

What you'll be able to do

  • Complete the square for a quadratic where a = 1
  • Complete the square when the coefficient of x² is not 1
  • Use completed-square form to find the turning point
  • Solve quadratic equations by completing the square
1

The basic process (a = 1)

For x2+bx+cx^2 + bx + c, halve the coefficient of xx, square it, and balance. The result is a bracket squared plus a leftover 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
Halve bb for the bracket, then subtract the square of that half.
Example 1Complete the square for x2+6x+1x^2 + 6x + 1
1Half of 66 is 33, so start with (x+3)2(x + 3)^2.
2(x+3)2=x2+6x+9(x + 3)^2 = x^2 + 6x + 9, which is 88 too big, so subtract 88… then add the original +1+1.
3Result: (x+3)2−9+1(x + 3)^2 - 9 + 1.
Answer
(x+3)2−8(x + 3)^{2} - 8

Tip — The number inside the bracket is always half the coefficient of x — no exceptions.

2

When a ≠ 1

If the coefficient of x2x^2 is not 11, first factor it out of the x2x^2 and xx terms, complete the square inside, then multiply back through.

Example 1Complete the square for 2x2+12x+52x^2 + 12x + 5
1Factor 22 from the first two terms: 2(x2+6x)+52(x^2 + 6x) + 5.
2Inside: x2+6x=(x+3)2−9x^2 + 6x = (x + 3)^2 - 9.
3So 2[(x+3)2−9]+5=2(x+3)2−18+52\left[(x + 3)^2 - 9\right] + 5 = 2(x + 3)^2 - 18 + 5.
Answer
2(x+3)2−132(x + 3)^{2} - 13
3

Reading off the turning point

In completed-square form a(x+p)2+qa(x + p)^2 + q, the turning point of the parabola is at (−p,q)(-p, q). The sign flips for the xx-coordinate.

y=a(x+p)2+q  ⇒  vertex at (−p,  q)y = a(x + p)^{2} + q \;\Rightarrow\; \text{vertex at } (-p, \; q)
Minimum point if a>0a > 0, maximum point if a<0a < 0.
Example 1State the turning point of y=(x−4)2−7y = (x - 4)^2 - 7
1Here p=−4p = -4 and q=−7q = -7, so the xx-coordinate is −(−4)=4-(-4) = 4.
Answer
turning point (4,−7)(4, -7)
4

Solving by completing the square

Once in completed-square form, isolate the bracket, square-root both sides (remembering ±\pm), and solve. This gives exact surd answers.

Example 1Solve x2+4x−3=0x^2 + 4x - 3 = 0 by completing the square
1Complete the square: (x+2)2−4−3=0(x + 2)^2 - 4 - 3 = 0, i.e. (x+2)2=7(x + 2)^2 = 7.
2Square root both sides: x+2=±7x + 2 = \pm\sqrt{7}.
Answer
x=−2±7x = -2 \pm \sqrt{7}

Tip — Do not forget the ± when you square-root — it gives both solutions.

Formula recap

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
Completing the square (a = 1).
a(x+p)2+qa(x + p)^{2} + q
Completed-square form.
vertex=(−p,  q)\text{vertex} = (-p, \; q)
Turning point read straight off.

Common mistakes to avoid

Forgetting to subtract (b/2)² after forming the bracket.
The bracket adds (b/2)², so you must subtract it back to keep the value the same.
Reading the vertex x-coordinate with the wrong sign.
For (x + p)², the vertex is at x = −p — the sign flips.

Key takeaways

  • Halve the coefficient of x for the bracket, then subtract its square.
  • If a ≠ 1, factor it out of the x² and x terms first.
  • Completed-square form a(x + p)² + q gives the vertex (−p, q) immediately.
  • Solve by isolating the bracket and square-rooting with ±.

Test yourself

Answer a few questions, then review anything you missed.

Prefer paper? Open the written self-check

Answer each question before opening its answer. This self-check does not record a quiz score.

  1. Complete the square: x2+8xx^{2} + 8x

    • (x+4)2−16(x + 4)^{2} - 16
    • (x+4)2+16(x + 4)^{2} + 16
    • (x+8)2−64(x + 8)^{2} - 64
    • (x+4)2(x + 4)^{2}
    Show answer and explanation

    Answer: (x+4)2−16(x + 4)^{2} - 16

    Half of 8 is 4; (x+4)2=x2+8x+16(x+4)^2 = x^2 + 8x + 16, so subtract 16.

  2. Complete the square: x2+6x+5x^{2} + 6x + 5

    • (x+3)2−4(x + 3)^{2} - 4
    • (x+3)2+5(x + 3)^{2} + 5
    • (x+3)2−9(x + 3)^{2} - 9
    • (x+6)2−31(x + 6)^{2} - 31
    Show answer and explanation

    Answer: (x+3)2−4(x + 3)^{2} - 4

    (x+3)2−9+5=(x+3)2−4(x + 3)^2 - 9 + 5 = (x + 3)^2 - 4.

  3. The turning point of y=(x−5)2+2y = (x - 5)^{2} + 2 is:

    • (5,2)(5, 2)
    • (−5,2)(-5, 2)
    • (5,−2)(5, -2)
    • (2,5)(2, 5)
    Show answer and explanation

    Answer: (5,2)(5, 2)

    Vertex at (−p,q)(-p, q) with p=−5p = -5, q=2q = 2, giving (5,2)(5, 2).

  4. Complete the square: x2−4x+1x^{2} - 4x + 1

    • (x−2)2−3(x - 2)^{2} - 3
    • (x−2)2+1(x - 2)^{2} + 1
    • (x−2)2−5(x - 2)^{2} - 5
    • (x+2)2−3(x + 2)^{2} - 3
    Show answer and explanation

    Answer: (x−2)2−3(x - 2)^{2} - 3

    (x−2)2−4+1=(x−2)2−3(x - 2)^2 - 4 + 1 = (x - 2)^2 - 3.

  5. Complete the square: 2x2+8x+32x^{2} + 8x + 3

    • 2(x+2)2−52(x + 2)^{2} - 5
    • 2(x+2)2+32(x + 2)^{2} + 3
    • 2(x+4)2−52(x + 4)^{2} - 5
    • (x+2)2−5(x + 2)^{2} - 5
    Show answer and explanation

    Answer: 2(x+2)2−52(x + 2)^{2} - 5

    2(x2+4x)+3=2[(x+2)2−4]+3=2(x+2)2−52(x^2 + 4x) + 3 = 2[(x+2)^2 - 4] + 3 = 2(x+2)^2 - 5.

  6. Solve (x+3)2=16(x + 3)^{2} = 16

    • x=1,−7x = 1, -7
    • x=1,7x = 1, 7
    • x=−1,−7x = -1, -7
    • x=13,−19x = 13, -19
    Show answer and explanation

    Answer: x=1,−7x = 1, -7

    x+3=±4x + 3 = \pm 4, so x=1x = 1 or x=−7x = -7.

  7. Solve x2+2x−4=0x^{2} + 2x - 4 = 0 by completing the square.

    • x=−1±5x = -1 \pm \sqrt{5}
    • x=1±5x = 1 \pm \sqrt{5}
    • x=−1±3x = -1 \pm \sqrt{3}
    • x=−2±5x = -2 \pm \sqrt{5}
    Show answer and explanation

    Answer: x=−1±5x = -1 \pm \sqrt{5}

    (x+1)2−1−4=0⇒(x+1)2=5(x + 1)^2 - 1 - 4 = 0 \Rightarrow (x + 1)^2 = 5.

  8. The minimum value of y=(x−2)2+5y = (x - 2)^{2} + 5 is:

    • 55
    • 22
    • −5-5
    • 00
    Show answer and explanation

    Answer: 55

    A squared bracket is at least 0, so the minimum of y is 5 (when x = 2).

Finished this lesson?

Loading your progress…

Next step

Check your understanding

Work through questions on Completing the Square. Use the feedback to decide what needs another look.

1 past-paper question · 2 marks

Practise this topic

Related lessons

All 6 lessons

Put the methods into practice: see how A-Level maths duels work. An account is required to play; the overview and sample are public.