Zum Inhalt springen

Composition of continuous functions

Aus Wikibooks

Many functions are defined as the concatenation - the linking together of things, like in a chain - of other functions. Checking for continuity of such concatenated functions by using the classical epsilon-delta criterion for continuity is often tedious. However, one can prove that the concatenation of continuous functions is once again a continuous function. This is an important tool that simplifies the proof for continuity of compositions of functions.

Concatenation Theorems

[Bearbeiten]

The concatenation theorems for continuous functions are the following:

Theorem (Concatenation Theorems)

Let D⊆ℝ be a subset of the real numbers (domain of definition) and λ∈ℝ be a real number. Let f,g:D→ℝ be real-valued functions, which are continuous at all a∈D . That means, limx→af(x)=f(a) and limx→ag(x)=g(a). Then, the following functions are continuous at a , as well:

  • f+g:D→ℝ:x↦f(x)+g(x)
  • λf:D→ℝ:x↦λ⋅f(x)
  • fg:D→ℝ:x↦f(x)⋅g(x)

Let D′={x∈D:g(x)≠0} and consider f and g which are both continuous in a∈D′. Then, the following quotient function is continuous in a:

fg:D′→ℝ:x↦f(x)g(x)

Let h:E→ℝ be a real-valued function with f(D)⊆E , which is continuous at b=f(a)∈E . Then, the concatenation h∘f is also continuous - namely at a:

h∘f:D→ℝ:x↦h(f(x))

Motivation

[Bearbeiten]

Imagine, we are given a function containing sums, products and quotients like f:ℝ→ℝ0+, x↦|1+x31+x2| . We would like to know whether this function is continuous at some argument a∈ℝ . So we consider any sequence of arguments (xn)n∈ℕ converging to a and check whether there is always limn→∞f(xn)=f(a). For handling sums, products and quotients, the limit theorems for convergent sequences turn out to be very useful:

limn→∞f(xn)=limn→∞|1+xn31+xn2|↓ rule for absolute values=|limn→∞(1+xn31+xn2)|↓ quotient, product and sum rule=|limn→∞1+(limn→∞xn)3limn→∞1+(limn→∞xn)2|↓ limn→∞xn=a=|1+a31+a2|=f(a)

Those formulas could be applied because all subsequences converge (we showed this in the end of our calculations). As a∈ℝ was chosen to be arbitrary, we directly obtain the continuity of the entire function f . This proof of continuity is basically an application of the sequence criterion plus theorems for sequence limits. Since, thanks to the limit theorems, the limit can be pulled into the function, we can use it to establish continuity. And the above concatenation theorems shorten proofs of this kind even further. we consider the following functions:

  • a:ℝ→ℝ:x↦x
  • b:ℝ→ℝ:x↦1
  • c:ℝ→ℝ+:x↦|x|

Now, f may be written as a concatenation of those three functions:

f(x)=c(b(x)+a(x)a(x)a(x)b(x)+a(x)a(x))

As all three functions a, b and c are continuous, the concatenation theorems will directly imply continuity for f . This argumentation is even shorter than the proof using the sequence criterion. So the continuity proof can be concluded in one sentence: f is continuous because it is a concatenation of continuous functions. And indeed, any concatenation constructed out of continuous functions (i.e. by combining polynomials) is continuous.

Problem Example

[Bearbeiten]

The following problem illustrates just how easy it is to establish continuity of a function using the concatenation theorems:

Exercise (Continuity of a concatenated square root function)

Prove continuity for the following function:

f:ℝ→ℝ:x↦5+x2

How to get to the proof? (Continuity of a concatenated square root function)

The above function is just a concatenation of several simple functions, serving as building blocks. Our main task is to find those building blocks. They are given by:

  • a:ℝ→ℝ:x↦x
  • b:ℝ→ℝ:x↦5
  • c:ℝ0+→ℝ:x↦x

This allows writing f as a concatenation:

f(x)=5+x2=5+x⋅x=c(b(x)+a(x)⋅a(x))

So f is simply continuous because it is a concatenation of continuous functions.

Proof (Continuity of a concatenated square root function)

Let the following functions be given:

  • a:ℝ→ℝ:x↦x
  • b:ℝ→ℝ:x↦5
  • c:ℝ0+→ℝ:x↦x

