Skip to main content
Logo image

Section 2.1 Limits of Functions

We’ve seen in Chapter 1 that functions can model many interesting phenomena, such as population growth and temperature patterns over time. We can use calculus to study how a function value changes in response to changes in the input variable.
Think about a falling ball whose position function is given by \(s(t) = 64 - 16t^2\text{.}\) The average rate of change (also called average velocity in this context) on the interval \([1,x]\) is given by
\begin{equation*} AROC_{[1,x]} = \frac{s(x) - s(1)}{x-1} = \frac{(64-16x^2) - (64-16)}{x-1} = \frac{16 - 16x^2}{x-1}\text{.} \end{equation*}
Note that the average velocity is a function of \(x\text{.}\) That is, the function \(g(x) = \frac{16 - 16x^2}{x-1}\) tells us the average velocity of the ball on the interval from \(t = 1\) to \(t = x\text{.}\) Calculus provides tools to describe how a function changes at a given instant; that is, at a single point in time. This is called the instantaneous rate of change, or in the context of a position function, the instantaneous velocity. To find the instantaneous velocity of the ball when \(t = 1\text{,}\) we need to know what happens to \(g(x)\) as \(x\) gets closer and closer to \(1\text{.}\) But also notice that \(g(1)\) is not defined, because it leads to the quotient \(0/0\text{.}\)
This is where the notion of a limit comes in. By using a limit, we can investigate the behavior of \(g(x)\) as \(x\) gets arbitrarily close, but not equal, to \(1\text{.}\) We first use the graph of a function to explore points where interesting behavior occurs.

Warm-Up 2.1.1.

Suppose that \(g\) is the function given by the graph below. Use the graph in Figure 2.1.1 to answer each of the following questions.
  1. Determine the values \(g(-2)\text{,}\) \(g(-1)\text{,}\) \(g(0)\text{,}\) \(g(1)\text{,}\) and \(g(2)\text{,}\) if defined. If the function value is not defined, explain what feature of the graph tells you this.
  2. For each of the values \(a = -1\text{,}\) \(a = 0\text{,}\) and \(a = 2\text{,}\) complete the following sentence: “As \(x\) gets closer and closer (but not equal) to \(a\text{,}\) \(g(x)\) gets as close as we want to .”
  3. What happens as \(x\) gets closer and closer (but not equal) to \(a = 1\text{?}\) Does the function \(g(x)\) get as close as we would like to a single value?
A piece-wise graph with holes at x equal zero, one, and two.
Figure 2.1.1. Graph of \(y = g(x)\) for Warm-Up 2.1.1.

Subsection 2.1.1 The Notion of Limit

Limits give us a way to identify a trend in the values of a function as its input variable approaches a particular value of interest. We need a precise understanding of what it means to say “a function \(f\) has limit \(L\) as \(x\) approaches \(a\text{.}\)” To begin, think about a recent example.
In Warm-Up 2.1.1, we saw that as \(x\) gets closer and closer (but not equal) to 0, \(g(x)\) gets as close as we want to the value 4. At first, this may feel counterintuitive, because the value of \(g(0)\) is \(1\text{,}\) not \(4\text{.}\) But limits describe the behavior of a function arbitrarily close to a fixed input, and the value of the function at the fixed input does not matter. More formally, 1  we say the following.

Definition 2.1.2.

Given a function \(f\text{,}\) a fixed input \(x = a\text{,}\) and a real number \(L\text{,}\) we say that \(f\) has limit \(L\) as \(x\) approaches \(a\), and write
\begin{equation*} \lim_{x \to a} f(x) = L \end{equation*}
provided that we can make \(f(x)\) as close to \(L\) as we like by taking \(x\) sufficiently close (but not equal) to \(a\text{.}\) If we cannot make \(f(x)\) as close to a single value as we would like as \(x\) approaches \(a\text{,}\) then we say that \(f\) does not have a limit as \(x\) approaches \(a\text{.}\)

