## 2.4Limits and Continuity

In everyday speech, the word “continuous” means having no breaks or interruptions. In calculus, continuity is used to describe functions whose graphs have no breaks. If we imagine the graph of a function f as a wavy metal wire, then f is continuous if its graph consists of a single piece of wire as in Figure 1. A break in the wire as in Figure 2 is called a discontinuity.

Now observe in Figure 2 that the break in the graph occurs because the left- and right-hand limits as x approaches c are not equal and thus does not exist. By contrast, in Figure 1, exists and is equal to the function value f(c). This suggests the following definition of continuity in terms of limits. Figure 2.19: f(x) is continuous at x = c.

### DEFINITION Continuity at a Point

Assume that f(x) is defined on an open interval containing x = c. Then f is continuous at x = c if If the limit does not exist, or if it exists but is not equal to f(c), we say that f has a discontinuity (or is discontinuous)at x = c. Figure 2.20: Discontinuity at x = c: The left-and right-hand limits as xc are not equal.

A function f(x) may be continuous at some points and discontinuous at others. If f(x) is continuous at all points in an interval I, then f(x) is said to be continuous on I. If I is an interval [a, b] or [a, b) that includes a as a left endpoint, we require that . Similarly, we require that if I includes b as a right endpoint. If f(x) is continuous at all points in its domain, then f(x) is simply called continuous.

Show that the following functions are continuous:

• (a)f(x) = k (k any constant)
• (b)g(x) = xn (n a whole number) Figure 2.21: The function f(x) = k is continuous. Figure 2.22: The function g(x) = x is continuous.

Solution

• (a) We have and f(c) = k. The limit exists and is equal to the function value for all c, so f(x) is continuous (Figure 3).
• (b) By Eq. (1) in Section 2.2, for all c. Also g(c) = cn, so again, the limit exists and is equal to the function value. Therefore, g(x) is continuous. (Figure 4 illustrates the case n = 1).

## 2.4.1Examples of Discontinuities

To understand continuity better, let’s consider some ways in which a function can fail to be continuous. Keep in mind that continuity at a point x = c requires more than just the existence of a limit. Three conditions must hold:

• 1.f(c) is defined.
• 2. exists.
• 3. They are equal.

63

If exists but is not equal to f(c), we say that f has a removable discontinuity at x = c. The function in Figure 5(A) has a removable discontinuity at c = 2 because Removable discontinuities are “mild” in the following sense: We can make f continuous at x = c by redefining f(c). In Figure 5(B), f(2) has been redefined as f(2) = 5, and this makes f continuous at x = 2. Figure 2.23: Removable discontinuity: The discontinuity can be removed by redefining f(2).

A “worse” type of discontinuity is a jump discontinuity, which occurs if the one-sided limits and exist but are not equal. Figure 6 shows two functions with jump discontinuities at c = 2. Unlike the removable case, we cannot make f(x) continuous by redefining f(c). Figure 2.24: Jump discontinuities.

In connection with jump discontinuities, it is convenient to define one-sided continuity.

### DEFINITION One-Sided Continuity

A function f(x) is called:

• Left-continuous at x = c if • Right-continuous at x = c if In Figure 6 above, the function in (A) is left-continuous but the function in (B) is neither left- nor right-continuous. The next example explores one-sided continuity using a piecewise-defined function—that is, a function defined by different formulas on different intervals.

### Piecewise-Defined Function

Discuss the continuity of 64

Solution The functions f(x) = x and g(x) = 3 are continuous, so F(x) is also continuous, except possibly at the transition points x = 1 and x = 3, where the formula for F(x) changes (Figure 7). Figure 2.25: Piecewise-defined function F(x) in Example 2.
• At x = 1, the one-sided limits exist but are not equal: Thus F(x) has a jump discontinuity at x = 1. However, the right-hand limit is equal to the function value F(1) = 3, so F(x) is right-continuous at x = 1.
• At x = 3, the left- and right-hand limits exist and both are equal to F(3), so F(x) is continuous at x = 3: We say that f(x) has an infinite discontinuity at x = c if one or both of the one-sided limits is infinite (even if f(x) itself is not defined at x = c). Figure 8 illustrates three types of infinite discontinuities occurring at x = 2. Notice that x = 2 does not belong to the domain of the function in cases (A) and (B). Figure 2.26: Functions with an infinite discontinuity at x = 2.

