# Theorem 4.20(c) in Baby Rudin: Is every continuous function whose domain is an unbounded subset of $\mathbb{R}$ uniformly continuous?

Here is Theorem 4.20 in the book Principles of Mathematical Analysis by Walter Rudin, third edition:

Let $E$ be a non-compact set in $\mathbb{R}^1$. Then

(a) there exists a continuous function on $E$ which is not bounded;

(b) there exists a continuous and bounded function on $E$ which has no maximum.

If, in addition, $E$ is bounded, then

(c) there exists a continuous function on $E$ which is not uniformly continuous.

Thus Theorem 4.20(c) can be stated as follows: On a bound subset non-compact of $\mathbb{R}$, there exists a continuous function which is not uniformly continuous. Or, equivalently, if every continuous function on a non-compact subset $E$ of $\mathbb{R}$ is also uniformly continuous, then $E$ is unbounded.

Now my question is as follows:

Let $E$ be a non-compact subset of $\mathbb{R}$ such that $E$ is not bounded. Then can we conclude from Theorem 4.20(c) in Baby Rudin that every continuous function $f \colon E \to \mathbb{R}$ is also uniformly continuous on $E$? If so, then how to give a proof of this fact?

And, is there a way of generalising this result to maps between arbitrary metric spaces, along the lines of Theorem 4.19 in Baby Rudin?

• Whatever Theorem 4.20(c) is, the answer is "no". – David Mitra Feb 24 '15 at 12:56

This is not true. Take $E=\mathbb R$ for example. Then your "theorem" would imply that every continuous function $\mathbb R\to\mathbb R$ is also uniformly continuous, which is wrong. Consider $f(x)=x^2$ as a counterexample.
• how do we show that the map $x \mapsto x^2$ for $x \in \mathbb{R}$ is not uniformly continuous? – Saaqib Mahmood Feb 24 '15 at 13:21
• @SaaqibMahmuud: See this thread for how to show $x^2$ is not uniformly continuous on $\mathbb{R}$: math.stackexchange.com/questions/503093/… – Sujaan Kunalan Feb 24 '15 at 14:08