Example 2.1.3.

For the function \(g\) pictured in Figure 2.1.1, we make the following observations:
\begin{equation*} \lim_{x \to -1} g(x) = 3, \ \lim_{x \to 0} g(x) = 4, \ \text{and} \ \lim_{x \to 2} g(x) = 1\text{.} \end{equation*}
When working from a graph, it suffices to ask if the function approaches a single value from each side of the fixed input. The function value at the fixed input is irrelevant. This reasoning explains the values of the three limits stated above.
However, \(g\) does not have a limit as \(x \to 1\text{.}\) There is a jump in the graph at \(x = 1\text{.}\) If we approach \(x = 1\) from the left, the function values tend to get close to 3, but if we approach \(x = 1\) from the right, the function values get close to 2. There is no single number that all of these function values approach. This is why the limit of \(g\) does not exist at \(x = 1\text{.}\)
Example 2.1.3 shows that when considering the limit of a function at a point, we must consider how the function behaves from the different sides of that point. Therefore, we introduce the notion of left and right (or one-sided) limits.

Definition 2.1.4.

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 2.1.5, 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.
Graphs of functions f and g that do not have limits at x equal one.
Figure 2.1.5. Functions \(f\) and \(g\) that each fail to have a limit at \(a = 1\text{.}\)
For the function \(g\) pictured at right in Figure 2.1.5, 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*}
For any function \(f\text{,}\) there are typically three ways to answer the question “does \(f\) have a limit at \(x = a\text{,}\) and if so, what is the limit?” The first is to reason graphically as we have just done with the example from Warm-Up 2.1.1. If we have a formula for \(f(x)\text{,}\) there are two additional possibilities:
  1. Evaluate the function at a sequence of inputs that approach \(a\) on either side (typically using some sort of computing technology), and ask if the sequence of outputs seems to approach a single value.
  2. Use the algebraic form of the function to understand the trend in its output values as the input values approach \(a\text{.}\)
The first approach produces only an approximation of the value of the limit, while the latter can often be used to determine the limit exactly.

Example 2.1.6. Limits of Two Functions.

For each of the following functions, we’d like to know whether or not the function has a limit at the stated \(a\)-values. Use both numerical and algebraic approaches to investigate and, if possible, estimate or determine the value of the limit. Compare the results with a careful graph of the function on an interval containing the points of interest.
  1. \(f(x) = \frac{4-x^2}{x+2}\text{;}\) \(a = -1\text{,}\) \(a = -2\)
  2. \(g(x) = \sin\left(\frac{\pi}{x}\right)\text{;}\) \(a = 3\text{,}\) \(a = 0\)
