Possible Duplicate:
Prove that $\exists a
Suppose that $f:[0,1]\to \mathbb{R}$ is continuous, and that $$\int_{0}^{1} f(x)=\int_{0}^{1} xf(x)=0.$$
How does one prove that $f$ has at least two distinct zeroes in $[0,1]$?
Well, if not say $\forall a,b\in [0,1] \ni a0$ then there will be a neighborhood of $a$ say $(a-\epsilon,a+\epsilon)$ where $f(x)>0$ and hence the integral will not be equal to $0$, but I don't know where I am using the other integral condition. am I wrong anywhere in my proof? please help.