Skip to content
Family Table Math
Auto

The Squeeze Theorem

Some limits can’t be found by substituting or by algebra. The squeeze theorem (also called the sandwich theorem) handles them by trapping the function between two simpler functions that head to the same place. It’s also how we prove the most important trig limit in calculus, lim⁡x→0sin⁡xx=1\displaystyle\lim_{x \to 0} \frac{\sin x}{x} = 1. All angles on this page are in radians.

Suppose that for all xx near aa (except possibly at aa itself),

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

and

lim⁡x→ag(x)=L=lim⁡x→ah(x)\lim_{x \to a} g(x) = L = \lim_{x \to a} h(x)

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

Think of ff as a person walking between two friends who both arrive at the same door. Wherever they end up, ff ends up there too.

The most common use: sine and cosine are always between −1-1 and 11, whatever is inside them:

−1≤sin⁡(anything)≤1-1 \le \sin(\text{anything}) \le 1

So if f(x)=(something→0)×(something bounded)f(x) = (\text{something} \to 0) \times (\text{something bounded}), the squeeze theorem shows f(x)→0f(x) \to 0. The classic example is x2sin⁡(1x)x^2 \sin\left(\dfrac{1}{x}\right) (Example 1).

The graph of y = x squared times sine of 1 over x oscillates faster and faster near 0 but stays between the dashed parabolas y = x squared and y = negative x squared, so it is squeezed to 0 y = x² and y = −x² y = x² sin(1/x) −0.2 0.2 −0.08 −0.04 0.04 0.08
x2sin⁡(1x)x^2 \sin\left(\tfrac{1}{x}\right) oscillates wildly near 00, but it’s trapped between −x2-x^2 and x2x^2, so it’s squeezed to 00. (The vertical scale is stretched to show the wiggles.)

With xx in radians,

lim⁡x→0sin⁡xx=1lim⁡x→01−cos⁡xx=0\lim_{x \to 0} \frac{\sin x}{x} = 1 \qquad\qquad \lim_{x \to 0} \frac{1 - \cos x}{x} = 0

Where the first one comes from. Comparing areas inside the unit circle (a triangle, a sector, and a bigger triangle) shows that for small x≠0x \ne 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, so the squeeze theorem gives sin⁡xx→1\dfrac{\sin x}{x} \to 1. This only works in radians: the area of a sector is 12r2θ\tfrac{1}{2}r^2\theta only when θ\theta is in radians.

Useful consequences. Matching the angle with the denominator:

lim⁡x→0sin⁡(kx)kx=1,solim⁡x→0sin⁡(kx)x=k\lim_{x \to 0} \frac{\sin(kx)}{kx} = 1, \quad\text{so}\quad \lim_{x \to 0} \frac{\sin(kx)}{x} = k

State the inequality, state that both outer limits are equal, and name the theorem: “Since −x2≤f(x)≤x2-x^2 \le f(x) \le x^2 and lim⁡x→0(−x2)=lim⁡x→0x2=0\displaystyle\lim_{x \to 0} (-x^2) = \lim_{x \to 0} x^2 = 0, by the squeeze theorem lim⁡x→0f(x)=0\displaystyle\lim_{x \to 0} f(x) = 0.”

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

Solution. You can’t substitute, and lim⁡x→0sin⁡(1x)\displaystyle\lim_{x \to 0} \sin\left(\frac{1}{x}\right) doesn’t exist, so the product law doesn’t apply. Squeeze instead. For all x≠0x \ne 0,

−1≤sin⁡(1x)≤1-1 \le \sin\left(\frac{1}{x}\right) \le 1

Multiply through by x2x^2, which is positive, so the inequalities stay 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\lim_{x \to 0} x^2 \sin\left(\frac{1}{x}\right) = 0

Find lim⁡x→0sin⁡(5x)x\displaystyle\lim_{x \to 0} \frac{\sin(5x)}{x}.

Solution. To use sin⁡uu→1\dfrac{\sin u}{u} \to 1, the denominator must match the angle 5x5x. Multiply top and bottom by 55:

