Recall that we have solved quadratic equations of the form \((x - h)^2 = k\) by taking the square root of both sides. For example, to solve \((x-3)^2=5\text{,}\)
\begin{align*}
(x - 3)^2 \amp= 5\\
x - 3 \amp= \pm \sqrt{5} \amp\amp\text{by the square root property}\\
x \amp= 3 \pm \sqrt{5} \amp\amp\text{solving for } x
\end{align*}
Therefore, if we could convert an equation to this form, we could solve it. To see how to do this, expand the left side first, and write it in standard form,
\begin{align*}
(x - 3)^2 \amp= 5\\
x^2 - 6x + 9 \amp= 5\\
x^2 - 6x + 4 \amp= 0
\end{align*}
This means the equations \(x^2 - 6x + 4 = 0\) and \((x - 3)^2 = 5\) are equivalent. The expression \(x^2 - 6x + 4\) canβt be factored nicely (there are no factors of 4 that add up to \(-6\)). However, observe that all of the algebra steps are reversible. That is,
\begin{align*}
x^2 - 6x + 4 \amp= 0\\
x^2 - 6x + 9 \amp= 5 \amp\amp\text{subtracting 4 from both sides, then adding 9 to both sides}\\
(x - 3)^2 \amp= 5 \amp\amp\text{rewriting the left-hand side as a square}\\
x - 3 \amp= \pm \sqrt{5} \amp\amp\text{taking the square root of both sides}\\
x \amp= 3 \pm \sqrt{5} \amp\amp\text{solving for } x \text{, by adding 3 to both sides}
\end{align*}
This is a strategy to solve the equation. However, how would we know what number to add to the left-hand side? In other words, how would we know that we need \(+9\) so that \(x^2-6x+9\) can be rewritten as \((x-3)^2\text{?}\) We need a number to add to \(x^2-6x\) to make it a perfect square.
