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