Squeeze Theorem

Squeeze Theorem finds a limit by trapping a function between two simpler functions with the same limit; use it when direct methods fail.

g(x)f(x)h(x),;limg=limh=L    limf=Lg(x) \le f(x) \le h(x), ; \lim g = \lim h = L \implies \lim f = L

Solve a problem with Squeeze Theorem

Type the problem. The solver will use Squeeze Theorem where Squeeze Theorem is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Squeeze Theorem takes
ff
gg
hh
LL
xx
Squeeze Theorem
SymbolMeaning
ffThe function whose limit is unknown or hard to find directly; if you read it as gg or hh instead, you lose the squeezing mechanism that makes the theorem work.
ggThe lower bound function where g(x)f(x)g(x) \le f(x); reading it as the target function ff itself misses the bounding structure entirely.
hhThe upper bound function where f(x)h(x)f(x) \le h(x); swapping it with gg or confusing it with ff causes the squeeze to fail.
LLThe common limit value that both gg and hh approach; if they approach different limits, the theorem does not apply.
xxThe independent variable being sent to a limit point; treating it as a constant instead prevents the limit from being computed correctly.

When to use it

Reach for Squeeze Theorem when your function is hard to evaluate directly but you can bound it between two simpler functions.

Level

Usually taught in: Calculus I

Worked examples

1. Find the limit of $x \sin(1/x)$ as $x$ approaches 0

Problem

Find limx0xsin(1x)\lim_{x \to 0} x \sin\left(\frac{1}{x}\right).
  1. 1sin(1x)1-1 \le \sin\left(\frac{1}{x}\right) \le 1

    For all x0x \ne 0, sine is always bounded between 1-1 and 11 no matter what the argument is.

  2. xxsin(1x)x-x \le x\sin\left(\frac{1}{x}\right) \le x

    Multiply the entire inequality by xx (considering x>0x > 0 first); multiplying by a positive value preserves the inequality signs.

  3. limx0+(x)=0 and limx0+x=0\lim_{x \to 0^+} (-x) = 0 \text{ and } \lim_{x \to 0^+} x = 0

    Both the lower bound x-x and upper bound xx approach the same value, L=0L = 0, as x0+x \to 0^+.

  4. limx0+xsin(1x)=0\lim_{x \to 0^+} x\sin\left(\frac{1}{x}\right) = 0

    By Squeeze Theorem, since f(x)f(x) is trapped between two functions with the same limit, f(x)f(x) must also approach that limit.

Answer: limx0xsin(1x)=0\lim_{x \to 0} x\sin\left(\frac{1}{x}\right) = 0

Direct substitution gives 0undefined0 \cdot \text{undefined}, which is indeterminate, and the function does not simplify by factoring. Squeeze Theorem is ideal here because sine's bounded range lets us trap an oscillating function between two predictable linear bounds.

2. Squeeze a function between two quadratic bounds

Problem

Suppose f(x)f(x) is an unknown function satisfying (x1)2f(x)(x1)2+2x2(x-1)^2 \le f(x) \le (x-1)^2 + \frac{2}{x^2} for all x>0x > 0. Find limxf(x)\lim_{x \to \infty} f(x).
  1. g(x)=(x1)2,h(x)=(x1)2+2x2g(x) = (x-1)^2, \quad h(x) = (x-1)^2 + \frac{2}{x^2}

    Identify the lower bound g(x)g(x) as the pure quadratic and the upper bound h(x)h(x) as the quadratic plus a small decaying term.

  2. limxg(x)=limx(x1)2=\lim_{x \to \infty} g(x) = \lim_{x \to \infty} (x-1)^2 = \infty

    The quadratic term (x1)2=x22x+1(x-1)^2 = x^2 - 2x + 1 is dominated by x2x^2, which grows without bound.

  3. limxh(x)=limx[(x1)2+2x2]=\lim_{x \to \infty} h(x) = \lim_{x \to \infty} \left[(x-1)^2 + \frac{2}{x^2}\right] = \infty

    The fraction 2x20\frac{2}{x^2} \to 0 as xx \to \infty, so the limit is determined by (x1)2(x-1)^2, which also diverges to \infty.

  4. limxg(x)=limxh(x)=    limxf(x)=\lim_{x \to \infty} g(x) = \lim_{x \to \infty} h(x) = \infty \implies \lim_{x \to \infty} f(x) = \infty

    Since g(x)f(x)h(x)g(x) \le f(x) \le h(x) and both bounds approach the same infinite limit, by Squeeze Theorem, f(x)f(x) must also approach \infty.

