Math Core

Lesson 1.1 · Limits and Continuity

What is a limit?

Calculus is the mathematics of change. Its two central questions, "how fast is something changing at a single instant?" and "how much total change accumulates?", both lead to the same tool: the limit. Before you can define a derivative or an integral, you need a precise way to talk about what a function is approaching, even at a point where you cannot simply plug in.

Why calculus needs limits

Suppose a ball's height is s(t)s(t) feet after tt seconds. The average velocity from t=1t = 1 to t=1+ht = 1 + h is

s(1+h)−s(1)h.\frac{s(1 + h) - s(1)}{h}.

To get the velocity at the instant t=1t = 1, you would like to set h=0h = 0, but then the fraction becomes 00\dfrac{0}{0}, which is meaningless. What you can do is make hh smaller and smaller (0.10.1, 0.010.01, 0.0010.001, …) and watch the average velocities. If they settle toward one number, that number is the instantaneous velocity. That "settling toward" is exactly what a limit captures.

The idea of a limit

Consider

f(x)=x2−4x−2.f(x) = \frac{x^2 - 4}{x - 2}.

The function is undefined at x=2x = 2 (the denominator is zero). But for every other xx you can factor and cancel:

f(x)=(x−2)(x+2)x−2=x+2,x≠2.f(x) = \frac{(x - 2)(x + 2)}{x - 2} = x + 2, \qquad x \ne 2.

So the graph of ff is the line y=x+2y = x + 2 with a single point missing, a hole at (2,4)(2, 4).

The graph of f(x) = (x² − 4)/(x − 2): the line y = x + 2 with a hole at (2, 4).Open in grapher →

As xx gets close to 22 from either side, f(x)f(x) gets close to 44. We write

lim⁡x→2f(x)=4,\lim_{x \to 2} f(x) = 4,

read "the limit of f(x)f(x) as xx approaches 22 equals 44." Notice that f(2)f(2) does not exist, yet the limit does. The limit describes the behavior near 22, never the value at 22.

Definition

Limit (informal)

We write lim⁡x→cf(x)=L\displaystyle \lim_{x \to c} f(x) = L if the values of f(x)f(x) can be made as close to LL as we like by taking xx sufficiently close to cc (on either side of cc), but not equal to cc.

Three things to take from this definition:

  1. xx never equals cc. What happens exactly at x=cx = c (whether f(c)f(c) is defined, and what it equals) has no effect on the limit.
  2. Both sides matter. xx can approach cc from the left (values less than cc) and from the right (values greater than cc).
  3. LL must be a single real number. If the outputs head toward two different numbers, or grow without bound, or never settle down, the limit does not exist.

One-sided limits

Sometimes a function behaves differently on the two sides of cc. For this reason we also define one-sided limits:

  • lim⁡x→c−f(x)=L\displaystyle \lim_{x \to c^-} f(x) = L means f(x)f(x) approaches LL as xx approaches cc from the left (x<cx < c).
  • lim⁡x→c+f(x)=L\displaystyle \lim_{x \to c^+} f(x) = L means f(x)f(x) approaches LL as xx approaches cc from the right (x>cx > c).

The small minus or plus sign is a superscript on cc. It describes the direction of approach, not the sign of the number.

When a two-sided limit exists

lim⁡x→cf(x)=Lif and only iflim⁡x→c−f(x)=L  and  lim⁡x→c+f(x)=L.\lim_{x \to c} f(x) = L \quad \text{if and only if} \quad \lim_{x \to c^-} f(x) = L \ \text{ and } \ \lim_{x \to c^+} f(x) = L.

If the one-sided limits are different, or if either one fails to exist, then lim⁡x→cf(x)\displaystyle \lim_{x \to c} f(x) does not exist (DNE).

Three ways a limit can fail to exist

On the AP exam you will meet three standard situations in which lim⁡x→cf(x)\displaystyle \lim_{x \to c} f(x) does not exist.

Behavior near ccExampleWhy the limit fails
Jump: the two sides approach different values∣x∣x\dfrac{\lvert x \rvert}{x} at c=0c = 0left limit is −1-1, right limit is 11
Unbounded: the outputs grow without bound1x2\dfrac{1}{x^2} at c=0c = 0outputs increase past every number
Oscillation: the outputs never settlesin⁡(1x)\sin\left(\dfrac{1}{x}\right) at c=0c = 0outputs swing between −1-1 and 11 forever

For unbounded behavior we often write lim⁡x→01x2=∞\displaystyle \lim_{x \to 0} \frac{1}{x^2} = \infty. This notation is a precise description of how the limit fails: the outputs increase without bound. It does not mean the limit equals a number called infinity, and the limit still does not exist as a real number.

