# Example of continuous function that isn't uniformly continuous and isn't 1/x

I understand that in an open interval the only functions that are continuous but not uniformly are functions whose limits are singularities. But when we have a function $f:H\rightarrow\mathbb{R}$ and $H$ is not an open interval, what is an example a function that satisfies continuity but not uniform continuity ($H$ and $f$, please)?

• If $H$ is a closed interval, it can't be done. If $H$ is not an interval at all, well, there are a lot of different $H$ around. What did you have in mind? Jan 5, 2014 at 16:38
• Is $H$ a union of open intervals? Jan 5, 2014 at 16:38
• $\exp\cdot$ grows too rapidly to be uniformly continuous Jan 5, 2014 at 16:54

Let $\mathbb{R}=(-\infty,\infty)$ (you can view $\mathbb{R}$ as an interval which hopefully explains my previous comment) then $f(x)=x^{2}$ is not uniformly continuous. (You can negate the definition of uniform continuity and show that the statement you obtain holds true. It will take some doing, but the basic idea is that as long as you can pick your numbers from the real line, you can pick two numbers really close together such that their squares are far apart. For example $10^{10}+\frac{1}{10^{10}}$ and $10^{10}$ are really close together but their squares are $2$ apart.)
$H$ be the half open interval $(0,1]$ and $f(x)=\sin\left(\frac{1}{x}\right)$.
• @ElliotG Not really. The "bad" behaviour of this function is different from that of $x^{-1}$, maybe more interesting, I'd say. Can you prove it is not uniformly continuous?