# How do you factor completely x^3-x^2-x+1?

Factor $f \left(x\right) = {x}^{3} - {x}^{2} - x + 1$
$y = \left(x - 1\right) \left({x}^{2} - 1\right) = {\left(x - 1\right)}^{2} \left(x + 1\right)$
ChecK: $f \left(x\right) = {x}^{3} - x - {x}^{2} + 1$. OK