[Math] Techniques to prove a function is uniformly continuous

epsilon-deltareal-analysisuniform-continuity

So I understand the definition of uniform continuity, but wanted some suggestions to prove that a function is or isn't uniformly continuous.

I have looked ahead and have seen that if a function is continuous on a compact domain, then the function is also uniformly continuous. But for the purposes of the examples below, I cannot use compactness, or the fact that a function is uniformly continuous if it is continuous and has a bounded derivative.

Here's one example: prove $f(x)= \sqrt{x}$ is uniformly continuous on $(0, \infty)$.
I have seen this question asked before on this forum, and the respondents used the traditional definition. Ie. they found a delta such that if $|x-y|<\delta$, then $|\sqrt{x}-\sqrt{y}|< \epsilon$.

I was wondering if I could try this in a slightly different way. Suppose I prove that $f$ is continuous at $x_0$, and the choice of $\delta$ doesn't depend on $x_0$.

After some scratch work, I proved that $f(x)$ is continuous at $x_0$ provided that $|x-x_0|< \min\{1,(\sqrt{x_0+1} + \sqrt{x_0})*\epsilon\}$. Since $x_0$ is always greater than $0$, we can say that $\delta= \min\{1, \epsilon\}$. Because I proved that our choice of $\delta$ doesn't depend on $x_0$, is this a valid proof that $f(x)$ is uniformly continuous?

Here's another example: I want to prove that $f(x)=x^2$ is not uniformly continuous on $(0, \infty)$. After some work, I proved that $f(x)$ is continuous at $x_0$ (in dom $f$), provided that $\delta< min \{1, \frac {\epsilon}{ (2x_0+1)}\}$. Here, since our choice of delta does depend on $x_0$, we can say the function is not uniformly continuous.

So am I approaching these problems correctly? I realize that I have not been using the definition of uniformly continuity. (that if $f$ is uniformly continuous, then if $|x-y|<\delta$, then$|f(x)-f(y)|< \epsilon$.

Also, sorry about the formatting. I realize I should learn proper formatting soon!.
Also, I have read the following post regarding this topic: $\sqrt x$ is uniformly continuous

Best Answer

First of all, you make a mistake many beginners make: when talking about uniform continuity, it is essential to tell on what set you are studying it. For instance, $x^2$ is uniformly continuous on $[0,r]$ for every $r>0$, but is not so on $[0,\infty)$. Similarly, $\sin \frac 1 x$ is uniformly continuous on $[r,\infty)$ for every $r>0$, but is not so on $(0,\infty)$. The domain of definition is crucial.

Second, there are two main alternative techniques to plainly using the definition:

  • the first one is quick: if $f$ is defined on a compact set and is continuous, then it is uniformly continuous

  • the second one is subtler: if $f$ is derivable with $f'$ continuous and you manage to find a $M>0$ such that $\sup |f'(x)| \le M$ on your domain of definition, then $f$ will be Lipschitz and, in particular, uniformly continuous.