Does $\int_a^bf(x) = 0$ imply $f(x) = 0$ for a Riemann Integral function?

1.7k Views Asked by At

Let $a < b$ and $f:[a, b] \rightarrow \mathbb R$ be a Riemann integral function. Suppose that $f(x) \geq 0$ for all $x \in [a, b]$. I want to show whether $\int_a^bf(x) = 0$ implies $f(x) = 0$ or not, but I'm not sure where to start. I don't know much about Riemann integral functions in general. I only know that $$\underline{\int_a^b} f= \overline{\int_a^b} f.$$ Also, I know the fact that if $f$ is continuous, then $f(x) = 0$ for all $x\in [a, b]$. Can anyone provide any hints for me, because I'm really confused about this whole thing.

1

There are 1 best solutions below

2
On

Suppose that $f : [a,b] \to [0,\infty)$ is Riemann integrable and that $$ \int_{a}^{b} f(x)\,\mathrm{d}x = 0. $$ As noted in the question, if $f$ is continuous on $[a,b]$, then $f(x) = 0$ for all $x \in [a,b]$. This particular result has been demonstrated repeatedly on Math StackExchange, see, for example, this post and the posts linked to that post (on the sidebar to the right once you click the link).

If the hypothesis of continuity is dropped, the result no longer holds. For example, fix some point $c \in [a,b]$ and consider a function $f$ defined by $$ f(x) = \begin{cases} 1 & \text{if $x = c$, and} \\ 0 & \text{otherwise.} \end{cases} $$ This function is not identically zero, but $$ \int_{a}^{b} f(x)\,\mathrm{d}x = 0. $$ Indeed, if $C = \{c_n\}_{n\in \mathbb{N}}$ is some countable collection of points in the interval $[a,b]$ and $\{a_n\}_{n\in\mathbb{N}}$ is a collection of positive numbers, then the function $$ f(x) = \begin{cases} a_n & \text{if $x = c_n \in C$, and} \\ 0 & \text{otherwise} \end{cases} $$ is a nonzero function which integrates to zero. In other words, a nonnegative Riemann integrable function may be strictly positive on a countable collection of points and still integrate to zero.

Hence knowing that a nonnegative function integrates to zero on some interval is not sufficient to conclude that the function is identically zero on that interval. One either needs to adjust the hypotheses to include continuity, or one needs to introduce a notion of being zero "almost everywhere".