Why Completing the Square?

Factorisation is quick, but many quadratics don't factor over rationals. Completing the square is a method that works for every quadratic equation. It turns the equation into the form (x+p)2=q(x + p)^2 = q, which you can solve by taking square roots.

The idea: Rewrite ax2+bx+c=0ax^2 + bx + c = 0 so the xx-terms become a perfect square (x+p)2(x + p)^2, then isolate it and take the square root of both sides.

Think of it this way: we 'force' the left side into a perfect square by adding and subtracting the right constant.

[Board Important] This method is the foundation of the quadratic formula. Even where it's not on your exact syllabus, understanding it makes the formula far less mysterious.

The Key Algebraic Identity

Completing the square relies on:

x2+2px+p2=(x+p)2x^2 + 2px + p^2 = (x + p)^2

So to complete the square for x2+bxx^2 + bx, we need the constant (b2)2\left(\dfrac{b}{2}\right)^2:

x2+bx=(x+b2)2(b2)2x^2 + bx = \left(x + \frac{b}{2}\right)^2 - \left(\frac{b}{2}\right)^2

Quick demo

x2+6x=(x+3)29x^2 + 6x = (x + 3)^2 - 9 (since half of 6 is 3, and 32=93^2 = 9).

Key Point: Take half the coefficient of xx, square it, and add-and-subtract it. The first three terms then form a perfect square.

[Board Important] The magic number is always (coefficient of x2)2\left(\dfrac{\text{coefficient of }x}{2}\right)^2. Memorise this — it's the core of the method.

The Steps (with a=1a = 1)

Let's solve x2+4x5=0x^2 + 4x - 5 = 0.

  1. Move the constant to the right: x2+4x=5x^2 + 4x = 5.
  2. Complete the square: half of 4 is 2, 22=42^2 = 4. Add 4 to both sides: x2+4x+4=5+4=9x^2 + 4x + 4 = 5 + 4 = 9.
  3. Write as a square: (x+2)2=9(x + 2)^2 = 9.
  4. Take square roots: x+2=±3x + 2 = \pm 3.
  5. Solve: x=32=1x = 3 - 2 = 1 or x=32=5x = -3 - 2 = -5.

So the roots are x=1x = 1 and x=5x = -5.

Key Point: Don't forget the ±\pm when taking the square root — it gives both roots.

[Board Important] Always add the completing constant to both sides to keep the equation balanced.

When a1a \neq 1

If the coefficient of x2x^2 is not 1, divide the whole equation by aa first, then complete the square.

Worked outline: 2x28x+6=02x^2 - 8x + 6 = 0

  1. Divide by 2: x24x+3=0x^2 - 4x + 3 = 0.
  2. Move constant: x24x=3x^2 - 4x = -3.
  3. Half of 4-4 is 2-2, square is 4. Add 4: x24x+4=1(x2)2=1x^2 - 4x + 4 = 1 \Rightarrow (x - 2)^2 = 1.
  4. x2=±1x=3x - 2 = \pm 1 \Rightarrow x = 3 or x=1x = 1.

Key Point: Divide by aa before completing the square, so the x2x^2 coefficient becomes 1.

[Board Important] Forgetting to divide by aa first is the most common mistake here. Always reduce the x2x^2 coefficient to 1 at the start.

Solved Examples

Example 1: Basic completing the square

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

Solution:

  1. x2+6x=5x^2 + 6x = -5.
  2. Half of 6 is 3, 32=93^2 = 9: x2+6x+9=5+9=4x^2 + 6x + 9 = -5 + 9 = 4.
  3. (x+3)2=4x+3=±2(x + 3)^2 = 4 \Rightarrow x + 3 = \pm 2.
  4. x=1x = -1 or x=5x = -5.

Final Answer: x=1,5x = -1, -5.

Takeaway: Add (b/2)2(b/2)^2 to both sides, then square-root.

Example 2: Roots with surds

Solve x24x1=0x^2 - 4x - 1 = 0.

Solution:

  1. x24x=1x^2 - 4x = 1.
  2. Half of 4-4 is 2-2, square 4: x24x+4=5(x2)2=5x^2 - 4x + 4 = 5 \Rightarrow (x - 2)^2 = 5.
  3. x2=±5x=2±5x - 2 = \pm\sqrt5 \Rightarrow x = 2 \pm \sqrt5.

Final Answer: x=2+5,25x = 2 + \sqrt5, 2 - \sqrt5.

Takeaway: Completing the square handles surd roots that factorisation can't.

Example 3: With a1a \neq 1

Solve 2x28x+6=02x^2 - 8x + 6 = 0.

Solution:

  1. Divide by 2: x24x+3=0x24x=3x^2 - 4x + 3 = 0 \Rightarrow x^2 - 4x = -3.
  2. Add 4: (x2)2=1(x - 2)^2 = 1.
  3. x2=±1x=3,1x - 2 = \pm 1 \Rightarrow x = 3, 1.

Final Answer: x=1,3x = 1, 3.

Takeaway: Divide by aa first so the x2x^2 coefficient is 1.

Example 4: Negative middle term

