I am doing integration using MATLAB's symbolic toolbox. I have many functions of my independent variable, z. This is my code, with numbers changed and the problem simplified. I have F1 print at the end just so I can see what the function resolves to.
Q(z) = 1200 + 56*z - 2.5*z^2;
R = - int(Q(z), [0 l]) + W;
F1(z) = simplify(- int(Q(z), [0 z]) - R,"IgnoreAnalyticConstraints",true);
F1
F1(z) =

Even with simplify and "IgnoreAnalyticConstraints" being set to true, F1 is in the form "73900/3 - (z*(- 5*z^2 + 168*z + 7200))/6" instead of az^3/b + cz^2/d + ez/f + g, the fully simplified method. vpa just puts all fractions in numeric form, and eval doesn't really do anything. What am I missing, as I know that there should be some method to this simple operation of simplifying a polynomial.