[Math] The function $f$ is Riemann integrable on $[-1,1]$. For any interval in $[-1,1]$, there are always both positive and negative values of $f(x)$.

continuityintegrationreal-analysis

The function $f$ is Riemann integrable on $[-1,1]$. For any interval in $[-1,1]$, there are always both positive and negative values of $f(x)$. How can I prove that $\int^1_{-1}f=0$? I think that given the conditions we can say there is some $x$ with $f(x)=0$ in any interval, but I'm stuck from here…

Best Answer

Let $P$ be any partition of $[-1,1]$. Since $f$ contains positive values on every interval, the upper sum $U(P,f)$ is positive. Hence $$\int f = \inf\limits_{P} U(P,f) \geq 0.$$ Similarly, $L(P,f)$ is negative, so that $$\int f = \sup\limits_{P} L(P,f) \leq 0.$$ A more interesting question, which I am unsure of the answer for, is whether there is such a function that is Riemann integrable.

Related Question