Home page for accesible maths 1 Integration

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

1.1 Continuous functions

To start with, let us recall some basic notation. We write for the natural numbers (without 0), for the real numbers. We use the curly parentheses for sets: {a,b,c} is the set consisting of three elements a,b,c. Sequences are denoted by round parentheses, e.g. (xn)n.

Recall also the following distinction of intervals:

  • open: (a,b) as well as (a,), (-,b) and (-,);

  • half-open: (a,b] and [a,b) as well as (-,b] and [a,);

  • closed: [a,b] as well as [a,), (-,b] and (-,);

  • bounded: (a,b),(a,b],[a,b),[a,b];

  • compact = closed and bounded: [a,b];

where a,b and a<b.

A function is written as

f:XY,

where X is a set, the domain of the function, Y another set, the codomain, and f the prescription that assigns a unique element in Y to each element in X. Typical examples for X and Y are or intervals I.

If f:XY is a function and XX a subset then we can define the restriction of f to that subset,

fX:XY,

where the domain changes, but codomain and prescription remain the same.

We recall the definition of continuity in its most convenient form:

Definition 1.1.1 (Continuity).

Let I be an interval and x0I. A function f:I is called continuous at x0 if

for every ε>0 there is δ>0 such that for all xI with |x-x0|<δ

we have |f(x)-f(x0)|<ε.

The function f is continuous if it is continuous at every x0I, i.e.,

for every ε>0 and x0I there is δ>0 such that for all xI with |x-x0|<δ

we have |f(x)-f(x0)|<ε.

Here ε>0 is a “test parameter”, which is varied in order to “test out” whether a suitable δ>0, possibly depending on x0 and ε, can be constructed and the condition of continuity at x0 be fulfiled; ε cannot be “calculated”, this does not make sense conceptually. One asks, “if I want a variation of at most ε in y-direction around f(x0), how much can I vary in x-direction around x0?” The answer, if it exists, is δ. So δ can be calculated or estimated in some way if the function is continuous at x0. However, δ is not unique: once you have found one δ>0 that works for the function and given x0 and ε, any positive number smaller than that δ would also work instead of δ. Similarly, if for some ε>0 and x0 you can find δ>0 then for any number greater than that ε you can use the same δ to satisfy the condition of continuity at x0. The crucial point is that for every possible ε>0 we must be able to find δ>0 in order to prove continuity at x0.

Example 1.1.2.

Let I=(0,) and f:I defined by f(x)=1x and let us verify continuity.

Let us consider the point x0=2I. Then for ε=12, we find by graphical inspection δ=1 fulfiling the above criterion of continuity. For ε=14, we find that δ=23 works – and thus any δ<23 would actually be fine as well: remember that if one δ fulfils the continuity criterion, then δ may be replaced by any positive number less than δ and again fulfil the criterion.

For general x0 and ε>0, we can determine δ depending on x0 and ε as follows: if x=x0-δ then we want

ε1x-1x0=1x0-δ-1x0,

so x0(x0-δ)εx0-(x0-δ)=δ, so

δx02ε1+x0ε.

If x=x0+δ then we want

ε1x0-1x=1x0-1x0+δ,

so x0(x0+δ)εx0+δ-x0=δ, so

δx02ε1-x0ε.

Comparing the two upper bounds on δ, we realise that

δ:=x02ε1+x0ε

satisfies bothy of them, so works to prove continuity in x0 for given ε, as requested in Definition 1.1.1.

We see that as ε gets smaller, so does that δ – which is not very surprising. For fixed ε, is there a δ that works well for all x0I?

The answer is no because x02ε1+x0ε0 as x00.

Instead let’s study g:(1,), with g(x)=1x. For given ε>0, can we find a common δ>0 here?

The answer is yes, δ=ε1+ε.

Notice: since the relevance of ε lies in “small” values with ε and possibly δ close to 0 and positive, we always assume ε to be “small enough” for all expressions to make sense, e.g. here such that the denominator does not vanish.

Remark 1.1.3.

The opposite of continuity would be as follows: f:I is not continuous or is discontinuous at x0 if

there is ε>0 such that for all δ>0 there is xI with |x-x0|<δ

and |f(x)-f(x0)|>ε.

Example 1.1.4.

Consider

