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 → 0 sin x x = 1 \displaystyle\lim_{x \to 0} \frac{\sin x}{x} = 1 x → 0 lim x sin x = 1 . All angles on this page are in radians .
Suppose that for all x x x near a a a (except possibly at a a a itself),
g ( x ) ≤ f ( x ) ≤ h ( x ) g(x) \le f(x) \le h(x) g ( x ) ≤ f ( x ) ≤ h ( x )
and
lim x → a g ( x ) = L = lim x → a h ( x ) \lim_{x \to a} g(x) = L = \lim_{x \to a} h(x) x → a lim g ( x ) = L = x → a lim h ( x )
Then lim x → a f ( x ) = L \displaystyle\lim_{x \to a} f(x) = L x → a lim f ( x ) = L .
Think of f f f as a person walking between two friends who both arrive at the same door. Wherever they end up, f f f ends up there too.
The most common use: sine and cosine are always between − 1 -1 − 1 and 1 1 1 , whatever is inside them:
− 1 ≤ sin ( anything ) ≤ 1 -1 \le \sin(\text{anything}) \le 1 − 1 ≤ sin ( anything ) ≤ 1
So if f ( x ) = ( something → 0 ) × ( something bounded ) f(x) = (\text{something} \to 0) \times (\text{something bounded}) f ( x ) = ( something → 0 ) × ( something bounded ) , the squeeze theorem shows f ( x ) → 0 f(x) \to 0 f ( x ) → 0 . The classic example is x 2 sin ( 1 x ) x^2 \sin\left(\dfrac{1}{x}\right) x 2 sin ( x 1 ) (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
−0.2
0.2
−0.08
−0.04
0.04
0.08
y = x² and y = −x²
y = x² sin(1/x)
x 2 sin ( 1 x ) x^2 \sin\left(\tfrac{1}{x}\right) x 2 sin ( x 1 ) oscillates wildly near 0 0 0 , but it’s trapped between − x 2 -x^2 − x 2 and x 2 x^2 x 2 , so it’s squeezed to 0 0 0 . (The vertical scale is stretched to show the wiggles.)
With x x x in radians,
lim x → 0 sin x x = 1 lim x → 0 1 − cos x x = 0 \lim_{x \to 0} \frac{\sin x}{x} = 1 \qquad\qquad \lim_{x \to 0} \frac{1 - \cos x}{x} = 0 x → 0 lim x sin x = 1 x → 0 lim x 1 − cos 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 ≠ 0 x \ne 0 x = 0 ,
cos x ≤ sin x x ≤ 1 \cos x \le \frac{\sin x}{x} \le 1 cos x ≤ x sin x ≤ 1
As x → 0 x \to 0 x → 0 , cos x → 1 \cos x \to 1 cos x → 1 , so the squeeze theorem gives sin x x → 1 \dfrac{\sin x}{x} \to 1 x sin x → 1 . This only works in radians: the area of a sector is 1 2 r 2 θ \tfrac{1}{2}r^2\theta 2 1 r 2 θ only when θ \theta θ is in radians.
Useful consequences. Matching the angle with the denominator:
lim x → 0 sin ( k x ) k x = 1 , so lim x → 0 sin ( k x ) x = k \lim_{x \to 0} \frac{\sin(kx)}{kx} = 1, \quad\text{so}\quad \lim_{x \to 0} \frac{\sin(kx)}{x} = k x → 0 lim k x sin ( k x ) = 1 , so x → 0 lim x sin ( k x ) = k
State the inequality, state that both outer limits are equal, and name the theorem: “Since − x 2 ≤ f ( x ) ≤ x 2 -x^2 \le f(x) \le x^2 − x 2 ≤ f ( x ) ≤ x 2 and lim x → 0 ( − x 2 ) = lim x → 0 x 2 = 0 \displaystyle\lim_{x \to 0} (-x^2) = \lim_{x \to 0} x^2 = 0 x → 0 lim ( − x 2 ) = x → 0 lim x 2 = 0 , by the squeeze theorem lim x → 0 f ( x ) = 0 \displaystyle\lim_{x \to 0} f(x) = 0 x → 0 lim f ( x ) = 0 .”
Find lim x → 0 x 2 sin ( 1 x ) \displaystyle\lim_{x \to 0} x^2 \sin\left(\frac{1}{x}\right) x → 0 lim x 2 sin ( x 1 ) .
Solution. You can’t substitute, and lim x → 0 sin ( 1 x ) \displaystyle\lim_{x \to 0} \sin\left(\frac{1}{x}\right) x → 0 lim sin ( x 1 ) doesn’t exist, so the product law doesn’t apply. Squeeze instead. For all x ≠ 0 x \ne 0 x = 0 ,
− 1 ≤ sin ( 1 x ) ≤ 1 -1 \le \sin\left(\frac{1}{x}\right) \le 1 − 1 ≤ sin ( x 1 ) ≤ 1
Multiply through by x 2 x^2 x 2 , which is positive, so the inequalities stay the same way:
− x 2 ≤ x 2 sin ( 1 x ) ≤ x 2 -x^2 \le x^2 \sin\left(\frac{1}{x}\right) \le x^2 − x 2 ≤ x 2 sin ( x 1 ) ≤ x 2
Since lim x → 0 ( − x 2 ) = 0 \displaystyle\lim_{x \to 0} (-x^2) = 0 x → 0 lim ( − x 2 ) = 0 and lim x → 0 x 2 = 0 \displaystyle\lim_{x \to 0} x^2 = 0 x → 0 lim x 2 = 0 , the squeeze theorem gives
lim x → 0 x 2 sin ( 1 x ) = 0 \lim_{x \to 0} x^2 \sin\left(\frac{1}{x}\right) = 0 x → 0 lim x 2 sin ( x 1 ) = 0
Find lim x → 0 sin ( 5 x ) x \displaystyle\lim_{x \to 0} \frac{\sin(5x)}{x} x → 0 lim x sin ( 5 x ) .
Solution. To use sin u u → 1 \dfrac{\sin u}{u} \to 1 u sin u → 1 , the denominator must match the angle 5 x 5x 5 x . Multiply top and bottom by 5 5 5 :
lim x → 0 sin ( 5 x ) x = lim x → 0 5 ⋅ sin ( 5 x ) 5 x = 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 x → 0 lim x sin ( 5 x ) = x → 0 lim 5 ⋅ 5 x sin ( 5 x ) = 5 ⋅ 1 = 5
(As x → 0 x \to 0 x → 0 , u = 5 x → 0 u = 5x \to 0 u = 5 x → 0 too, so sin ( 5 x ) 5 x → 1 \dfrac{\sin(5x)}{5x} \to 1 5 x sin ( 5 x ) → 1 .)
Find lim x → 0 tan x x \displaystyle\lim_{x \to 0} \frac{\tan x}{x} x → 0 lim x tan x .
Solution. Write tan x = sin x cos x \tan x = \dfrac{\sin x}{\cos x} tan x = cos x sin x and split:
lim x → 0 tan x x = lim x → 0 sin x x ⋅ 1 cos x = 1 ⋅ 1 1 = 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 x → 0 lim x tan x = x → 0 lim x sin x ⋅ cos x 1 = 1 ⋅ 1 1 = 1
Suppose 4 x − 9 ≤ f ( x ) ≤ x 2 − 4 x + 7 4x - 9 \le f(x) \le x^2 - 4x + 7 4 x − 9 ≤ f ( x ) ≤ x 2 − 4 x + 7 for all x ≥ 0 x \ge 0 x ≥ 0 . Find lim x → 4 f ( x ) \displaystyle\lim_{x \to 4} f(x) x → 4 lim f ( x ) .
Solution. Find the limits of the two bounds:
lim x → 4 ( 4 x − 9 ) = 16 − 9 = 7 , lim x → 4 ( x 2 − 4 x + 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 x → 4 lim ( 4 x − 9 ) = 16 − 9 = 7 , x → 4 lim ( x 2 − 4 x + 7 ) = 16 − 16 + 7 = 7
Both bounds approach 7 7 7 , so by the squeeze theorem, lim x → 4 f ( x ) = 7 \displaystyle\lim_{x \to 4} f(x) = 7 x → 4 lim f ( x ) = 7 .
(Check that the bounds make sense: ( x 2 − 4 x + 7 ) − ( 4 x − 9 ) = x 2 − 8 x + 16 = ( x − 4 ) 2 ≥ 0 (x^2 - 4x + 7) - (4x - 9) = x^2 - 8x + 16 = (x - 4)^2 \ge 0 ( x 2 − 4 x + 7 ) − ( 4 x − 9 ) = x 2 − 8 x + 16 = ( x − 4 ) 2 ≥ 0 , so the upper bound really is above the lower one, touching at x = 4 x = 4 x = 4 .)
Using the product law on a limit that doesn’t exist. Writing lim x 2 ⋅ lim sin ( 1 x ) = 0 ⋅ ( something ) \displaystyle\lim x^2 \cdot \lim \sin\left(\frac{1}{x}\right) = 0 \cdot (\text{something}) lim x 2 ⋅ lim sin ( x 1 ) = 0 ⋅ ( 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 → 0 g \to 0 g → 0 and h → 2 h \to 2 h → 2 , you only know f f f is trapped between 0 0 0 and 2 2 2 (if its limit exists at all).
Forgetting radians. sin x x → 1 \dfrac{\sin x}{x} \to 1 x sin x → 1 is true only in radians. In degrees the limit is π 180 \dfrac{\pi}{180} 180 π .
Not matching the angle. sin ( 5 x ) x \dfrac{\sin(5x)}{x} x sin ( 5 x ) does not approach 1 1 1 . You need 5 x 5x 5 x in the denominator too, which gives a factor of 5 5 5 .
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 → 0 sin ( 7 x ) x \displaystyle\lim_{x \to 0} \frac{\sin(7x)}{x} x → 0 lim x sin ( 7 x ) .
Solution lim x → 0 7 ⋅ sin ( 7 x ) 7 x = 7 ⋅ 1 = 7 \lim_{x \to 0} 7 \cdot \frac{\sin(7x)}{7x} = 7 \cdot 1 = 7 x → 0 lim 7 ⋅ 7 x sin ( 7 x ) = 7 ⋅ 1 = 7
2. (Warm-up) Find lim x → 0 x sin x \displaystyle\lim_{x \to 0} \frac{x}{\sin x} x → 0 lim sin x x .
Solution This is the reciprocal of sin x x \dfrac{\sin x}{x} x sin x , which approaches 1 1 1 :
lim x → 0 x sin x = 1 1 = 1 \lim_{x \to 0} \frac{x}{\sin x} = \frac{1}{1} = 1 x → 0 lim sin x x = 1 1 = 1
3. (Warm-up) Suppose 1 − x 2 ≤ f ( x ) ≤ 1 + x 2 1 - x^2 \le f(x) \le 1 + x^2 1 − x 2 ≤ f ( x ) ≤ 1 + x 2 for all x x x . Find lim x → 0 f ( x ) \displaystyle\lim_{x \to 0} f(x) x → 0 lim f ( x ) .
Solution Both bounds approach 1 1 1 as x → 0 x \to 0 x → 0 , so by the squeeze theorem lim x → 0 f ( x ) = 1 \displaystyle\lim_{x \to 0} f(x) = 1 x → 0 lim f ( x ) = 1 .
4. (Core) Find lim x → 0 x cos ( 1 x ) \displaystyle\lim_{x \to 0} x\cos\left(\frac{1}{x}\right) x → 0 lim x cos ( x 1 ) . Justify your answer.
Solution For x ≠ 0 x \ne 0 x = 0 , − 1 ≤ cos ( 1 x ) ≤ 1 -1 \le \cos\left(\dfrac{1}{x}\right) \le 1 − 1 ≤ cos ( x 1 ) ≤ 1 . Multiplying by x x x could flip the inequalities when x < 0 x \lt 0 x < 0 , so use ∣ x ∣ |x| ∣ x ∣ instead:
∣ x cos ( 1 x ) ∣ ≤ ∣ x ∣ ⇒ − ∣ x ∣ ≤ x cos ( 1 x ) ≤ ∣ 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| x cos ( x 1 ) ≤ ∣ x ∣ ⇒ − ∣ x ∣ ≤ x cos ( x 1 ) ≤ ∣ x ∣ Since lim x → 0 ( − ∣ x ∣ ) = lim x → 0 ∣ x ∣ = 0 \displaystyle\lim_{x \to 0} (-|x|) = \lim_{x \to 0} |x| = 0 x → 0 lim ( − ∣ x ∣ ) = x → 0 lim ∣ x ∣ = 0 , by the squeeze theorem the limit is 0 0 0 .
5. (Core) Find lim x → 0 sin ( 2 x ) 5 x \displaystyle\lim_{x \to 0} \frac{\sin(2x)}{5x} x → 0 lim 5 x sin ( 2 x ) .
Solution lim x → 0 2 5 ⋅ sin ( 2 x ) 2 x = 2 5 ⋅ 1 = 2 5 \lim_{x \to 0} \frac{2}{5} \cdot \frac{\sin(2x)}{2x} = \frac{2}{5} \cdot 1 = \frac{2}{5} x → 0 lim 5 2 ⋅ 2 x sin ( 2 x ) = 5 2 ⋅ 1 = 5 2
6. (Core) Find lim x → 0 1 − cos x sin x \displaystyle\lim_{x \to 0} \frac{1 - \cos x}{\sin x} x → 0 lim sin x 1 − cos x .
Solution Divide top and bottom by x x x to use both special limits:
lim x → 0 1 − cos x x sin x x = 0 1 = 0 \lim_{x \to 0} \frac{\dfrac{1 - \cos x}{x}}{\dfrac{\sin x}{x}} = \frac{0}{1} = 0 x → 0 lim x sin x x 1 − cos x = 1 0 = 0
7. (Core) Find lim x → ∞ sin x x \displaystyle\lim_{x \to \infty} \frac{\sin x}{x} x → ∞ lim x sin x . (This is a limit as x x x grows without bound; see limits at infinity .)
Solution For x > 0 x \gt 0 x > 0 , dividing − 1 ≤ sin x ≤ 1 -1 \le \sin x \le 1 − 1 ≤ sin x ≤ 1 by the positive number x x x gives
− 1 x ≤ sin x x ≤ 1 x -\frac{1}{x} \le \frac{\sin x}{x} \le \frac{1}{x} − x 1 ≤ x sin x ≤ x 1 As x → ∞ x \to \infty x → ∞ , both − 1 x -\dfrac{1}{x} − x 1 and 1 x \dfrac{1}{x} x 1 approach 0 0 0 . By the squeeze theorem, the limit is 0 0 0 .
8. (Challenge) Find lim x → 0 1 − cos x x 2 \displaystyle\lim_{x \to 0} \frac{1 - \cos x}{x^2} x → 0 lim x 2 1 − cos x .
Solution Multiply top and bottom by 1 + cos x 1 + \cos x 1 + cos x , and use 1 − cos 2 x = sin 2 x 1 - \cos^2 x = \sin^2 x 1 − cos 2 x = sin 2 x :
lim x → 0 1 − cos x x 2 ⋅ 1 + cos x 1 + cos x = lim x → 0 sin 2 x x 2 ( 1 + cos x ) = lim x → 0 ( sin x x ) 2 ⋅ 1 1 + cos x = 1 2 ⋅ 1 2 = 1 2 \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} x → 0 lim x 2 1 − cos x ⋅ 1 + cos x 1 + cos x = x → 0 lim x 2 ( 1 + cos x ) sin 2 x = x → 0 lim ( x sin x ) 2 ⋅ 1 + cos x 1 = 1 2 ⋅ 2 1 = 2 1
9. (Challenge) Suppose 2 x ≤ g ( x ) ≤ x 4 − x 2 + 2 2x \le g(x) \le x^4 - x^2 + 2 2 x ≤ g ( x ) ≤ x 4 − x 2 + 2 for all real x x x .
(a) Find lim x → 1 g ( x ) \displaystyle\lim_{x \to 1} g(x) x → 1 lim g ( x ) .
(b) Show that the inequality is possible, that is, 2 x ≤ x 4 − x 2 + 2 2x \le x^4 - x^2 + 2 2 x ≤ x 4 − x 2 + 2 for every x x x . (Hint: x 4 − x 2 − 2 x + 2 = ( x − 1 ) 2 ( x 2 + 2 x + 2 ) x^4 - x^2 - 2x + 2 = (x - 1)^2(x^2 + 2x + 2) x 4 − x 2 − 2 x + 2 = ( x − 1 ) 2 ( x 2 + 2 x + 2 ) .)
Solution (a) lim x → 1 2 x = 2 \displaystyle\lim_{x \to 1} 2x = 2 x → 1 lim 2 x = 2 and lim x → 1 ( x 4 − x 2 + 2 ) = 1 − 1 + 2 = 2 \displaystyle\lim_{x \to 1} (x^4 - x^2 + 2) = 1 - 1 + 2 = 2 x → 1 lim ( x 4 − x 2 + 2 ) = 1 − 1 + 2 = 2 . Both bounds approach 2 2 2 , so by the squeeze theorem lim x → 1 g ( x ) = 2 \displaystyle\lim_{x \to 1} g(x) = 2 x → 1 lim g ( x ) = 2 .
(b) ( x 4 − x 2 + 2 ) − 2 x = ( x − 1 ) 2 ( x 2 + 2 x + 2 ) (x^4 - x^2 + 2) - 2x = (x - 1)^2(x^2 + 2x + 2) ( x 4 − x 2 + 2 ) − 2 x = ( x − 1 ) 2 ( x 2 + 2 x + 2 ) . The first factor is a square, so it’s never negative. The second is ( x + 1 ) 2 + 1 (x + 1)^2 + 1 ( x + 1 ) 2 + 1 , which is always positive. So the difference is never negative, and 2 x ≤ x 4 − x 2 + 2 2x \le x^4 - x^2 + 2 2 x ≤ x 4 − x 2 + 2 for all x x x .