chapter 5: continuity of functions

10
Chapter 5: Continuity of functions Introduction Continuous functions are a good model for the real world in that many processes are very continuous: the change of temperature from point to point, the rate of flow of blood in the arteries and heart, the change in inflation. Many processes can be well approximated by continuous functions. In addition differentiable functions are continuous and continuous functions have some very valuable properties, such as being bounded on closed and bounded intervals. They can be generalized to apply to functions on subsets of R n and more generally give rise to the subject of “topology” which includes the concepts metric spaces and connectedness. Perhaps the most important class of functions in the whole of mathematics is the class of continuous functions. Intuitively these are those functions that can be drawn on a piece of paper without lifting your pen off the paper, ie: the graphs of these functions appear as a “single piece”. Unfortunately the above description cannot serve as a definition. The first reason for this is that there are continuous functions such as: f (x) := x · sin(1/x) for x = 0 and f (x) := 0 for x = 0 that cannot be drawn. In fact it is not possible to draw the graph of any function, not even f (x) := x. One can, at best, only approximately depict the graph of a function. However there is an even deeper reason why the above description cannot serve as a definition, namely, the functions that we are interested in map from R into R; which is a mathematical construct, built up from set theory. The real line is not an object of “reality” but only an object of abstraction. But even forgetting the above “technical” argument, from a completely pragmatic point of view, the above definition is not very useful. For example, how would one go about showing that the sum of two continuous functions is again continuous? Or for that matter, how would one go about deriving any of the properties that a continuous function may or may not have? With this preliminary discussion out of the way, let us now give the formal “mathematical” definition of continuity which hopefully captures, at the intuitive level, the notion of continuity described above. Definition: Let f : A R be defined on a non-empty open interval A of R and let x 0 A. We say that f is continuous at x 0 if for each ε> 0 there exists a δ> 0 such that |f (x) - f (x 0 )| for all x A with |x - x 0 | . Note: this is equivalent to saying that lim xx 0 f (x)= f (x 0 ). 37

Upload: others

Post on 16-Oct-2021

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Chapter 5: Continuity of functions

Chapter 5: Continuity of functions

Introduction

Continuous functions are a good model for the real world in that many processes arevery continuous: the change of temperature from point to point, the rate of flow ofblood in the arteries and heart, the change in inflation. Many processes can be wellapproximated by continuous functions. In addition differentiable functions are continuousand continuous functions have some very valuable properties, such as being bounded onclosed and bounded intervals. They can be generalized to apply to functions on subsets ofRn and more generally give rise to the subject of “topology” which includes the conceptsmetric spaces and connectedness.

Perhaps the most important class of functions in the whole of mathematics is the class ofcontinuous functions. Intuitively these are those functions that can be drawn on a pieceof paper without lifting your pen off the paper, ie: the graphs of these functions appearas a “single piece”.

Unfortunately the above description cannot serve as a definition. The first reason forthis is that there are continuous functions such as: f(x) := x · sin(1/x) for x 6= 0 andf(x) := 0 for x = 0 that cannot be drawn. In fact it is not possible to draw the graphof any function, not even f(x) := x. One can, at best, only approximately depict thegraph of a function. However there is an even deeper reason why the above descriptioncannot serve as a definition, namely, the functions that we are interested in map from Rinto R; which is a mathematical construct, built up from set theory. The real line is notan object of “reality” but only an object of abstraction. But even forgetting the above“technical” argument, from a completely pragmatic point of view, the above definitionis not very useful. For example, how would one go about showing that the sum of twocontinuous functions is again continuous? Or for that matter, how would one go aboutderiving any of the properties that a continuous function may or may not have?

With this preliminary discussion out of the way, let us now give the formal “mathematical”definition of continuity which hopefully captures, at the intuitive level, the notion ofcontinuity described above.

Definition: Let f : A → R be defined on a non-empty open interval A of R and letx0 ∈ A. We say that f is continuous at x0 if for each ε > 0 there exists a δ > 0 suchthat |f(x)− f(x0)| < ε for all x ∈ A with |x− x0| < δ. Note: this is equivalent to sayingthat lim

x→x0

f(x) = f(x0).

37

Page 2: Chapter 5: Continuity of functions

Theorem: Let f : A → R be defined on a non-empty open sub interval A of R and letx0 ∈ A. Then f is continuous at x0 in A if, and only if, for every sequence (an : n ∈ N)in A converging to x0, the sequence (f(an) : n ∈ N) converges to f(x0).

Proof: This follows directly from the sequential characterisation of a limit. 2

Definition: A function f : A → R is said to be continuous from the right atx0 ∈ A if, limx→x+

