(x+1)2(x+2) + (x+1)2(x-2) = -24
⇔(x+1)2 (x+2+x-2)=-24
⇔(x+1)2 2x=-24
⇔ (x2+2x+1)2x=-24
⇔2x3+4x2+2x+24=0
⇔2(x3+2x2+x+12)=0
⇔x3+2x2+x+12=0
⇔x3+3x2-x2-3x+4x+12=0
⇔(x3+3x2)-(x2+3x)+(4x+12)=0
⇔x2(x+3)-x(x+3)+4(x+3)=0
⇔ (x+3)(x2-x+4)=0
⇔ \(\left[{}\begin{matrix}x+3=0\Leftrightarrow x=-3\\x2-x+4=0\left(voly\right)\end{matrix}\right.\)
vậy phương trình có tập nghiệm là S={-3}