f(x) =x^3-3x+2
f(1)=0
x^3-3x+2 = (x-1)(x^2+ax-2)
coef. of x
-2-a=-3
a=1
x^3-3x+2
= (x-1)(x^2+x-2)
=(x-1)(x+2)(x-1)