Let $f$ be a continuous function on $\mathbb R$ such that $\lim_{x\to 0} f(\frac{1}{x})$ exists. Show that $f$ is uniformly continuous on $\mathbb R$.
My proof is as follows:
Let $n = \frac{1}{x}$ and $\lim_{r\to \infty} f(n)$ = $l$.
There exists a $M$ such that if $n \geq M$, $|f(n) - l|<\epsilon$.
Suppose $f$ is not uniformly continuous on $\mathbb R$.
Then for all $\epsilon > 0$, there exists a $\delta$ such that for some n, u belonging to R, $|n-u|<\delta$ $\implies$ $|f(n) - f(u)| \geq \epsilon$. Pick $u = M$, then f0r any $n$ such that $|n-u|<\delta$, we have $|f(n) - l| \geq \epsilon$. Contradiction.
Hence, $f$ is uniformly continuous.
I don't really know how to prove this. Can someone help please. Thanks
(This is a relatively high-level answer, which may not be helpful to the OP but hopefully explains the underlying phenomenon at work.)
The condition that $\lim\limits_{x\to 0}f(1/x)$ exists means that we can extend $f$ to a continuous function on the one-point compactification of $\mathbb R$, and by compactness this extension (and hence $f$) is uniformly continuous.
Explicitly: Let $L=\lim\limits_{x\to 0}f(1/x)$. Define $g:S^1\to \mathbb R$ by $$g(\theta)=\begin{cases} f(\tan(\theta/2)) &\text{if } -\pi<\theta<\pi\\ L &\text{if } \theta=\pm \pi \end{cases}$$ Then $g$ is continuous, since $f$ and $\tan$ are continuous and as $\theta\to \pm \pi$ we have $\cot(\theta/2)\to 0$ so $$\lim\limits_{\theta\to \pm \pi}f\left(\frac{1}{\cot(\theta/2)}\right)=\lim\limits_{x\to 0}f(1/x)=L$$ and since $S^1$ is compact, it follows that $g$ is uniformly continuous. But $f = g(2\arctan(x))$ so is a composition of uniformly continuous functions, thus is uniformly continuous.