Let $f:[a, b] \to \Bbb R$ be a continuous function such that $f = 0$ almost everywhere; that is, the set $D = \{x \in [a, b]: f(x) \neq 0 \}$ has a measure zero. Prove $f(x) = 0$ for all $x \in [a, b]$.
Here is what I was thinking:
if $f(x_0) \gt 0$, then there exists an interval $I = (x_0 − \delta, x_0 + \delta)$ such that $f(x) \gt 0$ for all $x \in I \cap [a,b]$.
I think that's the idea I want to show, but I'm just having trouble how I can show it.