Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

2.4: Continuity

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

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 Figure 2.4.1. We see that the graph of f(x) has a hole at a. In fact, f(a) is undefined. At the very least, for f(x) to be continuous at a, we need the following condition:

i. f(a) is defined

A graph of f where f(a) is undefined. Details in caption.
Figure 2.4.1: The graph of a function f(x) has a number a indicated on the x-axis. The function f(x) is not continuous at x=a because f(a) is undefined, marked by an open circle on the line above a.

However, as we see in Figure 2.4.2, this condition alone is insufficient to guarantee continuity at the point a. Although f(a) is defined, the function has a gap at a. In this example, the gap exists because limxaf(x) does not exist. We must add another condition for continuity at a—namely,

ii. limxaf(x) exists

A graph of a function f where the graph makes a jump at x=a. Details in caption.
Figure 2.4.2: The graph of a piecewise function f(x) with two parts, with number a indicated on the x-axis. The first part is an increasing linear function defined for xa that that stops at the point (a,f(a)), which is marked with a solid circle. The other segment is also an increasing linear function and defined over x>a, containing an open circle on the line over a. The graphs of the two segments do not connect at x=a. Hence, the function f(x) is not continuous at aa because limxaf(x) does not exist.

However, as we see in Figure 2.4.3, 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:

iii. limxaf(x)=f(a)

A graph of f where f(a) is defined, but away from the rest of the graph of f. Details in caption.
Figure 2.4.3: The graph of a function f(x) has a number a indicated on the x-axis. f(a) is defined but away from the rest of the graph of f, indicated by an open circle on the graph of f above a, and closed circle a bit above the graph. Hence, the function f(x) is not continuous at a because limxaf(x)f(a).

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

Definition: Continuous at a Point

A function f(x) is continuous at a point a if and only if the following three conditions are satisfied:

  1. f(a) is defined
  2. limxaf(x) exists
  3. limxaf(x)=f(a)

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.

Problem-Solving Strategy: Determining Continuity at a Point
  1. Check to see if f(a) is defined. If f(a) is undefined, we need go no further. The function is not continuous at a. If f(a) is defined, continue to step 2.
  2. Compute limxaf(x). In some cases, we may need to do this by first computing limxaf(x) and limxa+f(x). If limxaf(x) 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 limxaf(x) exists, then continue to step 3.
  3. Compare f(a) and limxaf(x). If limxaf(x)f(a), then the function is not continuous at a. If limxaf(x)=f(a), 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.

Example 2.4.1A: Determining Continuity at a Point, Condition 1

Using the definition, determine whether the function f(x)=x24x2 is continuous at x=2. Justify the conclusion.

Solution

Let’s begin by trying to calculate f(2). We can see that f(2)=0/0, which is undefined. Therefore, f(x)=x24x2 is discontinuous at 2 because f(2) is undefined. The graph of f(x) is shown in Figure 2.4.4.

A graph of f where f(a) is undefined. Details in caption.

Figure 2.4.4: Since f(x)=x24x2=x+2 if x2, the graph of f is a line with a hole at (2,4). Since f(2) is undefined, the function f(x) is discontinuous at 2.
Example 2.4.1B: Determining Continuity at a Point, Condition 2

