As for the square root one, there is a major misunderstanding.
If you had , then yes, your range of y values would be all reals.
But you have the , which is understood to be THE positive square root (singular) of x.
So you will never get a negative output.
The following is also true, and might help:
If then a = +/- 2
If , then b = 3.