Lemma (Rolle's theorem)

Let $f: [a,b]\to\R$ be continuous on $[a,b]$ and differentiable at $(a,b)$.

If $f(a)=f(b)$, then there exists $c\in(a,b)$ such that $f'(c)=0$.

Proof