Calculus I › Limits › full formula sheet
The squeeze theorem
When direct laws fail on oscillation, trap the function between two that agree.
On this page the sandwich f(x) ≤ g(x) ≤ h(x) only needs to hold near a (a itself may be excluded), and the outer limits must both equal the same L. That sameness is the entire theorem.
Notation in this lesson
- f ≤ g ≤ h
- the sandwich: g is the filling, f and h the bread
- L
- the common outer limit — both pieces of bread must tend to the same L
- “the vise must close”
- if the outer limits don't match, the theorem says nothing
Where it comes from
The problem: the limit laws are helpless against oscillation. lim(x→0) sin(1/x) doesn’t exist — the function hits 1 and −1 infinitely often near 0 — so no splitting law can touch anything containing it. The squeeze theorem is the rescue: if you can trap the wild function between two tame ones heading to the same place, the wild one has nowhere else to go.
The naive “squeeze” that isn’t:
The intuition is a vise: g is clamped between f and h, and the vise closes to a single point L. Whatever g does inside — wiggle, jump, oscillate — it gets carried to L anyway. The proof is one epsilon-delta vise-turn.
Derivation
Assume f(x) ≤ g(x) ≤ h(x) near a (possibly excluding a), with lim(x→a) f = lim(x→a) h = L. We prove lim(x→a) g = L. This proof is short enough to show in full.
Full proof shown. Notice the division of labor: f supplies the floor, h supplies the ceiling, and the sandwich inequality chains them through g. If the outer limits differed (L1 ≠ L2), the chain would read L1−ε < g < L2+ε — a gap, not a vise — which is exactly why the bad “squeeze” of sin(1/x) proves nothing.
How to use it
The procedure, every time:
- Spot the pattern: bounded oscillation (sin/cos of something wild) multiplied by something → 0 — or any function visibly trapped between two friendly ones.
- Build the sandwich. The workhorse: −1 ≤ sin(□) ≤ 1 and −1 ≤ cos(□) ≤ 1, multiplied through by the vanishing factor (use absolute values to keep inequalities facing the right way).
- Check the outer limits are EQUAL. This is the #1 exam error: a “sandwich” with bread heading to different places squeezes nothing.
- Conclude: the trapped limit equals the common outer limit.
Which side does the inequality face?
Multiplying −1 ≤ sin(1/x) ≤ 1 by x is dangerous when x < 0 (inequalities flip). The safe move: multiply by |x| instead, giving −|x| ≤ x·sin(1/x) ≤ |x|. Since |x| → 0, the squeeze still closes.
Worked examples
Four problems, easiest first. In each one, read every step — the why of each move is the lesson.
Example 1 — the classic: lim(x→0) x·sin(1/x)
- Spot the pattern: bounded oscillation sin(1/x) × vanishing x. Product law is illegal (lim sin(1/x) DNE).
- Build the sandwich: −1 ≤ sin(1/x) ≤ 1; multiply by |x|: −|x| ≤ x·sin(1/x) ≤ |x|. (Why |x|? For x < 0 we have x·sin(1/x) ≥ x·1 = x = −|x| — the absolute value keeps both bounds valid.)
- Outer limits match: −|x| → 0 and |x| → 0.
- Conclude: the limit is 0.
Your turn: limx→0 x·cos(1/x) = ?
Answer: 0.
Bounded × vanishing: −|x| ≤ x·cos(1/x) ≤ |x|, and both outer limits are 0.
Example 2 — stronger vanishing: lim(x→0) x²·cos(1/x²)
- Spot the pattern: bounded cos(1/x²) × x² → 0.
- Sandwich: −x² ≤ x²·cos(1/x²) ≤ x² (x² ≥ 0, so no flipping worries).
- Outer limits: both → 0. Conclude: 0.
Your turn: limx→0 x³·sin(1/x) = ?
Answer: 0.
−|x|³ ≤ x³·sin(1/x) ≤ |x|³ (the absolute value avoids sign flips for x < 0); outer limits → 0.
Example 3 — at infinity: lim(x→∞) (sin x)/x
- Spot the pattern: bounded sin x over growing x — the quotient law is illegal (denominator → infinity).
- Sandwich: −1 ≤ sin x ≤ 1; divide by x > 0: −1/x ≤ (sin x)/x ≤ 1/x.
- Outer limits: ±1/x → 0. Conclude: 0.
Your turn: limx→∞ (cos x)/x = ?
Answer: 0.
−1/x ≤ (cos x)/x ≤ 1/x (x > 0), and ±1/x → 0.
Example 4 — the trap: “−1 ≤ sin(1/x) ≤ 1 proves lim(x→0) sin(1/x) = 0”
- Check the outer limits: the “bread” here is the constant functions −1 and 1, whose limits are −1 and 1 — not equal.
- Verdict: the hypothesis fails; the argument proves nothing. (And indeed the limit DNE: sin(1/x) hits ±1 arbitrarily close to 0.)
- The lesson: a valid squeeze needs the vise to close to a point. −1 and 1 leave a gap the function can dance in forever.
Your turn: Does 0 ≤ |sin(1/x)| ≤ 1 prove limx→0 |sin(1/x)| = 0?
Answer: no.
The bread's limits are 0 and 1 — they don't match, so the hypothesis fails and the argument proves nothing. (Indeed the limit DNE.)
Memorization tips
- Bounded × vanishing = 0: the pattern behind every squeeze-theorem limit. See oscillation times something → 0 — think squeeze.
- The outer limits must match: chant it. A sandwich whose bread goes two directions squeezes nothing.
- Multiply by |x|, not x: absolute values keep inequalities facing the right way when the vanishing factor changes sign.
- The sandwich need only hold near a: the point a itself may be excluded — limits don’t care about the point.
- −1 ≤ sin ≤ 1 is the workhorse: almost every squeeze starts here. cos works identically.
- Squeeze also works at infinity: (sin x)/x → 0 uses the same vise, with 1/x as the closing bread.
Final challenge
Five mixed questions — basics, applications, and the traps, all in one. Score 5/5 and this law is yours.
← Back to the Calculus I formula sheet
How to learn a formula here
- Read each section in order — every section ends with a short quiz. Take it before moving on; the questions test exactly what you just read.
- Work the examples with the answers covered, then uncover one step at a time and compare.
- Finish with the final challenge — five mixed questions including the classic traps.
- Retake what you miss — every quiz reshuffles each attempt, and every answer explains itself.
Frequently asked questions
What is the squeeze theorem?
If f(x) ≤ g(x) ≤ h(x) near a (a itself may be excluded) and lim(x→a) f = lim(x→a) h = L — the SAME L — then lim(x→a) g = L. The wild middle function is trapped.
Why must the outer limits be equal?
The proof chains L−ε < f ≤ g ≤ h < L+ε. With different outer limits L₁ ≠ L₂ you'd get a gap L₁−ε < g < L₂+ε instead of a vise — no conclusion follows. That's why −1 ≤ sin(1/x) ≤ 1 proves nothing.
When should I reach for the squeeze theorem?
When a bounded oscillation (sin/cos of something wild) is multiplied by something → 0, or whenever a function is visibly trapped between two friendly ones with a common limit. Pattern: bounded × vanishing = 0.
Why multiply by |x| instead of x in the sandwich?
Multiplying an inequality by a negative x flips its direction. Using |x| keeps both bounds valid on both sides of 0, and |x| → 0 still closes the vise.
Does the sandwich need to hold AT a?
No — only near a. Limits ignore the point itself, so f, g, h may even be undefined at a.
More from the codex
Support the codex
This page is free, with no account and no ads. If it helped you learn, consider supporting the indie dev behind it.
Questions or a bug to report? Email [email protected].