It seems that in many situations, the fact that $f(x)$ is rational at $x=a,b$ and $f(0)=0$ and $f$ is integrable is enough to say that $$\int_a^bf(x)dx$$ is rational. Is this true? If not, can you give a pretty-large class of commonly discussed combinations of elementary functions for which it is true?
(E.g. It's true for rational-coefficient polynomials, but is it true for polynomials in $ln(x)$?)
Take the function $x^2$ on $[0,\sqrt{2}]$