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