Solution.
a. We first construct a graph of \(f\) along with tables of values near \(a = -1\) and \(a = -2\text{.}\)
\(x\) \(f(x)\)
\(-0.9\) \(2.9\)
\(-0.99\) \(2.99\)
\(-0.999\) \(2.999\)
\(-0.9999\) \(2.9999\)
\(-1.1\) \(3.1\)
\(-1.01\) \(3.01\)
\(-1.001\) \(3.001\)
\(-1.0001\) \(3.0001\)
Table 2.1.7. Table of \(f\) values near \(x=-1\text{.}\)
\(x\) \(f(x)\)
\(-1.9\) \(3.9\)
\(-1.99\) \(3.99\)
\(-1.999\) \(3.999\)
\(-1.9999\) \(3.9999\)
\(-2.1\) \(4.1\)
\(-2.01\) \(4.01\)
\(-2.001\) \(4.001\)
\(-2.0001\) \(4.0001\)
Table 2.1.8. Table of \(f\) values near \(x=-2\text{.}\)
The graph of a function f which is a decreasing line with a hole at x equal negative two.
Figure 2.1.9. Plot of \(f(x)\) on \([-4,2]\text{.}\)
From Table 2.1.7, it appears that we can make \(f\) as close as we want to 3 by taking \(x\) sufficiently close to \(-1\text{,}\) which suggests that \(\lim_{x \to -1} f(x) = 3\text{.}\) This is also consistent with the graph of \(f\text{.}\) To see this a bit more rigorously and from an algebraic point of view, consider the formula for \(f\text{:}\) \(f(x) = \frac{4-x^2}{x+2}\text{.}\) As \(x \to -1\text{,}\) \((4-x^2) \to (4 - (-1)^2) = 3\text{,}\) and \((x+2) \to (-1 + 2) = 1\text{,}\) so as \(x \to -1\text{,}\) the numerator of \(f\) tends to 3 and the denominator tends to 1, hence \(\lim_{x \to -1} f(x) = \frac{3}{1} = 3\text{.}\)
The situation is more complicated when \(x \to -2\text{,}\) because \(f(-2)\) is not defined. If we try to use a similar algebraic argument regarding the numerator and denominator, we observe that as \(x \to -2\text{,}\) \((4-x^2) \to (4 - (-2)^2) = 0\text{,}\) and \((x+2) \to (-2 + 2) = 0\text{,}\) so as \(x \to -2\text{,}\) the numerator and denominator of \(f\) both tend to 0. We call \(0/0\) an indeterminate form. This tells us that there is somehow more work to do. From Table 2.1.8 and Figure 2.1.9, it appears that \(f\) should have a limit of \(4\) at \(x = -2\text{.}\)
To see algebraically why this is the case, observe that
\begin{align*} \lim_{x \to -2} f(x) = \amp \lim_{x \to -2} \frac{4-x^2}{x+2}\\ = \amp \lim_{x \to -2} \frac{(2-x)(2+x)}{x+2}\text{.} \end{align*}
It is important to observe that, since we are taking the limit as \(x \to -2\text{,}\) we are considering \(x\) values that are close, but not equal, to \(-2\text{.}\) Because we never actually allow \(x\) to equal \(-2\text{,}\) the quotient \(\frac{2+x}{x+2}\) has value 1 for every possible value of \(x\text{.}\) Thus, we can simplify the most recent expression above, and find that
\begin{equation*} \lim_{x \to -2} f(x) = \lim_{x \to -2} 2-x\text{.} \end{equation*}
This limit is now easy to determine, and its value clearly is \(4\text{.}\) Thus, from several points of view we’ve seen that \(\lim_{x \to -2} f(x) = 4\text{.}\)
b. Next we turn to the function \(g\text{,}\) and construct two tables and a graph.
\(x\) \(g(x)\)
\(2.9\) \(0.84864\)
\(2.99\) \(0.86428\)
\(2.999\) \(0.86585\)
\(2.9999\) \(0.86601\)
\(3.1\) \(0.88351\)
\(3.01\) \(0.86777\)
\(3.001\) \(0.86620\)
\(3.0001\) \(0.86604\)
Table 2.1.10.
\(x\) \(g(x)\)
\(-0.1\) \(0\)
\(-0.01\) \(0\)
\(-0.001\) \(0\)
\(-0.0001\) \(0\)
\(0.1\) \(0\)
\(0.01\) \(0\)
\(0.001\) \(0\)
\(0.0001\) \(0\)
Table 2.1.12. Table of \(g\) values near \(x=0\text{.}\)
The graph of a function g which has increasingly rapid oscillations as x approaches zero.
Figure 2.1.13. Plot of \(g(x)\) on \([-4,4]\text{.}\)
First, as \(x \to 3\text{,}\) it appears from the table values that the function is approaching a number between \(0.86601\) and \(0.86604\text{.}\) From the graph it appears that \(g(x) \to g(3)\) as \(x \to 3\text{.}\) The exact value of \(g(3) = \sin(\frac{\pi}{3})\) is \(\frac{\sqrt{3}}{2}\text{,}\) which is approximately 0.8660254038. This is convincing evidence that
\begin{equation*} \lim_{x \to 3} g(x) = \frac{\sqrt{3}}{2}\text{.} \end{equation*}
As \(x \to 0\text{,}\) we observe that \(\frac{\pi}{x}\) does not behave in an elementary way. When \(x\) is positive and approaching zero, we are dividing by smaller and smaller positive values, and \(\frac{\pi}{x}\) increases without bound. When \(x\) is negative and approaching zero, \(\frac{\pi}{x}\) decreases without bound. In this sense, as we get close to \(x = 0\text{,}\) the inputs to the sine function are growing rapidly, and this leads to increasingly rapid oscillations in the graph of \(g\) betweem \(1\) and \(-1\text{.}\) If we plot the function \(g(x) = \sin\left(\frac{\pi}{x}\right)\) with a graphing utility and then zoom in on \(x = 0\text{,}\) we see that the function never settles down to a single value near the origin, which suggests that \(g\) does not have a limit at \(x = 0\text{.}\)
How do we reconcile the graph with the righthand table above, which seems to suggest that the limit of \(g\) as \(x\) approaches \(0\) may in fact be \(0\text{?}\) The data misleads us because of the special nature of the sequence of input values \(\{0.1, 0.01, 0.001, \ldots\}\text{.}\) When we evaluate \(g(10^{-k})\text{,}\) we get \(g(10^{-k}) = \sin\left(\frac{\pi}{10^{-k}}\right) = \sin(10^k \pi) = 0\) for each positive integer value of \(k\text{.}\) But if we take a different sequence of values approaching zero, say \(\{0.3, 0.03, 0.003, \ldots\}\text{,}\) then we find that
\begin{equation*} g(3 \cdot 10^{-k}) = \sin\left(\frac{\pi}{3 \cdot 10^{-k}}\right) = \sin\left(\frac{10^k \pi}{3}\right) = \frac{\sqrt{3}}{2} \approx 0.866025\text{.} \end{equation*}
That sequence of function values suggests that the value of the limit is \(\frac{\sqrt{3}}{2}\text{.}\) Clearly the function cannot have two different values for the limit, so \(g\) has no limit as \(x \to 0\text{.}\)
An important lesson to take from Example 2.1.6 is that tables can be misleading when determining the value of a limit. While a table of values is useful for investigating the possible value of a limit, we should also use other tools to confirm the value.

