Let $f$ be a non-negative measurable function on $\mathbb{R}$ such that $\int f<\infty$. It is required to prove that for any $\epsilon >0$ there exists a measurable set $E$ such that $m(E)<\infty$ and $\int_E f>(\int f)-\epsilon$. The following is my attempt.
Let $\epsilon >0$. Then there exists a simple function $\phi$ with $0\leq\phi\leq f$ such that $(\int f)-\epsilon<\int\phi$. Say $\sum_{k=1}^N a_k\ \chi_{E_k}$ is the canonical representation of $\phi$. Then $\int \phi=\sum_{k=1}^N a_k\ m(E_k)\leq\int f<\infty$. Define $E=\bigcup_{k=1}^N E_k$. Then $E$ is measurable and $m(E)<\infty$ and $\int \phi=\int_E\phi\leq\int_E f$. Hence the result.
Is this proof correct? Someone please help. Thanks.