If $g(x) \le f(x) \le h(x)$ and $\lim g(x) = \lim h(x) = L$, then $\lim f(x) = L$
Sometimes a limit is difficult to compute directly because the function oscillates or behaves strangely. The Squeeze Theorem (also called the Sandwich Theorem) provides a way out: if we can "squeeze" our function between two simpler functions that have the same limit, then our function must have that same limit.
$$ \boxed{\text{If } g(x) \le f(x) \le h(x) \text{ for all } x \text{ near } a \text{ (except possibly at } a\text{), and}} $$
$$ \boxed{\lim_{x \to a} g(x) = \lim_{x \to a} h(x) = L \quad \Longrightarrow \quad \lim_{x \to a} f(x) = L} $$
🎨 The Intuition (Picture This)
Imagine a criminal being squeezed between two police cars. As the police cars get closer and closer together, the criminal has no choice but to be where they are. Similarly, if $g(x)$ and $h(x)$ "squeeze" $f(x)$ from below and above, and they both approach $L$, then $f(x)$ is forced to approach $L$ as well.
📊 Visualizing the Squeeze Theorem
Use the interactive graph below. The blue curve is $f(x) = x^2 \sin(1/x)$ — it oscillates wildly near $x = 0$. The dashed curves $g(x) = -x^2$ and $h(x) = x^2$ squeeze it from below and above, forcing the limit to be $0$:
🔧 How to Use the Squeeze Theorem
Identify the tricky function $f(x)$ whose limit you want to find.
Find bounding functions $g(x)$ and $h(x)$ such that $g(x) \le f(x) \le h(x)$ near the point of interest.
Verify that $\lim g(x) = \lim h(x) = L$.
Conclude that $\lim f(x) = L$.
Example 1The Classic: $\displaystyle \lim_{x \to 0} x^2 \sin\left(\frac{1}{x}\right)$
We know that $-1 \le \sin(1/x) \le 1$ for all $x \neq 0$.
Multiply by $x^2$ (which is $\ge 0$): $-x^2 \le x^2 \sin(1/x) \le x^2$
This limit shows that even though $\sin x$ oscillates forever, the $1/x$ factor "squeezes" it to zero as $x \to \infty$.
⚠️ Common Pitfalls
Inequality direction matters: When multiplying by a negative number, the inequality flips. Use absolute values to stay safe: $|f(x)| \le M$ implies $-M \le f(x) \le M$.
The bounds must squeeze to the same limit: If $g(x)$ and $h(x)$ have different limits, the Squeeze Theorem doesn't apply.
The Squeeze Theorem does NOT find the limit if the bounds don't converge: It only works when you already have a candidate limit from the bounds.
🔍 Key Takeaways
The Squeeze Theorem is useful for limits involving oscillating functions like $\sin(1/x)$ or $\cos(1/x)$.
It requires finding two functions that bound $f(x)$ and have the same limit.