$f:[0,1] \to \mathbf R$ is continuous. If $$\int_0^{x/3} f(t)dt =\int_0^xf(t)dt$$ for all $x$ in $[0,1]$, prove that $f$ is identically $0$.
My thought is to prove that the maximum and minimum of $f$ are equal then $f$ is constant and this constant can only be zero. But I can't think of a way to do that. Can somebody help and give me some hints. Thanks.