These functions are continuous. Further, we can write f(x)=c(b(x)+a(x)⋅a(x)). Hence, f is a concatenation of continuous functions, so it is continuous, as well.

General sketch of the proof

[Bearbeiten]

Following the concatenation theorems, every composition of continuous functions is again continuous function. So if f:D→ℝ can be written as a concatenation of continuous functions, we can directly infer continuity of f . A corresponding proof could be of the following form:

Let f:… with f(x)=…. The function f is a concatenation of the following functions:

...List of continuous functions, which serve as building bricks for f ...

Since f(x)=… (Expression how f is constructed out of those bricks) , we know that f is a concatenation of continuous functions and hence continuous, as well.

In a lecture, this proof scheme may of course only be applied if the concatenation theorems have already been treated before. In any way, it is a very efficient method to characterize continuous functions.

Corollary: Polynomial functions are continuous

[Bearbeiten]

Every polynomial function can be written as a concatenation of following the two functions:

  • f:ℝ→ℝ:x↦x
  • gc:ℝ→ℝ:x↦c

f is the identity gc the constant function with value c. These functions are continuous and hence, every polynomial function is continuous. For instance, we may construct the polynomial function h:ℝ→ℝ:x↦2x3−4x+23 out of f and gc as follows:

h(x)=g2(x)⋅f(x)⋅f(x)⋅f(x)+g−4(x)⋅f(x)+g23(x)

Explicitly, this decomposition reads:

h(x)=2x3−4x+23=2⋅x⋅x⋅x+(−4)⋅x+23=g2(x)⋅f(x)⋅f(x)⋅f(x)+g−4(x)⋅f(x)+g23(x)

Further examples

[Bearbeiten]

Exactly as subsequences have to converge for a concatenation sequence to converge, we need that our building brick functions are continuous in order to obtain a continuous concatenation function. When using non-continuous functions for the concatenation, we do not know anything about the continuity of the outcome. For instance:

f:ℝ→ℝ:x↦1g:ℝ→ℝ:x↦{1,x≥00,x<0

The function fis continuous at x=0, whereas g is not. The product of both functions is again g, since f(x)⋅g(x)=1⋅g(x)=g(x). Therefore the product (i.e. a concatenation) is discontinuous at x=0. By contrast to what one may intuitively expect, concatenating discontinuous functions may also yield us a continuous function. To illustrate this, let us consider:

h:ℝ→ℝ:x↦h(x)={0,x∈ℝ∖ℚ1,x∈ℚ

This function maps rational numbers to 1 an all other to 0 . Concatenating h with itself, we get the following function h∘h:

h(h(x))={0,h(x)∈ℝ∖ℚ1,h(x)∈ℚ↓ h(x) is always rational.=1

h∘h is just a constant function. Hence it is continuous - although h was actually nowhere continuous. So concatenating discontinuous functions may indeed yield us a continuous function.

Proof of concatenation theorems

[Bearbeiten]

Continuity under addition

[Bearbeiten]

Theorem (Concatenation theorem for sums)

Let D⊆ℝ and let f,g:D→ℝ be real-valued functions, which are continuous in a∈D Then, f+g:D→ℝ:x↦f(x)+g(x) is continuous in a , as well.

Proof (Concatenation theorem for sums)

We will prove the addition rule for continuity by checking the sequence criterion. Let (xn)n∈ℕ be any sequence of arguments taken from the domain D and converging to a. There is:

limn→∞(f+g)(xn)=limn→∞(f(xn)+g(xn))↓ Limit theorem: addition rule=limn→∞f(xn)+limn→∞g(xn)=f(a)+g(a)=(f+g)(a)

Alternative proof (Concatenation theorem for sums)

It is also possible to establish continuity of f+g in aby checkng the Epsilon-Delta criterion . Let any ϵ>0 be given. As f is continuous at a , there has to be a δf>0, such that for all x∈D with |x−a|<δf the inequality |f(x)−f(a)|<ϵ/2 holds. Analogously for g, there is a δg>0, such that for all x∈D with |x−a|<δg the inequality |g(x)−g(a)|<ϵ/2 holds.

Now, we set δ:=min⁡{δf,δg}. Hence, for all x∈D with |x−a|<δ ,both the conditions |f(x)−f(a)|<ϵ/2 and |g(x)−g(a)|<ϵ/2 are fulfilled. Thus, for all x with |x−a|<δ , there is:

|(f+g)(x)−(f+g)(a)|↓ definition of the function (f+g)=|f(x)+g(x)−(f(a)+g(a))|↓ associativity of ℝ=|(f(x)−f(a))+(g(a)−g(x))|↓ triangle inequality≤|f(x)−f(a)|⏟<ϵ/2, da |x−a|<δ≤δf+|g(a)−g(x)|⏟<ϵ/2, da |x−a|<δ≤δg<ϵ/2+ϵ/2=ϵ

Continuity of scalar multiplication

[Bearbeiten]

Theorem (Concatenation theorem for scalar multiplication)

Let D⊆ℝ and λ∈ℝ. Further, let f:D→ℝ be a real-valued function, which is continuous at a∈D . Then, λf:D→ℝ:x↦λ⋅f(x) is continuous at a , as well.

Proof (Concatenation theorem for scalar multiplication)

We will prove continuity of λf in a by checking the sequence criterion. Let (xn)n∈ℕ be any sequence with xn∈D for all n∈ℕ and converging as limn→∞xn=a. Since f is continuous at a , the limit limn→∞f(xn)=f(a) exists. Now there is:

limn→∞(λf)(xn)↓ definition of the function (λf)=limn→∞(λ⋅f(xn))↓ factor rule for limits=λ⋅limn→∞f(xn)↓ f continuous=λ⋅f(a)↓ definition of the function (λf)=(λf)(a)

Continuity under multiplication

[Bearbeiten]

Theorem (Concatenation theorem for multiplication)

Let D⊆ℝ and let f,g:D→ℝ be real-valued functions , which are continuous at a∈D . Then, fg:D→ℝ:x↦f(x)⋅g(x) is continuous at a , as well.

Proof (Concatenation theorem for multiplication)

We will establish continuity of the product fg by checking the sequence criterion. Let (xn)n∈ℕ be any sequence with xn∈D for all n∈ℕ and limn→∞xn=a. As both f and g are continuous at a , the two limits limn→∞f(xn)=f(a) and limn→∞g(xn)=g(a) exist. Now, there is:

limn→∞(fg)(xn)↓ definition of the function (fg)=limn→∞(f(xn)⋅g(xn))↓ product rule for limits=limn→∞f(xn)⋅limn→∞g(xn)↓ f and g are continuous=f(a)⋅g(a)↓ definition of the function (fg)=(fg)(a)

Continuity of quotients

[Bearbeiten]

Theorem (Concatenation theorem for quotients)

Let D⊆ℝ and let f:D→ℝ and g:D→ℝ be two real-valued functions. Define the domain without 0 by D′={x∈D:g(x)≠0} and suppose that f and g are both continuous at all a∈D′. Then, the quotient fg:D′→ℝ will be continuous at a , as well.

Proof (Concatenation theorem for quotients)

The proof will be done by checking the sequence criterion using the quotient rule for limits . Let (xn)n∈ℕ be any sequence with xn∈D′ for all n∈ℕ and limn→∞xn=a. Since both the function f and g are continuous at a , it follows that limn→∞f(xn)=f(a) and limn→∞g(xn)=g(a). Furthermore, there is g(xn)≠0, so fg(xn):=f(xn)g(xn) is well-defined for all n∈ℕ . Thus:

limn→∞fg(xn)↓ definition of the function fg=limn→∞f(xn)g(xn)↓ quotient rules for limits=limn→∞f(xn)limn→∞g(xn)↓ f and g are continuous=f(a)g(a)↓ definition of the function fg=fg(a)

Continuity of compositions

[Bearbeiten]

Theorem (Concatenation theorem for compositions)

Let D⊆ℝ and f:D→ℝ a function continuous in a∈D . In addition, let h:E→ℝ be a function with f(D)⊆E, which is continuous in b=f(a)∈E . Then, h∘f:D→ℝ is continuous in a, as well.

Proof (Concatenation theorem for compositions)

We will prove continuity of h∘f at a by checking the sequence criterion. Let (xn)n∈ℕ be any sequence with xn∈D for all n∈ℕ converging like limn→∞xn=a. Then, (f(xn))n∈ℕ is a sequence with f(xn)∈E for all n∈ℕ (since f(D)⊆E) and there is limn→∞f(xn)=f(a) (since f is continuous). Therefore:

limn→∞(h∘f)(xn)↓ definition of the composition=limn→∞h(f(xn))↓ sequence criterion for h=h(limn→∞f(xn))↓ continuity of f at a=h(f(a))↓ definition of the composition=(h∘f)(a)

Comparison with the epsilon-delta criterion

[Bearbeiten]

In the beginning of this article, we used the concatenation theorems in order to show that the function 5+x2 is continuous. We will no perform a second proof "by hand", using the epsilon-delta criterion. The proof will cost us more work, but we will get an explicit information on the maximal initial error δ we have to choose, in order to stay below a given threshold ϵ>0 for the error of the outcome.

Exercise (Epsilon-Delta proof for the continuity of the Square Root Function)

Show, using the epsilon-delta criterion, that the following function is continuous:

f:ℝ→ℝ,x↦5+x2

How to get to the proof? (Epsilon-Delta proof for the continuity of the Square Root Function)

We need to show, that for any given ϵ>0 , there is a δ>0 , such that all x∈ℝ with |x−a|<δ satisfy the inequality |f(x)−f(a)|<ϵ . So let us take a look at the target inequality |f(x)−f(a)|<ϵ and estimate the absolute |f(x)−f(a)| from above. We are able to control the term |x−a| . Therefor, would like to get an upper bound for |f(x)−f(a)| including the expression |x−a| . So we are looking for an inequality of the form

|f(x)−f(a)|≤K(x,a)⋅|x−a|

Here, K(x,a) is some expression depending on x and a . The second factor is smaller than δ and can be made arbitrarily small by a suitable choice of δ . Such a bound is constructed as follows:

|f(x)−f(a)|=|5+x2−5+a2|↓ expand with|5+x2+5+a2|=|5+x2−5+a2|⋅|5+x2+5+a2||5+x2+5+a2|↓ 5+x2+5+a2≥0=|x2−a2|5+x2+5+a2=|x+a|5+x2+5+a2⋅|x−a|↓ K(x,a):=|x+a|5+x2+5+a2=K(x,a)⋅|x−a|

Since |x−a|<δ , there is:

|f(x)−f(a)|=K(x,a)⋅|x−a|<K(x,a)⋅δ

If we now choose δ small enough, such that K(x,a)⋅δ≤ϵ , then we obtain our target inequality |f(x)−f(a)|≤ϵ. But K(x,a) still depends on x , so δ would have to depend on , too - and we required one choice of δ which is suitable for all x . THerefore, we need to get rid of the x-dependence. This is done by an estimate of the first factor, such that our inequality takes the form K(x,a)≤K~(a) :

K(x,a)=|x+a|5+x2+5+a2↓ triangle inequality≤|x|5+x2+5+a2+|a|5+x2+5+a2↓ ab+c≤ab for a,c≥0,b>0≤|x|5+x2+|a|5+a2↓ |a|5+a2≤1, since 5+a2≥a2=|a|≤2=:K~(a)

We even made K~(a) independent of a , which would in fact not have been necessary. So we obtain the following inequality

|f(x)−f(a)|≤2⋅|x−a|<2⋅δ

We need the estimate 2⋅δ≤ϵ, in order to fulfill the target inequality |f(x)−f(a)|<ϵ . The choice of δ=ϵ2 is sufficient for that. So let us write down the proof:

Proof (Epsilon-Delta proof for the continuity of the Square Root Function)

Let f:ℝ→ℝ with f(x)=5+x2. Let a∈ℝ and an arbitrary ϵ>0 be given. We choose δ=ϵ2. For all x∈ℝ with |x−a|<δ there is:

|f(x)−f(a)|=|5+x2−5+a2|=|5+x2−5+a2|⋅|5+x2+5+a2||5+x2+5+a2|=|x2−a2|5+x2+5+a2=|x+a|5+x2+5+a2⋅|x−a|≤(|x|5+x2+5+a2+|a|5+x2+5+a2)⋅|x−a|≤(|x|5+x2+|a|5+a2)⋅|x−a|≤(1+1)⋅|x−a|≤2⋅|x−a|↓ |x−a|<δ=ϵ2<2⋅ϵ2=ϵ

Hence, f is a continuous function.