Processing math: 80%
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

3.4: Continuity

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

Intuitively, a curve y=f(x) is continuous if it forms an unbroken line, that is, whenever x1 is close to x2, f(x1) is close to f(x2). To make this intuitive idea into a mathematical definition, we substitute “infinitely close” for “close”.

Definition:

f is said to be continuous at a point c if:

(i) f is defined at c;(ii)whenever x is infinitely close to c,f(x) is infinitely close to f(c).

If f is not continuous at c it is said to be discontinuous at c.

When f is continuous at c, the entire part of the curve where xc will be visible in an infinitesimal microscope aimed at the point (c,f(c)), as shown in Figure 3.4.1(a). But if f is discontinuous at c, some values of f(x) where xc will either be undefined or outside the range of vision of the microscope, as in Figure 3.4.1(b).

Continuity, like the derivative, can be expressed in terms of limits. Again the proof is immediate from the definitions.

Graph (a) shows a function that is continuous at x = c. Graph (b) shows a function that is visibly discontinuous at x = c.
Figure 3.4.1: Continuous and discontinuous functions.
Theorem 3.4.1

f is continuous at c if and only if limxcf(x)=f(c).

As an application, we have a set of rules for combining continuous functions. They can be proved either by the corresponding rules for limits (Table 3.4.1 in Section 3.3) or by computing standard parts.

Theorem 3.4.2

Suppose f and g are continuous at c.

(i) For any constant k, the function kf(x) is continuous at c.(ii) f(x)+g(x) is continuous at c.(iii) f(x)g(x) is continuous at c.(iv) If g(c)0,then f(x)/g(x) is continuous at c.(v) If f(c) is positive and nis an integer, then nf(x) is continuous at c.

By repeated use of Theorem 3.4.2, we see that all of the following functions are continuous at c.

  • Every polynomial function.
  • Every rational function f(x)/g(x), where f(x) and g(x) are polynomials and g(c)0.
  • The functions f(x)=xr, where r is rational and x is positive.

Sometimes a function f(x) will be undefined at a point x=c while the limit L=limxcf(x).exists. When this happens, we can make the function continuous at c by defining f(c)=L.

Example 3.4.1

Let f(x)=x2+x2x1.

At any point c1 f is continuous. But f(1) is undefined so f is discontinuous at 1. However, limx1x2+x2x1=limx1(x1)(x+2)x1=3.

