Unit 1 · Topic 1.8 Beta

The Squeeze Theorem

4 min read · freeNot practiced

Some limits resist every tool from the last few topics. Substitution gives nonsense, there is nothing to factor, and a table jumps around. The squeeze theorem handles many of these. Instead of finding the function's limit directly, you trap the function between two simpler functions and let them do the work.

Trapped between two functions

Look at f(x)=xsin⁡(1x)f(x) = x \sin\left(\frac{1}{x}\right) near 0. As xx shrinks, 1x\frac{1}{x} grows, so the sine swings between −1-1 and 11 faster and faster. You cannot substitute x=0x = 0, and the graph has infinitely many wiggles near 0.

The graph of f(x) = x sin(1/x) for x between −0.4 and 0.4, x not 0. It wiggles faster and faster near 0 but stays between the lines y = |x| and y = −|x|. Both bounds reach 0 at x = 0, so f is squeezed to 0: its limit at 0 is 0. An open circle at the origin marks that f(0) is not defined.
Figure 1. xsin⁡(1x)x \sin\left(\frac{1}{x}\right) stays between −|x|-|x| and |x||x|, which both close in on 0. LevlPrep original diagram.

But every wiggle stays inside the lines y=|x|y = |x| and y=−|x|y = -|x|. Those two lines meet at the origin. However wildly ff swings, it is pinned between two graphs that both approach 0. So f(x)f(x) must approach 0 too.

The squeeze theorem

Here is the statement. Suppose that for every xx near cc (except possibly at cc itself)

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

and that limx→cg(x)=L\lim_{x \to c} g(x) = L and limx→ch(x)=L\lim_{x \to c} h(x) = L. Then limx→cf(x)=L\lim_{x \to c} f(x) = L.

Notice what the theorem needs and what it does not.

  • It needs the inequality only near cc, on some open interval around it.
  • It needs the two bounds to have the same limit. If they approach different numbers, the theorem gives no conclusion at all.
  • It does not need f(c)f(c). The function may be undefined at cc, as xsin⁡(1x)x \sin\left(\frac{1}{x}\right) is.
  • It does not need a formula for ff. Facts about its bounds are enough.

Building the bounds

Most bounds start from what you know about sine and cosine: for every real θ\theta, −1≤sin⁡θ≤1-1 \le \sin\theta \le 1 and −1≤cos⁡θ≤1-1 \le \cos\theta \le 1. Multiply through by a factor that is never negative and the inequality keeps its direction.

Worked example 1. Find limx→0x2sin⁡(1x)\lim_{x \to 0} x^2 \sin\left(\frac{1}{x}\right).

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

Multiply by x2x^2, which is not negative, so the inequalities keep their direction: −x2≤x2sin⁡(1x)≤x2-x^2 \le x^2 \sin\left(\frac{1}{x}\right) \le x^2.

Both bounds approach 0: limx→0(−x2)=0\lim_{x \to 0} (-x^2) = 0 and limx→0x2=0\lim_{x \to 0} x^2 = 0.

By the squeeze theorem, limx→0x2sin⁡(1x)\lim_{x \to 0} x^2 \sin\left(\frac{1}{x}\right)=0= 0.

Be careful with a factor of xx. If x<0x < 0, multiplying by xx flips the inequalities. That is why the figure uses |x||x|: since |x|≥0|x| \ge 0, we get −|x|≤xsin⁡(1x)≤|x|-|x| \le x \sin\left(\frac{1}{x}\right) \le |x| on both sides of 0.

The special limit of sine over its input

A table suggests that sin⁡xx\frac{\sin x}{x} approaches 1 as x→0x \to 0: at x=0.1x = 0.1 it is about 0.99830.9983, at x=0.01x = 0.01 about 0.999980.99998. The squeeze theorem proves it. Comparing two triangles and a sector of the unit circle shows that, for xx near 0 but not 0,

cos⁡x≤sin⁡xx≤1\cos x \le \frac{\sin x}{x} \le 1

As x→0x \to 0, cos⁡x→1\cos x \to 1, and the upper bound is the constant 1. Both bounds approach 1, so

limx→0sin⁡xx=1\lim_{x \to 0} \frac{\sin x}{x} = 1

Two warnings. First, this uses radians. In degrees the limit would be π180\frac{\pi}{180}, which is one reason calculus always works in radians. Second, the input of the sine must match the denominator.

Worked example 2. Find limx→0sin⁡(4x)x\lim_{x \to 0} \frac{\sin(4x)}{x}.

The sine's input is 4x4x, so build 4x4x underneath: sin⁡(4x)x\frac{\sin(4x)}{x}=4⋅sin⁡(4x)4x= 4 \cdot \frac{\sin(4x)}{4x}.

As x→0x \to 0, 4x→04x \to 0, so sin⁡(4x)4x→1\frac{\sin(4x)}{4x} \to 1.

The limit is 4⋅1=44 \cdot 1 = 4.

Worked example 3. Find limx→01−cos⁡xx\lim_{x \to 0} \frac{1 - \cos x}{x}.

Multiply top and bottom by 1+cos⁡x1 + \cos x and use 1−cos2⁡x=sin2⁡x1 - \cos^2 x = \sin^2 x:

1−cos⁡xx=sin2⁡xx(1+cos⁡x)=sin⁡xx⋅sin⁡x1+cos⁡x\frac{1 - \cos x}{x} = \frac{\sin^2 x}{x(1 + \cos x)} = \frac{\sin x}{x} \cdot \frac{\sin x}{1 + \cos x}

The first factor approaches 1 and the second approaches 02=0\frac{0}{2} = 0. The limit is 1⋅0=01 \cdot 0 = 0.

Writing the justification

When a question says "justify", give all three pieces in words and symbols:

  1. The inequality, and where it holds: "For x≠0x \ne 0, −x2≤x2sin⁡(1x)≤x2-x^2 \le x^2 \sin\left(\frac{1}{x}\right) \le x^2."
  2. The limits of both bounds: "limx→0(−x2)=0\lim_{x \to 0} (-x^2) = 0 and limx→0x2=0\lim_{x \to 0} x^2 = 0."
  3. The conclusion with the theorem's name: "Therefore, by the squeeze theorem, limx→0x2sin⁡(1x)\lim_{x \to 0} x^2 \sin\left(\frac{1}{x}\right)=0= 0."

A justification that gives only one bound, or that finds the value of the function at the point, misses the idea. One bound allows many limits; the value at the point plays no part in a limit.

Spot a mistake on this page?