$f$ is a continuous function on $[a,b]$. If $$ \int_a^bx^nf(x)\mathrm{d}x=0,\ n=0,1,2,\cdots. $$ Prove that $f(x)=0$.
A further problem is we only have $$ \int_a^bx^nf(x)\mathrm{d}x=0,\ n=1,2,\cdots. $$ Prove the same result.
I tried to use a polynomial to approach $f(x)$, i.e. $$ \forall \epsilon>0, \exists P(x), \forall x\in[a,b],\ |f(x)-P(x)|\leq\epsilon. $$ Therefore, $$ \int_a^bx^n(P(x)-\epsilon)\mathrm{d}x\leq\int_a^bx^nf(x)\mathrm{d}x\leq \int_a^bx^n(P(x)+\epsilon)\mathrm{d}x. $$ But I do not know how to go on. It seems we only need to see the coefficient of the first term, but I cannot write a clear proof of that. Appreciate any help!