2.9 The Squeeze Theorem

How do we evaluate limits when algebra completely fails us? Consider the function:

f⁢(x)≔{x⁢sin⁡(1x)if ⁢x≠00if ⁢x=0\begin{split}f(x)\coloneqq\begin{cases}x\sin\left(\frac{1}{x}\right)&\text{if % }x\neq 0\\ 0&\text{if }x=0\end{cases}\end{split}

This function is a beautiful monstrosity. As x→0x\to 0, the argument 1/x1/x goes to infinity, driving the sine function through an infinite number of cycles arbitrarily close to the origin. Direct substitution gives 0×undefined0\times\text{undefined}, and no amount of factoring will save us.

However, we know that the sine function is bounded: −1≤sin⁡(1/x)≤1-1\leq\sin(1/x)\leq 1. Multiplying this entire inequality by |x|\left\lvert x\right\rvert yields:

equation (2.32) (2.32)
−|x|≤x⁢sin⁡(1x)≤|x|,-\left\lvert x\right\rvert\leq x\sin\left(\frac{1}{x}\right)\leq\left\lvert x% \right\rvert,

see Figure 2.12.

A plot of the highly oscillatory function f(x) = x sin(1/x) (represented here as x sin(2.5/x) for visual clarity), bounded between g(x) = |x| (represented by a green dashed line) and h(x) = -|x| (represented by a blue dashed line). The x and y axes intersect at the origin, where the red curve oscillates infinitely rapidly while staying strictly bounded by the two dashed lines, illustrating the squeeze theorem.
Figure 2.12: The graph of f⁢(x)=x⁢sin⁡(1/x)f(x)=x\sin(1/x) bounded by g⁢(x)=|x|g(x)=\left\lvert x\right\rvert and h⁢(x)=−|x|h(x)=-\left\lvert x\right\rvert, illustrating the Squeeze Theorem at x=0x=0.

To formally exploit this geometry, we need a fundamental lemma.

Lemma 2.9.1 (Limit preserves inequalities).

If h⁢(x)≤g⁢(x)h(x)\leq g(x) near aa, then

limx→ah⁢(x)≤limx→ag⁢(x).\lim_{x\to a}h(x)\leq\lim_{x\to a}g(x).
Proof.

Exercise for the reader. Hint: use contradiction and ε\varepsilon-δ\delta definition of limit. ∎

Applying Lemma 2.9.1 to (2.32), we take the limit as x→0x\to 0 across the entire inequality:

limx→0(−|x|)≤limx→0f⁢(x)≤limx→0|x|0≤limx→0f⁢(x)≤0.\begin{split}\lim_{x\to 0}\left(-\left\lvert x\right\rvert\right)&{}\leq\lim_{% x\to 0}f(x)\leq\lim_{x\to 0}\left\lvert x\right\rvert\\ 0&{}\leq\lim_{x\to 0}f(x)\leq 0.\end{split}

Trapped between two zeroes, the limit has no choice but to be 0. Furthermore, since limx→0f⁢(x)=0=f⁢(0)\lim_{x\to 0}f(x)=0=f(0), we have proven that ff is continuous at the origin!

This technique is so important that it earns the title of a Theorem.

Theorem 2.9.2 (The Squeeze Theorem).

If h⁢(x)≤f⁢(x)≤g⁢(x)h(x)\leq f(x)\leq g(x) for all xx in an open interval containing aa, except possibly at aa itself, and if

limx→ah⁢(x)=L=limx→ag⁢(x),\lim_{x\to a}h(x)=L=\lim_{x\to a}g(x),

then limx→af⁢(x)\lim_{x\to a}f(x) exists and is strictly equal to LL.

Story (The Sandwich of Truth).

Historically, tracking wild oscillations was a monumental task. The Squeeze Theorem (often affectionately called the Sandwich Theorem or the Two Policemen Theorem) is a masterpiece of non-constructive reasoning. Instead of wrestling directly with the chaotic behavior of f⁢(x)f(x), we delegate the heavy lifting to two simpler, bounding functions. It is a mathematical manifestation of a physical reality: if a particle is trapped in a shrinking corridor, its ultimate destination is determined entirely by the location of the walls.

We now arrive at a limit that forms the bedrock of all periodic phenomena in calculus. If you want to differentiate a sine wave—and therefore, if you want to understand light, sound, or quantum mechanics—you must pass through this limit.

Corollary 2.9.3 (Two Fundamental Limits).

The following limits hold true:

  1. 1.
    ​

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

  2. 2.
    ​

    limx→0(1+x)1/x=e\displaystyle\lim_{x\to 0}(1+x)^{1/x}=\mathrm{e}

We will provide a geometric proof of the first limit.

Proof.

Let θ∈(0,π/2)\theta\in(0,\pi/2) be a small angle measured in radians. Consider the unit circle in the Cartesian plane. We construct three nested geometric regions based on the angle θ\theta, see Figure 2.13.

A geometric diagram on the Cartesian plane illustrating a portion of the unit circle in the first quadrant. A sector with angle theta is shaded in light blue. A red line segment lies on the x-axis from the origin to (1,0), and another red line segment connects (cos theta, sin theta) to (1,0). A green line segment goes from the origin to (1, tan theta) passing through (cos theta, sin theta), and a vertical green line segment goes from (1,0) to (1, tan theta).
Figure 2.13: Geometric representation of trigonometric relationships in the first quadrant of the unit circle.
  1. 1.
    ​

    The Inner Triangle (Red): Formed by the origin (0,0)(0,0), the point (1,0)(1,0), and the point (cos⁡θ,sin⁡θ)(\cos\theta,\sin\theta) on the unit circle. Its base is 11 and its height is sin⁡θ\sin\theta.

  2. 2.
    ​

    The Circular Sector (Blue Wedge): The wedge of the unit circle swept out by the angle θ\theta.

  3. 3.
    ​

    The Outer Triangle (Green): Formed by extending the hypotenuse until it intersects the vertical tangent at x=1x=1, meeting at (1,tan⁡θ)(1,\tan\theta). This right triangle has base 11 and height tan⁡θ\tan\theta.

Visually and geometrically, each region is entirely contained within the next. Thus, their respective areas obey a strict hierarchy:

area⁡(inner ⁢△)≤area⁡(sector)≤area⁡(outer ⁢△).\operatorname{area}({\color[rgb]{0.70703125,0.1171875,0.1171875}\text{inner }% \triangle})\leq\operatorname{area}(\text{sector})\leq\operatorname{area}({% \color[rgb]{0,0.88,0}\text{outer }\triangle}).

Substituting the standard area formulas yields:

12⁢(1)⁢(sin⁡θ)≤θ2⁢π⁢(π⋅12)≤12⁢(1)⁢(tan⁡θ).\frac{1}{2}(1)(\sin\theta)\leq\frac{\theta}{2\pi}\left(\pi\cdot 1^{2}\right)% \leq\frac{1}{2}(1)(\tan\theta).

Simplifying the terms, we obtain a fundamental inequality:

sin⁡θ≤θ≤tan⁡θ.\sin\theta\leq\theta\leq\tan\theta.

Because θ>0\theta>0, we know sin⁡θ>0\sin\theta>0. We may divide the entire chain by sin⁡θ\sin\theta without flipping the inequalities to obtain:

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

Taking the reciprocal of all terms forces the direction of the inequalities to reverse:

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

At this point, the algebraic and geometric path is exhausted, but the analytic path opens. We take the limit as θ→0+\theta\to 0^{+}. Since the cosine function is continuous at zero, limθ→0+cos⁡θ=1\lim_{\theta\to 0^{+}}\cos\theta=1. The upper bound is trivially the constant 11.

By Theorem 2.9.2, our function satisfies

limθ→0+sin⁡θθ=1.\lim_{\theta\to 0^{+}}\frac{\sin\theta}{\theta}=1.

By noting the even symmetry of the function sin⁡(−θ)(−θ)=sin⁡θθ\frac{\sin(-\theta)}{(-\theta)}=\frac{\sin\theta}{\theta}, this result immediately extends to the two-sided limit, completing the proof. ∎

The limit

equation (2.33) (2.33)
limx→0sin⁡xx=1.\lim_{x\to 0}\frac{\sin x}{x}=1.

is often considered the atomic limit of trigonometry: it tells us that for very small angles, sin⁡x\sin x is indistinguishable from xx itself. Thus we can heuristically cancel them altogether as if we are factoring out the singularity in a rational function (to be rigorous, you need to include the limx→0\lim_{x\to 0}, however). We will use (2.33) to resolve more complicated limits.

Example 2.9.4.

Evaluate the limit

limx→01−cos⁡xx.\lim_{x\to 0}\frac{1-\cos x}{x}.
Intuition (Order of Vanishing).

When you plug in x=0x=0, you immediately get 1−10=00\frac{1-1}{0}=\frac{0}{0}. But let’s pause and consider the rate at which the numerator goes to zero. If you look at the graph of a cosine wave near its peak, cos⁡x≈1−x22\cos x\approx 1-\frac{x^{2}}{2} (you can justify this rigorously in Calculus II using the Maclaurin expansion—a special power series). Thus, the numerator 1−cos⁡x1-\cos x behaves like x22\frac{x^{2}}{2}. It vanishes quadratically, while the denominator vanishes linearly. A quadratic zero divided by a linear zero should still be zero! Let us now make this rigorous.

To resolve this without invoking power series, we employ the half-angle trigonometric identity. Recall the double angle formula for cosine that was derived via Euler identity in Lemma 1.7.5:

cos⁡2⁢t=cos2⁡t−sin2⁡t=(1−sin2⁡t)−sin2⁡t=1−2⁢sin2⁡t.\begin{split}\cos 2t&{}=\cos^{2}t-\sin^{2}t\\ &{}=(1-\sin^{2}t)-\sin^{2}t\\ &{}=1-2\sin^{2}t.\end{split}

Rearranging this gives us:

2⁢sin2⁡t=1−cos⁡2⁢t.\begin{split}2\sin^{2}t=1-\cos 2t.\end{split}

Now, setting x=2⁢tx=2t (or equivalently t=x/2t=x/2), we obtain:

equation (2.34) (2.34)
1−cos⁡x=2⁢sin2⁡(x2).1-\cos x=2\sin^{2}\left(\frac{x}{2}\right).

We use (2.34) to rewrite our limit:

limx→01−cos⁡xx=limx→02⁢sin2⁡(x/2)x.\begin{split}\lim_{x\to 0}\frac{1-\cos x}{x}&{}=\lim_{x\to 0}\frac{2\sin^{2}(x% /2)}{x}.\end{split}

Let us make the substitution u=x2u=\frac{x}{2}. Notice that as x→0x\to 0, u→0u\to 0. The denominator xx becomes 2⁢u2u. Thus, the limit transforms into:

limu→02⁢sin2⁡u2⁢u=limu→0sin2⁡uu=limu→0((sin⁡u)⋅sin⁡uu).\begin{split}\lim_{u\to 0}\frac{2\sin^{2}u}{2u}&{}=\lim_{u\to 0}\frac{\sin^{2}% u}{u}\\ &{}=\lim_{u\to 0}\left((\sin u)\cdot\frac{\sin u}{u}\right).\end{split}

Because the limit of a product is the product of the limits (provided both exist), we split this apart:

(limu→0sin⁡u)⁢(limu→0sin⁡uu)=(sin⁡0)⋅1=0⋅1=0.\begin{split}\left(\lim_{u\to 0}\sin u\right)\left(\lim_{u\to 0}\frac{\sin u}{% u}\right)&{}=(\sin 0)\cdot 1\\ &{}=0\cdot 1\\ &{}=0.\end{split}
Example 2.9.5.

Evaluate limx→0tan⁡xx\displaystyle\lim_{x\to 0}\frac{\tan x}{x}.

Here, we decompose the tangent function into its sine and cosine constituents to leverage (2.33).

limx→0tan⁡xx=limx→0(sin⁡xx⁢cos⁡x)=limx→0(sin⁡xx⋅1cos⁡x).=(limx→0sin⁡xx)⁢(limx→01cos⁡x)=1⋅11=1.\begin{split}\lim_{x\to 0}\frac{\tan x}{x}&{}=\lim_{x\to 0}\left(\frac{\sin x}% {x\cos x}\right)\\ &{}=\lim_{x\to 0}\left(\frac{\sin x}{x}\cdot\frac{1}{\cos x}\right).\\ &{}=\left(\lim_{x\to 0}\frac{\sin x}{x}\right)\left(\lim_{x\to 0}\frac{1}{\cos x% }\right)\\ &{}=1\cdot\frac{1}{1}=1.\end{split}
Example 2.9.6.

Evaluate limx→0sin⁡4⁢xx\displaystyle\lim_{x\to 0}\frac{\sin 4x}{x}.

This limit introduces a slight scaling mismatch between the argument of the sine and the denominator. The limit (2.33) demands symmetry: if we have 4⁢x4x inside the sine, we need a 4⁢x4x in the denominator. We enforce this by multiplying the numerator and denominator by 44:

limx→0sin⁡4⁢xx=limx→04⁢sin⁡4⁢x4⁢x.\lim_{x\to 0}\frac{\sin 4x}{x}=\lim_{x\to 0}\frac{4\sin 4x}{4x}.

Let us define a new variable u≔4⁢xu\coloneqq 4x. As x→0x\to 0, it follows that u→0u\to 0 (limx→0u=limx→04⁢x=0\lim_{x\to 0}u=\lim_{x\to 0}4x=0). The limit becomes:

limu→04⁢sin⁡uu=4⁢limu→0sin⁡uu=4⋅1=4.\begin{split}\lim_{u\to 0}\frac{4\sin u}{u}&{}=4\lim_{u\to 0}\frac{\sin u}{u}=% 4\cdot 1=4.\end{split}
Exercise 2.9.7.

Can you generalize this to show that limx→0sin⁡(a⁢x)b⁢x=ab\lim_{x\to 0}\frac{\sin(ax)}{bx}=\frac{a}{b} for any non-zero constants a,ba,b?

We now shift from the oscillations of trigonometry to the growth of logarithms.

Example 2.9.8.

Evaluate the right-hand limit:

limx→0+log⁡(1+x)x.\lim_{x\to 0^{+}}\frac{\log(1+x)}{x}.

Once again, direct substitution yields 0/00/0. To crack this open, we rewrite the fraction as a product, leveraging the algebraic properties of logarithms. Recall that b⁢log⁡a=log⁡(ab)b\log a=\log(a^{b}). Therefore:

limx→0+1x⁢log⁡(1+x)=limx→0+log⁡[(1+x)1x].\begin{split}\lim_{x\to 0^{+}}\frac{1}{x}\log(1+x)&{}=\lim_{x\to 0^{+}}\log% \left[(1+x)^{\frac{1}{x}}\right].\end{split}

Because the natural logarithm function, log⁡(y)\log(y), is perfectly continuous for y>0y>0, we are legally permitted to pull the limit inside the logarithm:

limx→0+1x⁢log⁡(1+x)=log⁡(limx→0+(1+x)1x)=log⁡(e)=1.\lim_{x\to 0^{+}}\frac{1}{x}\log(1+x)=\log\left(\lim_{x\to 0^{+}}(1+x)^{\frac{% 1}{x}}\right)=\log(\mathrm{e})=1.
Example 2.9.9.

Find the limit limx→3x2−9|x−3|\displaystyle\lim_{x\to 3}\frac{x^{2}-9}{\left\lvert x-3\right\rvert} (if exists).

First, we factor the numerator using the difference of squares: a2−b2=(a−b)⁢(a+b)a^{2}-b^{2}=(a-b)(a+b).

limx→3(x−3)⁢(x+3)|x−3|.\lim_{x\to 3}\frac{(x-3)(x+3)}{\left\lvert x-3\right\rvert}.
Caveat (The Absolute Value).

Whenever you see an absolute value in a limit, alarm bells should ring. The function |x−3|\left\lvert x-3\right\rvert is not a single smooth entity; it is a two-faced piecewise function with a sharp corner at x=3x=3. You must split the limit into its left and right components to see the full picture.

By definition, the absolute value is resolved as:

|x−3|={(x−3),when ⁢x≥3−(x−3),when ⁢x<3\left\lvert x-3\right\rvert=\begin{cases}(x-3),&\text{when }x\geq 3\\ -(x-3),&\text{when }x<3\end{cases}

Let us probe the behavior from the right (x→3+x\to 3^{+}). Here, x>3x>3, so |x−3|=x−3\left\lvert x-3\right\rvert=x-3.

limx→3+(x−3)⁢(x+3)x−3=limx→3+(x+3)=6.\begin{split}\lim_{x\to 3^{+}}\frac{(x-3)(x+3)}{x-3}&{}=\lim_{x\to 3^{+}}(x+3)% \\ &{}=6.\end{split}

Now, we approach from the left (x→3−x\to 3^{-}). Here, x<3x<3, so |x−3|=−(x−3)\left\lvert x-3\right\rvert=-(x-3).

limx→3−(x−3)⁢(x+3)−(x−3)=limx→3−−(x+3)=−6.\begin{split}\lim_{x\to 3^{-}}\frac{(x-3)(x+3)}{-(x-3)}&{}=\lim_{x\to 3^{-}}-(% x+3)\\ &{}=-6.\end{split}

Because the right-hand limit (66) does not equal the left-hand limit (−6-6), the two-sided limit cannot reconcile the difference. Therefore,

limx→3x2−9|x−3| does not exist.\lim_{x\to 3}\frac{x^{2}-9}{\left\lvert x-3\right\rvert}\quad\text{ does not % exist}.
Example 2.9.10.

Evaluate limx→ax2−a2x−a\displaystyle\lim_{x\to a}\frac{x^{2}-a^{2}}{\sqrt{x}-\sqrt{a}}, where a>0a>0.

Direct substitution gives a2−a2a−a=00\frac{a^{2}-a^{2}}{\sqrt{a}-\sqrt{a}}=\frac{0}{0}. At first glance, the numerator is a polynomial while the denominator contains square roots. To bridge this gap, we must expand the numerator until we expose the term hiding in the denominator.

First, expand x2−a2x^{2}-a^{2}:

(x−a)⁢(x+a)x−a.\frac{(x-a)(x+a)}{\sqrt{x}-\sqrt{a}}.

Now comes a clever algebraic trick. We can view x−ax-a as a difference of squares in its own right, by treating x=(x)2x=(\sqrt{x})^{2} and a=(a)2a=(\sqrt{a})^{2}.

x−a=(x−a)⁢(x+a).x-a=(\sqrt{x}-\sqrt{a})(\sqrt{x}+\sqrt{a}).

Substituting this back into our limit yields:

limx→a(x−a)⁢(x+a)⁢(x+a)x−a.\begin{split}\lim_{x\to a}\frac{(\sqrt{x}-\sqrt{a})(\sqrt{x}+\sqrt{a})(x+a)}{% \sqrt{x}-\sqrt{a}}.\end{split}

The singular term (x−a)(\sqrt{x}-\sqrt{a}) is now completely exposed in both the numerator and the denominator. We may safely cancel it (since x→ax\to a implies x≠ax\neq a).

limx→ax2−a2x−a=limx→a(x+a)⁢(x+a)=(a+a)⁢(a+a)=(2⁢a)⁢(2⁢a)=4⁢a⁢a.\begin{split}\lim_{x\to a}\frac{x^{2}-a^{2}}{\sqrt{x}-\sqrt{a}}=\lim_{x\to a}(% \sqrt{x}+\sqrt{a})(x+a)&{}=(\sqrt{a}+\sqrt{a})(a+a)\\ &{}=(2\sqrt{a})(2a)\\ &{}=4a\sqrt{a}.\end{split}
Moral (Cancellation of Singularities).

When a rational function evaluates to 0/00/0 at x=ax=a, the Factor Theorem from algebra guarantees that (x−a)(x-a) is a hidden factor in both the numerator and the denominator. The game is simply to pull these factors out—whether through trig identities, logarithms, or cunning factorization—and cancel them out of existence.

Exercise 2.9.11.

Evaluate limx→ax2−a2x3−a3\displaystyle\lim_{x\to a}\frac{x^{2}-a^{2}}{\sqrt[3]{x}-\sqrt[3]{a}}.