Let $f:[a,b] \to [0,\infty)$ be a Riemann integrable function such that $\int_{a}^{b} f(x) \ dx =0$. Then how does one show that the set $S= \{x \in [a,b] \ : \ f(x)=0\}$ is dense in $[a,b]$.
- To show $S$ is dense in $[a,b]$ i have to show that given $x,y\in[a,b]$ there is a $z \in S$ such that $x<z<y$.
Not sure how to go from here.
If $S$ is not dense in $[a,b]$ then there exists an open set $U\subseteq [a,b]$ such that $U\cap S=\emptyset$.
Let $(c-\delta,c+\delta )\subseteq U$.
Then $0=\int_{[a,b]} f\ge \int _{c-\delta}^{c+\delta}f> 0$ (since $f\ge 0$) which is false.