Here is the question:
Let $f:[0, 1]\rightarrow \mathbb{R}$ be a continuous function satisfying $$\int_0^1 (1-x)f(x) \,dx = 0$$ Show that there exists $c\in (0, 1)$ such that $$\int_0^c xf(x)\,dx = cf(c)$$
I'm pretty sure that the problem wants me to use the mean value theorem of some type. So I tried to consider a function $F(t)$ that would give the form $$F'(t) = \int_0^t xf(x)\,dx -tf(t)$$ so that I would be able to say $F'(c) = 0$ for some $c\in (0, 1)$, using Rolle's theorem. But this gave me $$F(t) = \int_0^t ((t-1)x-x^2)f(x)\,dx$$ which didn't really help me proceed any further.
I have also tried setting $$F(t) = \int_0^t (t-x)f(x)\,dx$$ in hopes of using Rolle's theorem, since $F(0)=F(1)=0$. But $F'(t)$ wasn't really the required form. I've also tried other different forms so that I could apply mean value theorem for integrals, or Cauchy's mean value theorem. But I couldn't derive the correct form to solve the problem.
Maybe I have missed something? Or can someone provide me a different approach to this problem? Thanks in advance.