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