Skip to main content

Section 1.4 Limits, Continuity, and Differentiability

In Section 1.1, 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 \(L\) at \(x = a\text{,}\) we will consider how the value of the function \(f(a)\) is related to \(\lim_{x \to a} f(x)\text{,}\) and whether or not the function has a derivative \(f'(a)\) at \(x = a\text{.}\)

Preview Activity 1.4.1.

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

  1. For each of the values \(a = -3, -2, -1, 0, 1, 2, 3\text{,}\) determine whether or not \(\lim_{x \to a} f(x)\) exists. If the function has a limit \(L\) at a given point, state the value of the limit using the notation \(\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 \(a\) from part (a) where \(f\) has a limit, determine the value of \(f(a)\) at each such point. In addition, for each such \(a\) value, does \(f(a)\) have the same value as \(\lim_{x \to a} f(x)\text{?}\)

  3. For each of the values \(a = -3, -2, -1, 0, 1, 2, 3\text{,}\) determine whether or not \(f'(a)\) exists. In particular, based on the given graph, ask yourself if it is reasonable to say that \(f\) has a tangent line at \((a,f(a))\) for each of the given \(a\)-values. If so, visually estimate the slope of the tangent line to find the value of \(f'(a)\text{.}\)

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

Subsection 1.4.1 Having a limit at a point

In Section 1.1, we learned that \(f\) has limit \(L\) as \(x\) approaches \(a\) provided that we can make the value of \(f(x)\) as close to \(L\) as we like by taking \(x\) sufficiently close (but not equal to) \(a\text{.}\) If so, we write \(\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.4.3, at left we see a function \(f\) whose graph shows a jump at \(a = 1\text{.}\) If we let \(x\) approach 1 from the left side, the value of \(f\) approaches 2, but if we let \(x\) approach \(1\) from the right, the value of \(f\) tends to 3. Because the value of \(f\) does not approach a single number as \(x\) gets arbitrarily close to 1 from both sides, we know that \(f\) does not have a limit at \(a = 1\text{.}\)

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

Definition 1.4.2.

We say that \(f\) has limit \(L_1\) as \(x\) approaches \(a\) from the left and write

\begin{equation*} \lim_{x \to a^-} f(x) = L_1 \end{equation*}

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

\begin{equation*} \lim_{x \to a^+} f(x) = L_2 \end{equation*}

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

In the graph of the function \(f\) in Figure 1.4.3, we see that

\begin{equation*} \lim_{x \to 1^-} f(x) = 2 \ \ \text{and} \ \lim_{x \to 1^+} f(x) = 3\text{.} \end{equation*}

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

Figure 1.4.3. Functions \(f\) and \(g\) that each fail to have a limit at \(a = 1\text{.}\)

For the function \(g\) pictured at right in Figure 1.4.3, the function fails to have a limit at \(a = 1\) for a different reason. While the function does not have a jump in its graph at \(a = 1\text{,}\) it is still not the case that \(g\) approaches a single value as \(x\) approaches 1. In particular, due to the infinitely oscillating behavior of \(g\) to the right of \(a = 1\text{,}\) we say that the right-hand limit of \(g\) as \(x \to 1^+\) does not exist, and thus \(\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.

A function \(f\) has limit \(L\) as \(x \to a\) if and only if

\begin{equation*} \lim_{x \to a^-} f(x) = L = \lim_{x \to a^+} f(x)\text{.} \end{equation*}

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

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

Activity 1.4.2.

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

\begin{equation*} f(x) = \begin{cases}3(x+2)+2 \amp \text{ for \(-3 \lt x \lt -2\) } \\ \frac{2}{3}(x+2)+1 \amp \text{ for \(-2 \le x \lt -1\) } \\ \frac{2}{3}(x+2)+1 \amp \text{ for \(-1 \lt x \lt 1\) } \\ 2 \amp \text{ for \(x = 1\) } \\ 4-x \amp \text{ for \(x \gt 1\) } \end{cases} \end{equation*}

Use the given formula to answer the following questions.

Figure 1.4.4. Axes for plotting the function \(y = f(x)\) in Activity 1.4.2.
  1. For each of the values \(a = -2, -1, 0, 1, 2\text{,}\) compute \(f(a)\text{.}\)

  2. For each of the values \(a = -2, -1, 0, 1, 2\text{,}\) determine \(\lim_{x \to a^-} f(x)\) and \(\lim_{x \to a^+} f(x)\text{.}\)

  3. For each of the values \(a = -2, -1, 0, 1, 2\text{,}\) determine \(\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 \(a\)-value.

  4. For which values of \(a\) is the following statement true?

    \begin{equation*} \lim_{x \to a} f(x) \ne f(a) \end{equation*}
  5. On the axes provided in Figure 1.4.4, sketch an accurate, labeled graph of \(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.

Hint
  1. Find the interval in which \(a\) lies and evaluate the function there.

  2. Remember that for \(\lim_{x \to a^-} f(x)\text{,}\) we only consider values of \(x\) such that \(x \lt a\text{.}\) Find the right formula to use in the piecewise definition for \(f\) to fit the values you are considering.

  3. Use your work in (c) and compare left- and right-hand limits.

  4. Use your work in (a) and (c).

  5. Note that \(f\) is piecewise linear.

Answer
  1. \(f(-2) = 1\text{;}\) \(f(-1)\) is not defined; \(f(0) = \frac{7}{3}\text{;}\) \(f(1) = 2\text{;}\) \(f(2) = 2\text{.}\)

  2. \begin{equation*} \lim_{x \to -2^-} f(x) = 2 \ \text{and} \lim_{x \to -2^+} f(x) = 1 \end{equation*}
    \begin{equation*} \lim_{x \to -1^-} f(x) = \frac{5}{3} \ \text{and} \lim_{x \to -1^+} f(x) = \frac{5}{3} \end{equation*}
    \begin{equation*} \lim_{x \to 0^-} f(x) = \frac{7}{3} \ \text{and} \lim_{x \to 0^+} f(x) = \frac{7}{3} \end{equation*}
    \begin{equation*} \lim_{x \to 1^-} f(x) = 3 \ \text{and} \lim_{x \to 1^+} f(x) = 3 \end{equation*}
    \begin{equation*} \lim_{x \to 2^-} f(x) = 2 \ \text{and} \lim_{x \to 2^+} f(x) = 2 \end{equation*}
  3. \(\lim_{x \to -2} f(x)\) does not exist. The values of the limits as \(x \to a\) for \(a = -1, 0, 1, 2\) are \(\frac{5}{3}, \frac{7}{3}, 3, 2\text{.}\)

  4. \(a = -2\text{,}\) \(a = -1\text{,}\) and \(a = 1\text{.}\)

Solution
  1. \(f(-2) = \frac{2}{3}(-2+2) + 1 = 1\text{;}\) \(f(-1)\) is not defined; \(f(0) = \frac{2}{3}(0+2)+1 = \frac{7}{3}\text{;}\) \(f(1) = 2\) (by the rule); \(f(2) = 4-2 = 2\text{.}\)

  2. \begin{equation*} \lim_{x \to -2^-} f(x) = 2 \ \text{and} \lim_{x \to -2^+} f(x) = 1 \end{equation*}
    \begin{equation*} \lim_{x \to -1^-} f(x) = \frac{5}{3} \ \text{and} \lim_{x \to -1^+} f(x) = \frac{5}{3} \end{equation*}
    \begin{equation*} \lim_{x \to 0^-} f(x) = \frac{7}{3} \ \text{and} \lim_{x \to 0^+} f(x) = \frac{7}{3} \end{equation*}
    \begin{equation*} \lim_{x \to 1^-} f(x) = 3 \ \text{and} \lim_{x \to 1^+} f(x) = 3 \end{equation*}
    \begin{equation*} \lim_{x \to 2^-} f(x) = 2 \ \text{and} \lim_{x \to 2^+} f(x) = 2 \end{equation*}
  3. \(\lim_{x \to -2} f(x)\) does not exists because the left-hand limit is \(2\) while the right-hand limit is \(1\text{.}\) All of the other requested limits exist, as left- and right-hand limits exist and are equal in each case. The respective values of the limits as \(x \to a\) for \(a = -1, 0, 1, 2\) are \(\frac{5}{3}, \frac{7}{3}, 3, 2\text{.}\)

  4. For \(a = -2\text{,}\) \(a = -1\text{,}\) and \(a = 1\text{,}\) \(\lim_{x \to a} f(x) \ne f(a)\text{.}\) At \(a = -2\text{,}\) the limit fails to exist, but \(f(-2) = 1\text{.}\) At \(a = -1\text{,}\) the limit is \(\frac{5}{3}\text{,}\) but \(f(-1)\) is not defined. At \(a = 1\text{,}\) the limit is 3, but \(f(1) = 2\text{.}\)

Subsection 1.4.2 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.4.5 we consider three functions that have a limit at \(a = 1\text{,}\) and use them to make the idea of continuity more precise.

Figure 1.4.5. Functions \(f\text{,}\) \(g\text{,}\) and \(h\) that demonstrate subtly different behaviors at \(a = 1\text{.}\)

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

\begin{equation*} \lim_{x \to 1} h(x) = 3 = h(1)\text{.} \end{equation*}

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

Definition 1.4.6.

A function \(f\) is continuous at \(x = a\) provided that

  1. \(f\) has a limit as \(x \to a\text{,}\)

  2. \(f\) is defined at \(x = a\text{,}\) and

  3. \(\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 = a\) provided that its limit as \(x \to a\) exists and equals its function value at \(x = a\text{.}\) If a function is continuous at every point in an interval \([a,b]\text{,}\) we say the function is “continuous on \([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) = 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 \to 2} p(x)\text{,}\) we simply compute

\begin{equation*} \lim_{x \to 2} (x^2 - 2x + 3) = 2^2 - 2 \cdot 2 + 3 = 3\text{.} \end{equation*}

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.4.3.

This activity builds on your work in Preview Activity 1.4.1, using the same function \(f\) as given by the graph that is repeated in Figure 1.4.7.

Figure 1.4.7. The graph of \(y = f(x)\) for Activity 1.4.3.
  1. At which values of \(a\) does \(\lim_{x \to a} f(x)\) not exist?

  2. At which values of \(a\) is \(f(a)\) not defined?

  3. At which values of \(a\) does \(f\) have a limit, but \(\lim_{x \to a} f(x) \ne f(a)\text{?}\)

  4. State all values of \(a\) for which \(f\) is not continuous at \(x = a\text{.}\)

  5. Which condition is stronger, and hence implies the other: \(f\) has a limit at \(x = a\) or \(f\) is continuous at \(x = a\text{?}\) Explain, and hence complete the following sentence: “If \(f\) at \(x = a\text{,}\) then \(f\) at \(x = a\text{,}\)” where you complete the blanks with has a limit and is continuous, using each phrase once.

Hint
  1. Consider the left- and right-hand limits at each value.

  2. Carefully examine places on the graph where there's an open circle.

  3. Are there locations on the graph where the function has a limit but there's a hole in the graph?

  4. Remember that at least one of three conditions must fail: if the function lacks a limit, if the function is undefined, or if the limit exists but does not equal the function value, then \(f\) is not continuous at the point.

  5. Note that the definition of being continuous requires the limit to exist.

Answer
  1. \(a = -2\text{;}\) \(a = +2\text{.}\)

  2. \(a = 3\text{.}\)

  3. \(a = -1\text{;}\) \(a = 3\text{.}\)

  4. \(a=-2\text{;}\) \(a = 2\text{;}\) \(a = 3\text{;}\) \(a = -1\text{.}\)

  5. “If \(f\) is continuous at \(x = a\text{,}\) then \(f\) has a limit at \(x = a\text{.}\)”

Solution
  1. \(\lim_{x \to a} f(x)\) does not exist at \(a = -2\) since \(\lim_{x \to -2^-} f(x) = 2 \ne -1 = \lim_{x \to -2^+}\) and \(\lim_{x \to a} f(x)\) does not exist at \(a = +2\) since \(\lim_{x \to 2^+} f(x)\) does not exist due to the infinitely oscillatory behavior of \(f\text{.}\)

  2. The only point at which \(f\) is not defined is at \(a = 3\text{.}\)

  3. At \(a = -1\text{,}\) note that \(\lim_{x \to -1} f(x)\) exists (and appears to have value approximately \(-3.25\)), but \(f(-1) = 1\text{,}\) and thus \(\lim_{x \to -1} f(x) \ne f(-1)\text{.}\) At \(a = 3\text{,}\) \(\lim_{x \to 3} f(x) = -2.5\text{,}\) but \(f(3)\) is not defined, so the limit exists but does not equal the function value.

  4. Based on our work in (a), (b), and (c), \(f\) is not continuous at \(a=-2\) and \(a = 2\) because \(f\) does not have a limit at those points; \(f\) is not continuous at \(a = 3\) since \(f\) is not defined there; and \(f\) is not continuous at \(a = -1\) because at that point its limit does not equal its function value.

  5. “If \(f\) is continuous at \(x = a\text{,}\) then \(f\) has a limit at \(x = a\text{,}\)” since one of the defining properties of “being continuous” at \(x = a\) is that the function has a limit at that input value. This shows that being continuous is a stronger condition than having a limit.

Subsection 1.4.3 Being differentiable at a point

We recall that a function \(f\) is said to be differentiable at \(x = a\) if \(f'(a)\) exists. Moreover, for \(f'(a)\) to exist, we know that the function \(y = f(x)\) must have a tangent line at the point \((a,f(a))\text{,}\) since \(f'(a)\) is precisely the slope of this line. In order to even ask if \(f\) has a tangent line at \((a,f(a))\text{,}\) it is necessary that \(f\) be continuous at \(x = a\text{:}\) if \(f\) fails to have a limit at \(x = a\text{,}\) if \(f(a)\) is not defined, or if \(f(a)\) does not equal the value of \(\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 \(f\) is differentiable at \(x = a\text{,}\) then it must be continuous at \(x = a\text{.}\) So, if \(f\) is not continuous at \(x = a\text{,}\) then it is automatically the case that \(f\) is not differentiable there. For example, in Figure 1.4.5, both \(f\) and \(g\) fail to be differentiable at \(x = 1\) because neither function is continuous at \(x = 1\text{.}\) But can a function fail to be differentiable at a point where the function is continuous?

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

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

But the function \(f\) in Figure 1.4.8 is not differentiable at \(a = 1\) because \(f'(1)\) fails to exist. One way to see this is to observe that \(f'(x) = -1\) for every value of \(x\) that is less than 1, while \(f'(x) = +1\) for every value of \(x\) that is greater than 1. That makes it seem that either \(+1\) or \(-1\) would be equally good candidates for the value of the derivative at \(x = 1\text{.}\) Alternately, we could use the limit definition of the derivative to attempt to compute \(f'(1)\text{,}\) and discover that the derivative does not exist. Finally, we can see visually that the function \(f\) in Figure 1.4.8 does not have a tangent line. When we zoom in on \((1,1)\) on the graph of \(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 = a\) will, up close, look more and more like its tangent line at \((a,f(a))\text{.}\) Therefore, we say that a function that is differentiable at \(x = 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.

  • If \(f\) is differentiable at \(x = a\text{,}\) then \(f\) is continuous at \(x = a\text{.}\) Equivalently, if\(f\) fails to be continuous at \(x = a\text{,}\) then \(f\) will not be differentiable at \(x = a\text{.}\)

  • A function can be continuous at a point, but not be differentiable there. In particular, a function \(f\) is not differentiable at \(x = a\) if the graph has a sharp corner (or cusp) at the point \((a,f(a))\text{.}\)

  • If \(f\) is differentiable at \(x = a\text{,}\) then \(f\) is locally linear at \(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.4.4.

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

Figure 1.4.9. The graph of \(y = f(x)\) for Activity 1.4.4.
  1. Reasoning visually, explain why \(g\) is differentiable at every point \(x\) such that \(x \ne 0\text{.}\)

  2. Use the limit definition of the derivative to show that \(g'(0) = \lim_{h \to 0} \frac{|h|}{h}\text{.}\)

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

  4. State all values of \(a\) for which \(f\) is not differentiable at \(x = a\text{.}\) For each, provide a reason for your conclusion.

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

Hint
  1. What type of function is \(g\) for all \(x \lt 0\text{?}\) For all \(x > 0\text{?}\)

  2. Recall that \(g'(0) = \lim_{h \to 0} \frac{g(0 + h) - g(0)}{h}\text{.}\)

  3. What is the value of \(|h|\) when \(h \lt 0\text{?}\)

  4. You might start by identifying points where \(f\) is not continuous.

  5. What does being differentiable at a point tell you about continuity there?

Answer
  1. \(g\) is piecewise linear.

  2. Show that

    \begin{equation*} g'(0) = \lim_{h \to 0} \frac{|h|}{h}\text{,} \end{equation*}

    which does not exist.

  3. \(a = -3, -2, -1, 1, 2, 3\text{.}\)

  4. True.

Solution
  1. We know that \(g(x) = |x|\) is given by the formula \(g(x) = -x\) when \(x \lt 0\) and by \(g(x) = x\) when \(x \ge 0\text{.}\) Each of these pieces of \(g\) is a straight line, so at every point other than the point where they meet, the function \(g\) has a well-defined slope, and thus is differentiable.

  2. Observe that

    \begin{align*} g'(0) =\mathstrut \amp \lim_{h \to 0} \frac{g(0+h)-g(0)}{h}\\ =\mathstrut \amp \lim_{h \to 0} \frac{|0+h|-|0|}{h}\\ =\mathstrut \amp \lim_{h \to 0} \frac{|h|}{h} \end{align*}
  3. Following up on our work in (b), note that whenever \(h > 0\text{,}\) \(|h| = h\text{,}\) and thus

    \begin{equation*} \lim_{h \to 0^+} \frac{|h|}{h} = \lim_{h \to 0^+} \frac{h}{h} = 1\text{,} \end{equation*}

    while whenever \(h \lt 0\text{,}\) \(|h| = -h\text{,}\) and thus

    \begin{equation*} \lim_{h \to 0^-} \frac{|h|}{h} = \lim_{h \to 0^-} \frac{-h}{h} = -1 \end{equation*}

    Since the right- and left-hand limits are not equal, it follows that

    \begin{equation*} g'(0) = \lim_{h \to 0} \frac{|h|}{h} \end{equation*}

    does not exist.

  4. \(f\) is not differentiable at \(a = -2, -1, 2, 3\) because at each of these points \(f\) is not continuous. In addition, \(f\) is not differentiable at \(a = -3\) and \(a = 1\) because the graph of \(f\) has a corner point (or cusp) at each of these values.

  5. True: if a function \(p\) is differentiable at \(x = b\text{,}\) then \(\lim_{x \to b} p(x)\) must exist. This is true because we know that if \(p\) is differentiable at a point, then \(p\) is continuous there, and anytime a function is continuous at a point, it must have a limit there.

Subsection 1.4.4 Summary

  • A function \(f\) has limit \(L\) as \(x \to a\) if and only if \(f\) has a left-hand limit at \(x = a\text{,}\) \(f\) has a right-hand limit at \(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\text{,}\) but the function must approach the same single value from either side of \(x = a\text{.}\)

  • A function \(f\) is continuous at \(x = a\) whenever \(f(a)\) is defined, \(f\) has a limit as \(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 \(f\) at \(x = a\text{.}\)

  • A function \(f\) is differentiable at \(x = a\) whenever \(f'(a)\) exists, which means that \(f\) has a tangent line at \((a,f(a))\) and thus \(f\) is locally linear at \(x = a\text{.}\) Informally, this means that the function looks like a line when viewed up close at \((a,f(a))\) and that there is not a corner point or cusp at \((a,f(a))\text{.}\)

  • Of the three conditions discussed in this section (having a limit at \(x = a\text{,}\) being continuous at \(x = a\text{,}\) and being differentiable at \(x = a\)), the strongest condition is being differentiable, and the next strongest is being continuous. In particular, if \(f\) is differentiable at \(x = a\text{,}\) then \(f\) is also continuous at \(x = a\text{,}\) and if \(f\) is continuous at \(x = a\text{,}\) then \(f\) has a limit at \(x = a\text{.}\)

Exercises 1.4.5 Exercises

1. Limit values of a piecewise graph.
2. Limit values of a piecewise formula.
3. Continuity and differentiability of a graph.
4. Continuity of a piecewise formula.
5.

Consider the graph of the function \(y = p(x)\) that is provided in Figure 1.4.10. Assume that each portion of the graph of \(p\) is a straight line, as pictured.

Figure 1.4.10. At left, the piecewise linear function \(y = p(x)\text{.}\) At right, axes for plotting \(y = p'(x)\text{.}\)
  1. State all values of \(a\) for which \(\lim_{x \to a} p(x)\) does not exist.

  2. State all values of \(a\) for which \(p\) is not continuous at \(a\text{.}\)

  3. State all values of \(a\) for which \(p\) is not differentiable at \(x = a\text{.}\)

  4. On the axes provided in Figure 1.4.10, sketch an accurate graph of \(y = p'(x)\text{.}\)

Answer
  1. \(a = 0\text{.}\)

  2. \(a = 0, 3\text{.}\)

  3. \(a = -2, 0, 1, 2, 3\text{.}\)

Solution
  1. The only value of \(a\) at which \(\lim_{x \to a} p(x)\) does not exist is \(a = 0\text{.}\) This is because \(\lim_{x \to 0^-} p(x) = 0 \ne -2 = \lim_{x \to 0^+} p(x)\text{.}\)

  2. \(p\) is not continuous at \(a = 0\) because \(\lim_{x \to 0} p(x)\) does not exist. In addition, \(p\) is not continuous at \(a=3\) because \(p(3)\) is not defined.

  3. \(p\) is not differentiable at \(a = 0\) and at \(a = 3\) since \(p\) is not continuous at these points. In addition, \(p\) is not differentiable at \(a = -2, 1, 2\) since \(p\) has corner points at these values, making \(p\) not have a tangent line at these values.

  4. Note that \(p\) is piecewise linear, so the value of the derivative of \(p\) (where it exists) is the slope of \(p\text{,}\) which will be constant on each interval where \(p\) is linear. In addition, note that \(p'\) is not defined at \(a = -2, 0, 1, 2, 3\text{,}\) which is reflected by open circles in the following plot.

6.

For each of the following prompts, give an example of a function that satisfies the stated criteria. A formula or a graph, with reasoning, is sufficient for each. If no such example is possible, explain why.

  1. A function \(f\) that is continuous at \(a = 2\) but not differentiable at \(a = 2\text{.}\)

  2. A function \(g\) that is differentiable at \(a = 3\) but does not have a limit at \(a=3\text{.}\)

  3. A function \(h\) that has a limit at \(a = -2\text{,}\) is defined at \(a = -2\text{,}\) but is not continuous at \(a = -2\text{.}\)

  4. A function \(p\) that satisfies all of the following:

    • \(p(-1) = 3\) and \(\lim_{x \to -1} p(x) = 2\)

    • \(p(0) = 1\) and \(p'(0) = 0\)

    • \(\lim_{x \to 1} p(x) = p(1)\) and \(p'(1)\) does not exist

Answer
  1. \(f(x) = |x-2|\text{.}\)

  2. Impossible.

  3. Let \(f\) be the function defined to be \(f(x) = 1\) for every value of \(x \ne -2\text{,}\) and such that \(f(-2) = 4\text{.}\)

Solution
  1. The function \(f(x) = |x-2|\) is continuous at \(a = 2\text{,}\) because \(f(2) = 0 = \lim_{x \to 2} f(x)\text{,}\) but not differentiable at \(a = 2\) because \(f\) has a corner point at \(a = 2\text{.}\)

  2. This is impossible. Any function that is differentiable at a point must have a limit at the point.

  3. Let \(f\) be the function defined to be \(f(x) = 1\) for every value of \(x \ne -2\text{,}\) and such that \(f(-2) = 4\text{.}\) This function has a limit of \(1\) as \(x \to -2\text{,}\) but since \(f(-2) = 4 \ne 1\text{,}\) the function is not continus at \(a = -2\text{.}\)

  4. A possible function \(p\) that has the desired properties is shown in the following figure.

7.

Let \(h(x)\) be a function whose derivative \(y= h'(x)\) is given by the graph on the right in Figure 1.4.11.

  1. Based on the graph of \(y = h'(x)\text{,}\) what can you say about the behavior of the function \(y = h(x)\text{?}\)

  2. At which values of \(x\) is \(y = h'(x)\) not defined? What behavior does this lead you to expect to see in the graph of \(y=h(x)\text{?}\)

  3. Is it possible for \(y = h(x)\) to have points where \(h\) is not continuous? Explain your answer.

  4. On the axes provided at left, sketch at least two distinct graphs that are possible functions \(y = h(x)\) that each have a derivative \(y = h'(x)\) that matches the provided graph at right. Explain why there are multiple possibilities for \(y = h(x)\text{.}\)

Figure 1.4.11. Axes for plotting \(y = h(x)\) and, at right, the graph of \(y = h'(x)\text{.}\)
Answer

Exercise Answer

Solution
  1. The function \(h\) must be piecewise linear since its derivative is piecewise constant. That is, wherever \(h'\) is constant, \(h\) must be linear. In particular, \(h\) must be piecewise linear with slope of \(1\) or \(-1\text{,}\) depending on the interval.

  2. \(h'(x)\) is not defined for \(x = -2, 0, 2\text{,}\) as reflected by the open circles on the graph of \(h'\text{.}\)

  3. It is possible that \(h\) is not continuous at \(x = -2, 0, 2\text{,}\) since \(h\) is not differnetiable at these points; everywhere else, \(h\) must be continuous.

  4. There are many different possible graphs for \(h\text{.}\) Two of them are shown in the following figure. The blue graph is one possible version of \(h\) that is continuous. Note that we can vertically shift that graph and its derivative will still be the given \(h'\text{.}\) Moreover, we can vertically shift any of the piecewise linear portions of \(h\) to generate a graph such as the one shown in red, which also has derivative \(h'\text{.}\)

8.

Consider the function \(g(x) = \sqrt{|x|}\text{.}\)

  1. Use a graph to explain visually why \(g\) is not differentiable at \(x = 0\text{.}\)

  2. Use the limit definition of the derivative to show that

    \begin{equation*} g'(0) = \lim_{h \to 0} \frac{\sqrt{|h|}}{h}\text{.} \end{equation*}
  3. Investigate the value of \(g'(0)\) by estimating the limit in (b) using small positive and negative values of \(h\text{.}\) For instance, you might compute \(\frac{\sqrt{|-0.01|}}{0.01}\text{.}\) Be sure to use several different values of \(h\) (both positive and negative), including ones closer to 0 than 0.01. What do your results tell you about \(g'(0)\text{?}\)

  4. Use your graph in (a) to sketch an approximate graph of \(y = g'(x)\text{.}\)

Answer
  1. At \(x = 0\text{.}\)

    \begin{align*} g'(0) & = \lim_{h \to 0} \frac{g(0+h) - g(0)}{h}\\ & = \lim_{h \to 0} \frac{\sqrt{|h|} - \sqrt{|0|}}{h}\\ & = \lim_{h \to 0} \frac{\sqrt{|h|}}{h} \end{align*}
  2. \(h\) \(0.1\) \(0.01\) \(0.001\) \(0.0001\) \(-0.1\) \(-0.01\) \(-0.001\) \(-0.0001\)
    \(\sqrt{|h|}/h\) \(3.162\) \(10\) \(31.62\) \(100\) \(-3.162\) \(-10\) \(-31.62\) \(-100\)

    \(g'(0)\) does not exist.

Solution
  1. As seen at left in the figure below in part (d), \(g\) has a sharp corner point at \(x = 0\text{,}\) which makes \(g\) not differentiable at this point.

    By definition, we know

    \begin{align*} g'(0) & = \lim_{h \to 0} \frac{g(0+h) - g(0)}{h}\\ & = \lim_{h \to 0} \frac{g(h) - g(0)}{h}\\ & = \lim_{h \to 0} \frac{\sqrt{|h|} - \sqrt{|0|}}{h}\\ & = \lim_{h \to 0} \frac{\sqrt{|h|}}{h} \end{align*}
  2. In the following table, we record the values of \(\frac{\sqrt{|h|}}{h}\) for small values of \(h\text{.}\)

    \(h\) \(0.1\) \(0.01\) \(0.001\) \(0.0001\) \(-0.1\) \(-0.01\) \(-0.001\) \(-0.0001\)
    \(\sqrt{|h|}/h\) \(3.162\) \(10\) \(31.62\) \(100\) \(-3.162\) \(-10\) \(-31.62\) \(-100\)

    These results show from a different perspective that \(g'(0)\) does not exist. For small negative \(h\) values, the difference quotient is negative and getting more negative without bound. For small positive values of \(h\text{,}\) the difference quotient is positive and increasing without bound. This shows that \(\lim_{h \to 0} \frac{\sqrt{|h|}}{h}\) does not exist.

  3. An approximate graph of \(g'\) is shown at right in the figure below.