Đặt \(x^2+x=a\)
\(\Rightarrow a^2+4a=12\)
\(\Leftrightarrow a^2+4a-12=0\Rightarrow\left[{}\begin{matrix}a=2\\a=-6\end{matrix}\right.\)
\(\Rightarrow\left[{}\begin{matrix}x^2+x=2\\x^2+x=-6\end{matrix}\right.\)
\(\Rightarrow\left[{}\begin{matrix}x^2+x-2=0\\x^2+x+6=0\left(vn\right)\end{matrix}\right.\)
\(\Rightarrow\left[{}\begin{matrix}x=1\\x=-2\end{matrix}\right.\) \(\Rightarrow\sum x=-1\)
Ta có: \(\left(x^2+x\right)^2+4\left(x^2+x\right)=12\)
\(\Leftrightarrow\left(x^2+x\right)^2+4\left(x^2+x\right)-12=0\)
\(\Leftrightarrow\left(x^2+x\right)^2+6\left(x^2+x\right)-2\left(x^2+x\right)-12=0\)
\(\Leftrightarrow\left(x^2+x\right)\left(x^2+x+6\right)-2\left(x^2+x+6\right)=0\)
\(\Leftrightarrow\left(x^2+x+6\right)\left(x^2+x-2\right)=0\)
\(\Leftrightarrow x^2+x-2=0\)(vì \(x^2+x+6>0\forall x\))
\(\Leftrightarrow x^2+2x-x-2=0\)
\(\Leftrightarrow x\left(x+2\right)-\left(x+2\right)=0\)
\(\Leftrightarrow\left(x+2\right)\left(x-1\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}x+2=0\\x-1=0\end{matrix}\right.\Leftrightarrow\left[{}\begin{matrix}x=-2\\x=1\end{matrix}\right.\)
Tổng các giá trị của x là: -2+1=-1