`\text{Đáp án:}`
$\left[\begin{matrix} x=0\\ x=-1\end{matrix}\right.$
`\text{Giải thích các bước giải:}`
`(x+1)^3-(x-1)(x^2+x+1)-2=0`
`⇔x^3+3x^2+3x+1-x^3+1-2=0`
`⇔3x^2+3x=0`
`⇔3x(x+1)=0`
`⇔` $\left[\begin{matrix} 3x=0\\ x+1=0\end{matrix}\right.$ `⇔` $\left[\begin{matrix} x=0\\ x=-1\end{matrix}\right.$
`\text{Vậy...}`