\(x^3+8-\left(x^2-3x\right)\left(x+2\right)+1=0\\ =>x^3+8-\left(x^3-3x^2+2x^2-6x\right)+1=0\\ =>x^3+8-x^3+x^2+6x+1=0\\ =>x^2+6x+9=0\\ =>\left(x+3\right)^2=0\\ =>x+3=0\\ =>x=-3\)
x 3 + 8 − ( x 2 − 3 x ) ( x + 2 ) + 1 = 0
<=> x 3 + 8 − ( x 3 − 3 x 2 + 2 x 2 − 6 x ) + 1 = 0
<=> x 3 + 8 − x 3 + x 2 + 6 x + 1 = 0
<=> x 2 + 6 x + 9 = 0
<=> ( x + 3 ) 2 = 0
<=> x + 3 = 0
<=> x = − 3