## Continuity

### Learning Outcomes

• Determine whether a function is continuous at a number.
• Determine the input values for which a function is discontinuous.

Let’s consider a specific example of temperature in terms of date and location, such as June 27, 2013, in Phoenix, AZ. The graph in Figure 1 indicates that, at 2 a.m., the temperature was ${96}^{\circ }\text{F}$ . By 2 p.m. the temperature had risen to ${116}^{\circ }\text{F,}$ and by 4 p.m. it was ${118}^{\circ }\text{F}\text{.}$ Sometime between 2 a.m. and 4 p.m., the temperature outside must have been exactly ${110.5}^{\circ }\text{F}\text{.}$ In fact, any temperature between ${96}^{\circ }\text{F}$ and ${118}^{\circ }\text{F}$ occurred at some point that day. This means all real numbers in the output between ${96}^{\circ }\text{F}$ and ${118}^{\circ }\text{F}$ are generated at some point by the function according to the intermediate value theorem,

Look again at Figure 1. There are no breaks in the function’s graph for this 24-hour period. At no point did the temperature cease to exist, nor was there a point at which the temperature jumped instantaneously by several degrees. A function that has no holes or breaks in its graph is known as a continuous function. Temperature as a function of time is an example of a continuous function.

If temperature represents a continuous function, what kind of function would not be continuous? Consider an example of dollars expressed as a function of hours of parking. Let’s create the function $D$, where $D\left(x\right)$ is the output representing cost in dollars for parking $x$ number of hours.

Suppose a parking garage charges $4.00 per hour or fraction of an hour, with a$24 per day maximum charge. Park for two hours and five minutes and the charge is $12. Park an additional hour and the charge is$16. We can never be charged $13,$14, or \$15. There are real numbers between 12 and 16 that the function never outputs. There are breaks in the function’s graph for this 24-hour period, points at which the price of parking jumps instantaneously by several dollars.

Figure 2. Parking-garage charges form a discontinuous function.

A function that remains level for an interval and then jumps instantaneously to a higher value is called a stepwise function. This function is an example.

A function that has any hole or break in its graph is known as a discontinuous function. A stepwise function, such as parking-garage charges as a function of hours parked, is an example of a discontinuous function.

So how can we decide if a function is continuous at a particular number? We can check three different conditions. Let’s use the function $y=f\left(x\right)$ represented in Figure 3 as an example.

Figure 3

Condition 1 According to Condition 1, the function $f\left(a\right)$ defined at $x=a$ must exist. In other words, there is a y-coordinate at $x=a$ as in Figure 4.

Figure 4

Condition 2 According to Condition 2, at $x=a$ the limit, written $\underset{x\to a}{\mathrm{lim}}f\left(x\right)$, must exist. This means that at $x=a$ the left-hand limit must equal the right-hand limit. Notice as the graph of $f$ in Figure 3 approaches $x=a$ from the left and right, the same y-coordinate is approached. Therefore, Condition 2 is satisfied. However, there could still be a hole in the graph at $x=a$ .

Condition 3 According to Condition 3, the corresponding $y$ coordinate at $x=a$ fills in the hole in the graph of $f$. This is written $\underset{x\to a}{\mathrm{lim}}f\left(x\right)=f\left(a\right)$.

Satisfying all three conditions means that the function is continuous. All three conditions are satisfied for the function represented in Figure 5 so the function is continuous as $x=a$.

Figure 5. All three conditions are satisfied. The function is continuous at $x=a$ .

Figure 6 through Figure 9 provide several examples of graphs of functions that are not continuous at $x=a$ and the condition or conditions that fail.

Figure 6. Condition 2 is satisfied. Conditions 1 and 3 both fail.

Figure 7. Conditions 1 and 2 are both satisfied. Condition 3 fails.

Figure 8. Condition 1 is satisfied. Conditions 2 and 3 fail.

Figure 9. Conditions 1, 2, and 3 all fail.

### A General Note: Definition of Continuity

A function $f\left(x\right)$ is continuous at $x=a$ provided all three of the following conditions hold true:

Condition 1: $f(a)$ exists.

Condition 2: $\underset{x\to a}{\mathrm{lim}}f(x)$ exists at $x=a$.

Condition 2: $\underset{x\to a}{\mathrm{lim}}f(x)=f(a)$.

If a function $f\left(x\right)$ is not continuous at $x=a$, the function is discontinuous at $x=a$ .

## Identifying Discontinuities

Discontinuity can occur in different ways. We saw in the previous section that a function could have a left-hand limit and a right-hand limit even if they are not equal. If the left- and right-hand limits exist but are different, the graph “jumps” at $x=a$ . The function is said to have a jump discontinuity.