Finally, we note that some functions have more “severe” types of discontinuity than those discussed above. For example, oscillates infinitely often between +1 and −1 as x → 0 (Figure 9). Neither the left- nor the right-hand limit exists at x = 0, so this discontinuity is not a jump discontinuity. See Exercises 88 and 89 for even stranger examples. Although of interest from a theoretical point of view, these discontinuities rarely arise in practice.

## 2.4.2Building Continuous Functions

Having studied some examples of discontinuities, we focus again on continuous functions. How can we show that a function is continuous? One way is to use the Laws of Continuity, which state, roughly speaking, that a function is continuous if it is built out of functions that are known to be continuous.

### THEOREM 1 Basic Laws of Continuity

If f(x) and g(x) are continuous at x = c, then the following functions are also continuous at x = c:

• (i)f(x) + g(x) and f(x) − g(x)
• (ii)kf(x) for any constant k
• (iii)f(x) g(x)
• (iv)f(x)/g(x) if g(c) ≠ 0 Figure 2.27: Graph of . The discontinuity at x = 0 is not a jump, removable, or infinite discontinuity.

### Proof

These laws follow directly from the corresponding Basic Limit Laws (Theorem 1, Section 2.2). We illustrate by proving the first part of (i) in detail. The remaining laws are proved similarly. By definition, we must show that . Because f(x) and g(x) are both continuous at x = c, we have

65 The Sum Law for limits yields the desired result: In Section 2.2, we noted that the Basic Limit Laws for Sums and Products are valid for an arbitrary number of functions. The same is true for continuity; that is, if f1(x),…, fn(x) are continuous, then so are the functions The basic functions are continuous on their domains. Recall (Section 1.3) that the term basic function refers to polynomials, rational functions, nth-root and algebraic functions, trigonometric functions and their inverses, and exponential and logarithmic functions.

When a function f(x) is defined and continuous for all values of x, we say that f(x) is continuous on the real line.

### THEOREM 2 Continuity of Polynomial and Rational Functions

Let P(x) and Q(x) be polynomials. Then:

• P(x) is continuous on the real line.
• P(x)/Q(x) is continuous on its domain (at all values x = c such that Q(c) ≠ 0). REMINDER A rational function is a quotient of two polynomials P(x)/Q(x).

### Proof

The function xm is continuous for all whole numbers m by Example 1. By Continuity Law (ii), axm is continuous for every constant a. A polynomial is a sum of continuous functions, so it too is continuous. By Continuity Law (iv), a quotient P(x)/Q(x) is continuous at x = c, provided that Q(c) ≠ 0.

This result shows, for example, that f(x) = 3x4 − 2x3 + 8x is continuous for all x and that is continuous for x ≠ ±1. Note that if n is a positive integer, then f(x) = xn is continuous for x ≠ 0 because f(x) = xn = 1/xn is a rational function.

The continuity of the nth-root, trigonometric, and exponential functions should not be surprising because their graphs have no visible breaks (Figure 10). Similarly, logarithmic functions (introduced in Section 7.2) are continuous. However, complete proofs of continuity are somewhat technical and are omitted. REMINDER The domain of y = x1/nis the real line if n is odd and the half-line [0, ∞) if n is even.

### THEOREM 3 Continuity of Some Basic Functions

• y = x1/n is continuous on its domain for n a natural number.
• y = sin x and y = cos x are continuous on the real line.
• y = bx is continuous on the real line (for b > 0, b ≠ 1).
• y = logbx is continuous for x > 0 (for b > 0, b ≠ 1).

66 Figure 2.28: As the graphs suggest, these functions are continuous on their domains.

