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.
(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.
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?
Write $x^2 + 6x + 2$ in the form $(x + h)^2 + k$.
Solving by completing the square
Solve $x^2 - 8x + 3 = 0$. Give exact answers.
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$.
What number must be added to $x^2 + 10x$ to make a perfect square?
Half of $10$ is $5$, and $5^2 = 25$. Then $x^2 + 10x + 25 = (x + 5)^2$.
$x^2 - 2x - 15 =$
We need numbers that multiply to $-15$ and add to $-2$: $-5$ and $3$.
$x^2 - 12x + 36 =$
Half of $-12$ is $-6$, and $(-6)^2 = 36$, so it is the perfect square $(x - 6)^2$.
$x^2 + 8x + 5 = (x + h)^2 + k$. Enter $h, k$.
Half of $8$ is $4$, and $4^2 = 16$. $x^2 + 8x + 16 - 16 + 5 = (x + 4)^2 - 11$.
Solve $(x - 3)^2 = 16$. Enter both solutions separated by &.
$x - 3 = \pm 4$, so $x = 3 + 4 = 7$ or $x = 3 - 4 = -1$.
The exact solutions of $x^2 - 6x + 2 = 0$ are:
$x^2 - 6x = -2$. Add $9$: $(x - 3)^2 = 7$. So $x = 3 \pm \sqrt7$.
$x^2 + 6x + 10 = (x + 3)^2 + k$. Find $k$. (What does this tell you about solving $x^2 + 6x + 10 = 0$?)
$x^2 + 6x + 9 - 9 + 10 = (x + 3)^2 + 1$, so $k = 1$. A square plus $1$ is never $0$, so the equation has no real solutions.
Solving $2x^2 + 12x - 4 = 0$ by completing the square gives:
Divide by $2$: $x^2 + 6x - 2 = 0$, so $x^2 + 6x = 2$. Add $9$: $(x + 3)^2 = 11$. So $x = -3 \pm \sqrt{11}$.
Challenge: $x^2 + 5x + 2 = (x + h)^2 + k$. Find $k$ as a decimal.
Half of $5$ is $2.5$, and $2.5^2 = 6.25$. So $k = 2 - 6.25 = -4.25$, and $x^2 + 5x + 2 = (x + 2.5)^2 - 4.25$.
Challenge: solve $x^2 - 4x - 6 = 0$ by completing the square. Enter the positive solution to $2$ decimal places.
$x^2 - 4x = 6$. Add $4$: $(x - 2)^2 = 10$, so $x = 2 \pm \sqrt{10}$. The positive one is $2 + \sqrt{10} \approx 5.16$.
Coaching Centre