Let $\{f_n\}$ be a sequence of nonnegative measurable functions on $\Bbb{R}$ that converges pointwise on $\Bbb{R}$ to $f$ and $f$ be integrable over $\Bbb{R}$. Show that $$\mbox{If } \int_\Bbb{R} f = \lim_{n \to \infty} \int_\Bbb{R} f_n, \mbox{ then } \int_E f = \lim_{n \to \infty} \int_E f_n$$ for any measurable set $E \subseteq \Bbb{R}$.
I found a solution to this problem here (see the third and fourth pages), but I don't understand the following line from the proof:
$$\int_{\Bbb{R} - E} f \le \liminf_{n} \int_{\Bbb{R} - E} f_n = \int_\Bbb{R}f - \limsup_n \int_E f_n$$
Is the equality valid? The only way I could see to justify this step was by noting that $\int_\Bbb{R} f_n = \int_E f_n + \int_{\Bbb{R} - E} f_n$ or $\int_{\Bbb{R} - E} f_n = \int_{\Bbb{R}} f_n - \int_E f_n$, and then
$$\liminf_{n} \int_{\Bbb{R} - E} f_n = \liminf_n (\int_{\Bbb{R}} f_n - \int_E f_n) = \int_\Bbb{R} f - \limsup_n \int_E f_n$$
But would this not be fallacious, as we do not know whether the $f_n$ are integrable and therefore cannot subtract those integrals, which are potentially infinite, as we see fit? Is this solution incorrect, or am I misunderstanding something?
$f_n$ is integrable for $n$ large enough, because we have the assumption $$\int f = \lim_{n\rightarrow\infty} \int f_n.$$ It works in the following way: The convergence gives you an $n_0$, such that for every $n\geq n_0$ $$\int f_n \leq 1+\int f < \infty.$$ Since $f_n$ is nonnegativ, it is integrable.