# Composition of continuous functions – Serlo

Zur Navigation springen Zur Suche springen

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

The concatenation theorems for continuous functions are the following:

Theorem (Concatenation Theorems)

Let ${\displaystyle D\subseteq \mathbb {R} }$ be a subset of the real numbers (domain of definition) and ${\displaystyle \lambda \in \mathbb {R} }$ be a real number. Let ${\displaystyle f,g:D\to \mathbb {R} }$ be real-valued functions, which are continuous at all ${\displaystyle a\in D}$ . That means, ${\displaystyle \lim _{x\to a}{f(x)}=f(a)}$ and ${\displaystyle \lim _{x\to a}{g(x)}=g(a)}$. Then, the following functions are continuous at ${\displaystyle a}$ , as well:

• ${\displaystyle f+g:D\to \mathbb {R} :x\mapsto f(x)+g(x)}$
• ${\displaystyle \lambda f:D\to \mathbb {R} :x\mapsto \lambda \cdot f(x)}$
• ${\displaystyle fg:D\to \mathbb {R} :x\mapsto f(x)\cdot g(x)}$

Let ${\displaystyle D'=\{x\in D:g(x)\neq 0\}}$ and consider ${\displaystyle f}$ and ${\displaystyle g}$ which are both continuous in ${\displaystyle a\in D'}$. Then, the following quotient function is continuous in ${\displaystyle a}$:

