(x-1) is a factor, so try:

x^3 - x^2 - 2x + 2 = (x-1)(x^2 + ax -2)

The linear term on the right is then -a-2x, which should be equal to that

on the left, so a=0.

Now check by multiplying out the following:

(x-1)(x^2-2)

Now (x^2-2)=(x-sqrt(2))(x+sqrt(2), so:

x^3 - x^2 - 2x + 2 = (x-1)(x-sqrt(2))(x+sqrt(2)).

RonL