Let $f_n: \Bbb R \to \Bbb R$ be continuous functions that converge uniformly to a function $f$.
Suppose that $f_n\to g$ for $g\in L^p(\Bbb R)$ for some $p\ge 1$.
I need to prove that $f=g$ a.e.
So it's enough to show that $||f-g||_p =0$.
By triangle inequality we have $||f-g||_p \le ||f-f_n||_p +||f_n-g||$.
so it's enough to show that $||f-f_n||_p \to 0$ (as ,by assumption $||f_n-g||\to 0)$.
So I reduced the problem to the problem of showing $||f_n-f||_p \to 0$ , any ideas how to do that?
I know $f$ is continuous and also that I can bound $|f_n(x)-f(x)|^p$ uniformly, but I still have an integral of a constant over $\Bbb R$ which is $\infty$.
Thanks for helping!
Let $N\in \mathbb{N}$. Then, $$ 0=\lim_{n}\int_{-N}^N|f_n-g|^p\stackrel{\text{uniform convergence}}{=}\int_{-N}^N|f-g|^p $$ so $f=g$ almost everywhere on $[-N,N]$.
Suppose now there is some positive measure set $A$ on which $f$ and $g$ differ. Then, by continuity of measure, $$ \mu(A)=\mu\left (\bigcup_{N\in \mathbb{N}}[-N,N]\cap A\right)=\lim_{N\to \infty}\mu([-N,N]\cap A) $$ So, for some large $N'$, $\mu([-N',N']\cap A)>0$, a contradiction.