lim⁡x→0sin⁡(5x)x=lim⁡x→05⋅sin⁡(5x)5x=5⋅1=5\lim_{x \to 0} \frac{\sin(5x)}{x} = \lim_{x \to 0} 5 \cdot \frac{\sin(5x)}{5x} = 5 \cdot 1 = 5

(As x→0x \to 0, u=5x→0u = 5x \to 0 too, so sin⁡(5x)5x→1\dfrac{\sin(5x)}{5x} \to 1.)

Find lim⁡x→0tan⁡xx\displaystyle\lim_{x \to 0} \frac{\tan x}{x}.

Solution. Write tan⁡x=sin⁡xcos⁡x\tan x = \dfrac{\sin x}{\cos x} and split:

lim⁡x→0tan⁡xx=lim⁡x→0sin⁡xx⋅1cos⁡x=1⋅11=1\lim_{x \to 0} \frac{\tan x}{x} = \lim_{x \to 0} \frac{\sin x}{x} \cdot \frac{1}{\cos x} = 1 \cdot \frac{1}{1} = 1

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

Solution. Find the limits of the two bounds:

lim⁡x→4(4x−9)=16−9=7,lim⁡x→4(x2−4x+7)=16−16+7=7\lim_{x \to 4} (4x - 9) = 16 - 9 = 7, \qquad \lim_{x \to 4} (x^2 - 4x + 7) = 16 - 16 + 7 = 7

Both bounds approach 77, so by the squeeze theorem, lim⁡x→4f(x)=7\displaystyle\lim_{x \to 4} f(x) = 7.

(Check that the bounds make sense: (x2−4x+7)−(4x−9)=x2−8x+16=(x−4)2≥0(x^2 - 4x + 7) - (4x - 9) = x^2 - 8x + 16 = (x - 4)^2 \ge 0, so the upper bound really is above the lower one, touching at x=4x = 4.)

Using the product law on a limit that doesn’t exist. Writing lim⁡x2⋅lim⁡sin⁡(1x)=0⋅(something)\displaystyle\lim x^2 \cdot \lim \sin\left(\frac{1}{x}\right) = 0 \cdot (\text{something}) is wrong, because the second limit doesn’t exist. Use the squeeze theorem.

Bounds that go to different limits. The squeeze only works if both outer functions approach the same number. If g→0g \to 0 and h→2h \to 2, you only know ff is trapped between 00 and 22 (if its limit exists at all).

Forgetting radians. sin⁡xx→1\dfrac{\sin x}{x} \to 1 is true only in radians. In degrees the limit is π180\dfrac{\pi}{180}.

Not matching the angle. sin⁡(5x)x\dfrac{\sin(5x)}{x} does not approach 11. You need 5x5x in the denominator too, which gives a factor of 55.

Leaving out the justification. On free-response questions, write the inequality, the two limits, and the words “squeeze theorem”. Just writing the answer earns little credit.

1. (Warm-up) Find lim⁡x→0sin⁡(7x)x\displaystyle\lim_{x \to 0} \frac{\sin(7x)}{x}.

Solutionlim⁡x→07⋅sin⁡(7x)7x=7⋅1=7\lim_{x \to 0} 7 \cdot \frac{\sin(7x)}{7x} = 7 \cdot 1 = 7

2. (Warm-up) Find lim⁡x→0xsin⁡x\displaystyle\lim_{x \to 0} \frac{x}{\sin x}.

Solution

This is the reciprocal of sin⁡xx\dfrac{\sin x}{x}, which approaches 11:

lim⁡x→0xsin⁡x=11=1\lim_{x \to 0} \frac{x}{\sin x} = \frac{1}{1} = 1

3. (Warm-up) Suppose 1−x2≤f(x)≤1+x21 - x^2 \le f(x) \le 1 + x^2 for all xx. Find lim⁡x→0f(x)\displaystyle\lim_{x \to 0} f(x).

Solution

