Defining and Computing Limits

The first concept in calculus, and the one that underpins all the others, is the idea of a limit, so let's take at it. Suppose we have a function f(x)f(x), and we would like to know what's happening at some xx value (call it x=cx=c), but we can't actually evaluate f(c)f(c) (it wouldn't really be an interesting question if we could).

Approaching a hole in a graph

For example, consider f(x)=x21x1f(x) = \dfrac{x^2-1}{x-1} with c=1c=1. We can't actually evaluate f(1)f(1), because that would cause us to divide by zero, breaking the cardinal rule of mathematics.

However, we also don't just throw our hands up and say that this function is a complete mystery at x=1x=1; instead, we dig a bit deeper. You may be tempted, based on your algebra experience, to simplify the function by factoring and canceling an x1x-1 term: f(x)=x21x1=(x+1)(x1)x1=(x+1)(x1)x1=x+1\begin{aligned} f(x) &= \dfrac{x^2-1}{x-1}\ &= \dfrac{(x+1)(x-1)}{x-1}\ &= \dfrac{(x+1){\color{red} \cancel{(x-1)}}}{{\color{red} \cancel{x-1}}}\ &= x+1 \end{aligned}

Aha! you say; this function is much simpler than it first appears: f(x)=x21x1=x+1f(x) = \dfrac{x^2-1}{x-1} = x+1 and we can easily evaluate the simplified function at x=1x=1, since we've cancelled the term that caused us to divide by zero earlier: f(1)=2.f(1) = 2.

Is it quite that simple, though? We couldn't evaluate the function at 1-1, meaning that the domain didn't include 1-1, but after some algebra, we suddenly could. Did the domain change? What's going on here?

It doesn't help much to graph the two functions. If you use a calculator or computer graphing systems, you'll see the same picture whether you enter x21x1 or x+1.\dfrac{x^2-1}{x-1} \textrm{ or } x+1.

Here's what's happening: in the original function, there's a discontinuity at x=1x=1; that doesn't belong to the domain. By canceling the x1x-1 term, we haven't affected the domain, but only the way that the function is written. What this means is that there's still a discontinuity there, but it's simply a hole in the graph at that one point; everywhere else, the graph looks exactly like x+1x+1.

We can sum this up by saying that x21x1=x+1, as long as x = 1.\dfrac{x^2-1}{x-1} = x+1 \textrm{, as long as } x\ \cancel{=}\ 1.

Straight line with hole at (1,2)

Taking the limit is like approaching this hole from either side, never quite reaching it, but going far enough to see a pattern. If an ant walked along the graph toward the place where x=1x=1, the function values would get closer and closer to 22, so we say that the limit of this function is 22 as xx approaches 11; we write this as limx1x21x1=2\lim_{x \to 1} \dfrac{x^2-1}{x-1} = 2

Using a Table to Find a Limit

We've seen one way to find a limit, by using algebraic steps to simplify the function in question. Another way to answer the question is to think like the ant, crawling along the graph of the function. In other words, check the function value close to x=1x=1 on either side and look for a trend. If we evaluate f(x)f(x) at 0.9,0.99,0.9990.9, 0.99, 0.999, for instance, we should see the answers getting closer to 22: xf(x)0.91.90.991.990.9991.999xf(x)1.12.11.012.011.0012.001\begin{array}{c c} \begin{array}{c c} x & f(x)\ \hline 0.9 & 1.9\ 0.99 & 1.99\ 0.999 & 1.999 \end{array} & \begin{array}{c c} x & f(x)\ \hline 1.1 & 2.1\ 1.01 & 2.01\ 1.001 & 2.001 \end{array} \end{array}

Notice that we're approaching x=1x=1 from both sides, and in both cases, the function values get closer and closer to 22 (never actually reaching 22, but that's the idea of a limit).

Examples

Use a table to evaluate limx0sinxx\lim_{x \to 0} \dfrac{\sin x}{x}

Solution

We need to select values close to 00 on either side; it doesn't much matter what exact values we pick, as long as there's a clear trend that we can read. Let's start with 0.50.5, then go to 0.10.1 and 0.010.01, and do the same on the negative side. If the trend isn't clear at that point, we can add some values.

xf(x)0.50.9590.10.9980.010.99998xf(x)0.50.9590.10.9980.010.99998\begin{array}{c c} \begin{array}{c c} x & f(x)\ \hline -0.5 & 0.959\ -0.1 & 0.998\ -0.01 & 0.99998 \end{array} & \begin{array}{c c} x & f(x)\ \hline 0.5 & 0.959\ 0.1 & 0.998\ 0.01 & 0.99998 \end{array} \end{array}