Activity 2.1.2.

Estimate the value of each of the following limits by constructing appropriate tables of values. Then determine the exact value of the limit by using algebra to simplify the function. Finally, plot each function on an appropriate interval to check your result visually.
  1. \(\displaystyle \lim_{x \to 1} \frac{x^2 - 1}{x-1}\)
  2. \(\displaystyle \lim_{x \to 0} \frac{(2+x)^2 -4}{x}\)
  3. \(\displaystyle \lim_{x \to 0} \frac{\sqrt{x+1} - 1}{x}\)
Recall that our primary motivation for considering limits of functions comes from our interest in studying the rate of change of a function. To that end, we close this section by revisiting our previous work with average and instantaneous velocity and highlighting the role that limits play.

Subsection 2.1.2 Instantaneous Velocity

Suppose that we have a moving object whose position at time \(t\) is given by a function \(s\text{.}\) We know that the average velocity of the object on the time interval \([a,b]\) is \(AROC_{[a,b]} = \frac{s(b)-s(a)}{b-a}\text{.}\) We define the instantaneous velocity at \(a\) to be the limit of average velocity as \(b\) approaches \(a\text{.}\) Note particularly that as \(b \to a\text{,}\) the length of the time interval gets shorter and shorter (while always including \(a\)). We will write \(IROC_{t=a}\) for the instantaneous velocity at \(t = a\text{,}\) and thus
\begin{equation*} IROC_{t=a} = \lim_{b \to a} AROC_{[a,b]} = \lim_{b \to a} \frac{s(b)-s(a)}{b-a}\text{.} \end{equation*}
Equivalently, if we think of the changing value \(b\) as being of the form \(b = a + h\text{,}\) where \(h\) is some small number, then we may instead write
\begin{equation*} IROC_{t=a} = \lim_{h \to 0} AROC_{[a,a+h]} = \lim_{h \to 0} \frac{s(a+h)-s(a)}{h}\text{.} \end{equation*}
Again, the most important idea here is that to compute instantaneous velocity, we take a limit of average velocities as the time interval shrinks.

