I am solving function $\sqrt{4-x}$ to find the range.
I have learnt two methods to solve online with few doubts.
First method -
Let function y = $\sqrt{4-x}$
Then,
$y^2 = 4-x$
$x = 4-y^2$
Now can we find range $4-y^2 \ge 0$ in this way?
$y \le \pm 2$
Then what is the range? Is above equation correct?
Second method says range is equal to domain of inverse of a function.
so it says to interchange y with x,
then we have,
$x = \sqrt{4-y}$
Then solve for y,
$x^2 = 4-y$
$y = 4-x^2$
then how to find range further?

The range of $f$ is the set of those numbers $y$ such that the equation $f(x)=y$ as some solution. But\begin{align}f(x)=y\iff&\sqrt{4-x}=y\\\iff&4-x=y^2\text{ and }y\geqslant0\\\iff&x=4-y^2\text{ and }y\geqslant0\end{align}and therefore the range of $f$ is $[0,+\infty)$.