AP · Calculus AB · Limits

The Squeeze Theorem

16 min readUpdated November 30, 2026FreeAP Calculus AB, Limits and Continuity

The squeeze theorem finds a limit you cannot reach by algebra. If f(x)f(x) is trapped between two functions that both approach the same number LL as x→ax \to a, then f(x)f(x) must approach LL too. You use it for expressions such as x2sin⁡(1x)x^2 \sin\left(\frac{1}{x}\right), building the two bounds from −1≤sin⁡θ≤1-1 \leq \sin \theta \leq 1.

Quick check

  1. What is lim⁡x→2(x2−1)\lim_{x \to 2} (x^2 - 1)?Show answerHide answer

    33. A polynomial allows direct substitution: 4−1=34 - 1 = 3.

  2. What happens to −1≤s≤1-1 \leq s \leq 1 when you multiply every part by −2-2?Show answerHide answer

    The inequality signs reverse: 2≥−2s≥−22 \geq -2s \geq -2, which is −2≤−2s≤2-2 \leq -2s \leq 2. Multiplying by a negative number flips the order.

  3. Why can't you find lim⁡x→0x2sin⁡(1x)\lim_{x \to 0} x^2 \sin\left(\frac{1}{x}\right) with the product law?Show answerHide answer

    The product law needs both limits to exist, and lim⁡x→0sin⁡(1x)\lim_{x \to 0} \sin\left(\frac{1}{x}\right) does not exist because it oscillates between −1-1 and 11.

Know these already? Jump to the practice questions

What you'll be able to do

  • State the squeeze theorem and the two conditions it needs.
  • Write bounding functions from −1≤sin⁡θ≤1-1 \leq \sin \theta \leq 1 or −1≤cos⁡θ≤1-1 \leq \cos \theta \leq 1.
  • Evaluate limits such as lim⁡x→0x2sin⁡(1x)\lim_{x \to 0} x^2 \sin\left(\frac{1}{x}\right) by squeezing.
  • Find a limit from given inequalities that bound an unknown function.
  • Justify a squeeze conclusion with the inequality, the two limits and the theorem's name.

Key terms

Squeeze theorem

If g(x)≤f(x)≤h(x)g(x) \leq f(x) \leq h(x) for all xx near aa (except possibly at aa), and lim⁡x→ag(x)=lim⁡x→ah(x)=L\lim_{x \to a} g(x) = \lim_{x \to a} h(x) = L, then lim⁡x→af(x)=L\lim_{x \to a} f(x) = L.

In plain English
A function pinned between two others that meet at height LL is forced to height LL as well.
Don't write
The conclusion without the inequality; the inequality is what the theorem runs on.

Bounding functions

The lower bound gg and the upper bound hh in g(x)≤f(x)≤h(x)g(x) \leq f(x) \leq h(x).

In plain English
The floor and the ceiling that ff cannot get past.
Don't write
Bounds with different limits and then claim a conclusion; the bounds must share one limit.

What does the squeeze theorem say?

Learn this: if g(x)≤f(x)≤h(x)g(x) \leq f(x) \leq h(x) for all xx near aa (except possibly at aa itself), and

lim⁡x→ag(x)=lim⁡x→ah(x)=L,\lim_{x \to a} g(x) = \lim_{x \to a} h(x) = L,

then lim⁡x→af(x)=L\lim_{x \to a} f(x) = L.

Two conditions do the work. The inequality must hold on some interval around aa; it does not need to hold everywhere, and it does not need to hold at aa. The two bounds must have the same limit; if the floor heads for 00 and the ceiling heads for 22, ff could end anywhere in between, and you learn nothing.

The graph of y=x2sin⁡(1/x)y = x^2 \sin(1/x) between y=x2y = x^2 and y=−x2y = -x^2 shows the idea. The curve swings up and down faster and faster as xx approaches 00, so it never settles into a pattern you could substitute into. But it can never leave the region between the two parabolas, and both parabolas pass through the origin. So the swings are crushed to height 00.

Key idea

Trap ff between two functions with the same limit, and ff has that limit too.

Check yourself

