Problem
Let $f$ be a continuous function, $f:[0,1]\to\mathbb{R}$ with $\int_{0}^1 (2x-1)f(x) dx = 0$.
Prove that there exists a point c between $(0, 1)$ such that $\int_{0}^c (x-c)(f(x)-f(c)) dx = 0$.
This problem was given at a regional competition in Romania for $12$th grade students.
Attempt
From Rolle's Theorem we have that there exists q such that $f(q) = (2q - 1)f(q) = 0$, where we have $f(q)=0$.
My other attempt was: fix $p$ to $0.5$ and separate according to the Mean Value Theorem for Integrals $\int_{0}^1 (2x-1)f(x) dx = 0$ into $-f(c1) * \int_{0}^p (1-2x) dx$ $+ $ $f(c2) * \int_{p}^1 (2x-1) dx = 0$ where we get that $f(c1)=f(c2)$
Meaning no disrespect to the existing answer, there is a much simpler solution.
Consider the continuously differentiable function $\Lambda:[0,1]\to\Bbb R$ given by: $$c\mapsto\int_0^c(2xc-c^2)f(x)\,\mathrm{d}x$$
$\Lambda(0)=0=\Lambda(1)$ by assumption. By “Rolle’s” theorem, $\Lambda’(c)=0$ for some distinguished $c$ in $(0,1)$. For this $c$, we then know (Leibniz integral rule): $$0=(2c^2-c^2)f(c)(1)+\int_0^c\partial_c[(2xc-c^2)f(x)]\,\mathrm{d}x=2\int_0^c(x-c)(f(x)-f(c))\,\mathrm{d}x$$As desired.