0f(x) = f(x0) and is said to be continuous from the left at x0 ∈ A

if, limx→x−0f(x) = f(x0).

Theorem: Let f : A → R be defined on a non-empty open sub interval A of R and letx0 ∈ A. Then f is continuous at x0 if, and only if, f is continuous from the left and fromthe right.

Proof: The proof of this follows from our earlier work on one-sided limits 2

Definitions: Let A be a non-empty open sub interval of R and let f : A → R. We saythat f is continuous on A (or simply continuous) if f is continuous at every point ofA. A function f : [a, b] → R is said to be continuous on [a, b] (or simply continuous)if it is continuous on (a, b), continuous from the right at a and continuous from the leftat b.

Figure 5: Example f(x) = x on [1,2] is continuous on [1,2).

Example: Let f : R → R be defined by, f(x) := x4. Show that f is continuous on R.

Answer: Let x0 ∈ R, then limx→x0

f(x) = limx→x0

x4 = ( limx→x0

x)4 = x40 = f(x0). 2

Exercise: Let f : R → R be defined by, f(x) := 0 if x is rational and f(x) := 1 ifx is irrational. Show that f is not continuous at any point of R. Note: to completethis exercise you need to know every non empty open interval of real numbers containsa rational and an irrational number. In other words the rational and irrational numbersare ”dense” in R.

Example: Use an ε - δ argument to show that the function f : (0,∞) → R defined by,f(x) :=

√x is continuous on (0,∞).

Let 0 < a so a ∈ (0,∞). Given ε > 0 we want |f(x)−√

a| < ε. This true

⇐⇒ |√

x−√

a| < ε

⇐⇒ |x− a|√x +

√a

< ε

38

Page 3: Chapter 5: Continuity of functions

But|x− a|√x +

√a

<|x− a|√

a,

so let δε = ε√

a. With this choice, if |x− a| < δε we have |f(x)− f(a)| < ε. To show thiswe need a chain of implications:

Because |x− a| < δε

⇒ |x− a| < e√

a

⇒ |x− a|√x +

√a

<|x− a|√

a< ε

⇒ |f(x)− f(a)| < ε.

Therefore f is continuous at x = a. Since this is true for every a in the open interval(0,∞), f is continuous on (0,∞).

Theorem: Let f : A → R and g : A → R be defined on a non-empty open sub intervalsA of R and let x0 ∈ A. If both f and g are continuous at x0 then;

(i) f + g is continuous at x0;

(ii) c · f is continuous at x0;

(iii) f · g is continuous at x0;

(iv) f ÷ g is continuous at x0, provided g(x0) 6= 0.

Proof: The proof of this follows from our earlier results on limits. 2

Corollary: Let p and q be polynomials. Then the function r : A → R defined by,r(x) := p(x)/q(x) is continuous on A, where A := {x ∈ R : q(x) 6= 0}.

Example: It follows from this that functions like f(x) = 1 + x2 and g(x) = 1/(1 + x2)are continuous on R. We can get other continuous functions by restricting their domains:If B ⊂ A and f is continuous on A then f is continuous on B. For example the functiong defined above is continuous if restricted to the open interval (0, 1).

This is a useful idea and can become even more useful if the following lemma is employed:

Theorem: If functions f and g are such that f(x) = g(x) on (a, b) and limx→b− f(x) = Lthen limx→b− g(x) = L

Theorem: If f : (a, b) → R is continuous and there is a point c with a < c < b withf(x) > 0 then there is a δ > 0 such that f(x) > 0 for x ∈ (c− δ, c + δ).

Proof: Since f is continuous at c, let ε = f(c)/2 > 0 in the definition. There is a δε > 0such that

−f(c)

2< f(x)− f(c) <

f(c)

2

for x ∈ (a, b) with |x− c| < δε. Using the left hand member we get

0 <f(c)

2< f(x)

39

Page 4: Chapter 5: Continuity of functions

Figure 6: Example g is continuous on [0,2].

so f(x) is strictly positive for −δε < x− c < δε ⇐⇒ x ∈ (c− δε, c + δe). 2

Theorem: Let f : A → B and g : B → R be defined on non-empty open subsets A andB of R. If f is continuous at x0 ∈ A and g is continuous at f(x0) then g ◦ f is continuousat x0.

Proof: Let ε be any positive real number. Now since g is continuous at f(x0) there existsa δ′ > 0 such that |g(y)− g(f(x0))| < ε for all y ∈ B with |y − f(x0)| < δ′. Next, we setε′ := δ′ and obtain from the continuity of f at x0 a δ > 0 such that |f(x)−f(x0)| < ε′ = δ′