If 1−x2≤f(x)≤1+x21 - x^2 \leq f(x) \leq 1 + x^2 for all xx, what is lim⁡x→0f(x)\lim_{x \to 0} f(x)?
Show answerHide answer

11. Both bounds approach 11 as x→0x \to 0, so the squeeze theorem gives 11.

How do you build the bounds from −1≤sin⁡θ≤1-1 \leq \sin \theta \leq 1?

Sine and cosine never leave [−1,1][-1, 1], whatever is inside them. That gives you a starting inequality for free, even when the inside, such as 1x\frac{1}{x}, blows up.

Take x2sin⁡(1x)x^2 \sin\left(\frac{1}{x}\right). For every x≠0x \neq 0:

−1≤sin⁡(1x)≤1-1 \leq \sin\left(\frac{1}{x}\right) \leq 1

Multiply every part by x2x^2. Because x2>0x^2 > 0 for x≠0x \neq 0, the signs stay the same:

−x2≤x2sin⁡(1x)≤x2-x^2 \leq x^2 \sin\left(\frac{1}{x}\right) \leq x^2

Both −x2-x^2 and x2x^2 approach 00 as x→0x \to 0, so the limit is 00.

If the factor can be negative, as xx or x3x^3 can, multiplying by it would flip the signs for negative xx. Use its absolute value instead: −∣x∣≤xsin⁡(1x)≤∣x∣-|x| \leq x \sin\left(\frac{1}{x}\right) \leq |x| holds for every x≠0x \neq 0, because ∣xsin⁡(1x)∣≤∣x∣\left|x \sin\left(\frac{1}{x}\right)\right| \leq |x|.

You can also add a constant to every part. From −x2≤x2cos⁡(1x)≤x2-x^2 \leq x^2 \cos\left(\frac{1}{x}\right) \leq x^2, adding 44 gives 4−x2≤4+x2cos⁡(1x)≤4+x24 - x^2 \leq 4 + x^2 \cos\left(\frac{1}{x}\right) \leq 4 + x^2, so that limit is 44.

Check yourself

Which bounds work for x4cos⁡(2x)x^4 \cos\left(\frac{2}{x}\right), and why don't you need absolute values?
Show answerHide answer

−x4≤x4cos⁡(2x)≤x4-x^4 \leq x^4 \cos\left(\frac{2}{x}\right) \leq x^4. The factor x4x^4 is never negative, so multiplying by it keeps the signs.

How do you write a squeeze conclusion?

A squeeze answer earns credit for its reasoning, so you write the whole chain, in this order:

  1. The inequality, with where it holds: "For all x≠0x \neq 0, −x2≤x2sin⁡(1x)≤x2-x^2 \leq x^2 \sin\left(\frac{1}{x}\right) \leq x^2."
  2. The limit of each bound: "lim⁡x→0(−x2)=0\lim_{x \to 0} (-x^2) = 0 and lim⁡x→0x2=0\lim_{x \to 0} x^2 = 0."
  3. The theorem and the conclusion: "So by the squeeze theorem, lim⁡x→0x2sin⁡(1x)=0\lim_{x \to 0} x^2 \sin\left(\frac{1}{x}\right) = 0."

Each line answers a different question a reader will ask: is ff really trapped, do the bounds really meet, and which result lets you conclude? Leaving out any one of them leaves the answer unsupported.

Examiner's eye

Marks are lost when the answer names the squeeze theorem but never writes the inequality, or writes the inequality but never shows both bounds' limits.

Check yourself

A student writes "the bounds both go to 0, so the limit is 0". What is missing?
Show answerHide answer

The inequality that traps the function, and where it holds. Without it, nothing shows the function lies between the bounds.

Worked example 1: When the factor can be negative

Question: Evaluate lim⁡x→0xsin⁡(1x)\lim_{x \to 0} x \sin\left(\frac{1}{x}\right), justifying your answer.

What tells you the method

