I came across the problem of finding range of the function, $$f(x) = \left(1-\sqrt{x}\right)^2$$
I proceed as follow: $$y = \left(1-\sqrt{x}\right)^2 $$ $$As, \left(1-\sqrt{x}\right)^2 \ge 0$$ $$So, y \ge 0$$ Hence, range of the given function is $\left[0,\infty\right).$
I know the answer is correct, but I am not sure about the process. Is this the correct way to do this ? If not, How to solve this problem ? I couldn't solve this by other methods.