If $f$ be a real valued continuous function defined on $[0,2]$ such that $f(0)=f(2),$ then prove that there exist a $ x \in [0,1]$ such that $f(x)=f(x+1).$
I tried in the following way,
Since $f$ is continuous and $f(0)=f(2)$, any line parallel to $x-$axis meets $f$ at least two points. Is this the correct way?
How to proceed further?
Thanks in advance...