I got this problem:
Let $f$ be a continuous function on $[0,\infty)$ and differentiable function on $(0,\infty)$ such that $\lim_{x\to\infty}f'(x)=0$.
(1) Prove that for each $0<\epsilon$ there exist $0<M$ such that if $x$ and $y$ are numbers that satisfy the inequality $M<y<x<y+1$, Then $|f(x)-f(y)|<\epsilon$.
(2) Prove that $f$ is uniformly continuous on $[0,\infty)$ using (1).
I managed to prove (1) (by using the mean value theorem for derivatives), But when I tried to prove (2) I got stuck.
Any help on how to prove (2) by using (1) will be appreciated.
As for (2), you are almost done. Split $[0,\infty) = [0,M] \cup (M,\infty)$ and recall that $f$ is UC on $[0,M]$ since this is a compact set. So, pick $\epsilon>0$ and its companion $\delta>0$ provided by the UC of $f$ on $[0,M]$. Then, using (1), define $\tilde{\delta}=\min\{\delta,1\}$ and deduce that $|f(x)-f(y)|<\epsilon$ whenever $|x-y|<\tilde{\delta}$.
Indeed, if $x$, $y \in (M,\infty)$ and $|x-y|<1$, then (1) yields $|f(x)-f(y)|<\epsilon$.