for all x ∈ A with |x−x0| < δ. Hence, |(g ◦f)(x)− (g ◦f)(x0)| = |g(f(x))− g(f(x0))| < εfor all x ∈ A with |x− x0| < δ. 2

Some theorems on continuous functions

Theorem: Let f : A → R be defined on a non-empty open sub interval A of R and letx0 ∈ A. If f is continuous at x0 then there exists an M > 0 and δ > 0 so that |f(x)| 6 Mfor all x ∈ A with |x− x0| < δ.

Proof: Let ε = 1 so for x in an interval about x0,

|f(x)| = |f(x)− f(x0) + f(x0)|6|f(x)− f(x0)|+ |f(x0)|61 + |f(x0)|,

so we let M = 1 + |f(x0)|. 2

Definition: A function f : [a, b] → R is said to be bounded on [a, b] if there exists anM > 0 such that |f(x)| 6 M for all x ∈ [a, b].

Theorem: [Boundedness Theorem] Suppose that a < b and f : [a, b] → R is continuouson [a, b]. Then f is bounded on [a, b].

Proof: Let S := {x ∈ [a, b] : f is bounded on [a, x]}.1. The set S is non-empty since a ∈ S.

2. Also S is bounded above by b. Therefore s := supS exists.

3. We claim that s = b: Indeed, if s < b then we may choose 0 < δ < min{s− a, b− s} sothat f is bounded on (s− δ, s + δ). Now f is bounded on [a, s− δ] and so f is boundedon [a, s + δ/2] ⊆ [a, s− δ] ∪ (s− δ, s + δ); which contradicts that s is an upper bound forS. Hence s = b.

40

Page 5: Chapter 5: Continuity of functions

Figure 7: An unbounded continuous function on (0, 1].

4. Now f is continuous from the left at b and so there exists a 0 < δ such that fis bounded on (b − δ, b]. However f is also bounded on [a, b − δ] and so bounded on[a, b− δ] ∪ (b− δ, b] = [a, b]. 2

Theorem: (Continuous functions on closed intervals attain their bounds) Suppose thata < b and f : [a, b] → R is continuous on [a, b]. Then there exist points x1, x2 ∈ [a, b] suchthat f(x1) = sup{f(x) : x ∈ [a, b]} and f(x2) = inf{f(x) : x ∈ [a, b]}.

Proof: We shall only prove that there exists an x1 ∈ [a, b] such that f(x1) = sup{f(x) :x ∈ [a, b]} := M .

1. Let us assume, in order to obtain a contradiction, that no such point x1 ∈ [a, b]exists. Then f(x) < M for all x ∈ [a, b] and so the function g : [a, b] → R defined by,g(x) := 1/(M − f(x)) is continuous.

2. Now by the previous theorem there exists a K > 0 such that g(x) 6 K for all x ∈ [a, b],ie: 1/K 6 M − f(x) or, f(x) 6 M − (1/K) for all x ∈ [a, b].

3. Hence M − (1/K) < M is an upper bound for {f(x) : x ∈ [a, b]}; which is impossiblesince M was defined to have been the “least upper bound” for {f(x) : x ∈ [a, b]}.

4. Hence there must be some point x1 ∈ [a, b] such that f(x1) = M . 2

Theorem: [Intermediate Value Theorem] Suppose that a < b and f : [a, b] → R iscontinuous on [a, b]. If f(a) and f(b) have opposite signs then there exists a point x0 in(a, b) such that f(x0) = 0.

Proof: 1. Suppose that f(a) < 0 < f(b).

2. Let S := {x ∈ [a, b] : f(x) < 0}.

3. The set S is non-empty since a ∈ S.

4. Also S is bounded above by b. Therefore, s := supS 6 b exists.

5. We claim that f(s) := 0. To see this, note that

(i) if f(s) < 0 then there exists a δ > 0 such that f(y) < 0 for all y ∈ (s− δ, s + δ);

(ii) if f(s) > 0 then there exists a δ > 0 such that f(y) > 0 for all y ∈ (s− δ, s + δ).

So in either case we obtain a contradiction.

41

Page 6: Chapter 5: Continuity of functions

Figure 8: The Intermediate Value Theorem.

6. Therefore, it must be the case that f(s) = 0. The proof for the case when f(b) < 0 <f(a) is similar. 2

Theorem: [Bolzano Intermediate Value Theorem] Suppose that a < b and f : [a, b] → Ris continuous on [a, b]. If f(a) < y0 < f(b) (or vice versa) then there exists a pointx0 ∈ (a, b) such that f(x0) = y0.