sin⁡(1x)\sin\left(\frac{1}{x}\right) oscillates as x→0x \to 0, so substitution and the product law fail; the bounded sine points to squeezing.

  1. Step 1: Start from the sine bound.

    For all x≠0x \neq 0, ∣sin⁡(1x)∣≤1\left|\sin\left(\frac{1}{x}\right)\right| \leq 1.

    Why

    Sine never leaves [−1,1][-1, 1].

  2. Step 2: Multiply by ∣x∣|x|.

    ∣xsin⁡(1x)∣≤∣x∣\left|x \sin\left(\frac{1}{x}\right)\right| \leq |x|, so −∣x∣≤xsin⁡(1x)≤∣x∣-|x| \leq x \sin\left(\frac{1}{x}\right) \leq |x|.

    Why

    xx is negative to the left of 00, so multiplying by xx itself would flip the signs there; ∣x∣≥0|x| \geq 0 never does.

  3. Step 3: Find the bounds' limits.

    lim⁡x→0(−∣x∣)=0\lim_{x \to 0} (-|x|) = 0 and lim⁡x→0∣x∣=0\lim_{x \to 0} |x| = 0.

    Why

    Both bounds are continuous and equal 00 at x=0x = 0.

  4. Step 4: Conclude.

    By the squeeze theorem, lim⁡x→0xsin⁡(1x)=0\lim_{x \to 0} x \sin\left(\frac{1}{x}\right) = 0.

    Why

    The function is trapped between two bounds that share the limit 00.

Check it

At x=−0.01x = -0.01, the value is −0.01sin⁡(−100)≈−0.0051-0.01 \sin(-100) \approx -0.0051, which lies between −0.01-0.01 and 0.010.01.

Answer

The limit is 00.

Worked example 2: Bounds given in the question

Question: A function ff satisfies 2x−1≤f(x)≤x22x - 1 \leq f(x) \leq x^2 for all xx. (a) Find lim⁡x→1f(x)\lim_{x \to 1} f(x). (b) Hence find lim⁡x→1f(x)+3x+1\lim_{x \to 1} \dfrac{f(x) + 3}{x + 1}.

What tells you the method

ff is unknown, but it is trapped between two known functions; check whether they meet at x=1x = 1.

  1. Step 1: Find the limits of the bounds.

    lim⁡x→1(2x−1)=1\lim_{x \to 1} (2x - 1) = 1 and lim⁡x→1x2=1\lim_{x \to 1} x^2 = 1.

    Why

    Both are polynomials, so direct substitution works.

  2. Step 2: Apply the squeeze theorem.

    The bounds share the limit 11, so lim⁡x→1f(x)=1\lim_{x \to 1} f(x) = 1.

    Why

    The inequality holds for all xx, in particular near 11.

  3. Step 3: Use the limit laws for part (b).

    lim⁡x→1f(x)+3x+1=1+31+1=2\lim_{x \to 1} \dfrac{f(x) + 3}{x + 1} = \dfrac{1 + 3}{1 + 1} = 2.

    Why

    The numerator's limit is 44 and the denominator's is 2≠02 \neq 0, so the quotient law applies.

Check it

x2−(2x−1)=(x−1)2≥0x^2 - (2x - 1) = (x - 1)^2 \geq 0, so the given bounds really are in order, and they touch exactly at x=1x = 1.

Answer

(a) lim⁡x→1f(x)=1\lim_{x \to 1} f(x) = 1. (b) The limit is 22.

Worked example 3: Why sin⁡xx→1\frac{\sin x}{x} \to 1

Question: Given that cos⁡x≤sin⁡xx≤1\cos x \leq \dfrac{\sin x}{x} \leq 1 for 0<∣x∣<π20 < |x| < \dfrac{\pi}{2}, show that lim⁡x→0sin⁡xx=1\lim_{x \to 0} \dfrac{\sin x}{x} = 1.

What tells you the method

The question hands you a two-sided inequality around the expression, which is the squeeze theorem's input.

  1. Step 1: State where the inequality holds.

    It holds for 0<∣x∣<π20 < |x| < \frac{\pi}{2}, an interval around 00 with 00 itself left out.

    Why

    The theorem needs the inequality near a=0a = 0, not at 00.

  2. Step 2: Find the limits of the bounds.

    lim⁡x→0cos⁡x=cos⁡0=1\lim_{x \to 0} \cos x = \cos 0 = 1 and lim⁡x→01=1\lim_{x \to 0} 1 = 1.

    Why

    Cosine is continuous, so you substitute.

  3. Step 3: Conclude.

    Both bounds approach 11, so by the squeeze theorem lim⁡x→0sin⁡xx=1\lim_{x \to 0} \dfrac{\sin x}{x} = 1.

    Why

    This is the result quoted as a standard limit in the note on finding limits algebraically.

