Let $f\in L_\text{loc}^1(\Omega)$ be such that $f \ge0$, and $\int_\Omega f\varphi ~dx=0$ for all $\varphi\in \mathcal{C}^\infty_C(\Omega)$. Show that $f=0$ a.e. in $\Omega$.
i am not able to get how to approach for it. Any type of help will be appreciated. Thanks in advance.
There is a bare hands approach to this which is similar to showing that $C^{\infty}_c(\Omega)$ is dense in $L^1(\Omega)$:
Roughly speaking: Suppose that $f > 0$ on a set $E$ of positive measure. Now take $\phi$ to be a very good approximation of $\mathbf{1}_E$.