Trying to answer the following question;
Let $f(x)$ be a continuous real valued function on $[0,4]$. Given any $\epsilon>0$ prove there is a polynomial $p(x)$ such that $$\int_0^4|f(x)-p(x)|^2dx<\epsilon.$$
It is very clear how to show this for $$\int_0^4|f(x)-p(x)|dx,$$ (which I've worked on here: Does integration preserve uniform convergence of sequence? (Weierstrass Approximation Theorem)) but I'm not sure how to deal with the square.
Note that if $|f(x)-p(x)|<\epsilon,$ then $|f(x)-p(x)|^2<\epsilon^2.$ So, it just comes down to fiddling with epsilons to remove the square. Spoiler below: