\(\Leftrightarrow\left(x+2\right)^2\cdot\left(x+1\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}x=-2\\x=-1\end{matrix}\right.\)
\(\Leftrightarrow x^3+5x^2+8x+4=0\\ \Leftrightarrow\left(x+1\right)\left(x+2\right)^2=0\\ \Leftrightarrow\left[{}\begin{matrix}x=-1\\x=-2\end{matrix}\right.\)