Answer: limxf(x)=\lim_{x \to \infty} f(x) = \infty

This example demonstrates that you don't need an explicit formula for f(x)f(x) to find its limit—bounds are enough. It also shows that the limit LL can be infinite, provided both bounding functions approach the same value.

3. Find the limiting area of a garden as fencing constraints tighten

Problem

A rectangular garden is being fenced in stages. At stage nn, the width is constrained by available materials such that (31n)\left(3 - \frac{1}{n}\right) meters w(n)(3+1n)\le w(n) \le \left(3 + \frac{1}{n}\right) meters. The length is fixed at 10 meters. As more stages are completed and constraints tighten, what does the garden's area approach?
  1. 31nw(n)3+1n3 - \frac{1}{n} \le w(n) \le 3 + \frac{1}{n}

    The width constraint is symmetric around 3 meters, with both bounds approaching 3 as nn increases.

  2. 10(31n)10w(n)10(3+1n)10\left(3 - \frac{1}{n}\right) \le 10 \cdot w(n) \le 10\left(3 + \frac{1}{n}\right)

    The area is length times width, so multiply the inequality by the fixed length of 10 meters; multiplication by a positive constant preserves inequality signs.

  3. 3010nA(n)30+10n30 - \frac{10}{n} \le A(n) \le 30 + \frac{10}{n}

    Distribute the 10 through each bound to get the area bounds in simplified form.

  4. limn(3010n)=30 and limn(30+10n)=30\lim_{n \to \infty} \left(30 - \frac{10}{n}\right) = 30 \text{ and } \lim_{n \to \infty} \left(30 + \frac{10}{n}\right) = 30

    As nn grows, the fraction 10n\frac{10}{n} shrinks to zero, so both the lower and upper area bounds approach exactly 30 square meters.

  5. limnA(n)=30 square meters\lim_{n \to \infty} A(n) = 30 \text{ square meters}

    By Squeeze Theorem, since the area is trapped between functions both approaching 30, the final area must be 30 square meters.

Answer: limnA(n)=30 square meters\lim_{n \to \infty} A(n) = 30 \text{ square meters}

This problem models real-world measurement uncertainty: at first, the width is only roughly known, but measurements constrain it within tightening bounds. Squeeze Theorem lets us determine the final area despite never knowing the exact width function, which is powerful for applications where a direct limit is impossible to compute.

Common mistakes

