I came across a problem in my analysis book that says:
A real function $f$ is continuous on $[0,2]$ and $f(0)=f(2).$ Then I have to prove that there exists a point $c$ in $[0,1]$ such that $f(c)=f(c+1).$ A hint is given as follows:
HINT: if $f(0)=f(1)$ then $c=0,1.$ If $f(0) \neq f(1)$, consider $g$ on $[0,1]$ defined by $g(x)=f(x)-f(x+1).$
But still I could not progress further.Could someone point me in the right direction? Thanks in advance for your time.