Uniformly Continuous iff Compact and Continuous

Theorem

A continuous function on a compact set is uniformly continuous.

The idea here is that in our example in Lecture 26 - Uniform Continuity#Back to Uniform Continuity the function f would be still continuous if A=[0,1] instead (same definition of f, just include the endpoints on the interval). In contrast, g couldn't get that same extension.

Proof

Let f:KR be continuous, with K being compact.

To show f is uniformly continuous, follow the definition. Let ε>0. Since f is continuous, then δ>0 where xK then picking xK has 0<|xx|<δ|f(x)f(x)|<ε2.

The problem here is that δ may change with each x, so first notice that if I consider the following collection (we denote the δ we choose for each x as δ(x)):

{Vδ(x)2(x)|xK}

This is an Open Cover of K. By the Heine-Borel Theorem (Compact Equivalences) then there is a finite subcover x1,x2,,xn such that:

KVδ(x)2(x1)Vδ(xn)2(xn)

Now choose δ=min{δ(x1)2,,δ(xn)2}. Let x,yK where |xy|<δ. Consider xK then by our construction then xk such that xVδ(xk)2(xk). Therefore, using the given for being continuous then:

|xxk|<δ(xk)2<δ(xk)|f(x)f(xk)|<ε2

Now notice:

|yxk||yx|+|xxk|<δ+δ(xk)2δ(xk)2+δ(xk)2=δ(xk)|f(y)f(xk)|<ε2 Def’n Continuity

Now using that we got |f(x)f(xk)|<ε2 then:

|f(x)f(y)||f(x)f(xk)|+|f(xk)f(y)|<ε2+ε2=ε