Math Core

Lesson 1.5 · Limits and Continuity

The squeeze theorem

Some limits resist every algebraic trick. What is lim⁡x→0x2sin⁡(1x)\displaystyle \lim_{x \to 0} x^2 \sin\left(\frac{1}{x}\right)? The factor sin⁡(1x)\sin\left(\dfrac{1}{x}\right) oscillates wildly and has no limit at 00, so the product law is useless. The squeeze theorem handles limits like this by trapping a hard function between two easy ones.

The idea

Imagine two functions gg and hh that both approach the same number LL as x→cx \to c. If a third function ff is always caught between them, then ff has nowhere to go: it must approach LL too.

The squeeze theorem

Suppose that for all xx in an open interval containing cc (except possibly at cc itself),

g(x)≤f(x)≤h(x),g(x) \le f(x) \le h(x),

and that

lim⁡x→cg(x)=lim⁡x→ch(x)=L.\lim_{x \to c} g(x) = \lim_{x \to c} h(x) = L.

Then lim⁡x→cf(x)=L\displaystyle \lim_{x \to c} f(x) = L.

The theorem is sometimes called the sandwich theorem or pinching theorem. It has three requirements, and on the AP exam you should name each one when you use it:

  1. The inequality g(x)≤f(x)≤h(x)g(x) \le f(x) \le h(x) holds near cc.
  2. The lower function has limit LL at cc.
  3. The upper function has the same limit LL at cc.

A classic example

Return to f(x)=x2sin⁡(1x)f(x) = x^2 \sin\left(\dfrac{1}{x}\right). Whatever the input, sine takes values between −1-1 and 11:

−1≤sin⁡(1x)≤1for all x≠0.-1 \le \sin\left(\frac{1}{x}\right) \le 1 \quad \text{for all } x \ne 0.

Multiplying through by x2x^2, which is positive for x≠0x \ne 0, keeps the inequalities pointing the same way:

−x2≤x2sin⁡(1x)≤x2.-x^2 \le x^2 \sin\left(\frac{1}{x}\right) \le x^2.

Since lim⁡x→0(−x2)=0\displaystyle \lim_{x \to 0} (-x^2) = 0 and lim⁡x→0x2=0\displaystyle \lim_{x \to 0} x^2 = 0, the squeeze theorem gives lim⁡x→0x2sin⁡(1x)=0\displaystyle \lim_{x \to 0} x^2 \sin\left(\frac{1}{x}\right) = 0.

y = x² sin(1/x) oscillates, but it is trapped between the dashed parabolas y = x² and y = −x², which both approach 0.Open in grapher →

The general pattern: a bounded factor times something that approaches 00 approaches 00. The bounded factor is usually a sine or cosine.

Worked example: Given bounds

Suppose 5−x2≤f(x)≤5+3x25 - x^2 \le f(x) \le 5 + 3x^2 for all xx near 00. Find lim⁡x→0f(x)\displaystyle \lim_{x \to 0} f(x).

Solution. The lower bound gives lim⁡x→0(5−x2)=5\displaystyle \lim_{x \to 0} (5 - x^2) = 5 and the upper bound gives lim⁡x→0(5+3x2)=5\displaystyle \lim_{x \to 0} (5 + 3x^2) = 5. Since ff is trapped between two functions that both approach 55, the squeeze theorem gives lim⁡x→0f(x)=5\displaystyle \lim_{x \to 0} f(x) = 5.

Proving the special trigonometric limit

In the previous lesson you used lim⁡θ→0sin⁡θθ=1\displaystyle \lim_{\theta \to 0} \frac{\sin \theta}{\theta} = 1 without proof. The squeeze theorem proves it.

Take 0<θ<π20 < \theta < \dfrac{\pi}{2} and draw an angle θ\theta in the unit circle. Compare three areas: the triangle inside the sector, the sector itself, and the larger right triangle that reaches up to the tangent line x=1x = 1.

Inside the unit circle: the small triangle (base 1, height sin θ) fits inside the sector, which fits inside the large right triangle (base 1, height tan θ).Open in grapher →
12sin⁡θ⏟small triangle  ≤  12θ⏟sector  ≤  12tan⁡θ⏟large triangle.\underbrace{\tfrac{1}{2}\sin \theta}_{\text{small triangle}} \;\le\; \underbrace{\tfrac{1}{2}\theta}_{\text{sector}} \;\le\; \underbrace{\tfrac{1}{2}\tan \theta}_{\text{large triangle}}.

Multiply by 2sin⁡θ\dfrac{2}{\sin \theta} (positive here): 1≤θsin⁡θ≤1cos⁡θ1 \le \dfrac{\theta}{\sin \theta} \le \dfrac{1}{\cos \theta}. Taking reciprocals reverses the inequalities:

