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). 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 conditions:

Figure 1. The function f(x) is not continuous at a because f(a) is undefined.
However, as we see in (Figure), 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 limx→af(x) does not exist. We must add another condition for continuity at a—namely,

Figure 2. The function f(x) is not continuous at a because limx→af(x) does not exist.
However, as we see in (Figure), 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:

Figure 3. The function f(x) is not continuous at a because limx→af(x)≠f(a).
Now we put our list of conditions together and form a definition of continuity at a point.
Definition
A function f(x) is continuous at a point a if and only if the following three conditions are satisfied:
- f(a) is defined
- limx→af(x) exists
- limx→af(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
- 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.
- Compute limx→af(x). In some cases, we may need to do this by first computing limx→a−f(x) and limx→a+f(x). If limx→af(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 limx→af(x) exists, then continue to step 3.
- Compare f(a) and limx→af(x). If limx→af(x)≠f(a), then the function is not continuous at a. If limx→af(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.
Determining Continuity at a Point, Condition 1
Using the definition, determine whether the function f(x)=(x2−4)/(x−2) is continuous at x=2. Justify the conclusion.
Determining Continuity at a Point, Condition 2
Using the definition, determine whether the function f(x)={−x2+4ifx≤34x−8ifx>3 is continuous at x=3. Justify the conclusion.
Determining Continuity at a Point, Condition 3
Using the definition, determine whether the function f(x)={sinxxifx≠01ifx=0 is continuous at x=0.
Using the definition, determine whether the function f(x)={2x+1ifx<12ifx=1−x+4ifx>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.
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, limx→ap(x)=p(a) for every polynomial p(x) and limx→ap(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 (Figure) to determine the points at which a given rational function is continuous.
Continuity of a Rational Function
For what values of x is f(x)=x+1x−5 continuous?
For what values of x is f(x)=3x4−4x2 continuous?
Hint
Use (Figure)
Types of Discontinuities
As we have seen in (Figure) and (Figure), 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) 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.

Figure 6. Discontinuities are classified as (a) removable, (b) jump, or (c) infinite.
These three discontinuities are formally defined as follows:
Definition
If f(x) is discontinuous at a, then
- f has a removable discontinuity at a if limx→af(x) exists. (Note: When we state that limx→af(x) exists, we mean that limx→af(x)=L, where L is a real number.)
- f has a jump discontinuity at a if limx→a−f(x) and limx→a+f(x) both exist, but limx→a−f(x)≠limx→a+f(x). (Note: When we state that limx→a−f(x) and limx→a+f(x) both exist, we mean that both are real-valued and that neither take on the values ±∞.)
- f has an infinite discontinuity at a if limx→a−f(x)=±∞ or limx→a+f(x)=±∞.
Classifying a Discontinuity
In (Figure), we showed that f(x)=x2−4x−2 is discontinuous at x=2. Classify this discontinuity as removable, jump, or infinite.
Classifying a Discontinuity
In (Figure), we showed that f(x)={−x2+4ifx≤34x−8ifx>3 is discontinuous at x=3. Classify this discontinuity as removable, jump, or infinite.
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.
For f(x)={x2ifx≠13ifx=1, decide whether f is continuous at 1. If f is not continuous at 1, classify the discontinuity as removable, jump, or infinite.
Hint
Follow the steps in (Figure). If the function is discontinuous at 1, look at limx→1f(x) 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.
Continuity from the Right and from the Left
A function f(x) is said to be continuous from the right at a if limx→a+f(x)=f(a).
A function f(x) is said to be continuous from the left at a if limx→a−f(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 limx→a+f(x)=f(a) and limx→b−f(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, limx→a+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].
Continuity on an Interval
State the interval(s) over which the function f(x)=x−1x2+2x is continuous.
Continuity over an Interval
State the interval(s) over which the function f(x)=√4−x2 is continuous.
State the interval(s) over which the function f(x)=√x+3 is continuous.
Hint
Use (Figure) as a guide for solving.
The (Figure) 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 limx→ag(x)=L, then
Before we move on to (Figure), recall that earlier, in the section on limit laws, we showed limx→0cosx=1=cos(0). Consequently, we know that f(x)=cosx is continuous at 0. In (Figure) we see how to combine this result with the composite function theorem.
Limit of a Composite Cosine Function
Evaluate limx→π/2cos(x−π2).
Evaluate limx→πsin(x−π).
Hint
f(x)=sinx is continuous at 0. Use (Figure) as a guide.
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 limx→acosx=cosa for all values of a.
limx→acosx=limx→acos((x−a)+a)rewritexasx−a+aand group(x−a)=limx→a(cos(x−a)cosa−sin(x−a)sina)apply the identity for the cosine of the sum of two angles=cos(limx→a(x−a))cosa−sin(limx→a(x−a))sinalimx→a(x−a)=0,andsinxandcosxare continuous at 0=cos(0)cosa−sin(0)sinaevaluate cos(0) and sin(0) and simplify=1⋅cosa−0⋅sina=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. (See (Figure)).
![A diagram illustrating the intermediate value theorem. There is a generic continuous curved function shown over the interval [a,b]. The points fa. and fb. are marked, and dotted lines are drawn from a, b, fa., and fb. to the points (a, fa.) and (b, fb.). A third point, c, is plotted between a and b. Since the function is continuous, there is a value for fc. along the curve, and a line is drawn from c to (c, fc.) and from (c, fc.) to fc., which is labeled as z on the y axis.](https://s3-us-west-2.amazonaws.com/courses-images/wp-content/uploads/sites/2332/2018/01/11203518/CNX_Calc_Figure_02_04_007.jpg)
Figure 7. There is a number c∈[a,b] that satisfies f(c)=z.
Application of the Intermediate Value Theorem
Show that f(x)=x−cosx has at least one zero.
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.
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]?
Show that f(x)=x3−x2−3x+1 has a zero over the interval [0,1].
Hint
Find f(0) and f(1). 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 f(x) is continuous at L and limx→ag(x)=L, then limx→af(g(x))=f(limx→ag(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.
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.
1. f(x)=1√x
2. f(x)=2x2+1
3. f(x)=xx2−x
4. g(t)=t−1+1
5. f(x)=5ex−2
6. f(x)=|x−2|x−2
7. H(x)=tan2x
8. f(t)=t+3t2+5t+6
For the following exercises, decide if the function continuous at the given point. If it is discontinuous, what type of discontinuity is it?
9. 2x2−5x+3x−1 at x=1
10. h(θ)=sinθ−cosθtanθ at θ=π
11. g(u)={6u2+u−22u−1ifu≠1272ifu=12 at u=12
12. f(y)=sin(πy)tan(πy), at y=1
13. f(x)={x2−exifx<0x−1ifx≥0 at x=0
14. f(x)={xsinxifx≤πxtanxifx>π at x=π
In the following exercises, find the value(s) of k that makes each function continuous over the given interval.
15. f(x)={3x+2ifx<k2x−3ifk≤x≤8
16. f(θ)={sinθif0≤θ<π2cos(θ+k)ifπ2≤θ≤π
17. f(x)={x2+3x+2x+2ifx≠−2kifx=−2
18. f(x)={ekxif0≤x<4x+3if4≤x≤8
19. f(x)={√kxif0≤x≤3x+1if3<x≤10
In the following exercises, use the Intermediate Value Theorem (IVT).
20. Let h(x)={3x2−4ifx≤25+4xifx>2 Over the interval [0,4], there is no value of x such that h(x)=10, although h(0)<10 and h(4)>10. Explain why this does not contradict the IVT.
21. A particle moving along a line has at each time t a position function s(t), which is continuous. Assume s(2)=5 and s(5)=2. Another particle moves such that its position is given by h(t)=s(t)−t. Explain why there must be a value c for [latex]2
22. [T] Use the statement “The cosine of t is equal to t cubed.”
- Write the statement as a mathematical equation.
- 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 of the equation.
23. Apply the IVT to determine whether 2x=x3 has a solution in one of the intervals [1.25,1.375] or [1.375,1.5]. Briefly explain your response for each interval.
24. Consider the graph of the function y=f(x) shown in the following graph.
- Find all values for which the function is discontinuous.
- For each value in part a., use the formal definition of continuity to explain why the function is discontinuous at that value.
- Classify each discontinuity as either jump, removable, or infinite.
25. Let f(x)={3xifx>1x3ifx<1
- Sketch the graph of f.
- Is it possible to find a value k such that f(1)=k, which makes f(x) continuous for all real numbers? Briefly explain.
26. Let f(x)=x4−1x2−1 for x≠−1,1.
- Sketch the graph of f.
- Is it possible to find values k1 and k2 such that f(−1)=k1 and f(1)=k2, and that makes f(x) continuous for all real numbers? Briefly explain.
27. Sketch the graph of the function y=f(x) with properties i. through vii.
- The domain of f is (−∞,+∞).
- f has an infinite discontinuity at x=−6.
- f(−6)=3
- limx→−3−f(x)=limx→−3+f(x)=2
- f(−3)=3
- f is left continuous but not right continuous at x=3.
- limx→−∞f(x)=−∞ and limx→+∞f(x)=+∞
28. Sketch the graph of the function y=f(x) with properties i. through iv.
- The domain of f is [0,5].
- limx→1+f(x) and limx→1−f(x) exist and are equal.
- f(x) is left continuous but not continuous at x=2, and right continuous but not continuous at x=3.
- f(x) has a removable discontinuity at x=1, a jump discontinuity at x=2, and the following limits hold: limx→3−f(x)=−∞ and limx→3+f(x)=2.
In the following exercises, suppose y=f(x) is defined for all x. For each description, sketch a graph with the indicated property.
29. Discontinuous at x=1 with limx→−1f(x)=−1 and limx→2f(x)=4
30. Discontinuous at x=2 but continuous elsewhere with limx→0f(x)=12
Determine whether each of the given statements is true. Justify your response with an explanation or counterexample.
31. f(t)=2et−e−t is continuous everywhere.
32. If the left- and right-hand limits of f(x) as x→a exist and are equal, then f cannot be discontinuous at x=a.
33. If a function is not continuous at a point, then it is not defined at that point.
34. According to the IVT, cosx−sinx−x=2 has a solution over the interval [−1,1].
35. If f(x) is continuous such that f(a) and f(b) have opposite signs, then f(x)=0 has exactly one solution in [a,b].
36. The function f(x)=x2−4x+3x2−1 is continuous over the interval [0,3].
37. If f(x) is continuous everywhere and f(a),f(b)>0, then there is no root of f(x) in the interval [a,b].
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 F(r)=ke|q1q2|r2, where ke is Coulomb’s constant, qi are the magnitudes of the charges of the two particles, and r is the distance between the two particles.
38. [T] To simplify the calculation of a model with many interacting particles, after some threshold value r=R, 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 1.6022×10−19coulombs (C), and the Coulomb constant ke=8.988×109Nm2/C2 are 1 m apart. Also, assume R<1m. 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?
39. [T] Instead of making the force 0 at R, instead we let the force be 10−20 for r≥R. Assume two protons, which have a magnitude of charge 1.6022×10−19C, and the Coulomb constant ke=8.988×109Nm2/C2. Is there a value R that can make this system continuous? If so, find it.
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 F(d)=−mk/d2, 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.
40. [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.)
41. [T] After a certain distance D has passed, the gravitational effect of Earth becomes quite negligible, so we can approximate the force function by F(d)={−mkd2ifd<D10,000ifd≥D Find the necessary condition D such that the force function remains continuous.
42. 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 F(d)={−m1kd2ifd<D−m2kd2ifd≥D Is there a D value such that this function is continuous, assuming m1≠m2?
Prove the following functions are continuous everywhere
43. f(θ)=sinθ
44. g(x)=|x|
45. Where is f(x)={0ifxis irrational1ifxis rational continuous?
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) limx→af(x) exists, and (3) limx→af(x)=f(a)
- continuity from the left
- A function is continuous from the left at b if limx→b−f(x)=f(b)
- continuity from the right
- A function is continuous from the right at a if limx→a+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 limx→a−f(x)=±∞ or limx→a+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 limx→a−f(x) and limx→a+f(x) both exist, but limx→a−f(x)≠limx→a+f(x)
- removable discontinuity
- A removable discontinuity occurs at a point a if f(x) is discontinuous at a, but limx→af(x) exists
Candela Citations
- Calculus I. Provided by: OpenStax. Located at: http://cnx.org/contents/8b89d172-2927-466f-8661-01abc7ccdba4@2.89. License: CC BY-NC-SA: Attribution-NonCommercial-ShareAlike. License Terms: Download for free at http://cnx.org/contents/8b89d172-2927-466f-8661-01abc7ccdba4@2.89
Hint
Check each condition of the definition.