Activity 2.1.3.

Consider a moving object whose position function is given by \(s(t) = t^2\text{,}\) where \(s\) is measured in meters and \(t\) is measured in minutes.
  1. Determine the most simplified expression for the average velocity of the object on the interval \([3, 3+h]\text{,}\) where \(h \gt 0\text{.}\)
  2. Determine the average velocity of the object on the interval \([3,3.2]\text{.}\) Include units on your answer.
  3. Determine the instantaneous velocity of the object when \(t = 3\text{.}\) Include units on your answer.
The closing activity of this section asks you to make some connections among average velocity, instantaneous velocity, and slopes of certain lines.

Activity 2.1.4.

For the moving object whose position \(s\) at time \(t\) is given by the graph in Figure 2.1.14, answer each of the following questions. Assume that \(s\) is measured in feet and \(t\) is measured in seconds.
The graph of the position function of an object over time.
Figure 2.1.14. Plot of the position function \(y = s(t)\) in Activity 2.1.4.
  1. Use the graph to estimate the average velocity of the object on each of the following intervals: \([0.5,1]\text{,}\) \([1.5,2.5]\text{,}\) \([0,5]\text{.}\) Draw each line whose slope represents the average velocity you seek.
  2. How could you use average velocities or slopes of lines to estimate the instantaneous velocity of the object at a fixed time?
  3. Use the graph to estimate the instantaneous velocity of the object when \(t = 2\text{.}\) Should this instantaneous velocity at \(t = 2\) be greater or less than the average velocity on \([1.5,2.5]\) that you computed in (a)? Why?

Subsection 2.1.3 Summary

  • Question 2.1.15.

    What is the mathematical notion of limit and what role do limits play in the study of functions?
    Answer.
    Limits enable us to examine trends in function behavior near a specific point. In particular, taking a limit at a given point asks if the function values nearby tend to approach a particular fixed value.
  • Question 2.1.16.

    What is the meaning of the notation \(\displaystyle \lim_{x \to a} f(x) = L\text{?}\)
    Answer.
    We read \(\lim_{x \to a} f(x) = L\text{,}\) as “the limit of \(f\) as \(x\) approaches \(a\) is \(L\text{,}\)” which means that we can make the value of \(f(x)\) as close to \(L\) as we want by taking \(x\) sufficiently close (but not equal) to \(a\text{.}\)
  • Question 2.1.17.

    How do we go about determining the value of the limit of a function at a point?
    Answer.
    To find \(\lim_{x \to a} f(x)\) for a given value of \(a\) and a known function \(f\text{,}\) we can estimate this value from the graph of \(f\text{,}\) or we can make a table of function values for \(x\)-values that are closer and closer to \(a\text{.}\) If we want the exact value of the limit, we can work with the function algebraically to understand how different parts of the formula for \(f\) change as \(x \to a\text{.}\)
  • Question 2.1.18.

    What is instantaneous velocity and how do we compute it?
    Answer.
    We find the instantaneous velocity of a moving object at a fixed time by taking the limit of average velocities of the object over shorter and shorter time intervals containing the time of interest.

Exercises 2.1.4 Exercises

1.