Because sin x and cos x are continuous, Continuity Law (iv) for Quotients implies that the other standard trigonometric functions are continuous on their domains, consisting of the values of x where their denominators are nonzero: They have infinite discontinuities at points where their denominators are zero. For example, tan x has infinite discontinuities at the points (Figure 11)  Figure 2.29: Graph of y = tan x.

Finally, it is important to know that a composition of continuous functions is again continuous. The following theorem is proved in Appendix D.

### THEOREM 4 Continuity of Composite Functions

If g is continuous at x = c, and f is continuous at x = g(c), then the composite function F(x) = f(g(x)) is continuous at x = c.

For example, F(x) = (x2 + 9)1/3 is continuous because it is the composite of the continuous functions f(x) = x1/3 and g(x) = x2 + 9. Similarly, F(x) = cos(x−1) is continuous for all x ≠ 0, and F(x) = 2sin x is continuous for all x.

More generally, an elementary function is a function that is constructed out of basic functions using the operations of addition, subtraction, multiplication, division, and composition. Since the basic functions are continuous (on their domains), an elementary function is also continuous on its domain by the laws of continuity. An example of an elementary function is This function is continuous on its domain {x : x ≠ 8}.

## 2.4.3Substitution: Evaluating Limits Using Continuity

It is easy to evaluate a limit when the function in question is known to be continuous. In this case, by definition, the limit is equal to the function value: We call this the Substitution Method because the limit is evaluated by “plugging in” x = c.

67

Evaluate (a) and (b) .

Solution

• (a) We can use substitution because f(y) = sin y is continuous. • (b) The function is continuous at x = −1 because the numerator and denominator are both continuous at x = −1 and the denominator is nonzero at x = −1. Therefore, we can use substitution: The greatest integer function [x] is the function defined by [x] = n, where n is the unique integer such that nx < n + 1 [Figure 12]. For example, [4.7] = 4. Figure 2.30: Graph of f(x) = [x].

### Assumptions Matter

Can we evaluate using substitution?

Solution Substitution cannot be applied because f(x) = [x] is not continuous at x = 2. Although f(2) = 2, does not exist because the one-sided limits are not equal: ### CONCEPTUAL INSIGHT Real-World Modeling by Continuous Functions

Continuous functions are used often to represent physical quantities such as velocity, temperature, and voltage. This reflects our everyday experience that change in the physical world tends to occur continuously rather than through abrupt transitions. However, mathematical models are at best approximations to reality, and it is important to be aware of their limitations.

In Figure 13, atmospheric temperature is represented as a continuous function of altitude. This is justified for large-scale objects such as the earth’s atmosphere because the reading on a thermometer appears to vary continuously as altitude changes. However, temperature is a measure of the average kinetic energy of molecules. At the microscopic level, it would not be meaningful to treat temperature as a quantity that varies continuously from point to point.

Similarly, the size P(t) of a population is usually treated as a continuous function of time t. Strictly speaking, P(t) is a whole number that changes by ±1 when an individual is born or dies, so it is not continuous, but if the population is large, the effect of an individual birth or death is small, and it is both reasonable and convenient to treat P(t) as a continuous function.

68 Figure 2.31: Atmospheric temperature and world population are represented by continuous graphs.

## 2.4.4Summary

• Definition: f(x) is continuous at x = c if .
• If does not exist, or if it exists but does not equal f(c), then f is discontinuous at x = c.
• If f(x) is continuous at all points in its domain, f is simply called continuous.
• Right-continuous at x = c: .
• Left-continuous at x = c: .
• Three common types of discontinuities: removable discontinuity [ does not equal f(c)], jump discontinuity (the one-sided limits both exist but are not equal), and infinite discontinuity (the limit is infinite as x approaches c from one or both sides).
• Laws of Continuity: Sums, products, multiples, inverses, and composites of continuous functions are again continuous. The same holds for a quotient f(x)/g(x) at points where g(x) ≠ 0.
• Basic functions: Polynomials, rational functions, nth-root and algebraic functions, trigonometric functions and their inverses, exponential and logarithmic functions. Basic functions are continuous on their domains.
• Substitution Method: If f(x) is known to be continuous at x = c, then the value of the limit is f(c).