Source: algebrica.org - CC BY-NC 4.0 https://algebrica.org/squeeze-theorem/ Fetched from algebrica.org post 17277; source modified 2026-02-27T15:38:20.
What is the Squeeze Theorem
The Squeeze Theorem, also referred to as the Sandwich Theorem, provides a method for determining the limit of a function when direct evaluation is challenging or when the function displays complex oscillatory behaviour near a specific point. This theorem is frequently applied to functions involving sine and cosine, particularly when these trigonometric terms exhibit oscillatory behaviour that precludes straightforward limit evaluation, such as:
In these situations, the function is constrained between two other functions with known and equal limits, which facilitates the evaluation of the target limit.
Statement
Let $x_0 \in \mathbb{R} \cup { \pm\infty }$ be a limit point, meaning that every neighborhood of $x_0$ contains at least one point of the domain different from $x_0$. Let $f$, $g$, and $h$ be real-valued functions defined on a neighborhood $I$ of $x_0$. Assume that for every $x \in I$, the following inequality holds:
Also assume that the limits of $f(x)$ and $h(x)$ as $x \to x_0$ exist and are equal to some real number $\ell$:
Then, under these hypotheses, the function $g(x)$ also admits a limit as $x \to x_0$, and that limit is:
In the graph, the black curve representing $f(x)$ lies entirely between the lower bound $g(x)$ and the upper bound $h(x)$. As both bounding functions tend to $\ell$, the function $f(x)$ is forced to approach the same limit.

This demonstrates the geometric intuition underlying the theorem: if a function is bounded above and below by two functions that both converge to the same value, then it must converge to that value.
Proof of the Squeeze Theorem
Let $\varepsilon > 0$ be arbitrary. Our objective is to prove that the function $f(x)$, which is bounded between $g(x)$ and $h(x)$, tends to the same limit $\ell$ as $x \to x_0$. By assumption, we know that $\lim_{x \to x_0} g(x) = \ell$. This means that there exists a positive number $\delta_1$ such that for every $x$ sufficiently close to $x_0$ (specifically, for all $x$ with $0 < |x - x_0| < \delta_1$), we have:
Similarly, since $\lim_{x \to x_0} h(x) = \ell$, there exists another positive number $\delta_2$ such that:
Now let $\delta = \min(\delta_1, \delta_2)$. Then for every $x$ such that $0 < |x - x_0| < \delta$, both inequalities above are satisfied. But $f(x)$ is squeezed between $g(x)$ and $h(x)$, so:
Combining this with the bounds on $g(x)$ and $h(x)$, we obtain:
Since this inequality holds for every $\varepsilon > 0$, we conclude that:
Example
The subsequent example demonstrates how the theorem is applied to compute the following limit:
The term $\sin\left( \frac{1}{x} \right)$ does not admit a limit as $x \to 0$, since it oscillates indefinitely between $-1$ and $1$. However, for every real number $x \neq 0$, the following inequality holds:
Multiplying the entire inequality by $x$, we obtain:
Indeed, when $x > 0$, the inequality is preserved, while for $x < 0$, the inequality is reversed, but the absolute value ensures that the comparison remains symmetric with respect to zero. Now observe that both bounding functions $-|x|$ and $|x|$ tend to zero as $x \to 0$:
Since $f(x)$ is squeezed between two functions that both approach zero, we can apply the squeeze theorem and conclude that:
In many instances, when an oscillating function is multiplied by a power of $x$ that approaches zero, the overall limit is zero. This result arises because the oscillation remains bounded, as demonstrated by sine and cosine functions, which are always confined between $-1$ and $1$. Conversely, the factor $x^n$ approaches zero rapidly enough to dominate the oscillation, causing the entire product to converge to zero.
Exercises: compute the following limits using the Squeeze Theorem
-
-
Exercise 1
Evaluate the following limit:
To begin, observe that the sine function is always bounded between $-1$ and $1$ for all real $x$, so we can write:
From the previous inequality, we can write:
Now, since the logarithmic function is strictly increasing, we have:
We now divide all parts of the inequality by $x^3$ obtaining:
Since both bounding functions tend to zero as $x \to +\infty$, we apply the Squeeze Theorem and obtain:
Exercise 2
Evaluate the following limit:
To do so, we start by analyzing the behavior of the function $x^4 \cdot \cos\left( \frac{2}{x} \right)$. We know that the cosine function is bounded between $-1$ and $1$ for all real values:
Multiplying all parts of this inequality by $x^4$, which is always non-negative, we get:
Now we take the limit of the left and right bounds as $x \to 0$:
Therefore, by the Squeeze Theorem, we conclude:
Now we return to the original expression:
Since:
we obtain
Selected references
- MIT OpenCourseWare, C. Rodriguez. The Squeeze Theorem
- University of California, Berkeley, A. Vizeff. Limit Laws and the Squeeze Theorem