Let $f:[a,b]\rightarrow \mathbb{R}$ be a continuous function. Suppose that $\displaystyle\int_a^b x^nf(x) \, dx=0$ for all $n\in\{ 0,1,2, \ldots \}$. Prove that $f=0$.
(Hint. Consider $\displaystyle\int_a^b f(x) \, f(x) \, dx$.)
Hello,
I have been trying to solve this question.
My attempt at the solution has involved looking at similar functions. Firstly, i know that if we take the absolute value of the integral above it is clear that the functions must be 0. To elaborate, if the function had a point x such that f(x) was nonzero it would also follow that there is a delta interval around the point f(x) so that the integral from x-delta to x+delta of the above would be positive and so this would be a contradiction. So, i thought i could apply a similar principal here. However, that doesn't seem to work. I feel that the hint is drawing upon the same idea using f(x)*f(x) as being always positive since we are working in R. Any ideas?