I recently had an interesting discussion with my Algebra II teacher about solving the following inequality: $\sqrt{x}>-4$. As far as we could tell, squaring both sides results in $x>16$. However, common knowledge shows that any positive value would work. What is going on here?
I proceeded to generalize this to saying $1>-4$. By squaring both sides, we get $1>16$, which is clearly false. But there is no need to switch the inequality sign as we are not multiplying both sides by a negative, only squaring it.
Finally, I thought of the following problem: $\sqrt{x}>x-4$. Again, squaring both sides results in a solution of $\frac{9-3\sqrt{2}}{2}<x<\frac{9+3\sqrt{2}}{2}$. But again, 1 is a valid solution that does not fit this inequality.
Can someone please explain how this is happening?

Squaring is no equivalent-transformation.
But if both sides are known to be non-negative, it works , not only in the case of equations, but also in the case of inequalities.
To see the problem, just consider $x=3$ having obviously only solution $3$, whereas $x^2=9$ has the solutions $-3$ and $3$.