大象传媒

Completing the square

Completing the square in a quadratic expression where the coefficient of x2 is non-unitary

When completing the square, expressions are written in the form:

\(y = a{(x - b)^2} + c\)

Example

Rewrite \(y = {x^2} - 6x + 11\) in the form \(y = a{(x - b)^2} + c\).

In this case \(a = 1\) as the coefficient of \({x^2}\) is \(1\).

To get the number inside the bracket, we half the coefficient of the second term in the original equation, in this case \(6\).

This gives \({(x - 3)^2}\).

If we expand \({(x - 3)^2}\), we get:

\(= (x - 3)(x - 3)\)

\(= {x^2} - 3x - 3x + 9\)

\(= {x^2} - 6x + 9\)

You can see that the \({x^2} - 6x\) matches the first two terms from the original equation. But we have also added on an extra \(9\) from this squared bracket, so we need to take it off again to ensure that we don't change the value of the expression. This gives:

\(y = {(x - 3)^2} - 9 + 11\)

\(y = {(x - 3)^2} + 2\)

Now try these questions.

Question

Rewrite \(y = {x^2} + 10x + 7\) in the form \(y = {(x - b)^2} + c\).

Question

Rewrite \(y = 5 - 2x - {x^2}\) in the form \(y = a{(x - b)^2} + c\).

Question

Extension

Rewrite \(y = 2{x^2} + 6x + 7\) in the form \(y = a{(x - b)^2} + c\)

Related links