Check it

At x=0.1x = 0.1, cos⁡0.1≈0.995\cos 0.1 \approx 0.995 and sin⁡0.10.1≈0.998\frac{\sin 0.1}{0.1} \approx 0.998, which sits between 0.9950.995 and 11.

Answer

By the squeeze theorem, lim⁡x→0sin⁡xx=1\lim_{x \to 0} \frac{\sin x}{x} = 1, as required.

Your turn

Question: Evaluate lim⁡x→0[5+x4cos⁡(2x)]\lim_{x \to 0} \left[5 + x^4 \cos\left(\dfrac{2}{x}\right)\right].

  1. Step 1:

    For x≠0x \neq 0, −1≤cos⁡(2x)≤1-1 \leq \cos\left(\frac{2}{x}\right) \leq 1. Multiply by x4≥0x^4 \geq 0: −x4≤x4cos⁡(2x)≤x4-x^4 \leq x^4 \cos\left(\frac{2}{x}\right) \leq x^4.

  2. Step 2: Your go: add 55 to every part, find the limits of both bounds, and conclude.

Show the full solutionHide the solution

Adding 55 gives 5−x4≤5+x4cos⁡(2x)≤5+x45 - x^4 \leq 5 + x^4 \cos\left(\frac{2}{x}\right) \leq 5 + x^4. Both 5−x45 - x^4 and 5+x45 + x^4 approach 55 as x→0x \to 0, so by the squeeze theorem the limit is 55.

Answer: The limit is 55.

Traps

Trap

Thinking that if sin⁡(1x)\sin\left(\frac{1}{x}\right) has no limit at 00, then x2sin⁡(1x)x^2 \sin\left(\frac{1}{x}\right) has none either.

It seems right because one factor oscillates forever. But the factor x2x^2 shrinks the swings to nothing: the product is trapped between −x2-x^2 and x2x^2, so its limit is 00.

Check yourself

Does lim⁡x→0x2cos⁡(1x)\lim_{x \to 0} x^2 \cos\left(\frac{1}{x}\right) exist?
Show answerHide answer

Yes, it is 00. From −x2≤x2cos⁡(1x)≤x2-x^2 \leq x^2 \cos\left(\frac{1}{x}\right) \leq x^2, both bounds approach 00.

Trap

Thinking that −1≤sin⁡(1x)≤1-1 \leq \sin\left(\frac{1}{x}\right) \leq 1 squeezes sin⁡(1x)\sin\left(\frac{1}{x}\right) to a limit.

It seems right because the function is trapped. But the bounds −1-1 and 11 have different limits, so the theorem gives no conclusion, and this limit does not exist.

Check yourself

If 0≤f(x)≤20 \leq f(x) \leq 2 near x=3x = 3, what can you say about lim⁡x→3f(x)\lim_{x \to 3} f(x)?
Show answerHide answer

Nothing certain. The bounds approach 00 and 22, which differ, so the squeeze theorem does not apply.

Trap

Writing −x≤xsin⁡(1x)≤x-x \leq x \sin\left(\frac{1}{x}\right) \leq x.

It seems right because it copies the pattern for x2x^2. But for x<0x < 0, −x-x is positive and xx is negative, so the "lower" bound is above the "upper" one. Use −∣x∣-|x| and ∣x∣|x|.

Check yourself

At x=−0.5x = -0.5, is −x≤x-x \leq x true?
Show answerHide answer

No. −x=0.5-x = 0.5 and x=−0.5x = -0.5, so −x>x-x > x; the inequality runs the wrong way.

What's examined

The squeeze theorem is part of Unit 1 (Limits and Continuity) of the AP® Calculus AB exam. You need it when a limit cannot be found by substitution or algebra, for example with a bounded trig factor or with inequalities given in the question. On free response, a justification needs the inequality, the limits of both bounds, and the theorem named. Command words include Evaluate, Justify and Show that.

