Completing the Square

Completing the Square

Spec 2.2 · Edexcel IGCSE Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • Completing the square rewrites ax2+bx+cax^2+bx+c as a(x+p)2+qa(x+p)^2+q.
  • For a=1a=1: x2+bx+c=(x+b2)2−(b2)2+cx^2+bx+c=\left(x+\dfrac{b}{2}\right)^2-\left(\dfrac{b}{2}\right)^2+c.
  • For a≠1a\neq1, factor aa out of the x2x^2 and xx terms first.
  • The turning point is (−p,q)(-p,q) (mind the sign flip); qq is a minimum if a>0a>0, a maximum if a<0a<0.
  • To solve, isolate the bracket, square root both sides and keep the ±\pm.

What it means

You rewrite a quadratic so x appears once, inside a squared bracket.

Completing the square gives the form a(x+p)2+qa(x+p)^2+q, which shows the vertex of the parabola directly and lets you solve without factorising.

Half the coefficient of xx, square it, then adjust with a correction term so the expansion still matches the original.

−8−7−6−5−4−3−2−112−8−6−4−2246810xyvertex (−3, −7)y = (x + 3)² − 7y = x²
y = x² + 6x + 2 = (x + 3)² − 7. The completed square shows the vertex (−3, −7); the dashed curve is y = x².
  • x2+bxx^2+bx(x+b2)2−(b2)2\left(x+\dfrac{b}{2}\right)^2-\left(\dfrac{b}{2}\right)^2

Worked example

Complete the square for x2+6x+5x^2+6x+5.

Complete the square for x2+10x+3x^2+10x+3.

When a = 1

Write x² + bx as a squared bracket, subtract the square of half b, then add c.

  1. Write x2+bxx^2+bx as (x+b2)2−(b2)2\left(x+\frac{b}{2}\right)^2-\left(\frac{b}{2}\right)^2.
  2. Add the constant cc.
  3. Simplify the constants.
  1. 1

    Halve b

    to find p

  2. 2

    Write the bracket

    (x + p)² − p²

  3. 3

    Add c

    and simplify

Completing the square, a = 1

Worked example

Complete the square for x2−8x+3x^2-8x+3.

Complete the square for x2−2x−4x^2-2x-4.

When a is not 1

Factor a out of the x² and x terms only, complete the square inside, then multiply back out.

Leave the constant cc outside until the final step. The correction term gets multiplied by aa when the bracket is expanded, a common source of errors.

  1. 1

    Factor out a

    from the x² and x terms only

  2. 2

    Complete the square

    inside the bracket

  3. 3

    Multiply back

    by a, then add c

Completing the square, a ≠ 1

Worked example

Complete the square for 2x2+12x+72x^2+12x+7.

Complete the square for 2x2−8x+12x^2-8x+1.

Turning points

In a(x + p)² + q the turning point is (−p, q), a minimum if a is positive and a maximum if negative.

The turning point is (−p,q)(-p,q). If a>0a>0 the parabola opens upwards and qq is the minimum value, at x=−px=-p. If a<0a<0 it opens downwards and qq is the maximum.

For example f(x)=(x−4)2−13f(x)=(x-4)^2-13 has a minimum value of −13-13 at x=4x=4.

−7−6−5−4−3−2−11−10−55101520xymin (−3, −11)g(x) = 2(x + 3)² − 11
g(x) = 2(x + 3)² − 11 has a minimum value of −11 at x = −3 (a = 2 > 0)

What is the minimum value of y=(x−1)2+5y=(x-1)^2+5, and where does it occur?

Solving equations

Complete the square, isolate the bracket, square root both sides and keep the plus-or-minus.

This method always works, even when the quadratic does not factorise, and gives exact surd answers. Forgetting the ±\pm loses one of the two solutions.

Example: x2−2x−4=0⇒(x−1)2−5=0⇒x=1±5x^2-2x-4=0\Rightarrow(x-1)^2-5=0\Rightarrow x=1\pm\sqrt{5}.

−7−6−5−4−3−2−11−6−4−224681012xy(−5, 0)(−1, 0)min (−3, −4)y = x² + 6x + 5
The roots of x² + 6x + 5 = 0 are where the parabola crosses the x-axis

Worked example

Solve x2+6x+5=0x^2+6x+5=0.

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

Try an exam question

(a) Write x2−8x+3x^2-8x+3 in the form (x+p)2+q(x+p)^2+q. (b) Write down the coordinates of the turning point of y=x2−8x+3y=x^2-8x+3. (c) Solve x2−8x+3=0x^2-8x+3=0, giving your answers in surd form.

[5 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Write x2+6x+2x^2+6x+2 in the form (x+a)2+b(x+a)^2+b.

1 mark, marked against the mark scheme

Revision notes