Đặt \(\sqrt{x^2+x+1}=a\)
Pt trở thành \(3a=a^2+2\)
=>(a-1)(a-2)=0
\(\Leftrightarrow\left\{{}\begin{matrix}x^2+x+1=1\\x^2+x+1=4\end{matrix}\right.\Leftrightarrow\left\{{}\begin{matrix}x^2+x=0\\\left(x+\dfrac{1}{2}\right)^2=\dfrac{13}{4}\end{matrix}\right.\)
\(\Leftrightarrow x\in\left\{0;-1;\dfrac{\sqrt{13}-1}{2};\dfrac{-\sqrt{13}-1}{2}\right\}\)