If $f$ is Riemann integrable on $[a,b]$ and $f(x) \geq 0$ almost everywhere on $[a,b]$ then $\int_{a}^{b} f \geq 0$
My idea is to show for any partition $P$ of $[a,b]$ the upper sum $\mathscr{U}(P,f) \geq 0$.
So let $I_k$ be any component interval of $P$. Then it contains at least one point $x$ s.t. $f(x) \geq 0$.
Then, $\sup_{x \in I_k} f(x) \geq 0$, then $\mathscr{U}(P,f) = \sum_{i=1}^{n} \sup_{x \in I_i} f(x) |I_i| \geq 0$
So $\int_{a}^{b} f \geq 0$.
I am not comfortable/satisfied with my argument Then it contains at least one point $x$ s.t. $f(x) \geq 0$.
How can I improve this argument?
It suffices to prove that, for measure zero set $N\subseteq[0,1]$, then the set $S:=[0,1]-N$ is dense in $[0,1]$.
For suppose that it is not, then some open interval $I$ that containing $x\in[0,1]$ is such that $(I\cap[0,1])\cap S=\emptyset$, then $I\cap[0,1]\subseteq N$, then $N$ is not of measure zero.