Using the definition, determine whether the function f(x)={x2+4,ifx34x8,ifx>3 is continuous at x=3. Justify the conclusion.

Solution

Let’s begin by trying to calculate f(3).

f(3)=(32)+4=5.

Thus, f(3) is defined. Next, we calculate limx3f(x). To do this, we must compute limx3f(x) and limx3+f(x):

limx3f(x)=(32)+4=5

and

limx3+f(x)=4(3)8=4.

Therefore, limx3f(x) does not exist. Thus, f(x) is not continuous at 3. The graph of f(x) is shown in Figure 2.4.5.

The graph of a piecewise defined function. Details in caption.
Figure 2.4.5: The graph of the given piecewise function has two segments. The first segment is a downward opening parabola given by x2+4 graphed over x3. The parabola is symmetric about the y-axis with its vertex is on the y axis at (0,4). There is a closed circle on the parabola for x=3 at the point (3,5. The second segment is an increasing linear function given by 4x8, which exists for values of x>3. There is an open circle at the end of the line above x=3. The function f(x) is not continuous at 3 because limx3f(x) does not exist.
Example 2.4.1C: Determining Continuity at a Point, Condition 3

Using the definition, determine whether the function f(x)={sinxx,if x01,if x=0 is continuous at x=0.

Solution

First, observe that

f(0)=1

Next,

limx0f(x)=limx0sinxx=1.

Last, compare f(0) and limx1f(x). We see that

f(0)=1=limx0f(x).

Since all three of the conditions in the definition of continuity are satisfied, f(x) is continuous at x=0.

Exercise 2.4.1

Using the definition, determine whether the function f(x)={2x+1,if x<12,if x=1x+4,if x>1 is continuous at x=1. If the function is not continuous at 1, indicate the condition for continuity at a point that fails to hold.

Hint

Check each condition of the definition.

Answer

f is not continuous at 1 because f(1)=23=limx1f(x).

Consider the video example below in which we find the value of an unknown number a to make a piecewise function continuous by ensuring that the limit from the left and the limit from the right are the same at the x value in question.

Example 2.4.2

Find the constant a such that the function is continuous:

f(x)={3xa,if x<23x2,if x2

Solution
  • Video Length: 2 minutes 5 seconds.
  • Context: This video demonstrates an example about piecewise functions and continuity.

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

Continuity of Polynomials and Rational Functions

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

Proof

Previously, we showed that if p(x) and q(x) are polynomials, limxap(x)=p(a) for every polynomial p(x) and limxap(x)q(x)=p(a)q(a) as long as q(a)0. Therefore, polynomials and rational functions are continuous on their domains.

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

Example 2.4.3:Continuity of a Rational Function

For what values of x is f(x)=x+1x5 continuous?

Solution

The rational function f(x)=x+1x5 is continuous for every value of x except x=5.

Exercise 2.4.2

For what values of x is f(x)=3x44x2 continuous?

Hint

Use the Continuity of Polynomials and Rational Functions stated above.

Answer

f(x) is continuous at every real number.

Types of Discontinuities

As we have seen in Example and Example, 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. Figure 2.4.6 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.

Graphical representation of removable, jump and infinite discontinuity. Details in caption.

Figure 2.4.6: Discontinuities are classified as (a) removable, (b) jump, or (c) infinite. The first, (a), shows a removable discontinuity at x=a. Here, the graph of a function f(x) has a number a indicated on the x-axis. f(a) is defined but away from the rest of the graph of f, indicated by an open circle on the graph of f above a, and closed circle a bit above the graph. The second, (b), shows a jump discontinuity at x=a. Here, the graph is a piecewise function f(x) with two parts, with number a indicated on the x-axis. The first part is line over xa that that stops at the point (a,f(a)), which is marked with a solid circle. The other segment is also a line and drawn over x>a, containing an open circle on it over a. The graphs of the two segments do not connect at x=a. The third, (c), shows an infinite discontinuity at x=a. Here, the function has two parts separated by an asymptote at x=a. The first segment is the graph of a function stretching along y-axis to as x approaches 0 from the left. The second segment is the graph of a function stretching along y-axis to as x approaches 0 from the right.

These three discontinuities are formally defined as follows:

Definition

If f(x) is discontinuous at a, then

1. f has a removable discontinuity at a if limxaf(x) exists. (Note: When we state that limxaf(x) exists, we mean that limxaf(x)=L, where L is a real number.)

2. f has a jump discontinuity at a if limxaf(x) and limxa+f(x) both exist, but limxaf(x)limxa+f(x). (Note: When we state that limxaf(x) and limxa+f(x) both exist, we mean that both are real-valued and that neither take on the values ±.)

3. f has an infinite discontinuity at a if limxaf(x)=± or limxa+f(x)=±.

Example 2.4.4: Classifying a Discontinuity

In Example, we showed that f(x)=x24x2 is discontinuous at x=2. Classify this discontinuity as removable, jump, or infinite.

Solution

To classify the discontinuity at 2 we must evaluate limx2f(x):

limx2f(x)=limx2x24x2=limx2(x2)(x+2)x2=limx2(x+2)=4.

Since f is discontinuous at 2 and limx2f(x) exists, f has a removable discontinuity at x=2.

Example 2.4.5: Classifying a Discontinuity

In Example, we showed that f(x)={x2+4,if x34x8,if x>3 is discontinuous at x=3. Classify this discontinuity as removable, jump, or infinite.

Solution

Earlier, we showed that f is discontinuous at 3 because limx3f(x) does not exist. However, since limx3f(x)=5 and limx3f(x)=4 both exist, we conclude that the function has a jump discontinuity at 3.

Example 2.4.6: Classifying a Discontinuity

Determine whether f(x)=x+2x+1 is continuous at 1. If the function is discontinuous at 1, classify the discontinuity as removable, jump, or infinite.

Solution

The function value f(1) 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 limx1x+2x+1= and limx1+x+2x+1=+. Therefore, the function has an infinite discontinuity at 1.

Watch the accompanying video for a visual demonstration of the this concept.
  • Video Length: 1 minute 42 seconds.
  • Context: This video demonstrates how to: (1) Find the x-values at which the function f(x)=x1x21 is not continuous, and (2) Determine which of the discontinuities are removable.
Exercise 2.4.3

For f(x)={x2,if x13,if x=1, decide whether f is continuous at 1. If f is not continuous at 1, classify the discontinuity as removable, jump, or infinite.

Hint

Consider the definitions of the various kinds of discontinuity stated above. If the function is discontinuous at 1, look at limx1f(x)

Answer

Discontinuous at 1; removable

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.

Continuity from the Right and from the Left

A function f(x) is said to be continuous from the right at a if limxa+f(x)=f(a).

A function f(x) is said to be continuous from the left at a if limxaf(x)=f(a)

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

Requiring that limxa+f(x)=f(a) and limxbf(x)=f(b) ensures that we can trace the graph of the function from the point (a,f(a)) to the point (b,f(b)) without lifting the pencil. If, for example, limxa+f(x)f(a), we would need to lift our pencil to jump from f(a) to the graph of the rest of the function over (a,b].

Example 2.4.7: Continuity on an Interval

State the interval(s) over which the function f(x)=x1x2+2x is continuous.

Solution

Since f(x)=x1x2+2x is a rational function, it is continuous at every point in its domain. The domain of f(x) is the set (,2)(2,0)(0,+). Thus, f(x) is continuous over each of the intervals (,2),(2,0), and (0,+).

Example 2.4.8: Continuity over an Interval

State the interval(s) over which the function f(x)=4x2 is continuous.

Solution

From the limit laws, we know that limxa4x2=4a2 for all values of a in (2,2). We also know that limx2+4x2=0 exists and limx24x2=0 exists. Therefore, f(x) is continuous over the interval [2,2].

Exercise 2.4.4

State the interval(s) over which the function f(x)=x+3 is continuous.

Hint

Use Example 2.4.7 as a guide.

Answer

[3,+)

The Note 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.

Composite Function Theorem

If f(x) is continuous at L and limxag(x)=L, then

limxaf(g(x))=f(limxag(x))=f(L).

Before we move on to Example, recall that earlier, in the section on limit laws, we showed limx0cosx=1=cos(0). Consequently, we know that f(x)=cosx is continuous at 0. In Example we see how to combine this result with the composite function theorem.

Example 2.4.9: Limit of a Composite Cosine Function

Evaluate limxπ/2cos(xπ2).

Solution

The given function is a composite of cosx and xπ2. Since limxπ/2(xπ2)=0 and cosx is continuous at 0, we may apply the composite function theorem. Thus,

limxπ/2cos(xπ2)=cos(limxπ/2(xπ2))=cos(0)=1.

Exercise 2.4.4:

Evaluate limxπsin(xπ).

Hint

f(x)=sinx is continuous at 0. Use Example 2.4.8 as a guide.

Answer

0

The proof of the next theorem uses the composite function theorem as well as the continuity of f(x)=sinx and g(x)=cosx at the point 0 to show that trigonometric functions are continuous over their entire domains.

Continuity of Trigonometric Functions

Trigonometric functions are continuous over their entire domains.

Proof

We begin by demonstrating that cosx is continuous at every real number. To do this, we must show that limxacosx=cosa for all values of a.

limxacosx=limxacos((xa)+a)Rewrite x=xa+a.=limxa(cos(xa)cosasin(xa)sina)Apply the identity for the cosine of the sum of two angles.=cos(limxa(xa))cosasin(limxa(xa))sinaSince limxa(xa)=0, and sinx and cosx are continuous at 0.=cos(0)cosasin(0)sinaEvaluate cos(0) and sin(0) and simplify.=1cosa0sina=cosa.

The proof that sinx is continuous at every real number is analogous. Because the remaining trigonometric functions may be expressed in terms of sinx and cosx, 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 [a,b], 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.

The Intermediate Value Theorem

Let f be continuous over a closed, bounded interval [a,b]. If z is any real number between f(a) and f(b), then there is a number c in [a,b] satisfying f(c)=z in Figure 2.4.7.

A diagram illustrating the intermediate value theorem. Details in caption.

Figure 2.4.7: The graph of a continuous curved function is shown over the interval [a,b]. The values f(a) and f(b) are marked on the y-axis. A value z is marked between f(a) and f(b) on the y-axis. Since f is continuous, There is a number c[a,b] that satisfies f(c)=z.
Example 2.4.10: Application of the Intermediate Value Theorem

Show that f(x)=xcosx has at least one zero.

Solution

Since f(x)=xcosx is continuous over (,+), it is continuous over any closed interval of the form [a,b]. If you can find an interval [a,b] such that f(a) and f(b) have opposite signs, you can use the Intermediate Value Theorem to conclude there must be a real number c in (a,b) that satisfies f(c)=0. Note that

f(0)=0cos(0)=1<0

and

f(π2)=π2cosπ2=π2>0.

Using the Intermediate Value Theorem, we can see that there must be a real number c in [0,π/2] that satisfies f(c)=0. Therefore, f(x)=xcosx has at least one zero.

Watch the accompanying video for a visual demonstration of the this concept.
  • Video Length: 2 minutes 33 seconds.
  • Context: This video demonstrates how to prove that the function f(x)=x4x33x+1 has a zero in the interval [1,2].
Example 2.4.11: When Can You Apply the Intermediate Value Theorem?

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

Solution

No. The Intermediate Value Theorem only allows us to conclude that we can find a value between f(0) and f(2); it doesn’t allow us to conclude that we can’t find other values. To see this more clearly, consider the function f(x)=(x1)2. It satisfies f(0)=1>0,f(2)=1>0, and f(1)=0.

Example 2.4.12: When Can You Apply the Intermediate Value Theorem?

For f(x)=1/x,f(1)=1<0 and f(1)=1>0. Can we conclude that f(x) has a zero in the interval [1,1]?

Solution

No. The function is not continuous over [1,1]. The Intermediate Value Theorem does not apply here.

Exercise 2.4.5

Show that f(x)=x3x23x+1 has a zero over the interval [0,1].

Hint

Find f(0) and f(1). Apply the Intermediate Value Theorem.

Answer

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

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 f(x) is continuous at L and limxag(x)=L, then limxaf(g(x))=f(limxag(x))=f(L).
  • 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.

Glossary

Continuity at a point
A function f(x) is continuous at a point a if and only if the following three conditions are satisfied: (1) f(a) is defined, (2) limxaf(x) exists, and (3) limxaf(x)=f(a)
Continuity from the left
A function is continuous from the left at b if limxbf(x)=f(b)
Continuity from the right
A function is continuous from the right at a if limxa+f(x)=f(a)
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 f(x) is continuous over a closed interval of the form [a,b] if it is continuous at every point in (a,b), 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 limxaf(x)=± or limxa+f(x)=±
Intermediate Value Theorem
Let f be continuous over a closed bounded interval [a,b] if z is any real number between f(a) and f(b), then there is a number c in [a,b] satisfying f(c)=z
Jump discontinuity
A jump discontinuity occurs at a point a if limxaf(x) and limxa+f(x) both exist, but limxaf(x)limxa+f(x)
Removable discontinuity
A removable discontinuity occurs at a point a if f(x) is discontinuous at a, but limxaf(x) exists

Contributors and Attributions

  • Gilbert Strang (MIT) and Edwin “Jed” Herman (Harvey Mudd) with many contributing authors. This content by OpenStax is licensed with a CC-BY-SA-NC 4.0 license. Download for free at http://cnx.org.


This page titled 2.4: Continuity is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Doli Bambhania, Rani Fischer, Lisa Mesh, and Danny Tran via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?