I am having trouble with the following problem:
$f:\mathbb{R}\to \mathbb{R}$ is a measurable function such that for all $a$: $$\int_{[0,a]}f\,dm=0.$$ Prove that $f=0$ for $m$ almost every $x$ (here $m$ is the Lebesgue measure).
I have no problem proving this for $f$ non-negative, or under the assumption that $f$ is integrable. But the question only assumes that $f$ is measurable and no more.
My idea was the usual thing; we look at the set of points where $f$ is positive and negative and assume one of these has measure greater than zero. Then I wanted to estimate one of these by an open set, look at the integral on the open set and show that it had to be greater than zero, a contradiction. But a key part of this attack is the assumption of the absolute continuity of the integral, which only holds in the case where $f$ is integrable.
Alternatively, if it were integrable one could simply estimate $f$ by a continuous function, where the result is quite obvious.
Ultimately we are going to show that $f$ is integrable, but it is not clear to me how to show this before showing it is zero a.e. So there must be a simpler way. Does anyone have suggestions?