Processing math: 77%
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

5.4: Continuous Functions

( \newcommand{\kernel}{\mathrm{null}\,}\)

5.4.1 Continuity at a Point

Definition

Suppose DR,f:DR, and aD. We say f is continuous at a if either a is an isolated point of D or limxaf(x)=f(a). If f is not continuous at a, we say f is discontinuous at a, or that f has a discontinuity at a.

Example 5.4.1

Define f:RR by

f(x)={1, if x is rational, 0, if x is irrational. 

Then, by Example 5.1.5,f is discontinuous at every xR.

Example 5.4.2

Define f:RR by

f(x)={x, if x is rational, 0, if x is irrational. 

Then, by Example 5.1 .6 and Exercise 5.1.10,f is continuous at 0, but discontinuous at every x0.

If DR,αR,f:DR, and g:DR, then we define αf:DR by

(αf)(x)=αf(x),

f+g:DRby

(f+g)(x)=f(x)+g(x),

and fg:DR by

(fg)(x)=f(x)g(x).

Moreover, if g(x)0 for all xD, we define fg:DR by

(fg)(x)=f(x)g(x).

Proposition 5.4.1

Suppose DR,αR,f:DR, and g:DR. If f and g are continuous at a, then αf,f+g, and fg are all continuous at a. Moreover, if g(x)0 for all xD, then fg is continuous at a.

Exercise 5.4.1

Prove the previous proposition.

Proposition 5.4.2

Suppose DR,f:DR,f(x)0 for all xD, and f is continuous at aD. If g:DR is defined by g(x)=f(x), then g is continuous at a.

Exercise 5.4.2

Prove the previous proposition.

Proposition 5.4.3

Suppose DR,f:DR, and aD. Then f is continuous at a if and only if for every ϵ>0 there exists δ>0 such that

|f(x)f(a)|<ϵ whenever x(aδ,a+δ)D.

Proof

Suppose f is continuous at a. If a is an isolated point of D, then there exists a δ>0 such that

(aδ,a+δ)D={a}.

Then for any ϵ>0, if x(aδ,a+δ)D, then x=a, and so

|f(x)f(a)|=|f(a)f(a)|=0<ϵ.

If a is a limit point of D, then limxaf(x)=f(a) implies that for any ϵ>0 there exists δ>0 such that

|f(x)f(a)|<ϵ whenever x(aδ,a+δ)D.

Now suppose that for every ϵ>0 there exists δ>0 such that

|f(x)f(a)|<ϵ whenever x(aδ,a+δ)D.

If a is an isolated point, then f is continuous at a. If a is a limit point, then this condition implies limxaf(x)=f(a), and so f is continuous at a. Q.E.D.

From the preceding, it should be clear that a function f:DR is continuous at a point a of D if and only if for every sequence {xn}nI with xnD for every nI and limnxn=a,limnf(xn)=f(a).

Exercise 5.4.1

Show that if f:DR is continuous at aD and f(a)>0, then there exists an open interval I such that aI and f(x)>0 for every xID.

Proposition 5.4.4

Suppose DR,ER,g:DR,f:ER,g(D)E and aD. If g is continuous at a and f is continuous at g(a), then fg is continuous at a.

Proof

Let {xn}nI be a sequence with xnD for every nI and limnxn=a. Then, since g is continuous at a,{g(xn)}nI is a sequence with g(xn)E for every nI and limng(xn)=g(a). Hence, since f is continuous at g(a), limnf(g(xn))=f(g(a)). That is,

limn(fg)(xn)=(fg)(a).

Hence fg is continuous at a.

Definition

Let DR,f:DR, and aD. If f is not continuous at a but both f(a) and f(a+) exist, then we say f has a simple discontinuity at a.

Proposition 5.4.5

Suppose f is monotonic on the interval (a,b). Then every discontinuity of f in (a,b) is a simple discontinuity. Moreover, if E is the set of points in (a,b) at which f is discontinuous, then either E=,E is finite, or E is countable.

Proof

The first statement follows immediately from Proposition 5.2.1. For the second statement, suppose f is nondecreasing and suppose E is nonempty. From Exercise 2.1 .26 and the the proof of Proposition 5.2.1, it follows that for every x(a,b),

f(x)f(x)f(x+).

Hence xE if and only if f(x)<f(x+). Hence for every xE, we may choose a rational number rx such that f(x)<rx<f(x+). Now if x,yE with x<y, then, by Proposition 5.2.2,

rx<f(x+)f(y)<ry,

so rxry. Thus we have a one-to-one correspondence between E and a subset of Q, and so E is either finite or countable. A similar argument holds if f is nonincreasing. Q.E.D.

Exercise 5.4.4

Define f:RR by

f(x)={1q, if x is rational and x=pq,0, if x is irrational. 

where p and q are taken to be relatively prime integers with q>0, and we take q=1 when x=0. Show that f is continuous at every irrational number and has a simple discontinuity at every rational number.

5.4.2 Continuity on a Set

Definition

Suppose DR and f:DR. We say f is continuous on D if f is continuous at every point aD.

Proposition 5.4.6

If f is a polynomial, then f is continuous on R.

Proposition 5.4.7

If DR and f:DR is a rational function, then f is continuous on D.

Exercise 5.4.5

Explain why the function f(x)=1x2 is continuous on [1,1].

Exercise 5.4.6

Discuss the continuity of the function

f(x)={x+1, if x<0,4, if x=0,x2, if x>0.

If DR,f:DR, and ER, we let

f1(E)={x:f(x)E}.

Proposition 5.4.8

Suppose DR and f:DR. Then f is continuous on D if and only if for every open set VR,f1(V)=UD for some open set UR.

Proof

Suppose f is continuous on D and VR is an open set. If Vf(D)=, then f1(V)=, which is open. So suppose Vf(D) and let af1(V). Since V is open and f(a)V, there exists ϵa>0 such that

(f(a)ϵa,f(a)+ϵa)V.

Since f is continuous, there exists δa>0 such that

f((aδa,a+δa)D)(f(a)ϵa,f(a)+ϵa)V.

That is, (aδa,a+δa)Df1(V). Let

U=af1(V)(aδa,a+δa).

Then U is open and f1(V)=UD.

Now suppose that for every open set VR,f1(V)=UD for some open set UR. Let aD and let ϵ>0 be given. Since (f(a)ϵ,f(a)+ϵ) is open, there exists an open set U such that

UD=f1((f(a)ϵ,f(a)+ϵ)).

Since U is open and aU, there exists δ>0 such that (aδ,a+δ)U. But then

f((aδ,a+δ)D)(f(a)ϵ,f(a)+ϵ).

That is, if x(aδ,a+δ)D, then |f(x)f(a)|<ϵ. Hence f is continuous at a. Q.E.D.

Exercise 5.4.7

Let DR and f:DR. For any ER, show that f1(RE)=(Rf1(E))D.

Exercise 5.4.8

Let A be a set and, for each αA, let UαR. Given DR and a function f:DR, show that

αAf1(Uα)=f1(αAUα)

and

αAf1(Uα)=f1(αAUα).

Exercise 5.4.9

Suppose DR and f:DR. Show that f is continuous on D if and only if for every closed set CR,f1(C)=FD for some closed set FR.

Exercise 5.4.10

Let DR. We say a function f:DR is Lipschitz if there exists αR,α>0, such that |f(x)f(y)|α|xy| for all x,yD. Show that if f is Lipschitz, then f is continuous.

5.4.3 Intermediate Value Theorem

Theorem 5.4.9

(Intermediate Value Theorem).

Suppose a,bR,a<b, and f:[a,b]R. If f is continuous and sR is such that either f(a)sf(b) or f(b)sf(a), then there exists c[a,b] such that f(c)=s.

Proof

Suppose f(a)<f(b) and f(a)<s<f(b). Let

c=sup{x:x[a,b],f(x)s}.

Suppose f(c)<s. Then c<b and, since f is continuous at c, there exists a δ>0 such that f(x)<s for all x(c,c+δ). But then f(c+δ2)<s, contradicting the definition of c. Similarly, if f(c)>s, then c>a and there exists δ>0 such that f(x)>s for all x(cδ,c), again contradicting the definition of c. Hence we must have f(c)=s. Q.E.D.

Example 5.4.3

Suppose aR,a>0, and consider f(x)=xna where nZ,n>1. Then f(0)=a<0 and

f(1+a)=(1+a)na=1+na+ni=2(ni)aia=1+(n1)a+ni=2(ni)ai>0,

where (ni) is the binomial coefficient

(ni)=n!i!(ni)!.

Hence, by the Intermediate Value Theorem, there exists a real number γ>0 such that γn=a. Moreover, there is only one such γ since f is increasing on (0,+).

We call γ the n th root of a, and write

γ=na

or

γ=a1n.

Moreover, if aR,a<0,nZ+ is odd, and γ is the nth root of a, then

(γ)n=(1)n(γ)n=(1)(a)=a.

That is, γ is the n th root of a.

Definition

If n=pqQ with qZ+, then we define

xn=(qx)p

for all real x0.

Exercise 5.4.11

Explain why the equation x5+4x216=0 has a solution in the interval (0,2).

Exercise 5.4.12

Give an example of a closed interval [a,b]R and a function f:[a,b]R which do not satisfy the conclusion of the Intermediate Value Theorem.

Exercise 5.4.13

Show that if IR is an interval and f:IR is continuous, then f(I) is an interval.

Exercise 5.4.14

Suppose f:(a,b)R is continuous and strictly monotonic. Let (c,d)=f((a,b)). Show that f1:(c,d)(a,b) is strictly monotonic and continuous.

Exercise 5.4.15

Let nZ+. Show that the function f(x)=nx is continuous on (0,+).

Exercise 5.4.16

Use the method of bisection to give another proof of the Intermediate Value Theorem.

5.4.4 Extreme Value Theorem
Theorem 5.4.10

Suppose DR is compact and f:DR is continuous. Then f(D) is compact.

Proof

Given a sequence {yn}nI in f(D), choose a sequence {xn}nI such that f(xn)=yn. Since D is compact, {xn}nI has a convergent subsequence {xnk}k=1 with

limkxnk=xD.

Let y=f(x). Then yf(D) and, since f is continuous,

y=\lim _{k \rightarrow \infty} f\left(x_{n_{k}}\right)=\lim _{k \rightarrow \infty} y_{n_{k}}.

Hence f(D) is compact.

Exercise \PageIndex{17}

Prove the previous theorem using the open cover definition of a compact set.

Theorem \PageIndex{11}

(Extreme Value Theorem).

Suppose D \subset \mathbb{R} is compact and f: D \rightarrow \mathbb{R} is continuous. Then there exists a \in D such that f(a) \geq f(x) for all x \in D and there exists b \in D such that f(b) \leq f(x) for all x \in D . \quad Q.E.D.

As a consequence of the Extreme Value Theorem, a continuous function on a closed bounded interval attains both a maximum and a minimum value.

Exercise \PageIndex{18}

Find an example of a closed bounded interval [a, b] and a function f:[a, b] \rightarrow \mathbb{R} such that f attains neither a maximum nor a minimum value on [a, b] .

Exercise \PageIndex{19}

Find an example of a bounded interval I and a function f: I \rightarrow \mathbb{R} which is continuous on I such that f attains neither a maximum nor a minimum value on I .

Exercise \PageIndex{20}

Suppose K \subset \mathbb{R} is compact and a \notin K . Show that there exists b \in K such that |b-a| \leq|x-a| for all x \in K.

Proposition \PageIndex{12}

Suppose D \subset \mathbb{R} is compact, f: D \rightarrow \mathbb{R} is continuous and one-to-one, and E=f(D) . Then f^{-1}: E \rightarrow D is continuous.

Proof

Let V \subset \mathbb{R} be an open set. We need to show that f(V \cap D)=U \cap E for some open set U \subset \mathbb{R}. Let C=D \cap(\mathbb{R} \backslash V) . Then C is a closed subset of D, and so is compact. Hence f(C) is a compact subset of E . Thus f(C) is closed, and so U=\mathbb{R} \backslash f(C) is open. Moreover, U \cap E=E \backslash f(C)=f(V \cap D) . Thus f^{-1} is continuous.

Exercise \PageIndex{21}

Suppose f:[0,1] \cup(2,3] \rightarrow[0,2] by

f(x)=\left\{\begin{array}{ll}{x,} & {\text { if } 0 \leq x \leq 1,} \\ {x-1,} & {\text { if } 2<x \leq 3.}\end{array}\right.

Show that f is continuous, one-to-one, and onto, but that f^{-1} is not continuous.

5.4.5 Uniform Continuity
Definition

Suppose D \subset \mathbb{R} and f: D \rightarrow \mathbb{R} . We say f is uniformly continuous on D if for every \epsilon>0 there exists \delta>0 such that for any x, y \in D,

|f(x)-f(y)|<\epsilon \text { whenever }|x-y|<\delta .

Exercise \PageIndex{22}

Suppose D \subset \mathbb{R} and f: D \rightarrow \mathbb{R} is Lipschitz (see Exercise 5.4 .10) . Show that f is uniformly continuous on D .

Clearly, if f is uniformly continuous on D then f is continuous on D . However, a continuous function need not be uniformly continuous.

Example \PageIndex{4}

Define f:(0,+\infty) by f(x)=\frac{1}{x}, Given any \delta>0, choose n \in \mathbb{Z}^{+} such that \frac{1}{n(n+1)}<\delta . Let x=\frac{1}{n} and y=\frac{1}{n+1} . Then

|x-y|=\frac{1}{n}-\frac{1}{n+1}=\frac{1}{n(n+1)}<\delta .

However,

|f(x)-f(y)|=|n-(n+1)|=1.

Hence, for example, there does not exist a \delta>0 such that

|f(x)-f(y)|<\frac{1}{2}

whenever |x-y|<\delta . Thus f is not uniformly continuous on (0,+\infty), although f is continuous on (0,+\infty).

Example \PageIndex{5}

Define f: \mathbb{R} \rightarrow \mathbb{R} by f(x)=2 x . Let \epsilon>0 be given. If \delta=\frac{\varepsilon}{2}, then

|f(x)-f(y)|=2|x-y|<\epsilon

whenever |x-y|<\delta . Hence f is uniformly continuous on \mathbb{R}.

Exercise \PageIndex{23}

Let f(x)=x^{2} . Show that f is not uniformly continuous on (-\infty,+\infty).

Proposition \PageIndex{13}

Suppose D \subset \mathbb{R} is compact and f: D \rightarrow \mathbb{R} is continuous. Then f is uniformly continuous on D .

Proof

Let \epsilon>0 be given. For every x \in D, choose \delta_{x} such that

|f(x)-f(y)|<\frac{\epsilon}{2}

whenever y \in D and |x-y|<\delta_{x} . Let

J_{x}=\left(x-\frac{\delta_{x}}{2}, x+\frac{\delta_{x}}{2}\right).

Then \left\{J_{x}: x \in D\right\} is an open cover of D. Since D is compact, there must exist x_{1}, x_{2}, \ldots, x_{n}, n \in Z^{+}, such that J_{x_{1}}, J_{x_{2}}, \ldots, J_{x_{n}} is an open cover of D . Let \delta be the smallest of

\frac{\delta_{x_{1}}}{2}, \frac{\delta_{x_{2}}}{2}, \ldots, \frac{\delta_{x_{n}}}{2}.

Now let x, y \in D with |x-y|<\delta . Then for some integer k, 1 \leq k \leq n, x \in J_{x_{k}}, that is,

\left|x-x_{k}\right|<\frac{\delta_{x_{k}}}{2}.

Moreover,

\left|y-x_{k}\right| \leq|y-x|+\left|x-x_{k}\right|<\delta+\frac{\delta_{x_{k}}}{2} \leq \delta_{x_{k}}.

Hence

|f(x)-f(y)| \leq\left|f(x)-f\left(x_{k}\right)\right|+\left|f\left(x_{k}\right)-f(y)\right|<\frac{\epsilon}{2}+\frac{\epsilon}{2}=\epsilon .

Q.E.D.

Exercise \PageIndex{24}

Suppose D \subset \mathbb{R} and f: D \rightarrow \mathbb{R} is uniformly continuous. Show that if \left\{x_{n}\right\}_{n \in I} is a Cauchy sequence in D, then \left\{f\left(x_{n}\right)\right\}_{n \in I} is a Cauchy sequence in f(D) .

Exercise \PageIndex{25}

Suppose f:(0,1) \rightarrow \mathbb{R} is uniformly continuous. Show that f(0+) exists.

Exercise \PageIndex{26}

Suppose f: \mathbb{R} \rightarrow \mathbb{R} is continuous and \lim _{x \rightarrow-\infty} f(x)=0 and \lim _{x \rightarrow+\infty} f(x)=0 . Show that f is uniformly continuous.


This page titled 5.4: Continuous Functions is shared under a CC BY-NC-SA 1.0 license and was authored, remixed, and/or curated by Dan Sloughter via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?