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