Proof: Consider the function g : [a, b] → R defined by, g(x) := f(x) − y0. Then g(a)and g(b) have opposite signs and so there exists a point x0 ∈ (a, b) such that g(x0) =f(x0)− y0 = 0. Therefore, f(x0) = y0. 2

Example: Show that there exists an x0 ∈ (0, 1) such that cos(x0) = x0.

Answer: Let f : [0, 1] → R be defined by, f(x) := cos(x) − x. Then f is a continuousfunction on [0, 1] and f(1) < 0 < f(0). Therefore, by the intermediate value theoremthere exists a point x0 ∈ (0, 1) such that f(x0) = 0, ie: cos(x0) = x0. 2

Figure 9: Using the IVT to show a root exists.

Exercise: Suppose that a < b and f : [a, b] → R is continuous on [a, b]. Show thatf([a, b]) is a closed interval of R. Hint: show that f([a, b]) = [m,M ], where m := inf{f(x) :x ∈ [a, b]} and M := sup{f(x) : x ∈ [a, b]}.

Monotone functions

Definition: Let f : A → R be defined on a non-empty open subset A of R. Then we saythat f is increasing (strictly increasing) if f(x1) 6 f(x2) (f(x1) < f(x2)) whenever

42

Page 7: Chapter 5: Continuity of functions

Figure 10: A generic monotonically increasing function.

x1 < x2. Similarly, we say that f is decreasing (strictly decreasing) if f(x2) 6 f(x1)(f(x2) < f(x1)) whenever x1 < x2.

Theorem: Suppose that a < b and f : [a, b] → R is increasing on [a, b]. Let x0 ∈ (a, b)then lim

x→x−0

f(x) and limx→x+

0

f(x) exist and limx→x−0

f(x) 6 f(x0) 6 limx→x+

0

f(x).

Proof: We shall show that limx→x−0f(x) 6 f(x0).

1. Let S := {f(x) : a 6 x < x0}.

2. Then S is non-empty (since f(a) ∈ S) and bounded above by f(x0). Hence s :=supS 6 f(x0) exists.

3. We claim that limx→x−0f(x) = s. To justify this, let us consider ε, an arbitrary positive

real number. Now s−ε, is not an upper bound for the set S as s is the least upper boundfor S. Hence there exists an element xε ∈ [a, x0) such that s− ε < f(xε).

4. Set δ := x0 − xε > 0 then s− ε < f(xε) 6 f(x) 6 s < s + ε for all x ∈ (x0 − δ, x0), ie:−ε < f(x)− s < ε for all x ∈ (x0 − δ, x0) and so |f(x)− s| < ε for all x ∈ (x0 − δ, x0).

5. The proof that f(x0) 6 limx→x+

0

f(x) is similar. 2

Corollary: Suppose that a < b and f : [a, b] → R is increasing on [a, b]. Let x0 ∈ (a, b)then f is continuous at x0 if, and only if, lim

x→x+0

f(x) = limx→x−0

f(x).

Exercise: Let f : [a, b] → [c, d] be 1-to-1 and onto. Show that the inverse of f , denotedf−1 exists and maps [c, d] onto [a, b].

Example: Suppose that a < b and f : [a, b] → R is increasing on [a, b]. Then f iscontinuous if, and only if, f([a, b]) = [f(a), f(b)]:

1. If f is continuous then, by the Intermediate Value Theorem, for all y ∈ [f(a), f(b)] thereis an x ∈ [a, b] such that f(x) = y. Since f is increasing, if a6x6b then f(a)6f(x)6f(b).These facts show f([a, b]) = [f(a), f(b)].

2. If f is not continuous then, by the theorem above there is an x0 in [a, b] with the limitfrom below of f strictly less than the limit from above. The ”gap” between these twovalues is missing from the range. Hence the range is not equal to [f(a), f(b)] but to someproper subset.

Theorem: [Continuous Inverse Theorem] Suppose that a < b and f : [a, b] → R isstrictly increasing and continuous on [a, b]. Then the inverse mapping f−1 exists and isstrictly increasing and continuous on [f(a), f(b)].

43

Page 8: Chapter 5: Continuity of functions

Figure 11: Discontinuous increasing functions are not onto an interval.

Proof:

1. First, by the Intermediate Value Theorem, and the example above, f maps [a, b] onto[f(a), f(b)].

2. Since f is strictly increasing f is 1-to-1. Hence f−1 exists.

3. Moreover, f−1 maps from [f(a), f(b)] onto [a, b].

