I'm trying to answer the following exercise: Suppose that $f$ is twice differentiable on $[0,+\infty)$.
Show that if $\lim\limits_{x \to \infty} f(x)$ exists and $f''$ is bounded, then $\lim\limits_{x \to \infty} f'(x)=0$. If $\lim\limits_{x \to +\infty} f'(x)$ exists then I know how to prove that this limit is equal to 0 (by using the mean value theorem).
But how can I show that this limit exists?
Counterexample: Let us consider $f(x) = x \sin\frac{1}{x}$. Then $$f'(x) = \sin\frac{1}{x} - \frac{1}{x} \cos\frac{1}{x}$$ and $$f''(x) = -\frac{1}{x^2}\cos\frac{1}{x} + \frac{1}{x^2}\cos\frac{1}{x} - \frac{1}{x^3} \sin\frac{1}{x}.$$ This example shows that the hypothesis that there exists $\lim\limits_{x \to \infty} f(x)$ is essential.