Solve $\sqrt{5-x}=5-x^2$ for $x$.
This is what I have done so far.
Method 1: \begin{align} \sqrt{5 - x} & = 5 - x^2 \\ 5 - x & = (5 - x^2)^2 \\ 5 - x & = 25 - 10x^2 + x^4 \\ 0 & = x^4 - 10x^2 + x + 20 \end{align}
Method 2: \begin{align} \sqrt{5 - x} & = (\sqrt5)^2 - (x)^2 \\ \sqrt{5 - x} & = (\sqrt5 - x)(\sqrt5 + x) \\ 1 & = \sqrt5 + x\\ x & = 1 - \sqrt5 \end{align}
This is good. $x^4 - 10x^2 + x + 20 = 0$
$\sqrt {5-x} = (\sqrt 5 - x)(\sqrt 5 + x)$ you cannot divide both sides as $\sqrt {5-x} \ne (\sqrt 5 - x)$
Taking a bit of a shot in the dark: $(x^2 + ax - 4)(x^2 + bx - 5) = x^4 + (-9+ab)x^2 + (-5a-4b)x - 20$
$a = -x, b = x$
$(x^2 -x - 4)(x^2 + x - 5)=0\\ x = \frac {1 + \sqrt {17}}{2},\frac {1 - \sqrt {17}}{2},\frac {-1 + \sqrt {21}}{2},\frac {-1 - \sqrt {21}}{2}$
But, we need since $\sqrt {5-x} > 0$ we require $5-x^2 > 0$ and $|x| < \sqrt 5$ eliminating 2 solutions
$x = \frac {1 - \sqrt {17}}{2},\frac {-1 + \sqrt {21}}{2}$