In both cases, the function values approach 11, so we conclude that limx0sinxx=1\lim_{x \to 0} \dfrac{\sin x}{x} = \ans{1}

Use a table to evaluate limt9t9t3\lim_{t \to 9} \dfrac{t-9}{\sqrt{t} - 3}

Solution

Pick values of tt close to 99; we'll use the first example as a template.

xf(x)8.95.9838.995.9988.9995.999xf(x)9.16.0179.016.0029.0016.0002\begin{array}{c c} \begin{array}{c c} x & f(x)\ \hline 8.9 & 5.983\ 8.99 & 5.998\ 8.999 & 5.999 \end{array} & \begin{array}{c c} x & f(x)\ \hline 9.1 & 6.017\ 9.01 & 6.002\ 9.001 & 6.0002 \end{array} \end{array}

In both cases, the function values approach 66, so we conclude that limt9t9t3=6\lim_{t \to 9} \dfrac{t-9}{\sqrt{t} - 3} = \ans{6}

  1. Evaluate limx2x38x2\displaystyle\lim_{x \to 2} \dfrac{x^3-8}{x-2}

  2. 1212

  3. Evaluate limt0t2+93t2\displaystyle\lim_{t \to 0} \dfrac{\sqrt{t^2+9}-3}{t^2}

  4. 16\dfrac{1}{6}

Application: Rates of Change

Here's a preview of the next big topic, the one that will dominate most of this course: the derivative.

Where you see "rate of change," think of speed. For instance, if you were on a road trip and stopped at two rest stops 300300 miles apart, the first at 1:00 pm and the second at 6:00 pm, you'd know that your average speed between those two stops was 6060 mph, because you traveled 300300 miles in 55 hours, and 300 miles5 hours=60 mileshour\dfrac{300 \textrm{ miles}}{5 \textrm{ hours}} = 60\ \dfrac{\textrm{miles}}{\textrm{hour}}

This is your average speed, but that doesn't mean you were always traveling at exactly 6060 mph on the trip; as you sped up and slowed down or stopped, it all evened out to an average of 6060.

Let's think about the average rate of change for a generic function. For example, consider f(x)=x2f(x) = x^2, and find the average rate of change of this function from x=1x=1 to x=2x=2.

Think of the shift from x=1x=1 to x=2x=2 as the time elapsed, and the function as the position, to compare it to the traveling example.

At x=1x=1, f(x)=1f(x) = 1, and at x=2x=2, f(x)=4f(x) = 4.

difference of 1{x=1:f(x)=1x=2:f(x)=4}difference of 3{\color{red}\textrm{difference of } 1}\left{\begin{array}{c c c} x = 1 & : & f(x) = 1\ x = 2 & : & f(x) = 4 \end{array}\right} {\color{red}\textrm{difference of } 3}

As xx (time) changed by 11, f(x)f(x) (position) changed by 33, so the average rate of change is simply the difference in f(x)f(x) divided by the difference in xx: average rate of change =31=3\textrm{average rate of change } = \dfrac{3}{1} = 3

Notice that the average rate of change is simply a new name for an old concept: we were computing the slope of the line that connects (1,1)(1,1) to (2,4)(2,4), the two points on the graph we were interested in; this line is called a secant line. average rate of change =y2y1x2x1= slope of secant line{\color{red}\textrm{average rate of change } = \dfrac{y_2 - y_1}{x_2 - x_1} = \textrm{ slope of secant line}}

Secant line connecting (1,1) and (2,4)

Average Velocity

If you throw a rock straight up from the ground at 9696 ft/s, the rock's height follows the path f(t)=16t2+96tf(t) = -16t^2 + 96t Parabolic path

Here's a quick table with a few values; it'll be helpful to answer the question we'll encounter in a minute. t0123456f(t)080128144128800\begin{array}{c | c c c c c c c} t & 0 & 1 & 2 & 3 & 4 & 5 & 6\ \hline f(t) & 0 & 80 & 128 & 144 & 128 & 80 & 0 \end{array}

Notice that it doesn't make any sense to go past t=6t=6; the formula will happily give us a negative value, but this doesn't have any bearing on reality, where the rock will be lying inert on the ground.

