I am trying to prove the following problem:
Let $f(x)$ be a real and continuous function on $[0,1]$. Show that $$\displaystyle\lim_{n \to \infty} (n+1) \int_0^1 x^n f(x) dx = f(1).$$
I have shown that the result holds true if $f(x)$ is a polynomial. By Weierstrass approximation theorem, there exists functions $P_m(x)$ of degree $m$ that converges uniformly to $f(x)$ on $[0,1].$ Because $x^n$ is bounded on $[0,1]$ for all $n$, we know that $x^nP_m(x)$ converges uniformly to $x^nf(x)$ as $m$ approaches infinity. Thus we are reduced to showing that we are able to interchange the limits in
$$\lim_{n \to \infty} \lim_{m \to \infty} (n+1) \int_0^1 x^nP_m(x)dx = \lim_{m \to \infty} \lim_{n \to \infty} (n+1) \int_0^1 x^nP_m(x)dx.$$
I am not sure how to justify this. If you have any other way of solving the problem you are welcome to share. Thank you!
Hint: $$|(n+1) \int_0^{1}x^{n} P_m(x)dx-(n+1) \int_0^{1}x^{n} f(x)dx|$$ $$ \leq (n+1) \int_0^{1}x^{n}|f(x)- P_m(x)| dx$$ $$<\epsilon (n+1)\int_0^{1}x^{n}dx=\epsilon$$ for all $n$ if $m$ is sufficiently large.