g:[0,),g(x)={sin(πx):x(0,)0:x=0.

Then x0=0 lies in the domain of g but g is not continuous at x0. To see this, take ε=12. Then for any δ>0, we can find n such that x=21+2n<δ, which means |x-x0|<δ but

|g(x)-g(x0)|=|sin(1+2n2π)-0|=1>ε,

proving the criterion in Remark 1.1.3. One can also show that g is continuous at x0(0,).

Let us investigate whether we can find a common δ for given ε>0, independent of x0. One can show that restricting g to the interval (a,) or [a,), with a>0, one can choose

δ=a2πε,

independent of x0[a,). As a0, we see that δ0, and it is impossible to find a common δ>0 for x0(0,).

Exercise W1.2.

Consider h:(0,10), with h(x)=x3. For given x0(0,10) and ε>0, find δ>0 in order to prove that h is continuous. Can you choose δ depending only on ε but not on x0?

Lemma 1.1.5 (Triangle inequality).

Let a,bR, then

|a±b||a|+|b|.
Proof.

Exercise X. ∎

Theorem 1.1.6.

Suppose I is a compact interval and f:IR a continuous function. Then

for every ε>0 there is δ>0 such that for all w,xI with |w-x|<δ

we have |f(w)-f(x)|<ε.

Proof.

We would like to prove this by contraposition, namely we have to show the following. Suppose that

there is ε>0 such that for every δ>0 there are w,xI with |w-x|<δ (*)

and |f(w)-f(x)|>ε.

Then f is not continuous!

Notice that (*) is true if and only if the following condition is true (taking half of the parameter ε in (*)):

there is ε>0 such that for every δ>0 there are w,xI with |w-x|<δ (**)

and |f(w)-f(x)|>2ε.

In order to prove that f is not continuous, take an ε>0 as in (**). Then for all n, there are wn,xnI with |wn-xn|<1n and |f(wn)-f(xn)|>2ε. The fractions 1n take the role of δ in (**); we can use all n because we said “for every δ” in (**). Then (xn)n forms a sequence in I. The interval I is compact, i.e., bounded and closed, so that the theorem of Bolzano-Weierstrass from MATH113 implies that there is a convergent subsequence (xnk)k. Its limit point lies in I because I is closed (that was the definition of closedness in MATH113), and we denote it by x0I (not part of the sequence though).

Similarly, we have the sequence (wn)n, and by the triangle inequality in Lemma 1.1.5, the corresponding subsequence (wnk)k satisfies

|wnk-x0| |wnk-xnk|+|xnk-x0|
1nk+|xnk-x0|0+0=0,k,

so (wnk)k is also convergent with the same limit point x0. Again by the triangle inequality, we have

|f(xnk)-f(x0)|+|f(x0)-f(wnk)||f(xnk)-f(wnk)|>2ε,

for all k. This means that, for each k,

|f(xnk)-f(x0)|>ε or |f(x0)-f(wnk)|>ε.

But for every δ>0 there is k such that |xnk-x0|<δ and |wnk-x0|<δ because the two sequence (xnk)k,(wnk)k both converge to x0. Hence, we have derived the following statement:

there is ε>0 such that for all δ>0 there is xI with |x-x0|<δ

and |f(x)-f(x0)|>ε.

This is the criterion in Remark 1.1.3, showing that f is discontinuous at x0. Hence f is not continuous, which concludes the proof by contraposition. ∎

Key idea of proof.

by contraposition, using Bolzano-Weierstrass and the triangle inequality

The proof is a bit challenging, so try to go through it again carefully and make sure you understand all steps and everything is correct and complete. You do not have to memorise all the details though.

Definition 1.1.7 (Uniform continuity).

Let I be an interval. A function f:I is called uniformly continuous if

for every ε>0 there is δ>0 such that for all w,xI with |w-x|<δ

we have |f(x)-f(w)|<ε.

Corollary 1.1.8.

If I is a compact interval and f:IR continuous then f is (automatically) uniformly continuous.

Remark 1.1.9.

If f is uniformly continuous then it is continuous. This follows directly by comparing the definitions of continuity and of uniform continuity: for continuity, δ may depend on ε and x0, while for uniform continuity, δ may depend only on ε.

Example 1.1.10.

Does the converse of Corollary 1.1.8 hold as well? Prove your answer or find a counterexample. What about contraposition or the inverse statement?

The converse would be as follows: If f:I is uniformly continuous then f is continuous and I compact.

We know from Remark 1.1.9 that if f is uniformly continuous then it is continuous. However, I need not be compact. Consider the constant function

f:,f(x)=5,x.

This is uniformly continuous, e.g. for ε>0 we can choose δ=1 to satisfy the condition of uniform continuity; but is not bounded and hence not compact. Hence the converse statement is not true in general.

Recall from MATH111: the contrapositive statement is automatically always true if the original statement is true, while the inverse statement is always false if the original statement is true.

Example 1.1.11.

Let us return to Example 1.1.2 and consider f:[1,2] with f(x)=1x. We found that, for ε>0 we can take δ=x02ε1+x0ε, and the smallest such value is

minx0[1,2]x02ε1+x0ε=ε1+ε,

so δ=ε1+ε would make f uniformly continuous – as to be expected by Corollary 1.1.8. We could even consider f:[1,) with f(x)=1x. Again δ=ε1+ε works for this f and establishes uniform continuity although [1,) is not compact. Instead, choosing as domain (0,1) or [0,1] does not yield uniform continuity as was shown in Example 1.1.2.

Exercise W1.1.

State 3 substantially different examples of uniformly continuous functions and 3 substantially different examples of continuous but not uniformly continuous functions. Provide a precise definition of the functions, with domain and codomain etc., but no detailed proof required. They should not be taken from the lecture notes.

Exercise X.

Decide and prove whether a continuous function on a compact interval is bounded.