Where Squeeze Theorem usually goes wrong
Answer came out wrong
Using limxag(x)<L<limxah(x)\lim_{x \to a} g(x) < L < \lim_{x \to a} h(x) instead of limxag(x)=limxah(x)=L\lim_{x \to a} g(x) = \lim_{x \to a} h(x) = L.
Always verify that limg=limh\lim g = \lim h before applying Squeeze Theorem. If the limits differ—for instance, limg=2\lim g = 2 but limh=3\lim h = 3—the theorem does not apply and you must use a different technique.
Writing the squeeze condition as g(x)<f(x)<h(x)g(x) < f(x) < h(x) (strict inequalities) instead of g(x)f(x)h(x)g(x) \le f(x) \le h(x) (non-strict).
Use non-strict inequalities \le in the squeeze condition. The theorem still works even if f(x)f(x) equals g(x)g(x) or h(x)h(x) at isolated points, as long as the bounds hold in a neighborhood of the limit point.
Establishing the inequalities only at the limit point itself—for example, verifying g(a)f(a)h(a)g(a) \le f(a) \le h(a) but not for nearby values of xx.
Verify that the inequalities g(x)f(x)h(x)g(x) \le f(x) \le h(x) hold for all xx in an open interval around the point of interest (you can exclude the point itself if needed, since limits ignore single-point behavior).
The mistakeWhy it is wrongThe fix
Using limxag(x)<L<limxah(x)\lim_{x \to a} g(x) < L < \lim_{x \to a} h(x) instead of limxag(x)=limxah(x)=L\lim_{x \to a} g(x) = \lim_{x \to a} h(x) = L.The theorem requires both bounds to approach the exact same value; if they approach different limits, the squeeze fails and you cannot conclude anything about limf(x)\lim f(x).Always verify that limg=limh\lim g = \lim h before applying Squeeze Theorem. If the limits differ—for instance, limg=2\lim g = 2 but limh=3\lim h = 3—the theorem does not apply and you must use a different technique.
Writing the squeeze condition as g(x)<f(x)<h(x)g(x) < f(x) < h(x) (strict inequalities) instead of g(x)f(x)h(x)g(x) \le f(x) \le h(x) (non-strict).Strict inequalities can exclude cases where f(x)f(x) touches a bound at certain points, and this exclusion can affect the limit in boundary cases.Use non-strict inequalities \le in the squeeze condition. The theorem still works even if f(x)f(x) equals g(x)g(x) or h(x)h(x) at isolated points, as long as the bounds hold in a neighborhood of the limit point.
Establishing the inequalities only at the limit point itself—for example, verifying g(a)f(a)h(a)g(a) \le f(a) \le h(a) but not for nearby values of xx.Limits depend on function behavior in a neighborhood around the point, not just at the point itself; a single point's values tell you nothing about the limit.Verify that the inequalities g(x)f(x)h(x)g(x) \le f(x) \le h(x) hold for all xx in an open interval around the point of interest (you can exclude the point itself if needed, since limits ignore single-point behavior).

Tips and when to use something else

  • Squeeze Theorem is most powerful when f(x)f(x) is hard to evaluate directly—especially with oscillating functions like sin(1/x)\sin(1/x) or when ff is defined implicitly or as a complicated combination.
  • Do not confuse Squeeze Theorem with Limit Laws. Limit Laws let you split sums, products, and quotients; Squeeze Theorem is for trapping a difficult function between easier ones when algebra fails.
  • For oscillating functions bounded by a decay (like xsin(1/x)x \sin(1/x) or x2cos(1/x)x^2 \cos(1/x)), multiply or divide the bounds by the decay factor to control the oscillation and find the limit.
  • If the bounds approach different values, the squeeze fails—consider instead L'Hôpital's Rule, factoring, rationalizing, or other algebraic methods to evaluate the limit directly.

Frequently asked questions

When should I use Squeeze Theorem instead of L'Hôpital's Rule?
Use Squeeze Theorem when the function is difficult to differentiate or doesn't fit the 00\frac{0}{0} or \frac{\infty}{\infty} indeterminate forms. L'Hôpital's Rule requires derivatives; Squeeze requires only bounds. For oscillating functions like xsin(1/x)x \sin(1/x) that don't factor cleanly, Squeeze Theorem is often simpler and more direct.
Do the bound functions g(x)g(x) and h(x)h(x) have to be continuous?
No, but their limits must exist and be equal. If g(x)g(x) and h(x)h(x) are discontinuous at the point but their one-sided or two-sided limits exist and match, Squeeze Theorem still applies and guarantees that limf(x)\lim f(x) exists and equals that common limit.
Can I use Squeeze Theorem with infinite limits, like limxf(x)\lim_{x \to \infty} f(x)?
Yes, the theorem works identically. If g(x)f(x)h(x)g(x) \le f(x) \le h(x) for all large xx and limxg(x)=limxh(x)=L\lim_{x \to \infty} g(x) = \lim_{x \to \infty} h(x) = L, then limxf(x)=L\lim_{x \to \infty} f(x) = L. Example 2 demonstrates this with a limit at infinity.
What if one or both of the bound functions g(x)g(x) or h(x)h(x) do not have limits?
Squeeze Theorem does not apply. The theorem requires both gg and hh to have limits, and those limits must be equal. If either bound oscillates or diverges without approaching a single value, you must use a different technique to find or rule out limf(x)\lim f(x).

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18