Let $f$ be an integrable function on $\mathbb{R}$ such that for every continuous $g$ on $\mathbb{R}$, $\displaystyle\int_\mathbb{R} fg \ dm=0$. Show that $f$ is zero a.e.
This is a qualifier sample problem and my idea is to proceed by contradiction. My problem here is that $f$ is not necessarily nonnegative so I'm having difficulties on establishing inequalities to arrive at a contradiction. Thanks!
Hint: If $b\in L^\infty(\mathbb R),$ then there exists a sequence $g_n$ of bounded continuous functions on $\mathbb R$ such that $\|g_n\|_\infty\le \|b\|_\infty$ for all $n,$ and $g_n \to b$ pointwise a.e.