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