Both bounds approach 11 as x→0x \to 0, so by the squeeze theorem lim⁡x→0f(x)=1\displaystyle\lim_{x \to 0} f(x) = 1.

4. (Core) Find lim⁡x→0xcos⁡(1x)\displaystyle\lim_{x \to 0} x\cos\left(\frac{1}{x}\right). Justify your answer.

Solution

For x≠0x \ne 0, −1≤cos⁡(1x)≤1-1 \le \cos\left(\dfrac{1}{x}\right) \le 1. Multiplying by xx could flip the inequalities when x<0x \lt 0, so use ∣x∣|x| instead:

∣xcos⁡(1x)∣≤∣x∣⇒−∣x∣≤xcos⁡(1x)≤∣x∣\left| x\cos\left(\frac{1}{x}\right) \right| \le |x| \quad\Rightarrow\quad -|x| \le x\cos\left(\frac{1}{x}\right) \le |x|

Since lim⁡x→0(−∣x∣)=lim⁡x→0∣x∣=0\displaystyle\lim_{x \to 0} (-|x|) = \lim_{x \to 0} |x| = 0, by the squeeze theorem the limit is 00.

5. (Core) Find lim⁡x→0sin⁡(2x)5x\displaystyle\lim_{x \to 0} \frac{\sin(2x)}{5x}.

Solutionlim⁡x→025⋅sin⁡(2x)2x=25⋅1=25\lim_{x \to 0} \frac{2}{5} \cdot \frac{\sin(2x)}{2x} = \frac{2}{5} \cdot 1 = \frac{2}{5}

6. (Core) Find lim⁡x→01−cos⁡xsin⁡x\displaystyle\lim_{x \to 0} \frac{1 - \cos x}{\sin x}.

Solution

Divide top and bottom by xx to use both special limits:

lim⁡x→01−cos⁡xxsin⁡xx=01=0\lim_{x \to 0} \frac{\dfrac{1 - \cos x}{x}}{\dfrac{\sin x}{x}} = \frac{0}{1} = 0

7. (Core) Find lim⁡x→∞sin⁡xx\displaystyle\lim_{x \to \infty} \frac{\sin x}{x}. (This is a limit as xx grows without bound; see limits at infinity.)

Solution

For x>0x \gt 0, dividing −1≤sin⁡x≤1-1 \le \sin x \le 1 by the positive number xx gives

−1x≤sin⁡xx≤1x-\frac{1}{x} \le \frac{\sin x}{x} \le \frac{1}{x}

As x→∞x \to \infty, both −1x-\dfrac{1}{x} and 1x\dfrac{1}{x} approach 00. By the squeeze theorem, the limit is 00.

8. (Challenge) Find lim⁡x→01−cos⁡xx2\displaystyle\lim_{x \to 0} \frac{1 - \cos x}{x^2}.

Solution

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

lim⁡x→01−cos⁡xx2⋅1+cos⁡x1+cos⁡x=lim⁡x→0sin⁡2xx2(1+cos⁡x)=lim⁡x→0(sin⁡xx)2⋅11+cos⁡x=12⋅12=12\begin{aligned} \lim_{x \to 0} \frac{1 - \cos x}{x^2} \cdot \frac{1 + \cos x}{1 + \cos x} &= \lim_{x \to 0} \frac{\sin^2 x}{x^2 (1 + \cos x)} \\ &= \lim_{x \to 0} \left(\frac{\sin x}{x}\right)^2 \cdot \frac{1}{1 + \cos x} \\ &= 1^2 \cdot \frac{1}{2} = \frac{1}{2} \end{aligned}

9. (Challenge) Suppose 2x≤g(x)≤x4−x2+22x \le g(x) \le x^4 - x^2 + 2 for all real xx.

  • (a) Find lim⁡x→1g(x)\displaystyle\lim_{x \to 1} g(x).
  • (b) Show that the inequality is possible, that is, 2x≤x4−x2+22x \le x^4 - x^2 + 2 for every xx. (Hint: x4−x2−2x+2=(x−1)2(x2+2x+2)x^4 - x^2 - 2x + 2 = (x - 1)^2(x^2 + 2x + 2).)