Common mistake

Do not confuse lim⁡x→cf(x)\displaystyle \lim_{x \to c} f(x) with f(c)f(c). A function can have a limit at cc with f(c)f(c) undefined, or with f(c)f(c) equal to some completely different number. Always ask "what are the outputs approaching?", not "what is the output at cc?"

Worked example: A limit at a hole

Let g(x)=x2+x−12x−3g(x) = \dfrac{x^2 + x - 12}{x - 3}. Find lim⁡x→3g(x)\displaystyle \lim_{x \to 3} g(x) and g(3)g(3).

Solution. At x=3x = 3 the denominator is 00, so g(3)g(3) is undefined. For x≠3x \ne 3,

g(x)=(x+4)(x−3)x−3=x+4.g(x) = \frac{(x + 4)(x - 3)}{x - 3} = x + 4.

As x→3x \to 3, x+4→7x + 4 \to 7. So lim⁡x→3g(x)=7\displaystyle \lim_{x \to 3} g(x) = 7, even though g(3)g(3) does not exist.

Worked example: One-sided limits of a piecewise function

Let

p(x)={2x−1,x<14,x=1x2+2,x>1.p(x) = \begin{cases} 2x - 1, & x < 1 \\ 4, & x = 1 \\ x^2 + 2, & x > 1. \end{cases}

Find lim⁡x→1−p(x)\displaystyle \lim_{x \to 1^-} p(x), lim⁡x→1+p(x)\displaystyle \lim_{x \to 1^+} p(x), lim⁡x→1p(x)\displaystyle \lim_{x \to 1} p(x), and p(1)p(1).

Solution. For xx slightly less than 11, p(x)=2x−1p(x) = 2x - 1, which approaches 2(1)−1=12(1) - 1 = 1. For xx slightly greater than 11, p(x)=x2+2p(x) = x^2 + 2, which approaches 1+2=31 + 2 = 3.

lim⁡x→1−p(x)=1,lim⁡x→1+p(x)=3.\lim_{x \to 1^-} p(x) = 1, \qquad \lim_{x \to 1^+} p(x) = 3.

The one-sided limits differ, so lim⁡x→1p(x)\displaystyle \lim_{x \to 1} p(x) does not exist. Separately, p(1)=4p(1) = 4 from the middle line of the definition.

Worked example: Reading a limit from a graph

The graph of hh is shown. Find lim⁡x→2h(x)\displaystyle \lim_{x \to 2} h(x) and h(2)h(2).

The graph of h. The open circle is at (2, 3); the filled dot is at (2, 1).Open in grapher →

Solution. Tracing the graph toward x=2x = 2 from the left, the heights approach 33. Tracing from the right, the heights also approach 33. Both one-sided limits equal 33, so lim⁡x→2h(x)=3\displaystyle \lim_{x \to 2} h(x) = 3. The filled dot shows that the actual value is h(2)=1h(2) = 1. Again, the limit and the function value are different numbers.

Tip

When you read a limit from a graph, cover the vertical line x=cx = c with your finger. The limit depends only on what you can still see.

Practice

Practice 1

Let f(x)=x2−9x−3f(x) = \dfrac{x^2 - 9}{x - 3}. Find lim⁡x→3f(x)\displaystyle \lim_{x \to 3} f(x).

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

The graph of hh from the third example is shown again. Which statement is true?

The graph of h. The open circle is at (2, 3); the filled dot is at (2, 1).Open in grapher →
Practice 3

Let k(x)={x2,x<12x+3,x≥1.k(x) = \begin{cases} x^2, & x < 1 \\ 2x + 3, & x \ge 1. \end{cases} Find lim⁡x→1−k(x)\displaystyle \lim_{x \to 1^-} k(x).

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 4

For the function kk in the previous problem, what is lim⁡x→1k(x)\displaystyle \lim_{x \to 1} k(x)?

Practice 5

If lim⁡x→4f(x)=7\displaystyle \lim_{x \to 4} f(x) = 7, which of the following must be true?

Practice 6

Which best describes lim⁡x→01x2\displaystyle \lim_{x \to 0} \frac{1}{x^2}?

Practice 7

Let r(x)=x2+7x+10x+2r(x) = \dfrac{x^2 + 7x + 10}{x + 2} for x≠−2x \ne -2 and r(−2)=8r(-2) = 8. Find lim⁡x→−2r(x)\displaystyle \lim_{x \to -2} r(x).

Enter a number. Fractions like 3/4 and sqrt(2) are OK.