Let $a,b \in \mathbb{R}$ such that $a<b$. Let $f$ differentiable on $[a,b]$ such that $f'(a) < 0 < f'(b)$.
Show that : $$\exists c\in ]a,b[, \hspace{1mm} f'(c)=0$$
My attempt :
Since the derivative changes sign, $f$ can't be strictly monotonic.
($f$ is decreasing in the neighbourhood of $a$ and increasing in the neighbourhood of $b$)
In this case there exists $x,y \in ]a,b[$ such that $f(x) = f(y)$. (Not sure about that)
We apply Rolle's theorem to conclude.
Is this valid ? How can I be more precise on the third line ? Thank you in advance.