The function $f(x)$ is continuous on the interval $[0,1]$ and we have that $$ \int_0^1f(x)x^ndx = 0, \quad\, n=0,1,2,\dots $$ Prove that $f(x)= 0$ on the interval $[0,1]$.
So I am thinking like this, I can expand $f(x)$ to an even function and for even $n$ I got this
$$\frac{1}{2}\int_{-1}^1f(x)x^ndx$$ and then $f(x)$ must be zero for all $x$ in this interval, is this right? What about odd $n$? Not even sure if this is the right way to attack this.
This is in my Fourier Analysis course and its in the chapter that contains orthogonal set of functions. So I need to prove this with tools within this area.