I want to find an example of a continuos function on an open interval S⊂R, which is not uniform continuos. I use f(x)=1/x on the open interval from (0,1).
But I also want to determine if such examples are possible when S is compact?
I want to find an example of a continuos function on an open interval S⊂R, which is not uniform continuos. I use f(x)=1/x on the open interval from (0,1).
But I also want to determine if such examples are possible when S is compact?
For example, $\;f(x)=\cfrac1x\;$ is continuous in $\;(0,1)\;$ but not uniformly continuous, because for example
$$\left\{\,\frac1n\,\right\}_{n\ge2}\,,\,\,\left\{\,\frac1{n+1}\,\right\}_{n\ge2}\subset (0,1)\;\;\;\text{and}\;\;\;\left|\frac1n-\frac1{n+1}\right|=\frac1{n(n+1)}\xrightarrow[n\to\infty]{}0$$
yet
$$\left|f\left(\frac1n\right)-f\left(\frac1{n+1}\right)\right|=1\rlap{\;\;\;\;/}\xrightarrow[n\to\infty]{}0$$
Uniform continuity is a tighter definition than regular continuity. So, if f is uniformly continuous then f is continuous.
However, if f is a continuous function on a compact domain the f is uniformly continuous on the domain.
Proof:
If $f$ is continuous, then the for every open set in the image of $f$, the pre-image is an open set.
That is, for every epsilon ball in the image ($|f(x) - f(y)|<\epsilon$) There is a corresponding delta ball in the pre-image ($|x-y| < \delta$).
We cover image of $f$, in open balls, each of radius $\frac\epsilon2$. Each of those balls has its corresponding delta ball. The union of these delta balls forms an open cover of the domain.
The domain is compact! Every open cover has a finite sub-cover. Choose finitely many many of these delta balls.
If there are finitely many delta balls then there is a minimum radius $\frac\delta2$.
For every $(x,y)$ in the domain within a ball of radius $\frac\delta2, |x-y|<\delta$ everything inside that delta ball maps into a corresponding ball of radius $\frac \epsilon2, |f(x) - f(y)| < \epsilon$.