I'm trying to do solve a problem from Ziemer's lecture notes Modern Real Analysis (Exercise 6.38). The statement is the following:
Let $(X, M, \mu)$ be a $\sigma$-finite measure space, and let $f\in L^1(X,\mu)$. In particular $f$ is $M$-measurable. Suppose $M_0\subset M$ be a $\sigma$-algebra. Of course, $f$ may not be $M_0$-measurable. However, prove that there is a unique $M_0$-measurable function $f_0$ such that $$\int fgd\mu=\int f_0gd\mu$$ for each $M_0$-measurable $g$ for which the integrals are finite. Hint: Use the Radon-Nikodym Theorem.
I tried to apply Radon-Nikodym Theorem in various ways to see what happen but nothing works. Any hint will be really appreciated.