If f is continuous on $[a,b]$ and $f(a)=f(b)$ then show that there exists $x,y \in (a,b)$ such that $f(x)=f(y)$
It looks obvious if I imagine the graph. But I am not able to prove it. I am trying to employ intermediate value property, but not able to reach to the conclusion.