TITLE: When going from $(x+2)^2=5$ to $x+2=\pm \sqrt{5}$, why isn't there also a $\pm(x+2)$?
QUESTION [5 upvotes]: Say I am solving the following equation:
$$(x+2)^2 = 5$$
$$x + 2 = \pm \sqrt{5}$$
$$x = -2 \pm \sqrt{5}$$
However, when I took the positive and negative square root of $5$ in the second line, I did not take the positive and negative square root of $(x+2)^2$, which would be $\pm (x+2)$. Why is this?

REPLY [5 votes]: The question can be rephrased in abstract form as:

If we have an equation of the form
$$a^2=b^2$$
why is it equivalent to $a=\pm b$?


Why not $\pm a = \pm b$?

As Dr. Sonnhard Graubner's answer outlined, it can be explained by
\begin{align*}
&a^2=b^2\\[4pt]
\iff\;&a^2-b^2=0\\[4pt]
\iff\;&(a-b)(a+b)=0\\[4pt]
\iff\;&a-b=0\;\;\;\text{or}\;\;\;a+b=0\\[4pt]
\iff\;&a=b\;\;\;\text{or}\;\;\;a=-b\\[4pt]
\iff\;&a=\pm b\\[4pt]
\end{align*}
Thus we have what I'll call the "square-root$\;\pm\;$principle":
$$\boxed{
\;\\[4pt]
\quad a^2=b^2\;\iff\;a=\pm b\quad
\\
}
$$
Applying this principle to the problem at hand, we get
$$(x+2)^2=5\;\iff\;x+2=\pm\sqrt{5}$$