As an example, look at the graph of the function $y=f\left(x\right)$ in Figure 10. Notice as $x$ approaches $a$ how the output approaches different values from the left and from the right.

Figure 10. Graph of a function with a jump discontinuity.

### A General Note: Jump Discontinuity

A function $f\left(x\right)$ has a jump discontinuity at $x=a$ if the left- and right-hand limits both exist but are not equal: $\underset{x\to {a}^{-}}{\mathrm{lim}}f\left(x\right)\ne \underset{x\to {a}^{+}}{\mathrm{lim}}f\left(x\right)$ .

## Identifying Removable Discontinuity

Some functions have a discontinuity, but it is possible to redefine the function at that point to make it continuous. This type of function is said to have a removable discontinuity. Let’s look at the function $y=f\left(x\right)$ represented by the graph in Figure 11. The function has a limit. However, there is a hole at $x=a$ . The hole can be filled by extending the domain to include the input $x=a$ and defining the corresponding output of the function at that value as the limit of the function at $x=a$ .

Figure 11. Graph of function $f$ with a removable discontinuity at $x=a$ .

### A General Note: Removable Discontinuity

A function $f\left(x\right)$ has a removable discontinuity at $x=a$ if the limit, $\underset{x\to a}{\mathrm{lim}}f\left(x\right)$, exists, but either

1. $f\left(a\right)$ does not exist or
2. $f\left(a\right)$, the value of the function at $x=a$ does not equal the limit, $f\left(a\right)\ne \underset{x\to a}{\mathrm{lim}}f\left(x\right)$.

### Example 1: Identifying Discontinuities

Identify all discontinuities for the following functions as either a jump or a removable discontinuity.

1. $f\left(x\right)=\frac{{x}^{2}-2x - 15}{x - 5}$
2. $g\left(x\right)=\begin{cases}x+1, \hfill& x<2 \\ -x, \hfill& x\geq2\end{cases}$

### Try It

Identify all discontinuities for the following functions as either a jump or a removable discontinuity.

a. $f\left(x\right)=\frac{{x}^{2}-6x}{x - 6}$

b. $g\left(x\right)=\begin{cases}\sqrt{x}, \hfill& 0\leq x<4 \\ 2x, \hfill& x\geq4\end{cases}$

## Recognizing Continuous and Discontinuous Real-Number Functions

Many of the functions we have encountered in earlier chapters are continuous everywhere. They never have a hole in them, and they never jump from one value to the next. For all of these functions, the limit of $f\left(x\right)$ as $x$ approaches $a$ is the same as the value of $f\left(x\right)$ when $x=a$. So $\underset{x\to a}{\mathrm{lim}}f\left(x\right)=f\left(a\right)$. There are some functions that are continuous everywhere and some that are only continuous where they are defined on their domain because they are not defined for all real numbers.

### A General Note: Examples of Continuous Functions

The following functions are continuous everywhere:

 Polynomial functions Ex: $f\left(x\right)={x}^{4}-9{x}^{2}$ Exponential functions Ex: $f\left(x\right)={4}^{x+2}-5$ Sine functions Ex: $f\left(x\right)=\sin \left(2x\right)-4$ Cosine functions Ex: $f\left(x\right)=-\cos \left(x+\frac{\pi }{3}\right)$

The following functions are continuous everywhere they are defined on their domain:

 Logarithmic functions Ex: $f\left(x\right)=2\mathrm{ln}\left(x\right)$ , $x>0$ Tangent functions Ex: $f\left(x\right)=\tan \left(x\right)+2$, $x\ne \frac{\pi }{2}+k\pi$, $k$ is an integer Rational functions Ex: $f\left(x\right)=\frac{{x}^{2}-25}{x - 7}$, $x\ne 7$

### How To: Given a function \begin{align}f\left(x\right)\end{align}, determine if the function is continuous at \begin{align}x=a\end{align}.

1. Check Condition 1: $f\left(a\right)$ exists.
2. Check Condition 2: $\underset{x\to a}{\mathrm{lim}}f\left(x\right)$ exists at $x=a$.
3. Check Condition 3: $\underset{x\to a}{\mathrm{lim}}f\left(x\right)=f\left(a\right)$.
4. If all three conditions are satisfied, the function is continuous at $x=a$. If any one of the conditions is not satisfied, the function is not continuous at $x=a$.

### Example 2: Determining Whether a Piecewise Function is Continuous at a Given Number

Determine whether the function $f\left(x\right)=\begin{cases}4x, \hfill& x\leq 3 \\ 8+x, \hfill& x>3\end{cases}$ is continuous at

1. $x=3$
2. $x=\frac{8}{3}$

### Try It