Practice questions

  1. Recall Which set of facts lets you conclude that lim⁡x→2f(x)=5\lim_{x \to 2} f(x) = 5 by the squeeze theorem?
    • A) g(x)≤f(x)≤h(x)g(x) \leq f(x) \leq h(x) near 22, with lim⁡x→2g(x)=4\lim_{x \to 2} g(x) = 4 and lim⁡x→2h(x)=6\lim_{x \to 2} h(x) = 6
    • B) f(2)=5f(2) = 5, and g(x)≤f(x)≤h(x)g(x) \leq f(x) \leq h(x) near 22
    • C) lim⁡x→2g(x)=lim⁡x→2h(x)=5\lim_{x \to 2} g(x) = \lim_{x \to 2} h(x) = 5, and g(x)≤h(x)g(x) \leq h(x) near 22
    • D) g(x)≤f(x)≤h(x)g(x) \leq f(x) \leq h(x) near 22, with lim⁡x→2g(x)=lim⁡x→2h(x)=5\lim_{x \to 2} g(x) = \lim_{x \to 2} h(x) = 5
Show answer

Answer: D) The bounds trap ff and share the limit 55.

Marking points:

  • The theorem needs both the trapping inequality and equal limits for the bounds.
  • A has bounds with different limits.
  • B gives a value at 22, which says nothing about the limit.
  • C never places ff between the bounds.
  1. Apply Evaluate lim⁡x→0+xsin⁡(1x)\lim_{x \to 0^+} \sqrt{x} \sin\left(\dfrac{1}{x}\right).
Show answer

Answer: The limit is 00.

Marking points:

  • For x>0x > 0, −1≤sin⁡(1x)≤1-1 \leq \sin\left(\frac{1}{x}\right) \leq 1; multiply by x>0\sqrt{x} > 0.
  • −x≤xsin⁡(1x)≤x-\sqrt{x} \leq \sqrt{x} \sin\left(\frac{1}{x}\right) \leq \sqrt{x}.
  • Both bounds approach 00 as x→0+x \to 0^+, so by the squeeze theorem the limit is 00.
  1. Apply Which inequality, true for all x≠0x \neq 0, lets you use the squeeze theorem to find lim⁡x→0x3sin⁡(1x)\lim_{x \to 0} x^3 \sin\left(\frac{1}{x}\right)?
    • A) −x3≤x3sin⁡(1x)≤x3-x^3 \leq x^3 \sin\left(\frac{1}{x}\right) \leq x^3
    • B) −∣x3∣≤x3sin⁡(1x)≤∣x3∣-|x^3| \leq x^3 \sin\left(\frac{1}{x}\right) \leq |x^3|
    • C) −1≤x3sin⁡(1x)≤1-1 \leq x^3 \sin\left(\frac{1}{x}\right) \leq 1
    • D) 0≤x3sin⁡(1x)≤x30 \leq x^3 \sin\left(\frac{1}{x}\right) \leq x^3
Show answer

Answer: B) −∣x3∣≤x3sin⁡(1x)≤∣x3∣-|x^3| \leq x^3 \sin\left(\frac{1}{x}\right) \leq |x^3|.

Marking points:

  • ∣x3sin⁡(1x)∣≤∣x3∣\left|x^3 \sin\left(\frac{1}{x}\right)\right| \leq |x^3| for all x≠0x \neq 0, and both bounds approach 00.
  • A runs the wrong way when x<0x < 0.
  • C fails for larger xx (at x=2x = 2 the value is about 3.843.84), and its bounds have different limits anyway.
  • D ignores that sine can be negative.
  1. Apply For all xx, 6x−9≤f(x)≤x26x - 9 \leq f(x) \leq x^2. What is lim⁡x→3f(x)\lim_{x \to 3} f(x)?
    • A) 00
    • B) 33
    • C) 99
    • D) The limit does not exist.
Show answer

Answer: C) 99.

