
Completing the square of a quadratic equation provides an alternative method for both solving it and finding the curve's turning point.
The usual method for finding the solution to a quadratic equation such as $x^2+10x+8=0$ would be to use the quadratic formula, since it does not easily factorise.
The quadratic formula can be quite difficult to remember, so an alternative approach is to complete the square.
This involves putting the equation into the form:
$\large \boxed{a(x+p)^2+q}$
Example 1
Solve the equation $x^2+10x+8=0$ by completing the square.
Expanding the general form above gives:
$ax^2+2apx+ap^2+q$
It is now possible to compare the coefficients between this and the original equation.
$$\begin{aligned}x^2+10x+8\hspace{28px}&=&ax^2+2apx+ap^2+q&&\small \text{comparing the term in }x^2\text{ gives } a=1 \\ \Rightarrow x^2+10x+8\hspace{28px}&=&x^2+\phantom{a}2px+\phantom{a}p^2+q &&\small \text{comparing the term in }x \text{ gives } p=5\\ \Rightarrow x^2+10x+8\hspace{28px}&=&x^2+\phantom{a}10x+\phantom{a}25+q&&\small \text{comparing the constant gives } q=-17 \end{aligned}$$
The original equation may now be re-written as follows:
$(x+5)^2-17=0$
The above may now be solved as follows:
$$\begin{aligned} (x+5)^2-17&=0\\
(x+5)^2&=17\\
x+5&=\pm \sqrt{17}& \small\text{Note the }\pm \text{sign. This is very important}\\
x&=-5 \pm \sqrt{17}\\
x&=-0.877 \hspace{20px}or\hspace{20px}x=9.123&\small\text {both answers to 3.d.p}
\end{aligned}$$Example 2
Solve the equation $2x^2-4x=5$ by completing the square.
Rearranging the above gives: $\hspace{25px}2x^2-4x-5=0$
$$\begin{aligned}
2x^2-4x-5&=ax^2+2apx+ap^2+q&&a=2\\
2x^2-4x-5&=2x^2+4px+2p^2+q&&p=-1\\
2x^2-4x-5&=2x^2-4x+2+q&&q=-7\\
\\
2(x-1)^2-7&=0\\
2(x-1)^2&=7\\
(x-1)^2&=\frac{7}{2}\\
x-1&=\pm\sqrt{ \frac{7}{2}}\\
x&=1\pm\sqrt{ \frac{7}{2}}\\
x&= 2.871 \hspace{20px}or\hspace{20px}x=-0.871&\small\text {both answers to 3.d.p}
\end{aligned}$$
The completed square form of a quadratic also allows us to find the coordinates of its turning point.
Try adjusting the variables in on the graph to the right.
The value of $p$ moves the curve horizontally, while the value of $q$ moves it vertically.
Note that the value of $a$ has no effect on the position of the turning point. It only changes the steepnes of the curve.
However you change the variables, the turning point will always be at $(-p,q)$.
Example
Find the coordinates of the turning point of the curve $y=x^2+6x+5$
Completing the square gives
$y=(x+3)^2-4$In the above $p=3$ and $q=-4$.
Therefore the minimum of the curve is at $(-3,-4)$ and it has a line of symmetry along $x=-3$.
