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