cos⁡θ≤sin⁡θθ≤1.\cos \theta \le \frac{\sin \theta}{\theta} \le 1.

Both cos⁡θ\cos\theta and sin⁡θ/θ\sin\theta/\theta are even functions, so the same inequality holds for −π2<θ<0-\dfrac{\pi}{2} < \theta < 0. As θ→0\theta \to 0, cos⁡θ→1\cos \theta \to 1 and the constant 11 stays at 11. By the squeeze theorem, lim⁡θ→0sin⁡θθ=1\displaystyle \lim_{\theta \to 0} \frac{\sin \theta}{\theta} = 1.

The companion limit follows from it:

1−cos⁡θθ=1−cos⁡2θθ(1+cos⁡θ)=sin⁡θθ⋅sin⁡θ1+cos⁡θ  ⟶  1⋅02=0.\frac{1 - \cos \theta}{\theta} = \frac{1 - \cos^2 \theta}{\theta(1 + \cos \theta)} = \frac{\sin \theta}{\theta} \cdot \frac{\sin \theta}{1 + \cos \theta} \;\longrightarrow\; 1 \cdot \frac{0}{2} = 0.

Worked example: Building the bounds yourself

Evaluate lim⁡x→0x2+x4 cos⁡(3x)\displaystyle \lim_{x \to 0} \sqrt{x^2 + x^4} \, \cos\left(\frac{3}{x}\right).

Solution. Since −1≤cos⁡(3x)≤1-1 \le \cos\left(\dfrac{3}{x}\right) \le 1 and x2+x4≥0\sqrt{x^2 + x^4} \ge 0,

−x2+x4≤x2+x4 cos⁡(3x)≤x2+x4.-\sqrt{x^2 + x^4} \le \sqrt{x^2 + x^4} \, \cos\left(\frac{3}{x}\right) \le \sqrt{x^2 + x^4}.

By direct substitution, x2+x4→0=0\sqrt{x^2 + x^4} \to \sqrt{0} = 0, so both bounds approach 00. By the squeeze theorem, the limit is 00.

Common mistake

Multiplying an inequality by a negative quantity reverses it. That is why the bounds for xsin⁡(1x)x \sin\left(\dfrac{1}{x}\right) are −∣x∣-\lvert x \rvert and ∣x∣\lvert x \rvert, not −x-x and xx: when xx is negative, −x-x is the larger of the two. Using ∣x∣\lvert x \rvert (or an even power such as x2x^2) keeps the bounds in the right order on both sides of 00.

Tip

If the two bounding functions approach different limits, the squeeze theorem tells you nothing. The trapped function might have a limit anywhere in between, or no limit at all.

Practice

Practice 1

Suppose 4x−9≤f(x)≤x2−4x+74x - 9 \le f(x) \le x^2 - 4x + 7 for all xx near 44. Find lim⁡x→4f(x)\displaystyle \lim_{x \to 4} f(x).

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

Practice 2

Evaluate lim⁡x→0x4cos⁡(2x)\displaystyle \lim_{x \to 0} x^4 \cos\left(\frac{2}{x}\right).

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

Practice 3

Suppose 1−x24≤u(x)≤1+x221 - \dfrac{x^2}{4} \le u(x) \le 1 + \dfrac{x^2}{2} for all x≠0x \ne 0. Find lim⁡x→0u(x)\displaystyle \lim_{x \to 0} u(x).

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

Practice 4

Which pair of inequalities, valid for all x≠0x \ne 0, can be used with the squeeze theorem to show that lim⁡x→0xsin⁡(1x)=0\displaystyle \lim_{x \to 0} x \sin\left(\frac{1}{x}\right) = 0?

Practice 5

Evaluate lim⁡x→0x3+x2 sin⁡(πx)\displaystyle \lim_{x \to 0} \sqrt{x^3 + x^2} \, \sin\left(\frac{\pi}{x}\right).

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

Practice 6

The function gg satisfies 3x≤g(x)≤x3+23x \le g(x) \le x^3 + 2 for all xx in the interval (0,2)(0, 2). What is lim⁡x→1g(x)\displaystyle \lim_{x \to 1} g(x)?

Practice 7

Functions ff, gg, and hh satisfy g(x)≤f(x)≤h(x)g(x) \le f(x) \le h(x) for all xx, with lim⁡x→2g(x)=2\displaystyle \lim_{x \to 2} g(x) = 2 and lim⁡x→2h(x)=5\displaystyle \lim_{x \to 2} h(x) = 5. Which statement is true?