Let us take the function $$ y= \sqrt x. $$
Of course we must say that $x$ must be $\ge 0$ (domain $[0, +\infty]$). Let us suppose that we should determine its image.
I extract $x$ and obtain $$ x= y^2. $$
Now I observe that $y$ can assume any value in $\mathbb R$. BUT it is not true. $y$ is $\ge0$.
Can anyone explain me why? Where is the mistake I do?
Nick