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