8A

Completing the square

Factorising review, perfect squares, completing the square for x² + bx, writing quadratics in the form (x + h)² + k, and solving by completing the square.

Factorising solves a quadratic equation quickly, but only when the numbers are kind. $x^2 - 8x + 3 = 0$ has no nice factors. Completing the square works for every quadratic. It is also how the quadratic formula is built, and how you find the turning point of a parabola in the next chapter.

Factorising review

  • Common factor first: $3x^2 - 12x = 3x(x - 4)$.
  • Difference of squares: $a^2 - b^2 = (a + b)(a - b)$, so $x^2 - 49 = (x + 7)(x - 7)$.
  • Monic trinomial $x^2 + bx + c$: find two numbers that multiply to $c$ and add to $b$. For $x^2 - 2x - 15$: $-5$ and $3$, so $(x - 5)(x + 3)$.
  • Non-monic $ax^2 + bx + c$: find two numbers that multiply to $ac$ and add to $b$, split the middle term, then group. For $2x^2 + 7x + 3$: $ac = 6$, numbers $6$ and $1$, so $2x^2 + 6x + x + 3 = 2x(x + 3) + (x + 3) = (2x + 1)(x + 3)$.

To solve by factorising, make one side zero, factorise, then set each factor to zero. That works because if two numbers multiply to $0$, one of them must be $0$.

Making a perfect square

Look at a perfect square expanded: $(x + 5)^2 = x^2 + 10x + 25$. The middle coefficient is $10$, and the constant is half of $10$, squared. That pattern always holds.

A perfect square as a square

(x + 3)² drawn as a square. The two blue boxes are each 3x, which is half of the middle term. The corner box is 3² = 9.

Try this

Change both brackets to $(x + 5)$, then to $(x - 4)$. Each time, compare the corner box with the middle term $bx$. How could you work out the corner from $b$ alone?

Example 1●●

Write $x^2 + 6x + 2$ in the form $(x + h)^2 + k$.

$x^2 + 6x + 9 - 9 + 2$
Half of 6 is 3, and 3² = 9. Add 9 to make the square, then subtract 9 so the value doesn't change.
$= (x + 3)^2 - 7$
The first three terms are now a perfect square.

Solving by completing the square

Example 2●●

Solve $x^2 - 8x + 3 = 0$. Give exact answers.

$x^2 - 8x = -3$
Move the constant to the right side.
$x^2 - 8x + 16 = 13$
Half of −8 is −4, and (−4)² = 16. Add 16 to both sides so the equation stays balanced.
$(x - 4)^2 = 13$
$x - 4 = \pm\sqrt{13}$
Square root both sides. A positive number has two square roots.
$x = 4 + \sqrt{13}$ or $x = 4 - \sqrt{13}$

If the coefficient of $x^2$ is not $1$, divide every term by it first. For $2x^2 + 12x - 4 = 0$, divide by $2$ to get $x^2 + 6x - 2 = 0$, then carry on as above.

If you reach a square equal to a negative number, such as $(x + 1)^2 = -5$, there are no real solutions, because no real number squares to a negative.

Your turn

Solve $x^2 + 10x + 18 = 0$ by completing the square.

Show the working

$x^2 + 10x = -18$. Add $\left(\tfrac{10}{2}\right)^2 = 25$ to both sides: $(x + 5)^2 = 7$. So $x + 5 = \pm\sqrt7$, and $x = -5 \pm \sqrt7$.

Flashcards
Complete the square on $x^2 + bx$
Add $\left(\tfrac b2\right)^2$.
$x^2 + bx + c$ in the form $(x + h)^2 + k$
$h = \tfrac b2$ and $k = c - \left(\tfrac b2\right)^2$.
$(x + h)^2 = $ a negative number
No real solutions.
Practice
  1. What number must be added to $x^2 + 10x$ to make a perfect square?

  2. $x^2 - 2x - 15 =$

  3. $x^2 - 12x + 36 =$

  4. $x^2 + 8x + 5 = (x + h)^2 + k$. Enter $h, k$.

  5. Solve $(x - 3)^2 = 16$. Enter both solutions separated by &.

  6. The exact solutions of $x^2 - 6x + 2 = 0$ are:

  7. $x^2 + 6x + 10 = (x + 3)^2 + k$. Find $k$. (What does this tell you about solving $x^2 + 6x + 10 = 0$?)

  8. Solving $2x^2 + 12x - 4 = 0$ by completing the square gives:

  9. Challenge: $x^2 + 5x + 2 = (x + h)^2 + k$. Find $k$ as a decimal.

  10. Challenge: solve $x^2 - 4x - 6 = 0$ by completing the square. Enter the positive solution to $2$ decimal places.

Formula sheet