Active Calculus · 1: Understanding the Derivative

1.7: Limits, Continuity, and Differentiability

Motivating Questions
  • What does it mean graphically to say that ff has limit LL as x→a?x \to a\text{?} How is this connected to having a left-hand limit at x=ax = a and having a right-hand limit at x=a?x = a\text{?}
  • What does it mean to say that a function ff is continuous at x=a?x = a\text{?} What role do limits play in determining whether or not a function is continuous at a point?
  • What does it mean graphically to say that a function ff is differentiable at x=a?x = a\text{?} How is this connected to the function being locally linear?
  • How are the characteristics of a function having a limit, being continuous, and being differentiable at a given point related to one another?

In Section 1.2, we learned how limits can be used to study the trend of a function near a fixed input value. In this section, we aim to quantify how the function acts and how its values change near a particular point. If the function has a limit LL at x=a,x = a\text{,} we will consider how the value of the function f(a)f(a) is related to lim⁡x→af(x),\lim_{x \to a} f(x)\text{,} and whether or not the function has a derivative f′(a)f'(a) at x=a.x = a\text{.}

Preview Activity 1.7.11.7.1

A function ff defined on −4<x<4-4 \lt x \lt 4 is given by the graph in Figure 1.7.11.7.1. Use the graph to answer each of the following questions. Note: to the right of x=2,x = 2\text{,} the graph of ff is exhibiting infinite oscillatory behavior similar to the function sin⁡(πx)\sin(\frac{\pi}{x}) that we encountered in the key example early in Section 1.2.

  1. For each of the values a=−3,−2,−1,0,1,2,3,a = -3, -2, -1, 0, 1, 2, 3\text{,} determine whether or not lim⁡x→af(x)\lim_{x \to a} f(x) exists. If the function has a limit LL at a given point, state the value of the limit using the notation lim⁡x→af(x)=L.\lim_{x \to a} f(x) = L\text{.} If the function does not have a limit at a given point, write a sentence to explain why.
  2. For each of the values of aa from part (a) where ff has a limit, determine the value of f(a)f(a) at each such point. In addition, for each such aa value, does f(a)f(a) have the same value as lim⁡x→af(x)?\lim_{x \to a} f(x)\text{?}
  3. For each of the values a=−3,−2,−1,0,1,2,3,a = -3, -2, -1, 0, 1, 2, 3\text{,} determine whether or not f′(a)f'(a) exists. In particular, based on the given graph, ask yourself if it is reasonable to say that ff has a tangent line at (a,f(a))(a,f(a)) for each of the given aa-values. If so, visually estimate the slope of the tangent line to find the value of f′(a).f'(a)\text{.}

1_7_PA1.svg

Figure 1.7.11.7.1. The graph of y=f(x).y = f(x)\text{.}

Having a limit at a point

In Section 1.2, we learned that ff has limit LL as xx approaches aa provided that we can make the value of f(x)f(x) as close to LL as we like by taking xx sufficiently close (but not equal to) a.a\text{.} If so, we write lim⁡x→af(x)=L.\lim_{x \to a} f(x) = L\text{.}

Essentially there are two behaviors that a function can exhibit near a point where it fails to have a limit. In Figure 1.7.21.7.2 , at left we see a function ff whose graph shows a jump at a=1.a = 1\text{.} If we let xx approach 1 from the left side, the value of ff approaches 2, but if we let xx approach 11 from the right, the value of ff tends to 3. Because the value of ff does not approach a single number as xx gets arbitrarily close to 1 from both sides, we know that ff does not have a limit at a=1.a = 1\text{.}

For such cases, we introduce the notion of left and right (or one-sided) limits.

Definition 1.7.11.7.1

We say that ff has limit L1L_1 as xx approaches aa from the left and write

lim⁡x→a−f(x)=L1 \lim_{x \to a^-} f(x) = L_1

provided that we can make the value of f(x)f(x) as close to L1L_1 as we like by taking xx sufficiently close to aa while always having x<a.x \lt a\text{.} We call L1L_1 the left-hand limit of ff as xx approaches a.a\text{.} Similarly, we say L2L_2 is the right-hand limit of ff as xx approaches aa and write