We can make f continuous at 1 by defining f(x)={x2+x2x1if x1,3if x=1.

(See Figure 3.4.2.)

Graph of the originally given function f(x), with f(1) undefined. Another graph of the piecewise function defined above, with f(1) defined as 3 to create a continuous graph.
Figure 3.4.2: Defining a piecewise function that avoids discontinuity. 

In terms of a dependent variable y=f(x), the definition of continuity takes the following form, where Δy=f(c+Δx)f(c).

Definition:

y is continuous at x=c if: 

(i) y is defined at c.(ii) Whenever Δx is infinitesimal, Δy is infinitesimal.

To summarize, given a function y=f(x) defined at x=c, all the statements below are equivalent.

  1. f is continuous at c.
  2. Whenever xc, f(x)f(c).
  3. Whenever st(x)=c, st(f(x))=f(c).
  4. limxcf(x)=f(c).
  5. y is continuous at x=c.
  6. Whenever Δx is infinitesimal, Δy is infinitesimal.

Our next theorem is that differentiability implies continuity. That is, the set of differentiable functions at c is a subset of the set of continuous functions at c. (See Figure 3.4.3.)

A Venn diagram showing functions continuous at c as a subset of real functions, and functions differentiable at c as a subset of functions continuous at c.
Figure 3.4.3.
Theorem 3.4.3

If f is differentiable at c then f is continuous at c.

Proof

Let y=f(x), and let Δx be a nonzero infinitesimal. Then Δy/Δx is infinitely close to f(c) and is therefore finite. Thus Δy=Δx(Δy/Δx) is the product of an infinitesimal and a finite number, so Δy is infinitesimal.

For example, the transcendental functions sinx, cosx, ex are continuous for all x, and lnx is continuous for x>0. Theorem 3.4.3 can be used to show that combinations of these functions are continuous.

Example 3.4.2

Find as large a set as you can on which the function f(x)=sinxln(x+1)x24is continuous.

Solution

sinx is continuous for all x. ln(x+1) is continuous whenever x+1>0, that is, x>1. The numerator sinxln(x+1) is thus continuous whenever x>1. The denominator x24 is continuous for all x but is zero when x=±2. Therefore f(x) is continuous whenever x>1 and x2.

The next two examples give functions which are continuous but not differentiable at a point c.

Example 3.4.3

The function y=x1/3 is continuous but not differentiable at x=0. (See Figure \(\PageIndex{4 \text{(a)}\).) We have seen before that it is not differentiable at x=0. It is continuous because if Δx is infinitesimal then so is Δy=(0+Δx)1/301/3=(Δx)1/3.

Example 3.4.4

The absolute value function y=|x| is continuous but not differentiable at the point x=0. (See Figure \(\PageIndex{4 \text{(b)}\).) 

We have already shown that the derivative does not exist at x=0. To see that the function is continuous, we note that for any infinitesimal Δx, Δy=|0+Δx||0|=Δx.and thus Δy is infinitesimal.

Graph (a) shows the graph of the cube root function. Graph (b) shows the graph of the absolute value function.
Figure 3.4.4: Graphs of (a) y=x1/3 and (b) y=|x|.

The path of a bouncing ball is a series of parabolas shown in Figure 3.4.5. The curve is continuous everywhere. At the points a1,a2,a3, where the ball bounces, the curve is continuous but not differentiable. At other points, the curve is both continuous and differentiable.

Graph showing the path of a bouncing ball, dropped from a height along the y-axis. Ball bounces to the right, reaching the ground for the first time at point x = a1, for the second time at point x = a2, and so on.
Figure 3.4.5: Path of bouncing ball.

In the classical kinetic theory of gases, a gas molecule is assumed to be moving at a constant velocity in a straight line except at the instant of time when it collides with another molecule or the wall of the container. Its path is then a broken line in space, as in Figure 3.4.6.

A group of gas molecules, with the path of one molecule through this space shown as a series of straight lines interrupted by turns where it impacts another molecule.
Figure 3.4.6: Path of an ideal gas molecule.

The position in three dimensional space at time t can be represented by three functions x=f(t),y=g(t),z=h(t).

All three functions, fg, and h are continuous for all values of t. At the time t of a collision, at least one and usually all three derivatives dx/dt, dy/dt,(dz/dt\) will be undefined because the speed or direction of the molecule changes abruptly. At any other time t, when no collision is taking place, all three derivatives dx/dt, dy/dt, dz/dt will exist.

The functions we shall ordinarily encounter in this book will be defined and have a derivative at all but perhaps a finite number of points of an interval. The graph of such a function will be a smooth curve where the derivative exists. At points where the curve has a sharp corner (like 0 in |x|) or a vertical tangent line (like 0 in x1/3), the function is continuous but not differentiable (see Figure 3.4.7). At points where the function is undefined or there is a jump, or the value approaches infinity or oscillates wildly, the function is discontinuous (see Figure 3.4.8).

A function consisting of many smooth sections joined together with sharp corners. The x-values for these corner points are indicated.
Figure 3.4.7: Points where f is continuous but nondifferentiable.
A function consisting of many smooth sections with visible discontinuities between them. The x-values for these discontinuities are indicated.
Figure 3.4.8: Points where f is discontinuous.

The next theorem is similar to the Chain Rule for derivatives.

Theorem 3.4.4

If f is continuous at c and G is continuous at f(c), then the function g(x)=G(j(x))is also continuous at c. That is, a continuous function of a continuous function is continuous.

Proof

Let x be infinitely close to but not equal to c. Then st(g(x))=st(G(j(x)))=G(st(f(x)))=G(j(c))=g(c).For example, the following functions are continuous: f(x)=x2+1all xg(x)=|x3x|all xh(x)=(1+x)1/3x>0j(x)=esinxall xk(x)=ln|x|all x0

Here are two examples illustrating two types of discontinuities.

Example 3.4.5

The function g(x)=x23x+44(x1)(x2) is continuous at every real point except x=1 and x=2. At these two points
g(x) is undefined (Figure 3.4.9).

Graph of the function given in Example 3.4.5.
Figure 3.4.9: Graph of y=x23x+44(x1)(x2).
Example 3.4.6

The greatest integer function [x], shown in Figure 3.4.10, is defined by [x]=the greatest integer n such that nx.Thus [x]=0 if 0x<1, [x]=1 if 1x<2, [x]=2 if 2x<3, and so on. For negative x, we have [x]=1 if 1x<0, [x]=2 if 2x<1, and so on. For example, if 2x<1, and so on. For example, [7.362]=7,[π]=3,[2.43]=3.

For each integer n, [n] is equal to n. The function [x] is continuous when x is not an integer but is discontinuous when x is an integer n. At an integer n, both one-sided limits exist but are different, limxnf(x)=n1,limxn+f(x)=n.

The graph of [x] looks like a staircase. It has a step, or jump discontinuity, at each integer n. The function [x] will be useful in the last section of this chapter. Some hand calculators have a key for either the greatest integer function or for the similar function that gives [x] for positive x and [x]+1 for negative x.

Graph of the greatest integer function.
Figure 3.4.10: Graph of the greatest integer function, y=[x].

Functions which are "continuous on an interval" will play an important role in this chapter. Intervals were discussed in Section 1.1. Recall that closed intervals have the form
[a,b],

open intervals have one of the forms (a,b),(a,),(,b),(,),and half-open intervals have one of the forms [a,b),(a,b],[a,),(,b].In these intervals, a is called the lower endpoint and b, the upper endpoint. The symbol  indicates that there is no lower endpoint, while  indicates that there is no upper endpoint.

Definition:

We say that f is continuous on an open interval I if f is continuous at every point c in I. If in addition f has a derivative at every point of I, we say that f is differentiable on I.

To define what is meant by a function continuous on a closed interval, we introduce the notions of continuous from the right and continuous from the left, using one-sided limits.

Definition:

f is continuous from the right at c if limxc+f(x)=f(c).

f is continuous from the left at c if limxcf(x)=f(c).

Example 3.4.6 (continued)

The greatest integer function f(x)=[x] is continuous from the right but not from the left at each integer n because [n] = n, \quad \lim_{x \rightarrow n^{+}} [x] = n, \quad \lim_{x \rightarrow n^{-}} [x] = n - 1. \nonumber

It is easy to check that f is continuous at c if and only if f is continuous from both the right and left at c.

Definition:

f is said to be continuous on the closed interval [a, b] if f is continuous at each point c where a < c < b, continuous from the right at a, and continuous from the left at b.

Figure \PageIndex{11} shows a function f continuous on [a, b].

A function continuous on the closed interval of x-values between a and b.
Figure \PageIndex{11}: f is continuous on the interval [a, b].
Example \PageIndex{7}

The semicircle y = \sqrt{1 - x^{2}} \nonumbershown in Figure \PageIndex{12} is continuous on the closed interval [-1, 1]. It is differentiable on the open interval (-1, 1). To see that it is continuous from the right at x = -1, let \Delta x be positive infinitesimal. Then \begin{align*} y &= \sqrt{1 - (-1)^{2}} = 0 \\ y + \Delta y &= \sqrt{1 - (-1 + \Delta x)^{2}} = \sqrt{1 - (1 - 2\Delta x + (\Delta x)^{2})} \\ &= \sqrt{2 \Delta x - (\Delta x)^{2}} = \sqrt{(2 - \Delta x)\Delta x}. \end{align*}

Thus y = \sqrt{(2 - \Delta x) \Delta x}. \nonumberThe number inside the radical is positive infinitesimal, so \Delta y is infinitesimal. This shows that the function is continuous from the right at x = - 1. Similar reasoning shows it is continuous from the left at x = 1.

Semicircle of radius 1 centered on the origin, extending on and above the x-axis.
Figure \PageIndex{12}: Graph of y = \sqrt{1 - x^{2}}.

Problems for Section 3.4

In Problems 1-17, find the set of all points at which the function is continuous.

1. f(x) = 3x^{2} + 5x + 4 2. f(x) = \dfrac{5x + 2}{x^{2} + 1}
3. f(x) = \sqrt{x + 2} 4. f(x) = \dfrac{x}{x + 2}
5. f(x) = \sqrt{|x - 2| + 1} 6. f(x) = \dfrac{x + 3}{|x + 3|}
7. f(x) = \dfrac{x}{x^{2} + x} 8. f(x) = \dfrac{x + 2}{(x - 1)(x - 3)^{1/3}}
9. f(x) = \sqrt{4 - x^{2}} 10. f(x) = \sqrt{x^{2} - 4}
11. f(x) = \dfrac{1}{x - (1/(x + 1))} 12. g(x) = \dfrac{1}{x} + \dfrac{1}{x - 1}
13. g(x) = \dfrac{x - 2}{x - 3} + \dfrac{x - 3}{x - 2} 14. g(x) = \sqrt{x^{3} - x}
15. g(x) = \sqrt[4]{x^{2} - x^{3}} 16. f(t) = \sqrt{t^{-2} - 1} 
17. f(x) = \sqrt{t^{-1} - 1}    
18. Show that f(x) = \sqrt{x} is continuous from the right at x = 0.
19. Show that f(x) = \sqrt{1 - x} is continuous from the left at x = 1.
20. Show that f(x) = \sqrt{1 - |x|} is continuous on the closed interval [- 1, 1].
21. Show that f(x) = \sqrt{x} + \sqrt{2 - x} is continuous on the closed interval [0, 2].
22. Show that f(x) = \sqrt{9 - x^{2}} is continuous on the closed interval [-3, 3].
23. Show that f(x) = \sqrt{x^{2} - 9} is continuous on the half-open intervals (-\infty, - 3] and [3, \infty)).
\square 24. Suppose the function f(x) is continuous on the closed interval [a, b]. Show that there is a function g(x) which is continuous on the whole real line and has the value g(x) = f(x) for x in [a, b].
\square 25. Suppose \displaystyle \lim_{x \rightarrow c} f(x) = L. Prove that the function g(x), defined by g(x) = f(x) for x \neq c and g(x) = L for x = c, is continuous at c.
26. In the curve y = f(x) illustrated below, identify the points x = c where each of the following happens:
(a) f is discontinuous at x = c
(b) f is continuous but not differentiable at x = c.
A piecewise function with a number of points, including points of discontinuity and inflection, identified on it.

This page titled 3.4: Continuity is shared under a CC BY-NC-SA 3.0 license and was authored, remixed, and/or curated by H. Jerome Keisler.

  • Was this article helpful?

Support Center

How can we help?