Simplify (x^3+2x^2)(3x^2-1)