Given $a \in \mathbb{R}$, $f:[a,\infty) \to \mathbb{R}$ continous and $\lim_{x \to \infty}f(x)=f(a)$. Knowing $f$ is derivable onto $(a,\infty)$ prove that exists $x_0 > a$ so that $f'(x_0)=0$
If $f$ is a constant function the thesis is obvious. But in the other case I have no idea how to proceed.
HINT
Assuming that $f(x)$ is not constant (trivial case), by IVT and EVT we can show that $f(x)$ has maximum or a minimum for some $x_0\in (a,\infty)$ and then $f'(x_0)=0$.