Solution

(a) lim⁡x→12x=2\displaystyle\lim_{x \to 1} 2x = 2 and lim⁡x→1(x4−x2+2)=1−1+2=2\displaystyle\lim_{x \to 1} (x^4 - x^2 + 2) = 1 - 1 + 2 = 2. Both bounds approach 22, so by the squeeze theorem lim⁡x→1g(x)=2\displaystyle\lim_{x \to 1} g(x) = 2.

(b) (x4−x2+2)−2x=(x−1)2(x2+2x+2)(x^4 - x^2 + 2) - 2x = (x - 1)^2(x^2 + 2x + 2). The first factor is a square, so it’s never negative. The second is (x+1)2+1(x + 1)^2 + 1, which is always positive. So the difference is never negative, and 2x≤x4−x2+22x \le x^4 - x^2 + 2 for all xx.

Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site. All angles in this homework are in radians. Give the bounding argument or the standard trigonometric limit used; a calculator estimate alone is not a solution.

H1. (Foundations) Suppose 1−x2≤f(x)≤1+2x21-x^2\le f(x)\le1+2x^2 for all nonzero xx sufficiently near 00. Find lim⁡x→0f(x)\lim_{x\to0}f(x) and identify both outer limits.

H2. (Foundations) Evaluate lim⁡x→0x2cos⁡(5/x)\displaystyle\lim_{x\to0}x^2\cos(5/x) by writing lower and upper bounds.

H3. (Core) Evaluate lim⁡x→0xsin⁡(4/x)\displaystyle\lim_{x\to0}x\sin(4/x). Explain why −x≤xsin⁡(4/x)≤x-x\le x\sin(4/x)\le x is not a valid bound on both sides of 00.

H4. (Core) Evaluate lim⁡x→0sin⁡(4x)7x\displaystyle\lim_{x\to0}\dfrac{\sin(4x)}{7x} by rewriting it in terms of sin⁡u/u\sin u/u.

H5. (Core) Evaluate lim⁡x→0tan⁡(2x)sin⁡(3x)\displaystyle\lim_{x\to0}\dfrac{\tan(2x)}{\sin(3x)}. Separate the scaled sine terms and the cosine term, checking their limits.

H6. (Core) Evaluate lim⁡x→01−cos⁡(4x)x2\displaystyle\lim_{x\to0}\dfrac{1-\cos(4x)}{x^2} using a trigonometric identity and the standard sine limit.

H7. (Challenge) For x≠2x\ne2, let P(x)=3+(x−2)2sin⁡(1/(x−2))P(x)=3+(x-2)^2\sin(1/(x-2)), and let P(2)=8P(2)=8. Prove the limit at 22 exists, find it, and decide whether the assigned value affects the proof.

H8. (Challenge) For a real parameter pp, investigate lim⁡x→0∣x∣pcos⁡(1/x)\displaystyle\lim_{x\to0}|x|^p\cos(1/x). For which pp is the limit finite? Give its value when it is finite, and justify the other cases using positive sequences approaching 00.

H9. (Challenge) A student claims a function can satisfy x2+1≤h(x)≤2xx^2+1\le h(x)\le2x for every x≠1x\ne1 sufficiently near 11. Test whether these bounds are compatible. Reverse the bounds, then determine the limit any function satisfying the corrected inequalities must have.

H10. (Challenge) Suppose ∣g(x)∣≤4|g(x)|\le4 near 00, but nothing else is known about gg. Decide which limits must exist and give their values. For any limit that is not guaranteed, give a bounded counterexample.

  • (a) lim⁡x→0x2g(x)\displaystyle\lim_{x\to0}x^2g(x).
  • (b) lim⁡x→0sin⁡xxg(x)\displaystyle\lim_{x\to0}\frac{\sin x}{x}g(x).
  • (c) lim⁡x→0xg(x)1+x2\displaystyle\lim_{x\to0}\frac{xg(x)}{1+x^2}.