Let $f$ be a non-negative measurable function on $\mathbb{R}$, and suppose that $\int f=0$. Prove that the set where $f \neq 0$ is a zero set.
The hint says to let $E_n=\{f>1/n\}$ and then compare $U(f)$ with $U(f|_{E_n})$.
I need help to prove this and compare the two above.
Let $E_n=\{f\ge 1/n\}$ and $\chi_{E_n}$ be the indicator function of this set. Then clearly $f\ge \chi_{E_n}f\ge 0$, so $$\int f\ge \int\chi_{E_n}f\ge 0, $$ but $$0\ge\int \chi_{E_n}f\ge \frac{|E_n|}{n}\ge 0.$$
Can you conclude now?