Marking points:

  • lim⁡x→3(6x−9)=9\lim_{x \to 3} (6x - 9) = 9 and lim⁡x→3x2=9\lim_{x \to 3} x^2 = 9, so the squeeze theorem gives 99.
  • A assumes squeeze limits are always 00.
  • B gives the value of xx, not the limit.
  • D assumes an unknown ff cannot have a known limit.
  1. Exam-style What is lim⁡x→02xsin⁡(1x)\lim_{x \to 0} 2x \sin\left(\dfrac{1}{x}\right)?
    • A) 00
    • B) 11
    • C) 22
    • D) The limit does not exist.
Show answer

Answer: A) 00.

Marking points:

  • −2∣x∣≤2xsin⁡(1x)≤2∣x∣-2|x| \leq 2x \sin\left(\frac{1}{x}\right) \leq 2|x|, and both bounds approach 00.
  • B and C rewrite the expression as a multiple of sin⁡(1/x)1/x\dfrac{\sin(1/x)}{1/x} and use the standard limit, but 1x\frac{1}{x} does not approach 00, so that limit does not apply. C keeps the 22; B drops it.
  • D stops at the oscillation of sin⁡(1x)\sin\left(\frac{1}{x}\right).
  1. Exam-style A function ff satisfies 4x−3≤f(x)≤x2+14x - 3 \leq f(x) \leq x^2 + 1 for all xx. (a) Find lim⁡x→2f(x)\lim_{x \to 2} f(x). (b) Find lim⁡x→2f(x)x+3\lim_{x \to 2} \dfrac{f(x)}{x + 3}. (c) Find the limits of the two bounds as x→0x \to 0, and say whether they determine lim⁡x→0f(x)\lim_{x \to 0} f(x).
Show answer

Answer: (a) 55. (b) 11. (c) The bounds approach −3-3 and 11, which differ, so they do not determine lim⁡x→0f(x)\lim_{x \to 0} f(x).

Marking points:

  • At x=2x = 2, both 4x−34x - 3 and x2+1x^2 + 1 approach 55, so by the squeeze theorem the limit is 55.
  • Quotient law: 52+3=1\frac{5}{2 + 3} = 1.
  • At x=0x = 0 the bounds approach −3-3 and 11; unequal limits give no conclusion.
  1. Exam-style Show that lim⁡x→0x2(2+sin⁡(1x))=0\lim_{x \to 0} x^2 \left(2 + \sin\left(\dfrac{1}{x}\right)\right) = 0.
Show answer

Answer: For x≠0x \neq 0, x2≤x2(2+sin⁡(1x))≤3x2x^2 \leq x^2\left(2 + \sin\left(\frac{1}{x}\right)\right) \leq 3x^2, and both bounds approach 00, so by the squeeze theorem the limit is 00.

Marking points:

  • −1≤sin⁡(1x)≤1-1 \leq \sin\left(\frac{1}{x}\right) \leq 1, so 1≤2+sin⁡(1x)≤31 \leq 2 + \sin\left(\frac{1}{x}\right) \leq 3.
  • Multiply by x2>0x^2 > 0: x2≤x2(2+sin⁡(1x))≤3x2x^2 \leq x^2\left(2 + \sin\left(\frac{1}{x}\right)\right) \leq 3x^2.
  • lim⁡x→0x2=0\lim_{x \to 0} x^2 = 0 and lim⁡x→03x2=0\lim_{x \to 0} 3x^2 = 0; name the squeeze theorem.

Key points

Recall, then reveal

Say the main points from memory first, then check them.

Show key pointsHide key points
  • The squeeze theorem needs an inequality trapping ff near aa and two bounds with the same limit LL; then ff has limit LL.
  • Sine and cosine stay in [−1,1][-1, 1] whatever their input, which gives a ready-made starting inequality.
  • Multiply by a factor that is never negative, or by an absolute value, so the signs stay the right way round.
  • A full answer writes the inequality, both bounds' limits, and the theorem's name.

Figures

The curve y = x² sin(1/x) oscillating ever faster as x approaches 0, staying between the dashed parabolas y = x² and y = −x², which both pass through the origin. (open full size in a new tab)
The graph of y = x² sin(1/x) between y = x² and y = −x²

Keep learning

Explore AP Calculus AB tutoring →

View the full Calculus AB syllabus →

More in this unit

Limits and Continuity

All Limits notes

Part of Novark's AP Calculus AB notes