Let $\phi\colon\mathbb{R}\to\mathbb{R}$ be a function that satisfies $\lvert \phi(x)\rvert \geq 1$ for all real $x$ and $\lvert\phi(x) - \phi(y)\rvert \leq \lvert x - y\rvert $ for all real $x,y$ (for example $\phi(x) = \cos(x)$). Let
$f(x) = \left\{ \begin{array}{ll} 0 & \mbox{if } x = 0 \\ x\phi(\frac{1}{x}) & \mbox{if } x \neq 0 \end{array} \right.$
Show that $f$ is a uniformly continuous mapping from $\mathbb{R} \to \mathbb{R}$.
I got that $\phi(x)$ is Lipschitz with a constant of 1. It seems like one of the Carathéodory's theorems could be involved as well.
Thanks!