Squeeze Theorem
Squeeze Theorem Calculator — Evaluate difficult limits by bounding a function between simpler expressions that approach the same value. Solve trigonometric, oscillating, and infinity limits with clear step-by-step reasoning.
Share Your Feedback
How was your experience with this calculator?
Squeeze Theorem: Definition, Formula, Examples, and How to Use It in Calculus
The Squeeze Theorem is a fundamental limit theorem in calculus that helps evaluate functions whose limits are difficult to determine directly. Instead of calculating the limit of a complicated function itself, the theorem places it between two simpler functions whose limits are known.
If you are learning limits, understanding what is the Squeeze Theorem, when to use it, and how to recognize suitable bounds can make many seemingly difficult problems much easier. This guide explains the Squeeze Theorem calculus method with practical examples, important inequalities, common mistakes, and applications to trigonometric and oscillating functions.
What Is the Squeeze Theorem?
The Squeeze Theorem, also called the Sandwich Theorem, states that if
\[g(x)\leq f(x)\leq h(x)\]
near x=ax=a, and both outside functions approach the same value L, then the function between them must also approach L:
\(\lim_{x\to a}\)g(x) = \(\lim_{x\to a}\)h(x) =L.
Therefore,
\(\boxed{\lim_{x\to a}f(x)=L}\)
This is the central idea behind the calculus Squeeze Theorem: when direct evaluation is inconvenient, find an upper and lower bound that forces the original function toward one value.
How to Use the Squeeze Theorem
Knowing how to use the Squeeze Theorem is more important than simply memorizing its formula. A reliable approach is:
- Identify the difficult part of the function.
- Find a useful upper and lower bound.
- Place the original function between those bounds.
- Evaluate the limits of both bounds.
- Check that both bounds approach the same value.
- State the resulting limit.
The theorem is particularly effective when the function contains bounded trigonometric terms. The two inequalities you should immediately recognize are
\[-1\leq\sin x\leq1\]
and
\[-1\leq\cos x\leq1.\]
Equivalently,
\[|\sin x|\leq1,\qquad |\cos x|\leq1.\]
These bounds are responsible for many of the classic Squeeze Theorem examples in calculus.
Squeeze Theorem Example: x2sin(1/x)x^2\sin(1/x)
Consider
\[\lim_{x\to0}x^2\sin\left(\frac1x\right).\]
The expression \(\sin\)(1/x) oscillates increasingly rapidly as xx approaches zero, so finding its limit directly is impossible.
However,
\[-1\leq\sin\left(\frac1x\right)\leq1.\]
Multiplying by x^2,
\[-x^2\leq x^2\sin\left(\frac1x\right)\leq x^2.\]
Now evaluate the outer limits:
\[\lim_{x\to0}(-x^2)=0\]
and
\[\lim_{x\to0}x^2=0.\]
Since both bounds approach zero,
\[\boxed{ \lim_{x\to0}x^2\sin(1/x)=0 }\]
by the Squeeze Theorem.
The important insight is that the oscillation itself does not disappear. Instead, the factor x2x^2 becomes small enough to squeeze the entire expression toward zero.
The Famous Squeeze Theorem Trigonometric Limit
One of the most important results connected with the theorem is
\[\boxed{ \lim_{x\to0}\frac{\sin x}{x}=1 }\]
For 0<x<\(\frac{\pi}{2}\), geometric arguments establish
\[\sin x<x<\tan x.\]
After rearranging,
\[\cos x<\frac{\sin x}{x}<1.\]
As \(x\to\)0,
\[\cos x\to1.\]
Therefore, both bounds approach 11, giving
\[\boxed{ \lim_{x\to0}\frac{\sin x}{x}=1 }.\]
This fundamental limit is used extensively in derivatives, trigonometric limits, continuity, and later topics in calculus.
More Squeeze Theorem Examples
Example 1: A cosine function
Evaluate
\[\lim_{x\to0}x^3\cos\left(\frac1{x^2}\right).\]
Because
\[\left|\cos\left(\frac1{x^2}\right)\right|\leq1,\]
we have
\[\left|x^3\cos\left(\frac1{x^2}\right)\right| \leq |x|^3.\]
Since
\[|x|^3\to0,\]
the Squeeze Theorem gives
\[0.\boxed{0}.\]
Example 2: A limit at infinity
Consider
\(\lim_{x\to\infty}\frac{\sin x}{x}\).
Since
\[-1\leq\sin x\leq1,\]
we have
\[-\frac1x\leq\frac{\sin x}{x}\leq\frac1x.\]
Both outside functions approach zero as \(x\to\infty\). Thus,
\(\boxed{ \lim_{x\to\infty}\frac{\sin x}{x}=0 }\).
Example 3: An absolute-value approach
Suppose
\[f(x)=x^4\sin\left(\frac7x\right).\]
Since
\[\left|\sin\left(\frac7x\right)\right|\leq1,\]
we get
\[|f(x)|\leq|x|^4.\]
\[Because |x|^4\to0,\]
\[\boxed{\lim_{x\to0}x^4\sin(7/x)=0}.\]
This gives a useful general rule:
\[\boxed{ \lim_{x\to0}x^n\sin(1/x)=0 }\]
for every positive nn.
When the Squeeze Theorem Does Not Work
A common mistake is assuming that a bounded function automatically has a limit. It does not.
For example,
\[-1\leq\sin(1/x)\leq1.\]
These bounds do not approach the same value. Consequently, the theorem cannot establish a limit for
\[\sin(1/x).\]
In fact,
\(\boxed{ \lim_{x\to0}\sin(1/x) \text{ does not exist} }\).
The key requirement is not merely that the function is bounded. The upper and lower bounds must converge to the same number.
Squeeze Theorem and Absolute Values
For many problems, the most efficient version of the theorem is:
\[|f(x)|\leq g(x)\]
where
\(\lim_{x\to a}\)g(x)=0.
Then
\(\boxed{\lim_{x\to a}f(x)=0}\).
This form is especially useful for oscillating functions. Whenever you see
\[\sin(\text{something})\]
or
\[\cos(\text{something}),\]
consider replacing the trigonometric component with its absolute-value bound of 11.
Squeeze Theorem: Common Mistakes
When solving Squeeze Theorem calculus problems, watch for these errors:
- Using bounds that do not approach the same value.
- Forgetting that multiplying an inequality by a negative expression reverses the inequality.
- Assuming boundedness automatically means convergence.
- Applying the theorem without checking the required neighborhood of the limit point.
- Ignoring absolute values when the multiplier can change sign.
The theorem is powerful, but the bounds must be mathematically valid.
Why the Squeeze Theorem Matters
The Squeeze Theorem is more than a technique for solving a few limits. It develops an important mathematical idea: complex behavior can sometimes be controlled without calculating it directly.
This is particularly useful for oscillating functions, trigonometric limits, sequences, and limits at infinity. Once you learn to recognize expressions such as
\[x^n\sin(1/x),\qquad x^n\cos(1/x),\]
or
\[\frac{\sin x}{x},\]
you can often identify the appropriate bounding strategy almost immediately.
Final Takeaway
The essential structure of the Squeeze Theorem is
\[g(x)\leq f(x)\leq h(x)\]
with
\(\lim_{x\to a}\)g(x) = \(\lim_{x\to a}\)h(x) =L.
Therefore,
\(\boxed{\lim_{x\to a}f(x)=L}\).
For students learning calculus, the most valuable skill is not memorizing the theorem—it is learning to recognize when a difficult function can be trapped between simpler functions. Master that pattern, and many challenging limits become straightforward.
Content Review & Methodology
This article was written and reviewed by the theMathex Engineering Team, which is responsible for the mathematical content and symbolic computation methodology used across theMatheX. The explanations and examples are structured around standard calculus principles, including limit laws, trigonometric identities, inequalities, and the Squeeze Theorem. Our goal is to provide mathematically sound, understandable, and practically useful explanations that help students verify their reasoning rather than simply obtain an answer.