You need to be incredibly careful with the second question. If you think about the shape of the graph of
it's half a parabola flipped onto its side. It intersects with y = 3
once so there is only one solution when solving the equation.
However, when you square the second equation, you introduce a second solution. Why? The easiest way for me to show this is with an example. Take for example,
obviously this has one solution, namely, 1. Now, if you instead decided to go through a convoluted method of solving it, you could square it to get
There's a difference here. Both 1 and -1 now solve this equation, all because you squared it. It's essentially because you lost any information about the sign of each side of the equation when you squared it. You could just as easily square
and get the same result.
In the second question above, you will get two solutions. One of the solutions will satisfy the original equation, whilst the other won't. The problem occurs when you square it the second time. You're trying to solve
although when you square it, you lose the negative on the RHS, so you could also be trying to solve
and you'll find that the incorrect solution you get at the end is actually the solution to this, not the one with the negative on the RHS.
This doesn't mean that squaring the equation is wrong, it just means that
every time you square an equation to solve it, you need to check that your solutions solve the original equation. Though, you should generally be doing this regardless.