My question is.... if two measurable functions $f$ and $g$ on a measure space $(X, M, \mu)$ are such that for all $A \in M$, $$ \int_{A}f\,d\mu = \int_{A}g\,d\mu, $$ does this imply that $f=g$ a.e. $\mu?$ If this isn't true, then are there any restrictions we can impose (positivity or $\sigma$-finiteness of $\mu$, etc.) to salvage the statement?
I've tried defining $E$ to be the set such that $f \neq g$ and show that it must have measure zero, but I can't find the right manipulations of the integral expressions to squeeze that out.... any suggestions?
Let $$A_\epsilon=\newcommand{\set}[1]{\left\{{#1}\right\}}\set{x\in X: f(x) \ge g(x)+\epsilon},$$ which is measurable because $f$ and $g$ are. Observe that $$0=\int_{A_\epsilon} f-g \,d\mu \ge \epsilon \mu(A_\epsilon),$$ so $\mu(A_\epsilon)=0$ for all $\epsilon$. Can you finish the proof from here?