Solve x26x+7=0x^2 - 6x + 7 = 0.

Solution:

  1. x26x=7x^2 - 6x = -7.
  2. Half of 6-6 is 3-3, square 9: (x3)2=7+9=2(x - 3)^2 = -7 + 9 = 2.
  3. x3=±2x=3±2x - 3 = \pm\sqrt2 \Rightarrow x = 3 \pm \sqrt2.

Final Answer: x=3+2,32x = 3 + \sqrt2, 3 - \sqrt2.

Takeaway: Half of a negative coefficient is negative, but its square is positive.

Example 5: Fractional half

Solve x2+3x+1=0x^2 + 3x + 1 = 0.

Solution:

  1. x2+3x=1x^2 + 3x = -1.
  2. Half of 3 is 32\dfrac{3}{2}, square 94\dfrac{9}{4}: (x+32)2=1+94=54\left(x + \dfrac{3}{2}\right)^2 = -1 + \dfrac{9}{4} = \dfrac{5}{4}.
  3. x+32=±52x=3±52x + \dfrac{3}{2} = \pm\dfrac{\sqrt5}{2} \Rightarrow x = \dfrac{-3 \pm \sqrt5}{2}.

Final Answer: x=3±52x = \dfrac{-3 \pm \sqrt5}{2}.

Takeaway: Odd middle coefficients give fractional halves — keep them as fractions.

Example 6: No real roots revealed

Solve x2+2x+5=0x^2 + 2x + 5 = 0 by completing the square.

Solution:

  1. x2+2x=5x^2 + 2x = -5.
  2. Add 1: (x+1)2=4(x + 1)^2 = -4.
  3. The right side is negative; no real number squares to a negative.

Final Answer: No real roots.

Takeaway: A negative value after completing the square means no real roots.

Example 7: With a1a \neq 1 and surds

Solve 3x26x2=03x^2 - 6x - 2 = 0.

Solution:

  1. Divide by 3: x22x23=0x22x=23x^2 - 2x - \dfrac{2}{3} = 0 \Rightarrow x^2 - 2x = \dfrac{2}{3}.
  2. Add 1: (x1)2=23+1=53(x - 1)^2 = \dfrac{2}{3} + 1 = \dfrac{5}{3}.
  3. x1=±53x=1±153x - 1 = \pm\sqrt{\dfrac{5}{3}} \Rightarrow x = 1 \pm \dfrac{\sqrt{15}}{3}.

Final Answer: x=1±153x = 1 \pm \dfrac{\sqrt{15}}{3}.

Takeaway: Rationalise 5/3\sqrt{5/3} to 153\dfrac{\sqrt{15}}{3} for the final answer.

Example 8: Equal roots case

Solve x28x+16=0x^2 - 8x + 16 = 0 by completing the square.

Solution:

  1. x28x=16x^2 - 8x = -16.
  2. Add 16: (x4)2=0(x - 4)^2 = 0.
  3. x4=0x=4x - 4 = 0 \Rightarrow x = 4 (repeated).

Final Answer: x=4x = 4 (equal roots).

Takeaway: (xp)2=0(x - p)^2 = 0 gives a single repeated root.

Example 9: Verify the method matches factorisation

Solve x25x+6=0x^2 - 5x + 6 = 0 by completing the square and confirm with factorisation.

Solution:

  1. x25x=6x^2 - 5x = -6. Half of 5-5 is 52-\dfrac{5}{2}, square 254\dfrac{25}{4}: (x52)2=6+254=14\left(x - \dfrac{5}{2}\right)^2 = -6 + \dfrac{25}{4} = \dfrac{1}{4}.
  2. x52=±12x=3x - \dfrac{5}{2} = \pm\dfrac{1}{2} \Rightarrow x = 3 or x=2x = 2.
  3. Factorisation: (x2)(x3)=0(x-2)(x-3) = 0 gives the same. ✓

Final Answer: x=2,3x = 2, 3.

Takeaway: Both methods give identical roots — a good self-check.

Example 10: Word problem via completing the square

The sum of a number and its reciprocal is 103\dfrac{10}{3}. Find the number.

Solution:

  1. Let the number be xx: x+1x=1033x210x+3=0x + \dfrac{1}{x} = \dfrac{10}{3} \Rightarrow 3x^2 - 10x + 3 = 0.
  2. Divide by 3: x2103x+1=0x2103x=1x^2 - \dfrac{10}{3}x + 1 = 0 \Rightarrow x^2 - \dfrac{10}{3}x = -1.
  3. Half of 103-\dfrac{10}{3} is 53-\dfrac{5}{3}, square 259\dfrac{25}{9}: (x53)2=1+259=169\left(x - \dfrac{5}{3}\right)^2 = -1 + \dfrac{25}{9} = \dfrac{16}{9}.
  4. x53=±43x=3x - \dfrac{5}{3} = \pm\dfrac{4}{3} \Rightarrow x = 3 or x=13x = \dfrac{1}{3}.

Final Answer: The number is 3 (or 13\dfrac{1}{3}).

Takeaway: Reciprocal problems lead to a quadratic; completing the square solves it cleanly.