This follows from the polynomial remainder theorem (its proof is pretty simple).

You need to divide x^3 - x^2 - x + 1 by x - 1 using polynomial long division. The ratio is going to be a quadratic polynomial, and you can find its has roots (if it has them) and therefore factorize it using the quadratic formula.