Determine whether the function $f\left(x\right)=\begin{cases}\frac{1}{x}, \hfill& x\leq 2 \\ 9x-17.5, \hfill& x>2\end{cases}$ is continuous at $x=2$.

### Example 3: Determining Whether a Rational Function is Continuous at a Given Number

Determine whether the function $f\left(x\right)=\frac{{x}^{2}-25}{x - 5}$ is continuous at $x=5$.

### Try It

Determine whether the function $f\left(x\right)=\frac{9-{x}^{2}}{{x}^{2}-3x}$ is continuous at $x=3$. If not, state the type of discontinuity.

## Determining the Input Values for Which a Function Is Discontinuous

Now that we can identify continuous functions, jump discontinuities, and removable discontinuities, we will look at more complex functions to find discontinuities. Here, we will analyze a piecewise function to determine if any real numbers exist where the function is not continuous. A piecewise function may have discontinuities at the boundary points of the function as well as within the functions that make it up.

To determine the real numbers for which a piecewise function composed of polynomial functions is not continuous, recall that polynomial functions themselves are continuous on the set of real numbers. Any discontinuity would be at the boundary points. So we need to explore the three conditions of continuity at the boundary points of the piecewise function.

### How To: Given a piecewise function, determine whether it is continuous at the boundary points.

1. For each boundary point $a$ of the piecewise function, determine the left- and right-hand limits as $x$ approaches $a$, as well as the function value at $a$.
2. Check each condition for each value to determine if all three conditions are satisfied.
3. Determine whether each value satisfies condition 1: $f\left(a\right)$ exists.
4. Determine whether each value satisfies condition 2: $\underset{x\to a}{\mathrm{lim}}f\left(x\right)$ exists.
5. Determine whether each value satisfies condition 3: $\underset{x\to a}{\mathrm{lim}}f\left(x\right)=f\left(a\right)$.
6. If all three conditions are satisfied, the function is continuous at $x=a$. If any one of the conditions fails, the function is not continuous at $x=a$.

### Example 4: Determining the Input Values for Which a Piecewise Function Is Discontinuous

Determine whether the function $f$ is discontinuous for any real numbers.

$fx=\begin{cases}x+1, \hfill& x<2 \\ 3, \hfill& 2\leq x<4 \\ x^{2}-11, \hfill& x\geq 4\end{cases}$

### Try It

Determine where the function

$f\left(x\right)=\begin{cases}\frac{\pi x}{4}, &x<2 \\ \frac{\pi}{x}, &2\leq x \leq 6 \\ 2\pi x, &x>6\end{cases}$

is discontinuous.

## Determining Whether a Function Is Continuous

To determine whether a piecewise function is continuous or discontinuous, in addition to checking the boundary points, we must also check whether each of the functions that make up the piecewise function is continuous.

### How To: Given a piecewise function, determine whether it is continuous.

1. Determine whether each component function of the piecewise function is continuous. If there are discontinuities, do they occur within the domain where that component function is applied?
2. For each boundary point $x=a$ of the piecewise function, determine if each of the three conditions hold.

### Example 5: Determining Whether a Piecewise Function Is Continuous

Determine whether the function below is continuous. If it is not, state the location and type of each discontinuity.

$fx=\begin{cases}sin\left(x\right), \hfill& x<0 \\ x^{3}, \hfill& x>0\end{cases}$

## Key Concepts

• A continuous function can be represented by a graph without holes or breaks.
• A function whose graph has holes is a discontinuous function.
• A function is continuous at a particular number if three conditions are met:
• Condition 1: $f\left(a\right)$ exists.
• Condition 2: $\underset{x\to a}{\mathrm{lim}}f\left(x\right)$ exists at $x=a$.
• Condition 3: $\underset{x\to a}{\mathrm{lim}}f\left(x\right)=f\left(a\right)$.
• A function has a jump discontinuity if the left- and right-hand limits are different, causing the graph to “jump.”
• A function has a removable discontinuity if it can be redefined at its discontinuous point to make it continuous.
• Some functions, such as polynomial functions, are continuous everywhere. Other functions, such as logarithmic functions, are continuous on their domain.
• For a piecewise function to be continuous each piece must be continuous on its part of the domain and the function as a whole must be continuous at the boundaries.

## Glossary

continuous function
a function that has no holes or breaks in its graph
discontinuous function
a function that is not continuous at $x=a$
jump discontinuity
a point of discontinuity in a function $f\left(x\right)$ at $x=a$ where both the left and right-hand limits exist, but $\underset{x\to {a}^{-}}{\mathrm{lim}}f\left(x\right)\ne \underset{x\to {a}^{+}}{\mathrm{lim}}f\left(x\right)$
removable discontinuity
a point of discontinuity in a function $f\left(x\right)$ where the function is discontinuous, but can be redefined to make it continuous