If $f$ is continuous on $[0,1]$ and if $\int\limits_{0}^{1} f(x) x^n dx = 0, (n=0,1,2,...)$, prove that $f(x)=0$ on $[0,1]$.

Solution 1:

See my comment. This is another way to use Weierstrass's theorem.

If $f(x)$ is a polynomial, the result is clearly true. However, any continuous function can be approximated by a polynomial, the result is true for any continuous function.

As I said in my comments, I like your answer better, but it is here as alternative.