Let $f$ and $g \in L(X,\mathbb{X},\mu)$ be such that
$\int f d \mu = \int g d\mu < \infty$ and $\int_E f d \mu = \int_E g d\mu$ for all $E \in \mathbb{X}$
Show that $f(x)=g(x) \mu$ a.e $x$.
I feel that the set $\{x \in X : |f(x)-g(x)| > \frac{1}{n} \}$ is important but I cannot see how to incorporate into a solution.
Furthermore I cannot see why we need the $< \infty$
Let $A=\{x\in X: f(x)\ne g(x)\}$ and $A_n=\{x\in X: |f(x)-g(x)|>1/n\}$. We need to show that $\mu(A)=0$. But as $$ A=\bigcup_{n=1}^\infty A_n, $$ it suffices to show that $\mu(A_n)=0$, for all $n$. Also, let \begin{align} A_n &=\{x\in X: |f(x)-g(x)|>1/n\} \\&=\{x\in X: f(x)-g(x)>1/n\}\cup\{x\in X: g(x)-f(x)>1/n\}= B_n\cup C_n. \end{align} It now suffices to show that $\mu(B_n)=\mu(C_n)=0$. We know that $$ \int_{B_n}g\,d\mu=\int_{B_n}f\,d\mu\ge\int_{B_n}\left(g+ \frac{1}{n}\right)\,d\mu =\int_{B_n}g\,d\mu+\frac{1}{n}\mu(B_n), $$ which implies that $\mu(B_n)=0$. Simliarly, we can obtain that $\mu(C_n)=0$.