x3-2x2-x+2
=x3-x2-x2+x-2x+2
=x2(x-1) -x(x-1) -2(x-1)
=(x2-x-2)(x-1)=(x2-2x+x-2)(x-1)
=(x-2)(x+1)(x-1)
(x^3-2x^2-x+2\ =x^3-x^2-x^2+x-2x+2\ =x^2left(x-1 ight)-xleft(x+1 ight)-2left(x+1 ight)\ =left(x+1 ight)left(x^2-x-2 ight)\ =left(x+1 ight)left(x^2+x-2x-2 ight)\ =left(x+1 ight)^2left(x-2 ight))