4. Hence by the previous example, to show that f−1 is strictly increasing and continuouswe need only show that f−1 is strictly increasing. To this end, let y1 and y2 ∈ [f(a), f(b)]with y1 < y2. Then y1 = f(x1) and y2 = f(x2) for some x1, x2 ∈ [a, b]. Now f−1(y1) =x1 < x2 = f−1(y2) for if x2 6 x1 then y2 = f(x2) 6 f(x1) = y1; which contradicts theassumption that y1 < y2. 2

Figure 12: The function f(x) = x2 on [0,2] and its inverse.

Exercises

1. Let f : (0,∞) → R be defined in the following way. If x is irrational then f(x) := 0 andif x is rational then we may write x in the form: m/n with m,n ∈ N and g.c.d.(m, n) = 1and define f(x) := n. Show that f is nowhere continuous on (0,∞).

44

Page 9: Chapter 5: Continuity of functions

2. Let f : R → R and g : R → R be continuous functions. Show that if f = g on Q thenf = g, ie: f(x) = g(x) for all x ∈ R.

3. Suppose that f : R → R is continuous on R and satisfies the algebraic relation:f(x + y) = f(x) + f(y) for all x, y ∈ R. Show that f(x) = ax for some a ∈ R and allx ∈ R. Hint: show that f(x) = f(1) · x on Q and then use the result from 2.

4. Suppose that f : R → R is continuous on R and satisfies the algebraic relation:f(x+y) = f(x) ·f(y) for all x, y ∈ R. Show that f(x) = ax for some a ∈ R and all x ∈ R.Hint: show that f(x) = f(1)x on Q and use the result from 2. as well as the fact thatx 7→ ax is continuous on R.

5. Let f : R → R be a continuous function and (an : n ∈ N) be the sequence defined by,an+1 := f(an) for all n ∈ N and a1 ∈ R. Show that if the sequence (an : n ∈ N) convergesto some point a∞ then a∞ = f(a∞). Hint: justify the equation: f( lim

n→∞an) = lim

n→∞f(an).

6. Let f : [0, 2π] → R be a continuous function. Show that if f(0) = f(2π) then thereexists a point x0 ∈ [0, π] such that f(x0) = f(x0 + π). Hint: consider the functiong : [0, π] → R defined by, g(x) := f(x)− f(x + π).

7. Let f : [a, b] → [a, b] be continuous function. Show that there exists a point x0 ∈ [a, b]such that f(x0) = x0. Hint: it may be constructive to consider the function g : [a, b] → Rdefined by, g(x) := f(x)− x.

8. Suppose that a < b and f : [a, b] → R is continuous. If f(x) > 0 for all x ∈ [a, b] showthat there exists an ε > 0 such that f(x) > ε for all x ∈ [a, b].

9. Suppose that a < b and f : [a, b] → R is continuous. If for each x ∈ [a, b] there existsa point y ∈ [a, b] such that |f(y)| 6 1/2|f(x)|. Show that there exists a point x0 ∈ [a, b]such that f(x0) = 0.

10. Let f : [a, b] → R and g : [a, b] → R be continuous functions. Show that if for eachε > 0 there exists a point xε ∈ [a, b] such that |f(xε)−g(xε)| < ε then there exists a pointx0 ∈ [a, b] such that f(x0) = g(x0).

11. Let f : R → R be defined by, f(x) := x3. Show that the inverse of f exists and isstrictly increasing and continuous on R. Hint: it may be helpful to use use the inequality,x2 + xy + y2 > (x2 − 2|xy|+ y2) + |xy| = (|x| − |y|)2 + |x||y|.12. Suppose that a < b and f : [a, b] → R is strictly decreasing and continuous on [a, b].Show that the inverse mapping f−1 exists and is strictly decreasing and continuous on[f(b), f(a)].

13. Let f : R → R be an increasing function. Show that the set D of all point wheref is discontinuous is countable. Hint: since f is increasing f is discontinuous at a pointx0 ∈ R if, and only if, f−(x0) := limx→x−0

f(x) < limx→x+0

f(x) := f+(x0). Now definethe mapping r : D → Q in the following way. For each d ∈ D choose a rational numberrd ∈ (f−(x0), f

+(x)) and define r(d) := rd. Then show that r is 1-to-1.

14. Let {rn : n ∈ N} be an enumeration of the rational numbers and define f : R → Rby, f(x) :=

∑rn<x 1/2n, ie: the sum is taken over all n ∈ N such that rn < x.

(a) Show that f is strictly increasing on R.

45

Page 10: Chapter 5: Continuity of functions

(b) Show that f is discontinuous at each point of Q.

(c) Show that f is continuous at each irrational number.

46