\[(x - 1)\left( x^{2} - x - 2 \right) =\]
\[= x^{3} - x^{2} - x^{2} + x - 2x + 2 =\]
\[= x^{3} - 2x^{2} - x + 2\]