# Continuity

### Learning Objectives

- Explain the three conditions for continuity at a point.
- Describe three kinds of discontinuities.
- Define continuity on an interval.
- State the theorem for limits of composite functions.
- Provide an example of the intermediate value theorem.

Many functions have the property that their graphs can be traced with a pencil without lifting the pencil from the page. Such functions are called *continuous*. Other functions have points at which a break in the graph occurs, but satisfy this property over intervals contained in their domains. They are continuous on these intervals and are said to have a *discontinuity at a point* where a break occurs.

We begin our investigation of continuity by exploring what it means for a function to have *continuity at a point*. Intuitively, a function is continuous at a particular point if there is no break in its graph at that point.

# Continuity at a Point

Before we look at a formal definition of what it means for a function to be continuous at a point, let’s consider various functions that fail to meet our intuitive notion of what it means to be continuous at a point. We then create a list of conditions that prevent such failures.

Our first function of interest is shown in [link]. We see that the graph of [latex]f\left(x\right)[/latex] has a hole at *a*. In fact, [latex]f\left(a\right)[/latex] is undefined. At the very least, for [latex]f\left(x\right)[/latex] to be continuous at *a*, we need the following condition:

However, as we see in [link], this condition alone is insufficient to guarantee continuity at the point *a*. Although [latex]f\left(a\right)[/latex] is defined, the function has a gap at *a*. In this example, the gap exists because [latex]\underset{x\to a}{\text{lim}}f\left(x\right)[/latex] does not exist. We must add another condition for continuity at *a*—namely,

However, as we see in [link], these two conditions by themselves do not guarantee continuity at a point. The function in this figure satisfies both of our first two conditions, but is still not continuous at *a*. We must add a third condition to our list:

Now we put our list of conditions together and form a definition of continuity at a point.

A function [latex]f\left(x\right)[/latex] is continuous at a point *a* if and only if the following three conditions are satisfied:

- [latex]f\left(a\right)[/latex] is defined
- [latex]\underset{x\to a}{\text{lim}}f\left(x\right)[/latex] exists
- [latex]\underset{x\to a}{\text{lim}}f\left(x\right)=f\left(a\right)[/latex]

A function is discontinuous at a point *a* if it fails to be continuous at *a*.

The following procedure can be used to analyze the continuity of a function at a point using this definition.

- Check to see if [latex]f\left(a\right)[/latex] is defined. If [latex]f\left(a\right)[/latex] is undefined, we need go no further. The function is not continuous at
*a*. If [latex]f\left(a\right)[/latex] is defined, continue to step 2. - Compute [latex]\underset{x\to a}{\text{lim}}f\left(x\right).[/latex] In some cases, we may need to do this by first computing [latex]\underset{x\to {a}^{-}}{\text{lim}}f\left(x\right)[/latex] and [latex]\underset{x\to {a}^{+}}{\text{lim}}f\left(x\right).[/latex] If [latex]\underset{x\to a}{\text{lim}}f\left(x\right)[/latex] does not exist (that is, it is not a real number), then the function is not continuous at
*a*and the problem is solved. If [latex]\underset{x\to a}{\text{lim}}f\left(x\right)[/latex] exists, then continue to step 3. - Compare [latex]f\left(a\right)[/latex] and [latex]\underset{x\to a}{\text{lim}}f\left(x\right).[/latex] If [latex]\underset{x\to a}{\text{lim}}f\left(x\right)\ne f\left(a\right),[/latex] then the function is not continuous at
*a*. If [latex]\underset{x\to a}{\text{lim}}f\left(x\right)=f\left(a\right),[/latex] then the function is continuous at*a*.

The next three examples demonstrate how to apply this definition to determine whether a function is continuous at a given point. These examples illustrate situations in which each of the conditions for continuity in the definition succeed or fail.

Using the definition, determine whether the function [latex]f\left(x\right)=\left({x}^{2}-4\right)\text{/}\left(x-2\right)[/latex] is continuous at [latex]x=2.[/latex] Justify the conclusion.

Let’s begin by trying to calculate [latex]f\left(2\right).[/latex] We can see that [latex]f\left(2\right)=0\text{/}0,[/latex] which is undefined. Therefore, [latex]f\left(x\right)=\frac{{x}^{2}-4}{x-2}[/latex] is discontinuous at 2 because [latex]f\left(2\right)[/latex] is undefined. The graph of [latex]f\left(x\right)[/latex] is shown in [link].

