\[(x + 2)^{2}\left( x^{3} - 1 \right) = 0\]
\[x + 2 = 0\ \ \ \ \ \ \ \ \ x^{3} - 1 = 0\]
\[x = - 2\ \ \ \ \ \ \ \ \ \ \ \ \ x^{3} = 1\]
\[\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ x = 1\]
\[Ответ:\ x = - 2;x = 1.\]