I am supposed to give an example of a sequence of Riemann integrable functions $f_{n}$ and $f$, all defined on $[0,1]$ such that $\lim f_{n}(x)=f(x)$ but $\lim \int_{0}^{1} f_{n} (x)dx\neq\int_{0}^{1}f(x)dx$.
What I can think of is $f_{n}(x)=\max\{n-n^2|x-\frac{1}{n}|,0\}$. The graphs actually converges to a "spike" but the integral for each $f_{n}$ is always $1$ and so I have $\lim \int_{0}^{1} f_{n} (x)dx\neq\int_{0}^{1}f(x)dx$.
However, I am not sure if $\lim f_{n}(x)=f(x)$ is true at all $x$ in $[0,1]$ for my example because the vertex $(\frac{1}{n},n)$ goes to infinity.