a^4 b+a^2 b^3 simplify

You can factor out a^2 b, giving

a^2 b (a^2 + b^2)

Not sure that's any simpler.