Consider the function whose formula is \(f(x) = \frac{16-x^4}{x^2-4}\text{.}\)
  1. What is the domain of \(f\text{?}\)
  2. Use a sequence of values of \(x\) near \(a = 2\) to estimate the value of \(\lim_{x \to 2} f(x)\text{,}\) if you think the limit exists. If you think the limit doesn’t exist, explain why.
  3. Use algebra to simplify the expression \(\frac{16-x^4}{x^2-4}\) and hence work to evaluate \(\lim_{x \to 2} f(x)\) exactly, if it exists, or to explain how your work shows the limit fails to exist. Discuss how your findings compare to your results in (b).
  4. True or false: \(f(2) = -8\text{.}\) Why?
  5. True or false: \(\frac{16-x^4}{x^2-4} = -4-x^2\text{.}\) Why? How is this equality connected to your work above with the function \(f\text{?}\)
  6. Based on all of your work above, construct an accurate, labeled graph of \(y = f(x)\) on the interval \([1,3]\text{,}\) and write a sentence that explains what you now know about \(\lim_{x \to 2} \frac{16-x^4}{x^2-4}\text{.}\)

2.

Let \(g(x) = -\frac{|x+3|}{x+3}\text{.}\)
  1. What is the domain of \(g\text{?}\)
  2. Use a sequence of values near \(a = -3\) to estimate the value of \(\lim_{x \to -3} g(x)\text{,}\) if you think the limit exists. If you think the limit doesn’t exist, explain why.
  3. Use algebra to simplify the expression \(\frac{|x+3|}{x+3}\) and hence work to evaluate \(\lim_{x \to -3} g(x)\) exactly, if it exists, or to explain how your work shows the limit fails to exist. Discuss how your findings compare to your results in (b). (Hint: \(|a| = a\) whenever \(a \ge 0\text{,}\) but \(|a| = -a\) whenever \(a \lt 0\text{.}\))
  4. True or false: \(g(-3) = -1\text{.}\) Why?
  5. True or false: \(-\frac{|x+3|}{x+3} = -1\text{.}\) Why? How is this equality connected to your work above with the function \(g\text{?}\)
  6. Based on all of your work above, construct an accurate, labeled graph of \(y = g(x)\) on the interval \([-4,-2]\text{,}\) and write a sentence that explains what you now know about \(\lim_{x \to -3} g(x)\text{.}\)

3.

For each of the following prompts, sketch a graph on the provided axes of a function that has the stated properties.
Blank axes for sketching graphs that meet the criteria given in this exercise.
Figure 2.1.19. Axes for plotting \(y = f(x)\) in (a) and \(y = g(x)\) in (b).
  1. \(y = f(x)\) such that
    • \(f(-2) = 2\) and \(\lim_{x \to -2} f(x) = 1\)
    • \(f(-1) = 3\) and \(\lim_{x \to -1} f(x) = 3\)
    • \(f(1)\) is not defined and \(\lim_{x \to 1} f(x) = 0\)
    • \(f(2) = 1\) and \(\lim_{x \to 2} f(x)\) does not exist.
  2. \(y = g(x)\) such that
    • \(g(-2) = 3\text{,}\) \(g(-1) = -1\text{,}\) \(g(1) = -2\text{,}\) and \(g(2) = 3\)
    • At \(x = -2, -1, 1\) and \(2\text{,}\) \(g\) has a limit, and its limit equals the value of the function at that point.
    • \(g(0)\) is not defined and \(\lim_{x \to 0} g(x)\) does not exist.

4.

A bungee jumper dives from a tower at time \(t=0\text{.}\) Her height \(s\) in feet at time \(t\) in seconds is given by \(s(t) = 100\cos(0.75t) \cdot e^{-0.2t}+100\text{.}\)
  1. Write an expression for the average velocity of the bungee jumper on the interval \([1,1+h]\text{.}\)
  2. Use computing technology to estimate the value of the limit as \(h \to 0\) of the quantity you found in (a).
  3. What is the meaning of the value of the limit in (b)? What are its units?
What follows here is not what mathematicians consider the formal definition of a limit. To be completely precise, it is necessary to quantify both what it means to say “as close to \(L\) as we like” and “sufficiently close to \(a\text{.}\)” That can be accomplished through what is traditionally called the epsilon-delta definition of limits. The definition presented here is sufficient for the purposes of this text.