${\displaystyle {\frac {f}{g}}:D'\to \mathbb {R} :x\mapsto {\frac {f(x)}{g(x)}}}$

Let ${\displaystyle h:E\to \mathbb {R} }$ be a real-valued function with ${\displaystyle f(D)\subseteq E}$ , which is continuous at ${\displaystyle b=f(a)\in E}$ . Then, the concatenation ${\displaystyle h\circ f}$ is also continuous - namely at ${\displaystyle a}$:

${\displaystyle h\circ f:D\to \mathbb {R} :x\mapsto h(f(x))}$

## Motivation

Imagine, we are given a function containing sums, products and quotients like ${\displaystyle f:\mathbb {R} \to \mathbb {R} _{0}^{+}}$, ${\displaystyle x\mapsto \left|{\tfrac {1+x^{3}}{1+x^{2}}}\right|}$ . We would like to know whether this function is continuous at some argument ${\displaystyle a\in \mathbb {R} }$ . So we consider any sequence of arguments ${\displaystyle (x_{n})_{n\in \mathbb {N} }}$ converging to ${\displaystyle a}$ and check whether there is always ${\displaystyle \lim _{n\to \infty }f(x_{n})=f(a)}$. For handling sums, products and quotients, the limit theorems for convergent sequences turn out to be very useful:

{\displaystyle {\begin{aligned}\lim _{n\to \infty }f(x_{n})&=\lim _{n\rightarrow \infty }{\left|{\frac {1+x_{n}^{3}}{1+x_{n}^{2}}}\right|}\\[0.5em]&\quad {\color {Gray}\left\downarrow \ {\text{Betragsregel}}\right.}\\[0.5em]&=\left|\lim _{n\to \infty }{\left({\frac {1+x_{n}^{3}}{1+x_{n}^{2}}}\right)}\right|\\[0.5em]&\quad {\color {Gray}\left\downarrow \ {\text{Quotienten-, Produkt- und Additionsregel}}\right.}\\[0.5em]&=\left|{\frac {\lim _{n\to \infty }1+\left(\lim _{n\to \infty }x_{n}\right)^{3}}{\lim _{n\to \infty }1+\left(\lim _{n\to \infty }x_{n}\right)^{2}}}\right|\\[0.5em]&\quad {\color {Gray}\left\downarrow \ \lim _{n\to \infty }x_{n}=a\right.}\\[0.5em]&=\left|{\frac {1+a^{3}}{1+a^{2}}}\right|=f(a)\end{aligned}}}

Those formulas could be applied because all subsequences converge (we showed this in the end of our calculations). As ${\displaystyle a\in \mathbb {R} }$ was chosen to be arbitrary, we directly obtain the continuity of the entire function ${\displaystyle 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:

• ${\displaystyle a:\mathbb {R} \to \mathbb {R} :x\mapsto x}$
• ${\displaystyle b:\mathbb {R} \to \mathbb {R} :x\mapsto 1}$
• ${\displaystyle c:\mathbb {R} \to \mathbb {R} ^{+}:x\mapsto |x|}$

Now, ${\displaystyle f}$ may be written as a concatenation of those three functions:

${\displaystyle f(x)=c\left({\frac {b(x)+a(x)a(x)a(x)}{b(x)+a(x)a(x)}}\right)}$

As all three functions ${\displaystyle a}$, ${\displaystyle b}$ and ${\displaystyle c}$ are continuous, the concatenation theorems will directly imply continuity for ${\displaystyle f}$ . This argumentation is even shorter than the proof using the sequence criterion. So the continuity proof can be concluded in one sentence: ${\displaystyle 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

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:

${\displaystyle f:\mathbb {R} \to \mathbb {R} :x\mapsto {\sqrt {5+x^{2}}}}$

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:

• ${\displaystyle a:\mathbb {R} \to \mathbb {R} :x\mapsto x}$
• ${\displaystyle b:\mathbb {R} \to \mathbb {R} :x\mapsto 5}$
• ${\displaystyle c:\mathbb {R} _{0}^{+}\to \mathbb {R} :x\mapsto {\sqrt {x}}}$

This allows writing ${\displaystyle f}$ as a concatenation:

${\displaystyle f(x)={\sqrt {5+x^{2}}}={\sqrt {5+x\cdot x}}=c(b(x)+a(x)\cdot a(x))}$

So ${\displaystyle 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:

• ${\displaystyle a:\mathbb {R} \to \mathbb {R} :x\mapsto x}$
• ${\displaystyle b:\mathbb {R} \to \mathbb {R} :x\mapsto 5}$
• ${\displaystyle c:\mathbb {R} _{0}^{+}\to \mathbb {R} :x\mapsto {\sqrt {x}}}$

These functions are continuous. Further, we can write ${\displaystyle f(x)=c(b(x)+a(x)\cdot a(x))}$. Hence, ${\displaystyle f}$ is a concatenation of continuous functions, so it is continuous, as well.

## General sketch of the proof

Following the concatenation theorems, every composition of continuous functions is again continuous function. So if ${\displaystyle f:D\to \mathbb {R} }$ can be written as a concatenation of continuous functions, we can directly infer continuity of ${\displaystyle f}$ . A corresponding proof could be of the following form:

Let ${\displaystyle f:\ldots }$ with ${\displaystyle f(x)=\ldots }$. The function ${\displaystyle f}$ is a concatenation of the following functions:

...List of continuous functions, which serve as building bricks for ${\displaystyle f}$ ...

Since ${\displaystyle f(x)=\ldots }$ (Expression how ${\displaystyle f}$ is constructed out of those bricks) , we know that ${\displaystyle 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

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

• ${\displaystyle f:\mathbb {R} \to \mathbb {R} :x\mapsto x}$
• ${\displaystyle g_{c}:\mathbb {R} \to \mathbb {R} :x\mapsto c}$

${\displaystyle f}$ is the identity ${\displaystyle g_{c}}$ the constant function with value ${\displaystyle c}$. These functions are continuous and hence, every polynomial function is continuous. For instance, we may construct the polynomial function ${\displaystyle h:\mathbb {R} \to \mathbb {R} :x\mapsto 2x^{3}-4x+23}$ out of ${\displaystyle f}$ and ${\displaystyle g_{c}}$ as follows:

${\displaystyle h(x)=g_{2}(x)\cdot f(x)\cdot f(x)\cdot f(x)+g_{-4}(x)\cdot f(x)+g_{23}(x)}$

{\displaystyle {\begin{aligned}h(x)&=2x^{3}-4x+23\\&=2\cdot x\cdot x\cdot x+(-4)\cdot x+23\\&=g_{2}(x)\cdot f(x)\cdot f(x)\cdot f(x)+g_{-4}(x)\cdot f(x)+g_{23}(x)\end{aligned}}}

## Further examples

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:

{\displaystyle {\begin{aligned}f:\mathbb {R} \to \mathbb {R} :x\mapsto &1\\g:\mathbb {R} \to \mathbb {R} :x\mapsto &{\begin{cases}1,&x\geq 0\\0,&x<0\end{cases}}\end{aligned}}}

The function ${\displaystyle f}$is continuous at ${\displaystyle x=0}$, whereas ${\displaystyle g}$ is not. The product of both functions is again ${\displaystyle g}$, since ${\displaystyle f(x)\cdot g(x)=1\cdot g(x)=g(x)}$. Therefore the product (i.e. a concatenation) is discontinuous at ${\displaystyle 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:

${\displaystyle h:\mathbb {R} \to \mathbb {R} :x\mapsto h(x)={\begin{cases}0,&x\in \mathbb {R} \setminus \mathbb {Q} \\1,&x\in \mathbb {Q} \end{cases}}}$

This function maps rational numbers to ${\displaystyle 1}$ an all other to ${\displaystyle 0}$ . Concatenating ${\displaystyle h}$ with itself, we get the following function ${\displaystyle h\circ h}$:

{\displaystyle {\begin{aligned}h(h(x))&={\begin{cases}0,&h(x)\in \mathbb {R} \setminus \mathbb {Q} \\1,&h(x)\in \mathbb {Q} \end{cases}}\\[0.3em]&\quad {\color {Gray}\left\downarrow \ h(x){\text{ ist immer rational.}}\right.}\\[0.3em]&=1\end{aligned}}}

${\displaystyle h\circ h}$ is just a constant function. Hence it is continuous - although ${\displaystyle h}$ was actually nowhere continuous. So concatenating discontinuous functions may indeed yield us a continuous function.

## Proof of concatenation theorems

Theorem (Concatenation theorem for sums)

Let ${\displaystyle D\subseteq \mathbb {R} }$ and let ${\displaystyle f,g:D\to \mathbb {R} }$ be real-valued functions, which are continuous in ${\displaystyle a\in D}$ Then, ${\displaystyle f+g:D\to \mathbb {R} :x\mapsto f(x)+g(x)}$ is continuous in ${\displaystyle a}$ , as well.

Proof (Concatenation theorem for sums)

We will prove the addition rule for continuity by checking the sequence criterion. Let ${\displaystyle (x_{n})_{n\in \mathbb {N} }}$ be any sequence of arguments taken from the domain ${\displaystyle D}$ and converging to ${\displaystyle a}$. There is:

{\displaystyle {\begin{aligned}&\lim _{n\to \infty }(f+g)(x_{n})\\[0.3em]=&\lim _{n\to \infty }\left(f(x_{n})+g(x_{n})\right)\\[0.3em]&\quad {\color {Gray}\left\downarrow \ {\text{Limit theorem: addition rule}}\right.}\\[0.3em]=&\lim _{n\to \infty }f(x_{n})+\lim _{n\to \infty }g(x_{n})\\[0.3em]=&f(a)+g(a)=(f+g)(a)\end{aligned}}}

Alternative proof (Concatenation theorem for sums)

It is also possible to establish continuity of ${\displaystyle f+g}$ in ${\displaystyle a}$by checkng the Epsilon-Delta criterion . Let any ${\displaystyle \epsilon >0}$ be given. As ${\displaystyle f}$ is continuous at ${\displaystyle a}$ , there has to be a ${\displaystyle \delta _{f}>0}$, such that for all ${\displaystyle x\in D}$ with ${\displaystyle |x-a|<\delta _{f}}$ the inequality ${\displaystyle |f(x)-f(a)|<\epsilon /2}$ holds. Analogously for ${\displaystyle g}$, there is a ${\displaystyle \delta _{g}>0}$, such that for all ${\displaystyle x\in D}$ with ${\displaystyle |x-a|<\delta _{g}}$ the inequality ${\displaystyle |g(x)-g(a)|<\epsilon /2}$ holds.

Now, we set ${\displaystyle \delta :=\min\{\delta _{f},\delta _{g}\}}$. Hence, for all ${\displaystyle x\in D}$ with ${\displaystyle |x-a|<\delta }$ ,both the conditions ${\displaystyle |f(x)-f(a)|<\epsilon /2}$ and ${\displaystyle |g(x)-g(a)|<\epsilon /2}$ are fulfilled. Thus, for all ${\displaystyle x}$ with ${\displaystyle |x-a|<\delta }$ , there is:

{\displaystyle {\begin{aligned}&|(f+g)(x)-(f+g)(a)|\\[0.3em]&\quad {\color {Gray}\left\downarrow \ {\text{definition of the function }}(f+g)\right.}\\[0.3em]&=|f(x)+g(x)-(f(a)+g(a))|\\[0.3em]&\quad {\color {Gray}\left\downarrow \ {\text{associativity of }}\mathbb {R} \right.}\\[0.3em]&=|(f(x)-f(a))+(g(a)-g(x))|\\[0.3em]&\quad {\color {Gray}\left\downarrow \ {\text{triangle inequality}}\right.}\\[0.3em]&\leq \underbrace {|f(x)-f(a)|} _{\color {Gray}<\epsilon /2{\text{, da }}|x-a|<\delta \leq \delta _{f}}+\underbrace {|g(a)-g(x)|} _{\color {Gray}<\epsilon /2{\text{, da }}|x-a|<\delta \leq \delta _{g}}\\[0.3em]&<\epsilon /2+\epsilon /2=\epsilon \end{aligned}}}

### Continuity of scalar multiplication

Theorem (Concatenation theorem for scalar multiplication)

Let ${\displaystyle D\subseteq \mathbb {R} }$ and ${\displaystyle \lambda \in \mathbb {R} }$. Further, let ${\displaystyle f:D\to \mathbb {R} }$ be a real-valued function, which is continuous at ${\displaystyle a\in D}$ . Then, ${\displaystyle \lambda f:D\to \mathbb {R} :x\mapsto \lambda \cdot f(x)}$ is continuous at ${\displaystyle a}$ , as well.

Proof (Concatenation theorem for scalar multiplication)

We will prove continuity of ${\displaystyle \lambda f}$ in ${\displaystyle a}$ by checking the sequence criterion. Let ${\displaystyle \left(x_{n}\right)_{n\in \mathbb {N} }}$ be any sequence with ${\displaystyle x_{n}\in D}$ for all ${\displaystyle n\in \mathbb {N} }$ and converging as ${\displaystyle \lim _{n\to \infty }x_{n}=a}$. Since ${\displaystyle f}$ is continuous at ${\displaystyle a}$ , the limit ${\displaystyle \lim _{n\to \infty }f(x_{n})=f(a)}$ exists. Now there is:

{\displaystyle {\begin{aligned}&\lim _{n\to \infty }(\lambda f)(x_{n})\\[0.3em]&\quad {\color {Gray}\left\downarrow \ {\text{definition of the function }}(\lambda f)\right.}\\[0.3em]&=\lim _{n\to \infty }\left(\lambda \cdot f(x_{n})\right)\\[0.3em]&\quad {\color {Gray}\left\downarrow \ {\text{foctor rule for limits}}\right.}\\[0.3em]&=\lambda \cdot \lim _{n\to \infty }f(x_{n})\\[0.3em]&\quad {\color {Gray}\left\downarrow \ f{\text{ continuous}}\right.}\\[0.3em]&=\lambda \cdot f(a)\\[0.3em]&\quad {\color {Gray}\left\downarrow \ {\text{definition of the function }}(\lambda f)\right.}\\[0.3em]&=(\lambda f)(a)\end{aligned}}}

### Continuity under multiplication

Theorem (Concatenation theorem for multiplication)

Let ${\displaystyle D\subseteq \mathbb {R} }$ and let ${\displaystyle f,g:D\to \mathbb {R} }$ be real-valued functions , which are continuous at ${\displaystyle a\in D}$ . Then, ${\displaystyle fg:D\to \mathbb {R} :x\mapsto f(x)\cdot g(x)}$ is continuous at ${\displaystyle a}$ , as well.

Proof (Concatenation theorem for multiplication)

We will establish continuity of the product ${\displaystyle fg}$ by checking the sequence criterion. Let ${\displaystyle \left(x_{n}\right)_{n\in \mathbb {N} }}$ be any sequence with ${\displaystyle x_{n}\in D}$ for all ${\displaystyle n\in \mathbb {N} }$ and ${\displaystyle \lim _{n\to \infty }x_{n}=a}$. As both ${\displaystyle f}$ and ${\displaystyle g}$ are continuous at ${\displaystyle a}$ , the two limits ${\displaystyle \lim _{n\to \infty }f(x_{n})=f(a)}$ and ${\displaystyle \lim _{n\to \infty }g(x_{n})=g(a)}$ exist. Now, there is:

{\displaystyle {\begin{aligned}&\lim _{n\to \infty }(fg)(x_{n})\\[0.3em]&\quad {\color {Gray}\left\downarrow \ {\text{definition of the function }}(fg)\right.}\\[0.3em]&=\lim _{n\to \infty }\left(f(x_{n})\cdot g(x_{n})\right)\\[0.3em]&\quad {\color {Gray}\left\downarrow \ {\text{product rule for limits}}\right.}\\[0.3em]&=\lim _{n\to \infty }f(x_{n})\cdot \lim _{n\to \infty }g(x_{n})\\[0.3em]&\quad {\color {Gray}\left\downarrow \ f{\text{ and }}g{\text{ are continuous}}\right.}\\[0.3em]&=f(a)\cdot g(a)\\[0.3em]&\quad {\color {Gray}\left\downarrow \ {\text{definition of the funciton }}(fg)\right.}\\[0.3em]&=(fg)(a)\end{aligned}}}

### Continuity of quotients

Theorem (Concatenation theorem for quotients)

Let ${\displaystyle D\subseteq \mathbb {R} }$ and let ${\displaystyle f:D\to \mathbb {R} }$ and ${\displaystyle g:D\to \mathbb {R} }$ be two real-valued functions. Define the domain without 0 by ${\displaystyle D'=\{x\in D:g(x)\neq 0\}}$ and suppose that ${\displaystyle f}$ and ${\displaystyle g}$ are both continuous at all ${\displaystyle a\in D'}$. Then, the quotient ${\displaystyle {\tfrac {f}{g}}:D'\to \mathbb {R} }$ will be continuous at ${\displaystyle 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 ${\displaystyle \left(x_{n}\right)_{n\in \mathbb {N} }}$ be any sequence with ${\displaystyle x_{n}\in D'}$ for all ${\displaystyle n\in \mathbb {N} }$ and ${\displaystyle \lim _{n\to \infty }x_{n}=a}$. Since both the function ${\displaystyle f}$ and ${\displaystyle g}$ are continuous at ${\displaystyle a}$ , it follows that ${\displaystyle \lim _{n\to \infty }f(x_{n})=f(a)}$ and ${\displaystyle \lim _{n\to \infty }g(x_{n})=g(a)}$. Furthermore, there is ${\displaystyle g(x_{n})\neq 0}$, so ${\displaystyle {\tfrac {f}{g}}(x_{n}):={\tfrac {f(x_{n})}{g(x_{n})}}}$ is well-defined for all ${\displaystyle n\in \mathbb {N} }$ . Thus:

{\displaystyle {\begin{aligned}&\lim _{n\to \infty }{\frac {f}{g}}(x_{n})\\[0.3em]&\quad {\color {Gray}\left\downarrow \ {\text{definition of the function }}{\tfrac {f}{g}}\right.}\\[0.3em]&=\lim _{n\to \infty }{\frac {f(x_{n})}{g(x_{n})}}\\[0.3em]&\quad {\color {Gray}\left\downarrow \ {\text{quotient rules for limits}}\right.}\\[0.3em]&={\frac {\lim _{n\to \infty }f(x_{n})}{\lim _{n\to \infty }g(x_{n})}}\\[0.3em]&\quad {\color {Gray}\left\downarrow \ f{\text{ and }}g{\text{ are continuous}}\right.}\\[0.3em]&={\frac {f(a)}{g(a)}}\\[0.3em]&\quad {\color {Gray}\left\downarrow \ {\text{definition of the funcion }}{\tfrac {f}{g}}\right.}\\[0.3em]&={\frac {f}{g}}(a)\end{aligned}}}

### Continuity of compositions

Theorem (Concatenation theorem for compositions)

Sei ${\displaystyle D\subseteq \mathbb {R} }$ und ${\displaystyle f:D\to \mathbb {R} }$ eine Funktionen, die in ${\displaystyle a\in D}$ stetig ist. Sei zusätzlich ${\displaystyle h:E\to \mathbb {R} }$ mit ${\displaystyle f(D)\subseteq E}$, die in ${\displaystyle b=f(a)\in E}$ stetig ist. Dann ist auch ${\displaystyle h\circ f:D\to \mathbb {R} }$ stetig in ${\displaystyle a}$.

Proof (Concatenation theorem for compositions)

We will prove continuity of ${\displaystyle h\circ f}$ at ${\displaystyle a}$ by checking the sequence criterion. Let ${\displaystyle \left(x_{n}\right)_{n\in \mathbb {N} }}$ be any sequence with ${\displaystyle x_{n}\in D}$ for all ${\displaystyle n\in \mathbb {N} }$ converging like ${\displaystyle \lim _{n\to \infty }x_{n}=a}$. Then, ${\displaystyle \left(f(x_{n})\right)_{n\in \mathbb {N} }}$ is a sequence with ${\displaystyle f(x_{n})\in E}$ for all ${\displaystyle n\in \mathbb {N} }$ (since ${\displaystyle f(D)\subseteq E}$) and there is ${\displaystyle \lim _{n\to \infty }f(x_{n})=f(a)}$ (since ${\displaystyle f}$ stetig). Therefore:

{\displaystyle {\begin{aligned}&\lim _{n\to \infty }(h\circ f)(x_{n})\\[0.3em]&\quad {\color {Gray}\left\downarrow \ {\text{definition of the composition}}\right.}\\[0.3em]&=\lim _{n\to \infty }h(f(x_{n}))\\[0.3em]&\quad {\color {Gray}\left\downarrow \ {\text{sequence criterion for }}h\right.}\\[0.3em]&=h\left(\lim _{n\to \infty }f(x_{n})\right)\\[0.3em]&\quad {\color {Gray}\left\downarrow \ {\text{continuity of }}f{\text{ bei }}a\right.}\\[0.3em]&=h\left(f(a)\right)\\[0.3em]&\quad {\color {Gray}\left\downarrow \ {\text{definition of the composition}}\right.}\\[0.3em]&=(h\circ f)(a)\end{aligned}}}

## Comparison with the epsilon-delta criterion

In the beginning of this article, we used the concatenation theorems in order to show that the function ${\displaystyle {\sqrt {5+x^{2}}}}$ 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 ${\displaystyle \delta }$ we have to choose, in order to stay below a given threshold ${\displaystyle \epsilon >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:

${\displaystyle f:\mathbb {R} \to \mathbb {R} ,x\mapsto {\sqrt {5+x^{2}}}}$

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 ${\displaystyle \epsilon >0}$ , there is a ${\displaystyle \delta >0}$ , such that all ${\displaystyle x\in \mathbb {R} }$ with ${\displaystyle |x-a|<\delta }$ satisfy the inequality ${\displaystyle |f(x)-f(a)|<\epsilon }$ . So let us take a look at the target inequality ${\displaystyle |f(x)-f(a)|<\epsilon }$ and estimate the absolute ${\displaystyle |f(x)-f(a)|}$ from above. We are able to control the term ${\displaystyle |x-a|}$ . Therefor, would like to get an upper bound for ${\displaystyle |f(x)-f(a)|}$ including the expression ${\displaystyle |x-a|}$ . So we are looking for an inequality of the form

${\displaystyle |f(x)-f(a)|\leq K(x,a)\cdot |x-a|}$

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

{\displaystyle {\begin{aligned}|f(x)-f(a)|&=\left|{\sqrt {5+x^{2}}}-{\sqrt {5+a^{2}}}\right|\\[0.3em]&\quad {\color {Gray}\left\downarrow \ {\text{expand with}}\left|{\sqrt {5+x^{2}}}+{\sqrt {5+a^{2}}}\right|\right.}\\[0.3em]&={\frac {\left|{\sqrt {5+x^{2}}}-{\sqrt {5+a^{2}}}\right|\cdot \left|{\sqrt {5+x^{2}}}+{\sqrt {5+a^{2}}}\right|}{\left|{\sqrt {5+x^{2}}}+{\sqrt {5+a^{2}}}\right|}}\\[0.3em]&\quad {\color {Gray}\left\downarrow \ {\sqrt {5+x^{2}}}+{\sqrt {5+a^{2}}}\geq 0\right.}\\[0.3em]&={\frac {\left|x^{2}-a^{2}\right|}{{\sqrt {5+x^{2}}}+{\sqrt {5+a^{2}}}}}\\[0.3em]&={\frac {\left|x+a\right|}{{\sqrt {5+x^{2}}}+{\sqrt {5+a^{2}}}}}\cdot |x-a|\\[0.3em]&\quad {\color {Gray}\left\downarrow \ K(x,a):={\frac {\left|x+a\right|}{{\sqrt {5+x^{2}}}+{\sqrt {5+a^{2}}}}}\right.}\\[0.3em]&=K(x,a)\cdot |x-a|\end{aligned}}}

Since ${\displaystyle |x-a|<\delta }$ , there is:

${\displaystyle |f(x)-f(a)|=K(x,a)\cdot |x-a|

If we now choose ${\displaystyle \delta }$ small enough, such that ${\displaystyle K(x,a)\cdot \delta \leq \epsilon }$ , then we obtain our target inequality ${\displaystyle |f(x)-f(a)|\leq \epsilon }$. But ${\displaystyle K(x,a)}$ still depends on ${\displaystyle x}$ , so ${\displaystyle \delta }$ would have to depend on , too - and we required one choice of ${\displaystyle \delta }$ which is suitable for all ${\displaystyle x}$ . THerefore, we need to get rid of the ${\displaystyle x}$-dependence. This is done by an estimate of the first factor, such that our inequality takes the form ${\displaystyle K(x,a)\leq {\tilde {K}}(a)}$ :

{\displaystyle {\begin{aligned}K(x,a)&={\frac {\left|x+a\right|}{{\sqrt {5+x^{2}}}+{\sqrt {5+a^{2}}}}}\\[0.3em]&\quad {\color {Gray}\left\downarrow \ {\text{triangle inequality}}\right.}\\[0.3em]&\leq {\frac {\left|x\right|}{{\sqrt {5+x^{2}}}+{\sqrt {5+a^{2}}}}}+{\frac {\left|a\right|}{{\sqrt {5+x^{2}}}+{\sqrt {5+a^{2}}}}}\\[0.3em]&\quad {\color {Gray}\left\downarrow \ {\frac {a}{b+c}}\leq {\frac {a}{b}}{\text{ for }}a,c\geq 0,b>0\right.}\\[0.3em]&\leq {\frac {\left|x\right|}{\sqrt {5+x^{2}}}}+{\frac {\left|a\right|}{\sqrt {5+a^{2}}}}\\[0.3em]&\quad {\color {Gray}\left\downarrow \ {\frac {|a|}{\sqrt {5+a^{2}}}}\leq 1{\text{, since }}{\sqrt {5+a^{2}}}\geq {\sqrt {a^{2}}}=|a|\right.}\\[0.3em]&\leq 2=:{\tilde {K}}(a)\end{aligned}}}

We even made ${\displaystyle {\tilde {K}}(a)}$ independent of ${\displaystyle a}$ , which would in fact not have been necessary. So we obtain the following inequality

${\displaystyle |f(x)-f(a)|\leq 2\cdot |x-a|<2\cdot \delta }$

We need the estimate ${\displaystyle 2\cdot \delta \leq \epsilon }$, in order to fulfill the target inequality ${\displaystyle |f(x)-f(a)|<\epsilon }$ . The choice of ${\displaystyle \delta ={\tfrac {\epsilon }{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 ${\displaystyle f:\mathbb {R} \to \mathbb {R} }$ with ${\displaystyle f(x)={\sqrt {5+x^{2}}}}$. Let ${\displaystyle a\in \mathbb {R} }$ and an arbitrary ${\displaystyle \epsilon >0}$ be given. We choose ${\displaystyle \delta ={\tfrac {\epsilon }{2}}}$. For all ${\displaystyle x\in \mathbb {R} }$ with ${\displaystyle |x-a|<\delta }$ there is:

{\displaystyle {\begin{aligned}|f(x)-f(a)|&=\left|{\sqrt {5+x^{2}}}-{\sqrt {5+a^{2}}}\right|\\[0.3em]&={\frac {\left|{\sqrt {5+x^{2}}}-{\sqrt {5+a^{2}}}\right|\cdot \left|{\sqrt {5+x^{2}}}+{\sqrt {5+a^{2}}}\right|}{\left|{\sqrt {5+x^{2}}}+{\sqrt {5+a^{2}}}\right|}}\\[0.3em]&={\frac {\left|x^{2}-a^{2}\right|}{{\sqrt {5+x^{2}}}+{\sqrt {5+a^{2}}}}}\\[0.3em]&={\frac {\left|x+a\right|}{{\sqrt {5+x^{2}}}+{\sqrt {5+a^{2}}}}}\cdot |x-a|\\[0.3em]&\leq \left({\frac {\left|x\right|}{{\sqrt {5+x^{2}}}+{\sqrt {5+a^{2}}}}}+{\frac {\left|a\right|}{{\sqrt {5+x^{2}}}+{\sqrt {5+a^{2}}}}}\right)\cdot |x-a|\\[0.3em]&\leq \left({\frac {\left|x\right|}{\sqrt {5+x^{2}}}}+{\frac {\left|a\right|}{\sqrt {5+a^{2}}}}\right)\cdot |x-a|\\[0.3em]&\leq (1+1)\cdot |x-a|\\[0.3em]&\leq 2\cdot |x-a|\\[0.3em]&\quad {\color {Gray}\left\downarrow \ |x-a|<\delta ={\frac {\epsilon }{2}}\right.}\\[0.3em]&<2\cdot {\frac {\epsilon }{2}}=\epsilon \end{aligned}}}

Hence, ${\displaystyle f}$ is a continuous function.