# Integral and continuous function [closed]

Let $f:[0,1]\rightarrow \mathbb{R}$ be a continuous function. Supose that $$\int_{0}^{1}x^{n}f(x)dx=0$$

$\forall n=0,1,2,...$. Proof that $f(x)=0$.

-

## closed as off-topic by Brian Fitzpatrick, Davide Giraudo, mookid, Grigory M, HakimJun 8 '14 at 10:03

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question is missing context or other details: Please improve the question by providing additional context, which ideally includes your thoughts on the problem and any attempts you have made to solve it. This information helps others identify where you have difficulties and helps them write answers appropriate to your experience level." – Brian Fitzpatrick, Davide Giraudo, mookid, Grigory M, Hakim
If this question can be reworded to fit the rules in the help center, please edit the question.

## 1 Answer

Hint

These are the steps:

• Prove that for any polynomial $P$: $$\int_0^1P(x)f(x)dx=0$$
• Use the Stone–Weierstrass theorem
• and finally use the fact that if (since $f$ is continuous) $$\int_0^1f^2(x)dx=0$$ then $f$ is the zero function.
-