A possible solution to $\sqrt {5-x}=5-x^2$ (without taking square from both sides)
Begin by subtracting $x$ from both sides:
$\sqrt{5-x}-x=(5-x)-x^2$
And render the difference of squares factorization
$(\sqrt{5-x}-x)(\sqrt{5-x}+x)=(5-x)-x^2$
By comparison we must have
$(\sqrt{5-x}-x)(\sqrt{5-x}+x)=\sqrt{5-x}-x$
and we are led to two possibilities:
Possibility 1: if the common factor $\sqrt{5-x}-x$ is nonzero we must have
$\sqrt{5-x}+x=1$,
from which
$5-x^2+x=1, x^2-x-4=0, x=(1-\sqrt{17})/2$
where the sign on $\sqrt{17}$is fixed by requiring $x^2\le 5$ because $\sqrt{5-x}=5-x^2$ must be nonnegative.
Possibility 2: The common factor is zero, in which case we simply have
$\sqrt{5-x}=x=5-x^2, x^2+x-5=0,x=(-1+\sqrt{21})/2$
where again $x^2\le 5$ to make $\sqrt{5-x}=5-x^2$ nonnegative.
Thus the solution set is $\{(1-\sqrt{17})/2,(-1+\sqrt{21})/2\}$.
Another way.
We have $$\sqrt{5-x}=5-x+x-x^2$$ Or $$5-x-\sqrt{5-x}-x(x-1)=0$$ or $$(\sqrt{5-x}-x)(\sqrt{5-x}+x-1)=0$$ and the rest is smooth.