Find the average velocity (rate of change of position) of the rock

  1. from t=1t=1 to t=2t=2: f(2)f(1)21=1288021=48 ft/s\dfrac{f(2) - f(1)}{2-1} = \dfrac{128-80}{2-1} = 48\ ft/s
  2. from t=1t=1 to t=3t=3: f(3)f(1)31=1448031=32 ft/s\dfrac{f(3) - f(1)}{3-1} = \dfrac{144-80}{3-1} = 32\ ft/s
  3. from t=3t=3 to t=6t=6: f(6)f(3)63=014463=48 ft/s\dfrac{f(6) - f(3)}{6-3} = \dfrac{0-144}{6-3} = -48\ ft/s

Notice that the average velocity is negative in the last case, because the rock is traveling downward.

Instantaneous Velocity

Okay, now how about the velocity of the rock at an instant in time? This is where we get to use what we learned earlier with limits.

Using the same example as before, we'd like to know the velocity of the rock at exactly t=2t=2. How can we accomplish this? Using the process we just saw, we can find the average velocity between any two points in time, but can we use that to approach the problem of finding the instantaneous velocity at one moment in time?

It turns out that we can, by starting with the average velocity between t=2t=2 and a moment soon after. For instance, the average velocity from t=2t=2 to t=2.1t=2.1 is likely to be at least close to the velocity at t=2t=2. It's likely that the average from 22 to 2.012.01 will be an even better approximation, and from 22 to 2.0012.001 better yet. Sound familiar? That's exactly what we were doing earlier with limits. If we could (theoretically) find the "average" velocity from 22 to 22, that would be the instantaneous velocity at 22.

So if the average velocity from 22 to another point tt nearby is f(t)f(2)t2\dfrac{f(t)-f(2)}{t-2} the instantaneous velocity is limt2f(t)f(2)t2\lim_{t \to 2} \dfrac{f(t)-f(2)}{t-2}

Let's try this out using a table like we did for the limit examples. Pick values for tt close to 22 and evaluate this expression, looking for a trend.

tf(t)f(2)t22.130.42.0131.842.00131.984\begin{array}{c c} t & \dfrac{f(t)-f(2)}{t-2}\ & \ 2.1 & 30.4\ 2.01 & 31.84\ 2.001 & 31.984 \end{array}

Since these values approach 3232, we conclude that at t=2t=2 seconds, the instantaneous velocity of the rock is 3232 ft/s.

As it turns out, you've just done your first calculation of a derivative, the instantaneous rate of change. After we finish with limits, derivatives will occupy most of our time in this course, and we'll learn to do problems much more easily and quickly than we just did.

Technical Definition of a Limit

You can skip this section for now if you like; you'll see the precise mathematical definition of a limit, the way that professional mathematicians use it.

Let's start with our intuitive description of a limit, then move to an intermediate, slightly more precise description, before finally seeing the true definition.

Intuitive Description

We write limxcf(x)=L\lim_{x \to c} f(x) = L and say that the limit of f(x)f(x) as xx approaches cc is LL if, as we trace along the graph of f(x)f(x) by plugging in values close to cc, the function values keep getting closer and closer to LL.

Look back at the examples we did and see if you can connect the various pieces. For instance, in the first example, f(x)=x21x1f(x) = \dfrac{x^2-1}{x-1}, c=1c=1, and L=2L=2.

Intermediate Description

We write limxcf(x)=L\lim_{x \to c} f(x) = L and say that the limit of f(x)f(x) as xx approaches cc is LL if the values of f(x)f(x) get arbitrarily close to LL if we make the values of xx close enough to cc.

Limit bounds

Think of it as a game: if you say that the answer is (LL), I can challenge you to get within a distance of 0.10.1 from LL, or a distance of 0.00010.0001, or any distance I want (hence the arbitrary part), and you can do it, just by picking values of xx that are close enough to cc.

Technical definition

To make the last leap, we'll introduce a couple of values, known as epsilon and delta (this is often called the epsilon-delta definition of a limit), and these will describe the process of getting arbitrarily close. Specifically, notice that, for instance, if we write xc<δ|x-c| < \delta we mean that the distance between xx and cc (the absolute value of their difference) is less than δ\delta, which is presumably some small number.

We write limxcf(x)=L\lim_{x \to c} f(x) = L and say that the limit of f(x)f(x) as xx approaches cc is LL if for every ϵ>0\epsilon > 0 there exists a δ>0\delta > 0 such that if xc<δ|x-c| < \delta, then f(x)L<ϵ|f(x) - L| < \epsilon.

This looks complicated, but it's really saying the same thing as the intermediate description, except that it gives a very precise meaning to the concept of "arbitrarily close." If you like, you can study this to make sense of it, but it won't be crucial to our study of limits in this course.