ĐKXĐ: ...
Đặt \(\sqrt{x+5}=a\ge0\Rightarrow a^2-x=5\)
\(x^2+a=a^2-x\)
\(\Leftrightarrow x^2-a^2+x+a=0\)
\(\Leftrightarrow\left(x+a\right)\left(x-a+1\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}a=-x\\a=x+1\end{matrix}\right.\)
\(\Leftrightarrow\left[{}\begin{matrix}\sqrt{x+5}=-x\left(x\le0\right)\\\sqrt{x+5}=x+1\left(x\ge-1\right)\end{matrix}\right.\)
\(\Leftrightarrow\left[{}\begin{matrix}x+5=x^2\left(x\le0\right)\\x+5=\left(x+1\right)^2\left(x\ge-1\right)\end{matrix}\right.\)
\(\Leftrightarrow\left[{}\begin{matrix}x^2-x-5=0\\x^2+x-4=0\end{matrix}\right.\)