I am trying to show that if $f=g$, almost everywhere on some set X, where g is lebesgue integrable, then f is also lebesgue integrable and we have
$\int_{X}fd\mu=\int_{X}gd\mu$
I have googled this an found no proof of it, but I am sure it must be easy to prove. Can anyone show me how to prove this equation?
Let $N$ be the null set such that $\forall x \in X \setminus N (f(x)=g(x))$. Then $\int_X (f(x) - g(x)) d\mu = \int_{X \setminus N} (f(x) - g(x)) d\mu + \int_N (f(x) - g(x)) d\mu = \int_{X \setminus N} 0 d\mu + 0 =0$. Thus $\int_X (f(x) - g(x)) d\mu = 0$ and $\int_X f(x) d\mu = \int_X g(x)d\mu$ by linearity.