\(\Leftrightarrow\left(x^2+2\right)\sqrt{x^2+x+1}-2\left(x^2+2\right)+x^3-x^2-5x+6=0\)
\(\Leftrightarrow\left(x^2+2\right)\left(\sqrt{x^2+x+1}-2\right)+\left(x-2\right)\left(x^2+x-3\right)=0\)
\(\Leftrightarrow\dfrac{\left(x^2+2\right)\left(x^2+x-3\right)}{\sqrt{x^2+x+1}+2}+\left(x-2\right)\left(x^2+x-3\right)=0\)
\(\Leftrightarrow\left(x^2+x-3\right)\left(\dfrac{x^2+2}{\sqrt{x^2+x+1}+2}+x-2\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}x^2+x-3=0\Rightarrow x=...\\x^2+2=\left(2-x\right)\left(\sqrt{x^2+x+1}+2\right)\left(1\right)\end{matrix}\right.\)
\(\left(1\right)\Leftrightarrow x^2+2x-2=\left(2-x\right)\sqrt{x^2+x+1}\)
Đặt \(\sqrt{x^2+x+1}=t>0\Rightarrow x^2=t^2-x-1\)
\(\Rightarrow t^2+x-3=\left(2-x\right)t\)
\(\Leftrightarrow t^2+\left(x-2\right)t+x-3=0\)
\(\Leftrightarrow t^2-1+\left(x-2\right)\left(t+1\right)=0\)
\(\Leftrightarrow\left(t+1\right)\left(t+x-3\right)=0\)
\(\Leftrightarrow t=3-x\)
\(\Leftrightarrow\sqrt{x^2+x+1}=3-x\) (\(x\le3\))
\(\Leftrightarrow x^2+x+1=x^2-6x+9\)
\(\Leftrightarrow x=\dfrac{8}{7}\)