lim⁡x→a+f(x)=L2 \lim_{x \to a^+} f(x) = L_2

provided that we can make the value of f(x)f(x) as close to L2L_2 as we like by taking xx sufficiently close to aa while always having x>a.x \gt a\text{.}

In the graph of the function ff in Figure 1.7.21.7.2, we see that

lim⁡x→1−f(x)=2  and lim⁡x→1+f(x)=3. \lim_{x \to 1^-} f(x) = 2 \ \ \text{and} \ \lim_{x \to 1^+} f(x) = 3\text{.}

Precisely because the left and right limits are not equal, the overall limit of ff as x→1x \to 1 fails to exist.

1_7_NoLimit.svg

Figure 1.7.21.7.2. Functions ff and gg that each fail to have a limit at a=1.a = 1\text{.}

For the function gg pictured at right in Figure 1.7.21.7.2, the function fails to have a limit at a=1a = 1 for a different reason. While the function does not have a jump in its graph at a=1,a = 1\text{,} it is still not the case that gg approaches a single value as xx approaches 1. In particular, due to the infinitely oscillating behavior of gg to the right of a=1,a = 1\text{,} we say that the right-hand limit of gg as x→1+x \to 1^+ does not exist, and thus lim⁡x→1g(x) does not exist.\lim_{x \to 1} g(x) \ \text{does not exist} \text{.}

To summarize, if either a left- or right-hand limit fails to exist or if the left- and right-hand limits are not equal to each other, the overall limit does not exist.

Note

A function ff has limit LL as x→ax \to a if and only if

lim⁡x→a−f(x)=L=lim⁡x→a+f(x). \lim_{x \to a^-} f(x) = L = \lim_{x \to a^+} f(x)\text{.}

That is, a function has a limit at x=ax = a if and only if both the left- and right-hand limits at x=ax = a exist and have the same value.

In Preview Activity 1.7.11.7.1, the function ff given in Figure 1.7.11.7.1fails to have a limit at only two values: at a=−2a = -2 (where the left- and right-hand limits are 2 and −1,-1\text{,} respectively) and at x=2,x = 2\text{,} where lim⁡x→2+f(x)\lim_{x \to 2^+} f(x) does not exist). Note well that even at values such as a=−1a = -1 and a=0a = 0 where there are holes in the graph, the limit still exists.

Activity 1.7.21.7.2

Consider a function that is piecewise-defined according to the formula

