Limits and continuity · Definition
Uniform continuity
Before you start you need to know
It separates continuity that depends on the point from continuity that behaves the same across the whole set; it is what makes integrating and extending functions work.
Definition
A function \(f\) is uniformly continuous on a set \(A\) if for each \(\varepsilon>0\) there is a \(\delta>0\), valid for all points at once, that controls \(|f(x)-f(y)|\) by \(|x-y|\) in \(A\).
In ordinary continuity at a point \(c\), \(\delta\) depends on \(\varepsilon\) and also on \(c\). In uniform continuity, a single \(\delta\) serves all points of \(A\). So uniform continuity is a property of the whole set, not of each point, and it always implies ordinary continuity.
The classic example of the difference is \(f(x)=x^2\). On \([0,3]\) we have \(|x^2-y^2|=|x+y||x-y|\le6|x-y|\), so \(\delta=\varepsilon/6\) works. On \(\mathbb R\) the slope grows without bound: with \(x_n=n\) and \(y_n=n+1/n\) the distance between the points tends to \(0\) but \(|f(y_n)-f(x_n)|\ge2\). Something similar happens to \(1/x\) on \((0,1)\), where the trouble is the boundary point missing from the domain.
The Heine-Cantor theorem says every continuous function on a closed bounded interval \([a,b]\) is uniformly continuous. It is proved by contradiction: otherwise there are sequences \(x_n,y_n\) with \(|x_n-y_n|\to0\) but \(|f(x_n)-f(y_n)|\ge\varepsilon_0\); by Bolzano-Weierstrass a subsequence of \((x_n)\) converges to some \(x^*\in[a,b]\), and then \(y_{n_k}\to x^*\) as well, contradicting continuity at \(x^*\).
Other sufficient conditions are being Lipschitz (\(\delta=\varepsilon/L\)) or being differentiable with bounded derivative. A useful property: a uniformly continuous function maps Cauchy sequences to Cauchy sequences, which is why a uniformly continuous function on \((a,b)\) extends continuously to \([a,b]\). A common mistake is to believe \(\sqrt x\) is not uniformly continuous on \([0,\infty)\) because it is not Lipschitz; it is, with \(\delta=\varepsilon^2\).
Think about it
Is \(f(x)=x\sin x\) uniformly continuous on \(\mathbb R\)?
No. With \(x_n=2\pi n\) and \(y_n=2\pi n+1/n\) we have \(|x_n-y_n|\to0\), but \(f(y_n)-f(x_n)=(2\pi n+1/n)\sin(1/n)\to2\pi\).
If \(f\) and \(g\) are uniformly continuous on \(A\), is \(f+g\)?
Yes: taking \(\delta=\min(\delta_f,\delta_g)\) for \(\varepsilon/2\) gives \(|(f+g)(x)-(f+g)(y)|<\varepsilon\). The product, however, can fail: \(x\cdot x\) on \(\mathbb R\).
Exercises 10
- For \(f(x)=2x\) on \(\mathbb R\), which \(\delta\) (in terms of \(\varepsilon\)) guarantees \(|f(x)-f(y)|<\varepsilon\) whenever \(|x-y|<\delta\)?
- Which of these functions is continuous on \((0,1)\) but not uniformly continuous on \((0,1)\)?
- Which of the following statements is true?
- If \(f\) is uniformly continuous on \(A\) and \((x_n)\) is a Cauchy sequence in \(A\), what follows?
- If \(|f(x)-f(y)|\le L|x-y|\) for all \(x,y\) with \(L>0\), which \(\delta\) works for every \(\varepsilon>0\)?
- For \(f(x)=x^2\) on \([0,3]\) we have \(|f(x)-f(y)|=|x+y|\,|x-y|\). What is the smallest constant \(L\) with \(|f(x)-f(y)|\le L|x-y|\) on \([0,3]\)?
- To prove \(\sin x\) is uniformly continuous on \(\mathbb R\) one uses \(|\sin x-\sin y|\le|x-y|\). Which \(\delta\) works?
- Let \(f(x)=x^2\), \(x_n=n\), \(y_n=n+\tfrac1n\). What is \(f(y_n)-f(x_n)\)?
- Given that \(|\sqrt x-\sqrt y|\le\sqrt{|x-y|}\) for \(x,y\ge0\), which \(\delta\) proves \(\sqrt x\) is uniformly continuous on \([0,\infty)\)?
- For \(f(x)=1/x\) on \((0,1)\), let \(x_n=\tfrac1n\) and \(y_n=\tfrac1{n+1}\). What are \(|x_n-y_n|\) and \(|f(x_n)-f(y_n)|\)?
What comes next
References
- Stephen Abbott, Understanding Analysis, 2nd edition, Springer, 2015. §4.4, Definición 4.4.5
- Walter Rudin, Principles of Mathematical Analysis, 3rd edition, McGraw-Hill, 1976. Cap. 4, Definición 4.18
- Robert G. Bartle, Donald R. Sherbert, Introduction to Real Analysis, 4th edition, Wiley, 2011. §5.4, Definición 5.4.1