Calculus I Limits, Derivatives, and Integrals

1.4.5 Squeeze Theorem

The Squeeze Theorem, also called the Sandwich Theorem, is a powerful technique for evaluating limits that cannot easily be found using direct substitution or algebraic simplification.

The main idea is simple: if a function is trapped between two other functions, and both outside functions approach the same value, the function in the middle must approach that value as well.

What Is the Squeeze Theorem?

Definition — Squeeze Theorem

Suppose three functions satisfy the following inequality for every x sufficiently close to a, except possibly at a:

If the two outside functions approach the same limit,

then the middle function must also approach L.

Visualizing the Squeeze Theorem

Consider the function \(f(x)=x^2\sin\left(\frac1x\right)\) . As x approaches zero, the sine term oscillates more and more rapidly.

However, multiplying by \(x^2\) causes the oscillations to become smaller.

We can trap this function between two simpler functions:

Interactive Squeeze Theorem Graph

The red middle curve is the oscillating function. The blue lower bound and green upper bound trap it as x approaches zero.

Lower bound: \(g(x)=-x^2\) Middle function: \(f(x)=x^2\sin(1/x)\) Upper bound: \(h(x)=x^2\)
±1.00

Move the slider toward zero to zoom in. Notice that the middle function continues oscillating, but the lower bound and upper bound both approach zero.

Why Does the Squeeze Theorem Work?

The graph illustrates that the middle function cannot escape its bounds. As the outside functions get closer to the same value, the space between them shrinks.

Because the middle function always stays between these two bounds for x not equal to zero, its limit must also equal zero.

Important Trigonometric Inequalities

Many Squeeze Theorem problems rely on two familiar facts about sine and cosine:

Fundamental Trigonometric Bounds

These inequalities remain true when x is replaced by another expression, such as \(\frac1x\).

How to Apply the Squeeze Theorem

Step 1 — Identify the Difficult Function

Look for a function whose value oscillates or cannot be determined using ordinary substitution.

Expressions involving \(\sin\left(\frac{1}{x}\right)\) or \(\cos\left(\frac{1}{x}\right)\) are common examples.

This is the middle function we want to evaluate.

Step 2 — Find Upper and Lower Bounds

Use known inequalities to find two simpler functions that bound the original expression.

The lower bound stays below the middle function, while the upper bound stays above it.

Step 3 — Evaluate Both Bounding Limits

Calculate the limits of the lower function and upper function. The Squeeze Theorem applies when both limits exist and are equal.

Step 4 — State the Conclusion

Once both bounding functions approach the same value, conclude that the middle function approaches it too.

Worked Examples

The following examples demonstrate different ways to apply the Squeeze Theorem. Open each solution to see the complete reasoning.

Example 1 — An Oscillating Sine Function

Evaluate the limit:

Show solution

The sine function oscillates infinitely often as x approaches zero, so we use the Squeeze Theorem.

Step 1. Start with the fundamental sine inequality.

Step 2. Multiply all three parts by x². Because x² is nonnegative, the inequality directions remain unchanged.

Step 3. Evaluate the lower bound.

Step 4. Evaluate the upper bound.

Step 5. Both bounds approach zero, so the function between them must also approach zero.

Final Answer

Example 2 — Squeezing with Absolute Values

Evaluate the limit:

Show solution

Multiplying an inequality by x can reverse its direction when x is negative. Absolute values provide a reliable way to handle both sides of zero.

Step 1. The absolute value of sine is at most one.

Step 2. Multiply by |x|.

Step 3. Rewrite the absolute-value inequality as two bounds.

Step 4. Evaluate both bounding limits.

Step 5. Apply the Squeeze Theorem.

Final Answer

Example 3 — An Oscillating Cosine Function

Evaluate the limit:

Show solution

Cosine has the same fundamental bounds as sine, so the same squeezing technique applies.

Step 1. Use the cosine inequality.

Step 2. Multiply by x².

Step 3. Find the limits of the outside functions.

Step 4. Both bounds have the same limit, so the middle function does too.

Final Answer

Example 4 — A Shifted Oscillating Function

Evaluate the limit:

Show solution

Sometimes we need to add or subtract a constant before multiplying by a nonnegative expression.

Step 1. Start with the sine inequality.

Step 2. Add one to all three parts.

Step 3. Multiply by x².

Step 4. Evaluate the lower and upper bounds.

Step 5. Apply the Squeeze Theorem.

Final Answer

Common Mistakes to Avoid

Assuming the Middle Function Has a Limit

A function being bounded does not automatically guarantee that it has a limit.

The Squeeze Theorem requires both bounding functions to approach the same value.

Multiplying Inequalities by Negative Values

Multiplying an inequality by a negative number reverses its direction. When the multiplier can change sign, consider using absolute values instead.

Trying to Evaluate the Oscillating Term Directly

The function \(\sin\left(\frac1x\right)\) does not approach a single value as x approaches zero.

However, multiplying it by a factor that approaches zero can produce a function with a limit.

Common Inequalities Used in the Squeeze Theorem

The Squeeze Theorem often begins with a known inequality. By multiplying, adding, squaring, or applying other operations, we can construct bounds whose limits are easy to evaluate. The following relationships are especially useful in practice.

Relationship Useful Inequality When to Use It
Bounded sine \(-1\le\sin(\theta)\le1\) When an expression contains an oscillating sine function.
Bounded cosine \(-1\le\cos(\theta)\le1\) When an expression contains an oscillating cosine function.
Squared trigonometric functions \(0\le\sin^2(\theta)\le1\) \(0\le\cos^2(\theta)\le1\) When sine or cosine is squared, giving a nonnegative expression.
Squared oscillating expressions \(0\le x^2\sin^2\left(\frac1x\right)\le x^2\) When a squared oscillating term is multiplied by a factor approaching zero.
Absolute-value bounds \(-|x|\le x\sin(\theta)\le|x|\) \(-|x|\le x\cos(\theta)\le|x|\) When multiplying by a quantity that may be positive or negative.
Absolute-value inequality \(|f(x)-L|\le g(x)\) \(\Downarrow\) \(L-g(x)\le f(x)\le L+g(x)\) When the problem provides a bound on the distance between a function and a number.
Square-root bounds \(0\le A\le B\) \(\Downarrow\) \(\sqrt A\le\sqrt B\) When a nonnegative bounded expression appears inside a square root.
Reciprocal bounds \(0\lt A\le B\) \(\Downarrow\) \(\frac1B\le\frac1A\) When taking reciprocals of positive quantities. Remember that the inequality reverses.
Nonnegative fractions \(0\le\frac{x^2}{1+x^2}\le x^2\) When the denominator is at least 1 and the numerator is nonnegative.

Remember: The inequalities must hold for all sufficiently close values of x in the relevant domain. To apply the Squeeze Theorem, the lower and upper bounds must approach the same limit.

Key Takeaways

The Squeeze Theorem is useful when a difficult function can be trapped between two simpler functions.

Remember the three main requirements:

When all three conditions hold, the middle function has the same limit as its bounds.