Let $f$ be a non-negative Riemann integrable function on $[a,b]$. If $f$ equals to zero except on an null set,then$\int_a^b f = 0$
Let $A$ be the null set and $M=\sup\left\{f(x):x\in[a,b]\right\}$.
For any $\epsilon>0$, there exists a sequence of intervals $(I_k)$ such that $A\subset \bigcup_{k=1}^\infty I_k$ and $\sum_{k=1}^\infty|I_k|<\epsilon$
My approach is 2-steps.
Step 1: To prove that there exists an interval $I$ such that $\{\bigcup_{k=N}^\infty I_N\} \cap A\subset I$ for some $N$
Step 2: After Step 1, $f$ on $[a,b]\setminus I$ is either zero or nonzero value but is covered by $I$ for some $K For step 1, consider $\frac{\epsilon}{2M}$, there is a sequence of intervals $(I_k)$ such that $A\subset \bigcup_{k=1}^\infty I_k$ and $\sum_{k=1}^\infty|I_k|<\frac{\epsilon}{2M}$. Define $I_k=[a_k,b_k]$, assume that $I_k$ is in the order that $\sup\{f(x):x\in I_k\}\le\sup\{f(x):x\in I_{k+1}\}$, otherwise we rearrange the sequence of interval. Since $A$ is bounded from $a$ and$b$, $\sup_{x\in[a,b]}A$ is well defined,
there exists $x_N\in A$, and thus $x_N\in I_N$ for some $N$ such that $x_N\gt \sup_{x\in[a,b]}A-\frac{\epsilon}{4M}$ Note that $|I_N|\lt \frac{\epsilon}{2M}$, because the infinite sum is less than$\frac{\epsilon}{2M}$, so $a_N\gt sup_{x\in[a,b]}A-\frac{\epsilon}{2M}$, so there exists an interval $I$ such that $I_N \cap A\subset I$. For $N+1$, since $x_N\le \sup\{f(x):x\in I_N\}\le \sup\{f(x):x\in I_{N+1}\}$, there exists $x\ge x_N \ge \sup_{x\in[a,b]}A-\frac{\epsilon}{2M}$, so again $I_{N+1} \cap A\subset I$. Then, we can do induction following the "N+1"argument and yield $\{\bigcup_{k=N}^\infty I_N\} \cap A\subset I$ for some $N$. $|I|\lt \frac{\epsilon}{2M}$, so the Riemann sum on this interval is less than $\frac{\epsilon}{2}$, combining with setp 2, the proof is done. If I am right, the assumption that $f$ is Riemann integrable is not needed, and
the null set assumption can be weakened to be those intervals only need to be small than any $\epsilon\gt 0$? If I am wrong, please teach me how to prove it. Any help would be appreciated.