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.
Since $f$ is twice differentiable, by Taylor's expansion, for every $\varepsilon>0$, there exists $c_{x,\varepsilon}\in(x,x+\varepsilon)$ such that $$f(x+\varepsilon)=f(x)+f'(x)\varepsilon+\frac{1}{2}f''(c_{x,\varepsilon})\varepsilon^2.$$ But $f''$ is bounded (say, by $ |f''|<2M$), so it follows that $$|f(x+\varepsilon)-f(x)-f'(x)\varepsilon|\le M\varepsilon^2.$$ Therefore, by triangular inequality, $$|f'(x)\varepsilon|\le|f(x+\varepsilon)-f(x)|+ M\varepsilon^2.$$ But, $\lim_{x\to\infty}f(x)$ exists, so fixing $\varepsilon>0$ and letting $x\to\infty$, we we get $$\limsup_{x\to\infty}|f'(x)|\le M\varepsilon.$$ Since $\varepsilon>0$ is arbitrary, the conclusion follows.