f(x)={3(x+2)+2 for −3<x<−2 23(x+2)+1 for −2≤x<−1 23(x+2)+1 for −1<x<1 2 for x=1 4−x for x>1  f(x) = \begin{cases}3(x+2)+2 & \text{ for −3<x<−2-3 \lt x \lt -2 } \\[4pt] \frac{2}{3}(x+2)+1 & \text{ for −2≤x<−1-2 \le x \lt -1 } \\[4pt] \frac{2}{3}(x+2)+1 & \text{ for −1<x<1-1 \lt x \lt 1 } \\[4pt] 2 & \text{ for x=1x = 1 } \\[4pt] 4-x & \text{ for x>1x \gt 1 } \end{cases}

Use the given formula to answer the following questions.

1_7_Act1.svg

Figure 1.7.31.7.3. Axes for plotting the function y=f(x)y = f(x) in Activity 1.7.21.7.2.
  1. For each of the values a=−2,−1,0,1,2,a = -2, -1, 0, 1, 2\text{,} compute f(a).f(a)\text{.}
  2. For each of the values a=−2,−1,0,1,2,a = -2, -1, 0, 1, 2\text{,} determine lim⁡x→a−f(x)\lim_{x \to a^-} f(x) and lim⁡x→a+f(x).\lim_{x \to a^+} f(x)\text{.}
  3. For each of the values a=−2,−1,0,1,2,a = -2, -1, 0, 1, 2\text{,} determine lim⁡x→af(x).\lim_{x \to a} f(x)\text{.} If the limit fails to exist, explain why by discussing the left- and right-hand limits at the relevant aa-value.
  4. For which values of aa is the following statement true?
    lim⁡x→af(x)≠f(a) \lim_{x \to a} f(x) \ne f(a)
  5. On the axes provided in Figure 1.7.31.7.3, sketch an accurate, labeled graph of y=f(x).y = f(x)\text{.} Be sure to carefully use open circles (∘\circ) and filled circles (∙\bullet) to represent key points on the graph, as dictated by the piecewise formula.

Being continuous at a point

Intuitively, a function is continuous if we can draw its graph without ever lifting our pencil from the page. Alternatively, we might say that the graph of a continuous function has no jumps or holes in it. In Figure 1.7.41.7.4 we consider three functions that have a limit at a=1,a = 1\text{,} and use them to make the idea of continuity more precise.

1_7_Cont.svg

Figure 1.7.41.7.4. Functions f,f\text{,} g,g\text{,} and hh that demonstrate subtly different behaviors at a=1.a = 1\text{.}

First consider the function in the left-most graph. Note that f(1)f(1) is not defined, which leads to the resulting hole in the graph of ff at a=1.a = 1\text{.} We will naturally say that ff is not continuous at a=1a = 1. For the function g,g\text{,} we observe that while lim⁡x→1g(x)=3,\lim_{x \to 1} g(x) = 3\text{,} the value of g(1)=2,g(1) = 2\text{,} and thus the limit does not equal the function value. Here, too, we will say that gg is not continuous, even though the function is defined at a=1.a = 1\text{.} Finally, the function hh appears to be the most well-behaved of all three, since at a=1a = 1 its limit and its function value agree. That is,

lim⁡x→1h(x)=3=h(1). \lim_{x \to 1} h(x) = 3 = h(1)\text{.}

With no hole or jump in the graph of hh at a=1,a = 1\text{,} we say that hh is continuous there. More formally, we make the following definition.

Definition 1.7.21.7.2

A function ff is continuous at x=ax = a provided that

a. ff has a limit as x→a,x \to a\text{,}

b. ff is defined at x=a,x = a\text{,} and

c. lim⁡x→af(x)=f(a).\lim_{x \to a} f(x) = f(a)\text{.}

Conditions (a) and (b) are technically contained implicitly in (c), but we state them explicitly to emphasize their individual importance. The definition says that a function is continuous at x=ax = a provided that its limit as x→ax \to a exists and equals its function value at x=a.x = a\text{.} If a function is continuous at every point in an interval [a,b],[a,b]\text{,} we say the function is “continuous on [a,b].[a,b]\text{.}” If a function is continuous at every point in its domain, we simply say the function is “continuous.” Thus, continuous functions are particularly nice: to evaluate the limit of a continuous function at a point, all we need to do is evaluate the function.

For example, consider p(x)=x2−2x+3.p(x) = x^2 - 2x + 3\text{.} It can be proved that every polynomial is a continuous function at every real number, and thus if we would like to know lim⁡x→2p(x),\lim_{x \to 2} p(x)\text{,} we simply compute

lim⁡x→2(x2−2x+3)=22−2⋅2+3=3. \lim_{x \to 2} (x^2 - 2x + 3) = 2^2 - 2 \cdot 2 + 3 = 3\text{.}

This route of substituting an input value to evaluate a limit works whenever we know that the function being considered is continuous. Besides polynomial functions, all exponential functions and the sine and cosine functions are continuous at every point, as are many other familiar functions and combinations thereof.

Activity 1.7.31.7.3

This activity builds on your work in Preview Activity 1.7.11.7.1 , using the same function ff as given by the graph that is repeated in Figure 1.7.51.7.5.

1_7_PA1.svg

Figure 1.7.51.7.5. The graph of y=f(x)y = f(x) for Activity 1.7.31.7.3.
  1. At which values of aa does lim⁡x→af(x)\lim_{x \to a} f(x) not exist?
  2. At which values of aa is f(a)f(a) not defined?
  3. At which values of aa does ff have a limit, but lim⁡x→af(x)≠f(a)?\lim_{x \to a} f(x) \ne f(a)\text{?}
  4. State all values of aa for which ff is not continuous at x=a.x = a\text{.}
  5. Which condition is stronger, and hence implies the other: ff has a limit at x=ax = a or ff is continuous at x=a?x = a\text{?} Explain, and hence complete the following sentence: “If ff at x=a,x = a\text{,} then ff at x=a,x = a\text{,}” where you complete the blanks with has a limit and is continuous, using each phrase once.

Being differentiable at a point

We recall that a function ff is said to be differentiable at x=ax = a if f′(a)f'(a) exists. Moreover, for f′(a)f'(a) to exist, we know that the function y=f(x)y = f(x) must have a tangent line at the point (a,f(a)),(a,f(a))\text{,} since f′(a)f'(a) is precisely the slope of this line. In order to even ask if ff has a tangent line at (a,f(a)),(a,f(a))\text{,} it is necessary that ff be continuous at x=a:x = a\text{:} if ff fails to have a limit at x=a,x = a\text{,} if f(a)f(a) is not defined, or if f(a)f(a) does not equal the value of lim⁡x→af(x),\lim_{x \to a} f(x)\text{,} then it doesn't make sense to talk about a tangent line to the curve at this point.

Indeed, it can be proved formally that if a function ff is differentiable at x=a,x = a\text{,} then it must be continuous at x=a.x = a\text{.} So, if ff is not continuous at x=a,x = a\text{,} then it is automatically the case that ff is not differentiable there. For example, in Figure 1.7.21.7.2, both ff and gg fail to be differentiable at x=1x = 1 because neither function is continuous at x=1.x = 1\text{.} But can a function fail to be differentiable at a point where the function is continuous?

In Figure 1.7.61.7.6, the function has a sharp corner at a point. For the pictured function f,f\text{,} we observe that ff is clearly continuous at a=1,a = 1\text{,} since lim⁡x→1f(x)=1=f(1).\lim_{x \to 1} f(x) = 1 = f(1)\text{.}

1_7_NotDiff.svg

Figure 1.7.61.7.6. A function ff that is continuous at a=1a = 1 but not differentiable at a=1;a = 1\text{;} at right, we zoom in on the point (1,1)(1,1) in a magnified version of the box in the left-hand plot.

But the function ff in Figure 1.7.61.7.6 is not differentiable at a=1a = 1 because f′(1)f'(1) fails to exist. One way to see this is to observe that f′(x)=−1f'(x) = -1 for every value of xx that is less than 1, while f′(x)=+1f'(x) = +1 for every value of xx that is greater than 1. That makes it seem that either +1+1 or −1-1 would be equally good candidates for the value of the derivative at x=1.x = 1\text{.} Alternately, we could use the limit definition of the derivative to attempt to compute f′(1),f'(1)\text{,} and discover that the derivative does not exist. Finally, we can see visually that the function ff in Figure 1.7.61.7.6 does not have a tangent line. When we zoom in on (1,1)(1,1) on the graph of f,f\text{,} no matter how closely we examine the function, it will always look like a “V”, and never like a single line, which tells us there is no possibility for a tangent line there.

If a function does have a tangent line at a given point, when we zoom in on the point of tangency, the function and the tangent line should appear essentially indistinguishable 1 . Conversely, if we zoom in on a point and the function looks like a single straight line, then the function should have a tangent line there, and thus be differentiable. Hence, a function that is differentiable at x=ax = a will, up close, look more and more like its tangent line at (a,f(a)).(a,f(a))\text{.} Therefore, we say that a function that is differentiable at x=ax = a is locally linear.

See, for instance, http://gvsu.edu/s/6J for an applet (due to David Austin, GVSU) where zooming in shows the increasing similarity between the tangent line and the curve.

To summarize the preceding discussion of differentiability and continuity, we make several important observations.

Note
  • If ff is differentiable at x=a,x = a\text{,} then ff is continuous at x=a.x = a\text{.} Equivalently, ifff fails to be continuous at x=a,x = a\text{,} then ff will not be differentiable at x=a.x = a\text{.}
  • A function can be continuous at a point, but not be differentiable there. In particular, a function ff is not differentiable at x=ax = a if the graph has a sharp corner (or cusp) at the point (a,f(a)).(a,f(a))\text{.}
  • If ff is differentiable at x=a,x = a\text{,} then ff is locally linear at x=a.x = a\text{.} That is, when a function is differentiable, it looks linear when viewed up close because it resembles its tangent line there.
Activity 1.7.41.7.4

In this activity, we explore two different functions and classify the points at which each is not differentiable. Let gg be the function given by the rule g(x)=∣x∣,g(x) = |x|\text{,} and let ff be the function that we have previously explored in Preview Activity 1.7.11.7.1, whose graph is given again in Figure 1.7.71.7.7.

1_7_PA1.svg

Figure 1.7.71.7.7. The graph of y=f(x)y = f(x) for Activity 1.7.41.7.4 .

a. Reasoning visually, explain why gg is differentiable at every point xx such that x≠0.x \ne 0\text{.}

b. Use the limit definition of the derivative to show that g′(0)=lim⁡h→0∣h∣h.g'(0) = \lim_{h \to 0} \frac{|h|}{h}\text{.}

c. Explain why g′(0)g'(0) fails to exist by using small positive and negative values of h.h\text{.}

d. State all values of aa for which ff is not differentiable at x=a.x = a\text{.} For each, provide a reason for your conclusion.

e. True or false: if a function pp is differentiable at x=b,x = b\text{,} then lim⁡x→bp(x)\lim_{x \to b} p(x) must exist. Why?

Summary

  • A function ff has limit LL as x→ax \to a if and only if ff has a left-hand limit at x=a,x = a\text{,} ff has a right-hand limit at x=a,x = a\text{,} and the left- and right-hand limits are equal. Visually, this means that there can be a hole in the graph at x=a,x = a\text{,} but the function must approach the same single value from either side of x=a.x = a\text{.}
  • A function ff is continuous at x=ax = a whenever f(a)f(a) is defined, ff has a limit as x→a,x \to a\text{,} and the value of the limit and the value of the function agree. This guarantees that there is not a hole or jump in the graph of ff at x=a.x = a\text{.}
  • A function ff is differentiable at x=ax = a whenever f′(a)f'(a) exists, which means that ff has a tangent line at (a,f(a))(a,f(a)) and thus ff is locally linear at x=a.x = a\text{.} Informally, this means that the function looks like a line when viewed up close at (a,f(a))(a,f(a)) and that there is not a corner point or cusp at (a,f(a)).(a,f(a))\text{.}
  • Of the three conditions discussed in this section (having a limit at x=a,x = a\text{,} being continuous at x=a,x = a\text{,} and being differentiable at x=ax = a), the strongest condition is being differentiable, and the next strongest is being continuous. In particular, if ff is differentiable at x=a,x = a\text{,} then ff is also continuous at x=a,x = a\text{,} and if ff is continuous at x=a,x = a\text{,} then ff has a limit at x=a.x = a\text{.}

Credit and licence

This page titled 1.7: Limits, Continuity, and Differentiability was last modified on Thu, 28 Sep 2023 14:50:24 GMT and is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Matthew Boelkins, David Austin, and Steven Schlicker ( ScholarWorks @Grand Valley State University ) via source content that was edited to the style and standards of the LibreTexts platform.

Source: https://math.libretexts.org/Bookshelves/Calculus/Active_Calculus_(Boelkins_et_al.)/01%3A_Understanding_the_Derivative/1.07%3A_Limits_Continuity_and_Differentiability

Licence: CC BY-SA 4.0 (creativecommons.org/licenses/by-sa/4.0/). You may share and adapt it under the same licence, with this credit. WorldClass adapted the formatting only: the text is the authors', with interactive parts and links to other sites left out.

Build status · Flash Infinity AI™ is a trademark of AI-Flash Inc.. WorldClass is not affiliated with, approved or accredited by any exam board, curriculum provider or university unless a page says so.