Using the definition, determine whether the function [latex]f\left(x\right)=\left\{\begin{array}{ll}-{x}^{2}+4& \text{if}\phantom{\rule{0.2em}{0ex}}x\le 3\hfill \\ 4x-8& \text{if}\phantom{\rule{0.2em}{0ex}}x>3\hfill \end{array}[/latex] is continuous at [latex]x=3.[/latex] Justify the conclusion.

Let’s begin by trying to calculate [latex]f\left(3\right).[/latex]

Thus, [latex]f\left(3\right)[/latex] is defined. Next, we calculate [latex]\underset{x\to 3}{\text{lim}}f\left(x\right).[/latex] To do this, we must compute [latex]\underset{x\to {3}^{-}}{\text{lim}}f\left(x\right)[/latex] and [latex]\underset{x\to {3}^{+}}{\text{lim}}f\left(x\right)\text{:}[/latex]

and

Therefore, [latex]\underset{x\to 3}{\text{lim}}f\left(x\right)[/latex] does not exist. Thus, [latex]f\left(x\right)[/latex] is not continuous at 3. The graph of [latex]f\left(x\right)[/latex] is shown in [link].

Using the definition, determine whether the function [latex]f\left(x\right)=\left\{\begin{array}{ll}\frac{\text{sin}\phantom{\rule{0.1em}{0ex}}x}{x}\hfill & \text{if}\phantom{\rule{0.2em}{0ex}}x\ne 0\hfill \\ \hfill 1& \text{if}\phantom{\rule{0.2em}{0ex}}x=0\hfill \end{array}[/latex] is continuous at [latex]x=0.[/latex]

First, observe that

Next,

Last, compare [latex]f\left(0\right)[/latex] and [latex]\underset{x\to 1}{\text{lim}}f\left(x\right).[/latex] We see that

Since all three of the conditions in the definition of continuity are satisfied, [latex]f\left(x\right)[/latex] is continuous at [latex]x=0.[/latex]

Using the definition, determine whether the function [latex]f\left(x\right)=\left\{\begin{array}{cc}2x+1\hfill & \text{if}\phantom{\rule{0.2em}{0ex}}x<1\hfill \\ \hfill 2& \text{if}\phantom{\rule{0.2em}{0ex}}x=1\hfill \\ -x+4\hfill & \text{if}\phantom{\rule{0.2em}{0ex}}x>1\hfill \end{array}[/latex] is continuous at [latex]x=1.[/latex] If the function is not continuous at 1, indicate the condition for continuity at a point that fails to hold.

*f* is not continuous at 1 because [latex]f\left(1\right)=2\ne 3=\underset{x\to 1}{\text{lim}}f\left(x\right).[/latex]

By applying the definition of continuity and previously established theorems concerning the evaluation of limits, we can state the following theorem.

Polynomials and rational functions are continuous at every point in their domains.

## Proof

Previously, we showed that if [latex]p\left(x\right)[/latex] and [latex]q\left(x\right)[/latex] are polynomials, [latex]\underset{x\to a}{\text{lim}}p\left(x\right)=p\left(a\right)[/latex] for every polynomial [latex]p\left(x\right)[/latex] and [latex]\underset{x\to a}{\text{lim}}\frac{p\left(x\right)}{q\left(x\right)}=\frac{p\left(a\right)}{q\left(a\right)}[/latex] as long as [latex]q\left(a\right)\ne 0.[/latex] Therefore, polynomials and rational functions are continuous on their domains.

□

We now apply [link] to determine the points at which a given rational function is continuous.

For what values of *x* is [latex]f\left(x\right)=\frac{x+1}{x-5}[/latex] continuous?

The rational function [latex]f\left(x\right)=\frac{x+1}{x-5}[/latex] is continuous for every value of *x* except [latex]x=5.[/latex]

For what values of *x* is [latex]f\left(x\right)=3{x}^{4}-4{x}^{2}[/latex] continuous?

[latex]f\left(x\right)[/latex] is continuous at every real number.

Use [link]

# Types of Discontinuities

As we have seen in [link] and [link], discontinuities take on several different appearances. We classify the types of discontinuities we have seen thus far as removable discontinuities, infinite discontinuities, or jump discontinuities. Intuitively, a removable discontinuity is a discontinuity for which there is a hole in the graph, a jump discontinuity is a noninfinite discontinuity for which the sections of the function do not meet up, and an infinite discontinuity is a discontinuity located at a vertical asymptote. [link] illustrates the differences in these types of discontinuities. Although these terms provide a handy way of describing three common types of discontinuities, keep in mind that not all discontinuities fit neatly into these categories.

These three discontinuities are formally defined as follows:

If [latex]f\left(x\right)[/latex] is discontinuous at *a*, then

- [latex]f[/latex] has a
**removable discontinuity**at*a*if [latex]\underset{x\to a}{\text{lim}}f\left(x\right)[/latex] exists. (Note: When we state that [latex]\underset{x\to a}{\text{lim}}f\left(x\right)[/latex] exists, we mean that [latex]\underset{x\to a}{\text{lim}}f\left(x\right)=L,[/latex] where*L*is a real number.) - [latex]f[/latex] has a
**jump discontinuity**at*a*if [latex]\underset{x\to {a}^{-}}{\text{lim}}f\left(x\right)[/latex] and [latex]\underset{x\to {a}^{+}}{\text{lim}}f\left(x\right)[/latex] both exist, but [latex]\underset{x\to {a}^{-}}{\text{lim}}f\left(x\right)\ne \underset{x\to {a}^{+}}{\text{lim}}f\left(x\right).[/latex] (Note: When we state that [latex]\underset{x\to {a}^{-}}{\text{lim}}f\left(x\right)[/latex] and [latex]\underset{x\to {a}^{+}}{\text{lim}}f\left(x\right)[/latex] both exist, we mean that both are real-valued and that neither take on the values ±∞.) - [latex]f[/latex] has an
**infinite discontinuity**at*a*if [latex]\underset{x\to {a}^{-}}{\text{lim}}f\left(x\right)=\text{±}\infty [/latex] or [latex]\underset{x\to {a}^{+}}{\text{lim}}f\left(x\right)=\text{±}\infty .[/latex]

In [link], we showed that [latex]f\left(x\right)=\frac{{x}^{2}-4}{x-2}[/latex] is discontinuous at [latex]x=2.[/latex] Classify this discontinuity as removable, jump, or infinite.

To classify the discontinuity at 2 we must evaluate [latex]\underset{x\to 2}{\text{lim}}f\left(x\right)\text{:}[/latex]

Since *f* is discontinuous at 2 and [latex]\underset{x\to 2}{\text{lim}}f\left(x\right)[/latex] exists, *f* has a removable discontinuity at [latex]x=2.[/latex]

In [link], we showed that [latex]f\left(x\right)=\left\{\begin{array}{cc}-{x}^{2}+4& \text{if}\phantom{\rule{0.2em}{0ex}}x\le 3\hfill \\ 4x-8& \text{if}\phantom{\rule{0.2em}{0ex}}x>3\hfill \end{array}[/latex] is discontinuous at [latex]x=3.[/latex] Classify this discontinuity as removable, jump, or infinite.

Earlier, we showed that *f* is discontinuous at 3 because [latex]\underset{x\to 3}{\text{lim}}f\left(x\right)[/latex] does not exist. However, since [latex]\underset{x\to {3}^{-}}{\text{lim}}f\left(x\right)=-5[/latex] and [latex]\underset{x\to {3}^{-}}{\text{lim}}f\left(x\right)=4[/latex] both exist, we conclude that the function has a jump discontinuity at 3.

Determine whether [latex]f\left(x\right)=\frac{x+2}{x+1}[/latex] is continuous at −1. If the function is discontinuous at −1, classify the discontinuity as removable, jump, or infinite.

The function value [latex]f\left(-1\right)[/latex] is undefined. Therefore, the function is not continuous at −1. To determine the type of discontinuity, we must determine the limit at −1. We see that [latex]\underset{x\to {-1}^{-}}{\text{lim}}\frac{x+2}{x+1}=\text{−}\infty [/latex] and [latex]\underset{x\to {-1}^{+}}{\text{lim}}\frac{x+2}{x+1}=\text{+}\infty .[/latex] Therefore, the function has an infinite discontinuity at −1.

For [latex]f\left(x\right)=\left\{\begin{array}{cc}{x}^{2}\hfill & \text{if}\phantom{\rule{0.2em}{0ex}}x\ne 1\hfill \\ \hfill 3& \text{if}\phantom{\rule{0.2em}{0ex}}x=1\hfill \end{array},[/latex] decide whether *f* is continuous at 1. If *f* is not continuous at 1, classify the discontinuity as removable, jump, or infinite.

Discontinuous at 1; removable

Follow the steps in [link]. If the function is discontinuous at 1, look at [latex]\underset{x\to 1}{\text{lim}}f\left(x\right)[/latex] and use the definition to determine the type of discontinuity.

# Continuity over an Interval

Now that we have explored the concept of continuity at a point, we extend that idea to continuity over an interval. As we develop this idea for different types of intervals, it may be useful to keep in mind the intuitive idea that a function is continuous over an interval if we can use a pencil to trace the function between any two points in the interval without lifting the pencil from the paper. In preparation for defining continuity on an interval, we begin by looking at the definition of what it means for a function to be continuous from the right at a point and continuous from the left at a point.

A function [latex]f\left(x\right)[/latex] is said to be continuous from the right at *a* if [latex]\underset{x\to {a}^{+}}{\text{lim}}f\left(x\right)=f\left(a\right).[/latex]

A function [latex]f\left(x\right)[/latex] is said to be continuous from the left at *a* if [latex]\underset{x\to {a}^{-}}{\text{lim}}f\left(x\right)=f\left(a\right).[/latex]

A function is continuous over an open interval if it is continuous at every point in the interval. A function [latex]f\left(x\right)[/latex] is continuous over a closed interval of the form [latex]\left[a,b\right][/latex] if it is continuous at every point in [latex]\left(a,b\right)[/latex] and is continuous from the right at *a* and is continuous from the left at *b*. Analogously, a function [latex]f\left(x\right)[/latex] is continuous over an interval of the form [latex]\left(a,b\right][/latex] if it is continuous over [latex]\left(a,b\right)[/latex] and is continuous from the left at *b*. Continuity over other types of intervals are defined in a similar fashion.

Requiring that [latex]\underset{x\to {a}^{+}}{\text{lim}}f\left(x\right)=f\left(a\right)[/latex] and [latex]\underset{x\to {b}^{-}}{\text{lim}}f\left(x\right)=f\left(b\right)[/latex] ensures that we can trace the graph of the function from the point [latex]\left(a,f\left(a\right)\right)[/latex] to the point [latex]\left(b,f\left(b\right)\right)[/latex] without lifting the pencil. If, for example, [latex]\underset{x\to {a}^{+}}{\text{lim}}f\left(x\right)\ne f\left(a\right),[/latex] we would need to lift our pencil to jump from [latex]f\left(a\right)[/latex] to the graph of the rest of the function over [latex]\left(a,b\right].[/latex]

State the interval(s) over which the function [latex]f\left(x\right)=\frac{x-1}{{x}^{2}+2x}[/latex] is continuous.

Since [latex]f\left(x\right)=\frac{x-1}{{x}^{2}+2x}[/latex] is a rational function, it is continuous at every point in its domain. The domain of [latex]f\left(x\right)[/latex] is the set [latex]\left(\text{−}\infty ,-2\right)\cup \left(-2,0\right)\cup \left(0,\text{+}\infty \right).[/latex] Thus, [latex]f\left(x\right)[/latex] is continuous over each of the intervals [latex]\left(\text{−}\infty ,-2\right),\left(-2,0\right),[/latex] and [latex]\left(0,\text{+}\infty \right).[/latex]

State the interval(s) over which the function [latex]f\left(x\right)=\sqrt{4-{x}^{2}}[/latex] is continuous.

From the limit laws, we know that [latex]\underset{x\to a}{\text{lim}}\sqrt[]{4-{x}^{2}}=\sqrt{4-{a}^{2}}[/latex] for all values of *a* in [latex]\left(-2,2\right).[/latex] We also know that [latex]\underset{x\to {-2}^{+}}{\text{lim}}\sqrt{4-{x}^{2}}=0[/latex] exists and [latex]\underset{x\to {2}^{-}}{\text{lim}}\sqrt{4-{x}^{2}}=0[/latex] exists. Therefore, [latex]f\left(x\right)[/latex] is continuous over the interval [latex]\left[-2,2\right].[/latex]

State the interval(s) over which the function [latex]f\left(x\right)=\sqrt{x+3}[/latex] is continuous.

[latex]\left[-3,\text{+}\infty \right)[/latex]

Use [link] as a guide for solving.

The [link] allows us to expand our ability to compute limits. In particular, this theorem ultimately allows us to demonstrate that trigonometric functions are continuous over their domains.

If [latex]f\left(x\right)[/latex] is continuous at *L* and [latex]\underset{x\to a}{\text{lim}}g\left(x\right)=L,[/latex] then

Before we move on to [link], recall that earlier, in the section on limit laws, we showed [latex]\underset{x\to 0}{\text{lim}}\text{cos}\phantom{\rule{0.1em}{0ex}}x=1=\text{cos}\phantom{\rule{0.1em}{0ex}}\left(0\right).[/latex] Consequently, we know that [latex]f\left(x\right)=\text{cos}\phantom{\rule{0.1em}{0ex}}x[/latex] is continuous at 0. In [link] we see how to combine this result with the composite function theorem.

Evaluate [latex]\underset{x\to \pi \text{/}2}{\text{lim}}\text{cos}\phantom{\rule{0.1em}{0ex}}\left(x-\frac{\pi }{2}\right).[/latex]

The given function is a composite of [latex]\text{cos}\phantom{\rule{0.1em}{0ex}}x[/latex] and [latex]x-\frac{\pi }{2}.[/latex] Since [latex]\underset{x\to \pi \text{/}2}{\text{lim}}\left(x-\frac{\pi }{2}\right)=0[/latex] and [latex]\text{cos}\phantom{\rule{0.1em}{0ex}}x[/latex] is continuous at 0, we may apply the composite function theorem. Thus,

Evaluate [latex]\underset{x\to \pi }{\text{lim}}\text{sin}\phantom{\rule{0.1em}{0ex}}\left(x-\pi \right).[/latex]

0

[latex]f\left(x\right)=\text{sin}\phantom{\rule{0.1em}{0ex}}x[/latex] is continuous at 0. Use [link] as a guide.

The proof of the next theorem uses the composite function theorem as well as the continuity of [latex]f\left(x\right)=\text{sin}\phantom{\rule{0.1em}{0ex}}x[/latex] and [latex]g\left(x\right)=\text{cos}\phantom{\rule{0.1em}{0ex}}x[/latex] at the point 0 to show that trigonometric functions are continuous over their entire domains.

Trigonometric functions are continuous over their entire domains.

# Proof

We begin by demonstrating that [latex]\text{cos}\phantom{\rule{0.1em}{0ex}}x[/latex] is continuous at every real number. To do this, we must show that [latex]\underset{x\to a}{\text{lim}}\text{cos}\phantom{\rule{0.1em}{0ex}}x=\text{cos}\phantom{\rule{0.1em}{0ex}}a[/latex] for all values of *a*.

[latex]\begin{array}{ccccc}\underset{x\to a}{\text{lim}}\text{cos}\phantom{\rule{0.1em}{0ex}}x\hfill & =\underset{x\to a}{\text{lim}}\text{cos}\phantom{\rule{0.1em}{0ex}}\left(\left(x-a\right)+a\right)\hfill & & & \text{rewrite}\phantom{\rule{0.2em}{0ex}}x=x-a+a\hfill \\ & =\underset{x\to a}{\text{lim}}\left(\text{cos}\phantom{\rule{0.1em}{0ex}}\left(x-a\right)\phantom{\rule{0.1em}{0ex}}\text{cos}\phantom{\rule{0.1em}{0ex}}a-\text{sin}\phantom{\rule{0.1em}{0ex}}\left(x-a\right)\phantom{\rule{0.1em}{0ex}}\text{sin}\phantom{\rule{0.1em}{0ex}}a\right)\hfill & & & \text{apply the identity for the cosine of the sum of two angles}\hfill \\ & =\text{cos}\phantom{\rule{0.1em}{0ex}}\left(\underset{x\to a}{\text{lim}}\left(x-a\right)\right)\phantom{\rule{0.1em}{0ex}}\text{cos}\phantom{\rule{0.1em}{0ex}}a-\text{sin}\phantom{\rule{0.1em}{0ex}}\left(\underset{x\to a}{\text{lim}}\left(x-a\right)\right)\phantom{\rule{0.1em}{0ex}}\text{sin}\phantom{\rule{0.1em}{0ex}}a\hfill & & & \underset{x\to a}{\text{lim}}\left(x-a\right)=0,\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}\text{sin}\phantom{\rule{0.1em}{0ex}}x\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}\text{cos}\phantom{\rule{0.1em}{0ex}}x\phantom{\rule{0.2em}{0ex}}\text{are continuous at 0}\hfill \\ & =\text{cos}\phantom{\rule{0.1em}{0ex}}\left(0\right)\phantom{\rule{0.1em}{0ex}}\text{cos}\phantom{\rule{0.1em}{0ex}}a-\text{sin}\phantom{\rule{0.1em}{0ex}}\left(0\right)\phantom{\rule{0.1em}{0ex}}\text{sin}\phantom{\rule{0.1em}{0ex}}a\hfill & & & \text{evaluate cos(0) and sin(0) and simplify}\hfill \\ & =1·\text{cos}\phantom{\rule{0.1em}{0ex}}a-0·\text{sin}\phantom{\rule{0.1em}{0ex}}a=\text{cos}\phantom{\rule{0.1em}{0ex}}a.\hfill \end{array}[/latex]

The proof that [latex]\text{sin}\phantom{\rule{0.1em}{0ex}}x[/latex] is continuous at every real number is analogous. Because the remaining trigonometric functions may be expressed in terms of [latex]\text{sin}\phantom{\rule{0.1em}{0ex}}x[/latex] and [latex]\text{cos}\phantom{\rule{0.1em}{0ex}}x,[/latex] their continuity follows from the quotient limit law.

□

As you can see, the composite function theorem is invaluable in demonstrating the continuity of trigonometric functions. As we continue our study of calculus, we revisit this theorem many times.

# The Intermediate Value Theorem

Functions that are continuous over intervals of the form [latex]\left[a,b\right],[/latex] where *a* and *b* are real numbers, exhibit many useful properties. Throughout our study of calculus, we will encounter many powerful theorems concerning such functions. The first of these theorems is the Intermediate Value Theorem.

Let *f* be continuous over a closed, bounded interval [latex]\left[a,b\right].[/latex] If *z* is any real number between [latex]f\left(a\right)[/latex] and [latex]f\left(b\right),[/latex] then there is a number *c* in [latex]\left[a,b\right][/latex] satisfying [latex]f\left(c\right)=z[/latex] in [link].

Show that [latex]f\left(x\right)=x-\text{cos}\phantom{\rule{0.1em}{0ex}}x[/latex] has at least one zero.

Since [latex]f\left(x\right)=x-\text{cos}\phantom{\rule{0.1em}{0ex}}x[/latex] is continuous over [latex]\left(\text{−}\infty ,\text{+}\infty \right),[/latex] it is continuous over any closed interval of the form [latex]\left[a,b\right].[/latex] If you can find an interval [latex]\left[a,b\right][/latex] such that [latex]f\left(a\right)[/latex] and [latex]f\left(b\right)[/latex] have opposite signs, you can use the Intermediate Value Theorem to conclude there must be a real number *c* in [latex]\left(a,b\right)[/latex] that satisfies [latex]f\left(c\right)=0.[/latex] Note that

and

Using the Intermediate Value Theorem, we can see that there must be a real number *c* in [latex]\left[0,\pi \text{/}2\right][/latex] that satisfies [latex]f\left(c\right)=0.[/latex] Therefore, [latex]f\left(x\right)=x-\text{cos}\phantom{\rule{0.1em}{0ex}}x[/latex] has at least one zero.

If [latex]f\left(x\right)[/latex] is continuous over [latex]\left[0,2\right],f\left(0\right)>0[/latex] and [latex]f\left(2\right)>0,[/latex] can we use the Intermediate Value Theorem to conclude that [latex]f\left(x\right)[/latex] has no zeros in the interval [latex]\left[0,2\text{]?}[/latex] Explain.

No. The Intermediate Value Theorem only allows us to conclude that we can find a value between [latex]f\left(0\right)[/latex] and [latex]f\left(2\right);[/latex] it doesn’t allow us to conclude that we can’t find other values. To see this more clearly, consider the function [latex]f\left(x\right)={\left(x-1\right)}^{2}.[/latex] It satisfies [latex]f\left(0\right)=1>0,f\left(2\right)=1>0,[/latex] and [latex]f\left(1\right)=0.[/latex]

For [latex]f\left(x\right)=1\text{/}x,f\left(-1\right)=-1<0[/latex] and [latex]f\left(1\right)=1>0.[/latex] Can we conclude that [latex]f\left(x\right)[/latex] has a zero in the interval [latex]\left[-1,1\right]?[/latex]

No. The function is not continuous over [latex]\left[-1,1\right].[/latex] The Intermediate Value Theorem does not apply here.

Show that [latex]f\left(x\right)={x}^{3}-{x}^{2}-3x+1[/latex] has a zero over the interval [latex]\left[0,1\right].[/latex]

[latex]f\left(0\right)=1>0,f\left(1\right)=-2<0;f\left(x\right)[/latex] is continuous over [latex]\left[0,1\right].[/latex] It must have a zero on this interval.

Find [latex]f\left(0\right)[/latex] and [latex]f\left(1\right).[/latex] Apply the Intermediate Value Theorem.

### Key Concepts

- For a function to be continuous at a point, it must be defined at that point, its limit must exist at the point, and the value of the function at that point must equal the value of the limit at that point.
- Discontinuities may be classified as removable, jump, or infinite.
- A function is continuous over an open interval if it is continuous at every point in the interval. It is continuous over a closed interval if it is continuous at every point in its interior and is continuous at its endpoints.
- The composite function theorem states: If [latex]f\left(x\right)[/latex] is continuous at
*L*and [latex]\underset{x\to a}{\text{lim}}g\left(x\right)=L,[/latex] then [latex]\underset{x\to a}{\text{lim}}f\left(g\left(x\right)\right)=f\left(\underset{x\to a}{\text{lim}}g\left(x\right)\right)=f\left(L\right).[/latex] - The Intermediate Value Theorem guarantees that if a function is continuous over a closed interval, then the function takes on every value between the values at its endpoints.

For the following exercises, determine the point(s), if any, at which each function is discontinuous. Classify any discontinuity as jump, removable, infinite, or other.

[latex]f\left(x\right)=\frac{1}{\sqrt{x}}[/latex]

The function is defined for all *x* in the interval [latex]\left(0,\infty \right).[/latex]

[latex]f\left(x\right)=\frac{2}{{x}^{2}+1}[/latex]

[latex]f\left(x\right)=\frac{x}{{x}^{2}-x}[/latex]

Removable discontinuity at [latex]x=0;[/latex] infinite discontinuity at [latex]x=1[/latex]

[latex]g\left(t\right)={t}^{-1}+1[/latex]

[latex]f\left(x\right)=\frac{5}{{e}^{x}-2}[/latex]

Infinite discontinuity at [latex]x=\text{ln}\phantom{\rule{0.1em}{0ex}}2[/latex]

[latex]f\left(x\right)=\frac{|x-2|}{x-2}[/latex]

[latex]H\left(x\right)=\text{tan}\phantom{\rule{0.1em}{0ex}}2x[/latex]

Infinite discontinuities at [latex]x=\frac{\left(2k+1\right)\pi }{4},[/latex] for [latex]k=0,±1,±2,±3\text{,…}[/latex]

[latex]f\left(t\right)=\frac{t+3}{{t}^{2}+5t+6}[/latex]

For the following exercises, decide if the function continuous at the given point. If it is discontinuous, what type of discontinuity is it?

[latex]\frac{2{x}^{2}-5x+3}{x-1}[/latex] at [latex]x=1[/latex]

No. It is a removable discontinuity.

[latex]h\left(\theta \right)=\frac{\text{sin}\phantom{\rule{0.1em}{0ex}}\theta -\text{cos}\phantom{\rule{0.1em}{0ex}}\theta }{\text{tan}\phantom{\rule{0.1em}{0ex}}\theta }[/latex] at [latex]\theta =\pi [/latex]

[latex]g\left(u\right)=\left\{\begin{array}{ll}\frac{6{u}^{2}+u-2}{2u-1}& \text{if}\phantom{\rule{0.2em}{0ex}}u\ne \frac{1}{2}\hfill \\ \frac{7}{2}\hfill & \text{if}\phantom{\rule{0.2em}{0ex}}u=\frac{1}{2}\hfill \end{array},[/latex] at [latex]u=\frac{1}{2}[/latex]

Yes. It is continuous.

[latex]f\left(y\right)=\frac{\text{sin}\phantom{\rule{0.1em}{0ex}}\left(\pi y\right)}{\text{tan}\phantom{\rule{0.1em}{0ex}}\left(\pi y\right)},[/latex] at [latex]y=1[/latex]

[latex]f\left(x\right)=\left\{\begin{array}{ll}{x}^{2}-{e}^{x}& \text{if}\phantom{\rule{0.2em}{0ex}}x<0\hfill \\ x-1& \text{if}\phantom{\rule{0.2em}{0ex}}x\ge 0\hfill \end{array},[/latex] at [latex]x=0[/latex]

Yes. It is continuous.

[latex]f\left(x\right)=\left\{\begin{array}{l}x\phantom{\rule{0.1em}{0ex}}\text{sin}\phantom{\rule{0.1em}{0ex}}\left(x\right)\phantom{\rule{0.2em}{0ex}}\text{if}\phantom{\rule{0.2em}{0ex}}x\le \pi \\ x\phantom{\rule{0.1em}{0ex}}\text{tan}\phantom{\rule{0.1em}{0ex}}\left(x\right)\phantom{\rule{0.2em}{0ex}}\text{if}\phantom{\rule{0.2em}{0ex}}x>\pi \end{array},[/latex] at [latex]x=\pi [/latex]

In the following exercises, find the value(s) of *k* that makes each function continuous over the given interval.

[latex]f\left(x\right)=\left\{\begin{array}{cc}3x+2,\hfill & x<k\hfill \\ 2x-3,\hfill & k\le x\le 8\hfill \end{array}[/latex]

[latex]k=-5[/latex]

[latex]f\left(\theta \right)=\left\{\begin{array}{ll}\hfill \text{sin}\phantom{\rule{0.1em}{0ex}}\theta ,& 0\le \theta <\frac{\pi }{2}\hfill \\ \text{cos}\phantom{\rule{0.1em}{0ex}}\left(\theta +k\right),\hfill & \frac{\pi }{2}\le \theta \le \pi \hfill \end{array}[/latex]

[latex]f\left(x\right)=\left\{\begin{array}{cc}\frac{{x}^{2}+3x+2}{x+2},\hfill & x\ne -2\hfill \\ \hfill k,& x=-2\hfill \end{array}[/latex]

[latex]k=-1[/latex]

[latex]f\left(x\right)=\left\{\begin{array}{cc}\hfill {e}^{kx},& 0\le x<4\hfill \\ x+3,\hfill & 4\le x\le 8\hfill \end{array}[/latex]

[latex]f\left(x\right)=\left\{\begin{array}{cc}\hfill \sqrt{kx},& 0\le x\le 3\hfill \\ x+1,\hfill & 3<x\le 10\hfill \end{array}[/latex]

[latex]k=\frac{16}{3}[/latex]

In the following exercises, use the Intermediate Value Theorem (IVT).

Let [latex]h\left(x\right)=\left\{\begin{array}{ll}3{x}^{2}-4,& x\le 2\hfill \\ 5+4x,& x>2\hfill \end{array}[/latex] Over the interval [latex]\left[0,4\right],[/latex] there is no value of *x* such that [latex]h\left(x\right)=10,[/latex] although [latex]h\left(0\right)<10[/latex] and [latex]h\left(4\right)>10.[/latex] Explain why this does not contradict the IVT.

A particle moving along a line has at each time *t* a position function [latex]s\left(t\right),[/latex] which is continuous. Assume [latex]s\left(2\right)=5[/latex] and [latex]s\left(5\right)=2.[/latex] Another particle moves such that its position is given by [latex]h\left(t\right)=s\left(t\right)-t.[/latex] Explain why there must be a value *c* for [latex]2<c<5[/latex] such that [latex]h\left(c\right)=0.[/latex]

Since both *s* and [latex]y=t[/latex] are continuous everywhere, then [latex]h\left(t\right)=s\left(t\right)-t[/latex] is continuous everywhere and, in particular, it is continuous over the closed interval [latex]\left[2,5\right].[/latex] Also, [latex]h\left(2\right)=3>0[/latex] and [latex]h\left(5\right)=-3<0.[/latex] Therefore, by the IVT, there is a value [latex]x=c[/latex] such that [latex]h\left(c\right)=0.[/latex]

**[T]** Use the statement “The cosine of *t* is equal to *t* cubed.”

- Write a mathematical equation of the statement.
- Prove that the equation in part a. has at least one real solution.
- Use a calculator to find an interval of length 0.01 that contains a solution.

Apply the IVT to determine whether [latex]{2}^{x}={x}^{3}[/latex] has a solution in one of the intervals [latex]\left[1.25,1.375\right][/latex] or [latex]\left[1.375,1.5\right].[/latex] Briefly explain your response for each interval.

The function [latex]f\left(x\right)={2}^{x}-{x}^{3}[/latex] is continuous over the interval [latex]\left[1.25,1.375\right][/latex] and has opposite signs at the endpoints.

Consider the graph of the function [latex]y=f\left(x\right)[/latex] shown in the following graph.

- Find all values for which the function is discontinuous.
- For each value in part a., state why the formal definition of continuity does not apply.
- Classify each discontinuity as either jump, removable, or infinite.

Let [latex]f\left(x\right)=\left\{\begin{array}{c}3x,x>1\\ {x}^{3},x<1\end{array}.[/latex]

- Sketch the graph of
*f*. - Is it possible to find a value
*k*such that [latex]f\left(1\right)=k,[/latex] which makes [latex]f\left(x\right)[/latex] continuous for all real numbers? Briefly explain.

a.

Let [latex]f\left(x\right)=\frac{{x}^{4}-1}{{x}^{2}-1}[/latex] for [latex]x\ne -1,1.[/latex]

- Sketch the graph of
*f*. - Is it possible to find values [latex]{k}_{1}[/latex] and [latex]{k}_{2}[/latex] such that [latex]f\left(-1\right)=k[/latex] and [latex]f\left(1\right)={k}_{2},[/latex] and that makes [latex]f\left(x\right)[/latex] continuous for all real numbers? Briefly explain.

Sketch the graph of the function [latex]y=f\left(x\right)[/latex] with properties i. through vii.

- The domain of
*f*is [latex]\left(\text{−}\infty ,\text{+}\infty \right).[/latex] *f*has an infinite discontinuity at [latex]x=-6.[/latex]- [latex]f\left(-6\right)=3[/latex]
- [latex]\underset{x\to {-3}^{-}}{\text{lim}}f\left(x\right)=\underset{x\to {-3}^{+}}{\text{lim}}f\left(x\right)=2[/latex]
- [latex]f\left(-3\right)=3[/latex]
*f*is left continuous but not right continuous at [latex]x=3.[/latex]- [latex]\underset{x\to -\infty }{\text{lim}}f\left(x\right)=\text{−}\infty [/latex] and [latex]\underset{x\to +\infty }{\text{lim}}f\left(x\right)=\text{+}\infty [/latex]

Answers may vary; see the following example:

Sketch the graph of the function [latex]y=f\left(x\right)[/latex] with properties i. through iv.

- The domain of
*f*is [latex]\left[0,5\right].[/latex] - [latex]\underset{x\to {1}^{+}}{\text{lim}}f\left(x\right)[/latex] and [latex]\underset{x\to {1}^{-}}{\text{lim}}f\left(x\right)[/latex] exist and are equal.
- [latex]f\left(x\right)[/latex] is left continuous but not continuous at [latex]x=2,[/latex] and right continuous but not continuous at [latex]x=3.[/latex]
- [latex]f\left(x\right)[/latex] has a removable discontinuity at [latex]x=1,[/latex] a jump discontinuity at [latex]x=2,[/latex] and the following limits hold: [latex]\underset{x\to {3}^{-}}{\text{lim}}f\left(x\right)=\text{−}\infty [/latex] and [latex]\underset{x\to {3}^{+}}{\text{lim}}f\left(x\right)=2.[/latex]

In the following exercises, suppose [latex]y=f\left(x\right)[/latex] is defined for all *x*. For each description, sketch a graph with the indicated property.

Discontinuous at [latex]x=1[/latex] with [latex]\underset{x\to -1}{\text{lim}}f\left(x\right)=-1[/latex] and [latex]\underset{x\to 2}{\text{lim}}f\left(x\right)=4[/latex]

Answers may vary; see the following example:

Discontinuous at [latex]x=2[/latex] but continuous elsewhere with [latex]\underset{x\to 0}{\text{lim}}f\left(x\right)=\frac{1}{2}[/latex]

Determine whether each of the given statements is true. Justify your response with an explanation or counterexample.

[latex]f\left(t\right)=\frac{2}{{e}^{t}-{e}^{-t}}[/latex] is continuous everywhere.

False. It is continuous over [latex]\left(\text{−}\infty ,0\right)\cup \left(0,\infty \right).[/latex]

If the left- and right-hand limits of [latex]f\left(x\right)[/latex] as [latex]x\to a[/latex] exist and are equal, then *f* cannot be discontinuous at [latex]x=a.[/latex]

If a function is not continuous at a point, then it is not defined at that point.

False. Consider [latex]f\left(x\right)=\left\{\begin{array}{l}x\phantom{\rule{0.2em}{0ex}}\text{if}\phantom{\rule{0.2em}{0ex}}x\ne 0\\ 4\phantom{\rule{0.2em}{0ex}}\text{if}\phantom{\rule{0.2em}{0ex}}x=0\end{array}.[/latex]

According to the IVT, [latex]\text{cos}\phantom{\rule{0.1em}{0ex}}x-\text{sin}\phantom{\rule{0.1em}{0ex}}x-x=2[/latex] has a solution over the interval [latex]\left[-1,1\right].[/latex]

If [latex]f\left(x\right)[/latex] is continuous such that [latex]f\left(a\right)[/latex] and [latex]f\left(b\right)[/latex] have opposite signs, then [latex]f\left(x\right)=0[/latex] has exactly one solution in [latex]\left[a,b\right].[/latex]

False. Consider [latex]f\left(x\right)=\text{cos}\phantom{\rule{0.1em}{0ex}}\left(x\right)[/latex] on [latex]\left[-\pi ,2\pi \right].[/latex]

The function [latex]f\left(x\right)=\frac{{x}^{2}-4x+3}{{x}^{2}-1}[/latex] is continuous over the interval [latex]\left[0,3\right].[/latex]

If [latex]f\left(x\right)[/latex] is continuous everywhere and [latex]f\left(a\right),f\left(b\right)>0,[/latex] then there is no root of [latex]f\left(x\right)[/latex] in the interval [latex]\left[a,b\right].[/latex]

False. The IVT does *not* work in reverse! Consider [latex]{\left(x-1\right)}^{2}[/latex] over the interval [latex]\left[-2,2\right].[/latex]

**[T]** The following problems consider the scalar form of Coulomb’s law, which describes the electrostatic force between two point charges, such as electrons. It is given by the equation [latex]F\left(r\right)={k}_{e}\frac{|{q}_{1}{q}_{2}|}{{r}^{2}},[/latex] where [latex]{k}_{e}[/latex] is Coulomb’s constant, [latex]{q}_{i}[/latex] are the magnitudes of the charges of the two particles, and *r* is the distance between the two particles.

To simplify the calculation of a model with many interacting particles, after some threshold value [latex]r=R,[/latex] we approximate *F* as zero.

- Explain the physical reasoning behind this assumption.
- What is the force equation?
- Evaluate the force
*F*using both Coulomb’s law and our approximation, assuming two protons with a charge magnitude of [latex]1.6022\phantom{\rule{0.2em}{0ex}}×\phantom{\rule{0.2em}{0ex}}{10}^{-19}\phantom{\rule{0.2em}{0ex}}\text{coulombs (C)},[/latex] and the Coulomb constant [latex]{k}_{e}=8.988\phantom{\rule{0.2em}{0ex}}×\phantom{\rule{0.2em}{0ex}}{10}^{9}{\text{Nm}}^{2}\text{/}{\text{C}}^{2}[/latex] are 1 m apart. Also, assume [latex]R<1\phantom{\rule{0.2em}{0ex}}\text{m}.[/latex] How much inaccuracy does our approximation generate? Is our approximation reasonable? - Is there any finite value of
*R*for which this system remains continuous at*R*?

Instead of making the force 0 at *R*, instead we let the force be 10^{−20} for [latex]r\ge R.[/latex] Assume two protons, which have a magnitude of charge [latex]1.6022\phantom{\rule{0.2em}{0ex}}×\phantom{\rule{0.2em}{0ex}}{10}^{-19}\phantom{\rule{0.2em}{0ex}}\text{C},[/latex] and the Coulomb constant [latex]{k}_{e}=8.988\phantom{\rule{0.2em}{0ex}}×\phantom{\rule{0.2em}{0ex}}{10}^{9}{\text{Nm}}^{2}\text{/}{\text{C}}^{2}.[/latex] Is there a value *R* that can make this system continuous? If so, find it.

[latex]R=0.0001519\phantom{\rule{0.2em}{0ex}}\text{m}[/latex]

Recall the discussion on spacecraft from the chapter opener. The following problems consider a rocket launch from Earth’s surface. The force of gravity on the rocket is given by [latex]F\left(d\right)=-mk\text{/}{d}^{2},[/latex] where *m* is the mass of the rocket, *d* is the distance of the rocket from the center of Earth, and *k* is a constant.

**[T]** Determine the value and units of *k* given that the mass of the rocket on Earth is 3 million kg. (*Hint*: The distance from the center of Earth to its surface is 6378 km.)

**[T]** After a certain distance *D* has passed, the gravitational effect of Earth becomes quite negligible, so we can approximate the force function by [latex]F\left(d\right)=\left\{\begin{array}{ll}-\frac{mk}{{d}^{2}}\hfill & \text{if}\phantom{\rule{0.2em}{0ex}}d<D\hfill \\ 10,000\hfill & \text{if}\phantom{\rule{0.2em}{0ex}}d\ge D\hfill \end{array}.[/latex] Find the necessary condition *D* such that the force function remains continuous.

[latex]D=63.78\phantom{\rule{0.2em}{0ex}}\text{km}[/latex]

As the rocket travels away from Earth’s surface, there is a distance *D* where the rocket sheds some of its mass, since it no longer needs the excess fuel storage. We can write this function as [latex]F\left(d\right)=\left\{\begin{array}{l}-\frac{{m}_{1}k}{{d}^{2}}\phantom{\rule{0.2em}{0ex}}\text{if}\phantom{\rule{0.2em}{0ex}}d<D\hfill \\ -\frac{{m}_{2}k}{{d}^{2}}\phantom{\rule{0.2em}{0ex}}\text{if}\phantom{\rule{0.2em}{0ex}}d\ge D\hfill \end{array}.[/latex] Is there a *D* value such that this function is continuous, assuming [latex]{m}_{1}\ne {m}_{2}?[/latex]

Prove the following functions are continuous everywhere

[latex]f\left(\theta \right)=\text{sin}\phantom{\rule{0.1em}{0ex}}\theta [/latex]

For all values of [latex]a,f\left(a\right)[/latex] is defined, [latex]\underset{\theta \to a}{\text{lim}}f\left(\theta \right)[/latex] exists, and [latex]\underset{\theta \to a}{\text{lim}}f\left(\theta \right)=f\left(a\right).[/latex] Therefore, [latex]f\left(\theta \right)[/latex] is continuous everywhere.

[latex]g\left(x\right)=|x|[/latex]

Where is [latex]f\left(x\right)=\left\{\begin{array}{l}0\phantom{\rule{0.2em}{0ex}}\text{if}\phantom{\rule{0.2em}{0ex}}x\phantom{\rule{0.2em}{0ex}}\text{is irrational}\\ 1\phantom{\rule{0.2em}{0ex}}\text{if}\phantom{\rule{0.2em}{0ex}}x\phantom{\rule{0.2em}{0ex}}\text{is rational}\end{array}[/latex] continuous?

Nowhere

## Glossary

- continuity at a point
- A function [latex]f\left(x\right)[/latex] is continuous at a point
*a*if and only if the following three conditions are satisfied: (1) [latex]f\left(a\right)[/latex] is defined, (2) [latex]\underset{x\to a}{\text{lim}}f\left(x\right)[/latex] exists, and (3) [latex]\underset{x\to a}{\text{lim}}f\left(x\right)=f\left(a\right)[/latex]

- continuity from the left
- A function is continuous from the left at
*b*if [latex]\underset{x\to {b}^{-}}{\text{lim}}f\left(x\right)=f\left(b\right)[/latex]

- continuity from the right
- A function is continuous from the right at
*a*if [latex]\underset{x\to {a}^{+}}{\text{lim}}f\left(x\right)=f\left(a\right)[/latex]

- continuity over an interval
- a function that can be traced with a pencil without lifting the pencil; a function is continuous over an open interval if it is continuous at every point in the interval; a function [latex]f\left(x\right)[/latex] is continuous over a closed interval of the form [latex]\left[a,b\right][/latex] if it is continuous at every point in [latex]\left(a,b\right),[/latex] and it is continuous from the right at
*a*and from the left at*b*

- discontinuity at a point
- A function is discontinuous at a point or has a discontinuity at a point if it is not continuous at the point

- infinite discontinuity
- An infinite discontinuity occurs at a point
*a*if [latex]\underset{x\to {a}^{-}}{\text{lim}}f\left(x\right)=\text{±}\infty [/latex] or [latex]\underset{x\to {a}^{+}}{\text{lim}}f\left(x\right)=\text{±}\infty [/latex]

- Intermediate Value Theorem
- Let
*f*be continuous over a closed bounded interval [latex]\left[\text{a},\text{b}\right];[/latex] if*z*is any real number between [latex]f\left(a\right)[/latex] and [latex]f\left(b\right),[/latex] then there is a number*c*in [latex]\left[a,b\right][/latex] satisfying [latex]f\left(c\right)=z[/latex]

- jump discontinuity
- A jump discontinuity occurs at a point
*a*if [latex]\underset{x\to {a}^{-}}{\text{lim}}f\left(x\right)[/latex] and [latex]\underset{x\to {a}^{+}}{\text{lim}}f\left(x\right)[/latex] both exist, but [latex]\underset{x\to {a}^{-}}{\text{lim}}f\left(x\right)\ne \underset{x\to {a}^{+}}{\text{lim}}f\left(x\right)[/latex]

- removable discontinuity
- A removable discontinuity occurs at a point
*a*if [latex]f\left(x\right)[/latex] is discontinuous at*a*, but [latex]\underset{x\to a}{\text{lim}}f\left(x\right)[/latex] exists

Check each condition of the definition.