Skip to main content
United StatesCalculusSyllabus dot point

How can you find a limit by trapping a function between two others that share the same limit?

Topic 1.8 Determining Limits Using the Squeeze Theorem: apply the squeeze (sandwich) theorem to evaluate limits of functions bounded between two functions with a common limit.

A focused answer to AP Calculus AB Topic 1.8, stating the squeeze (sandwich) theorem and applying it to limits like x squared times sine of one over x, with a full worked example.

Generated by Claude Opus 4.88 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this topic is asking
  2. The theorem
  3. How to set it up
  4. Why oscillation alone does not kill the limit
  5. When to reach for the squeeze theorem
  6. What a full justification needs

What this topic is asking

The College Board (Topic 1.8) wants you to apply the squeeze theorem (also called the sandwich theorem): if a function is trapped between two other functions that approach the same limit, then it is forced to that limit too. It is the standard way to handle limits of oscillating products like x2sin(1x)x^2 \sin\left(\frac{1}{x}\right), where no algebraic simplification works.

The theorem

The picture is exactly the name: ff is sandwiched between gg and hh. If the bread (the bounds) meets at a single height LL, the filling (ff) has nowhere else to go.

How to set it up

The hard part is finding the bounds. The key fact is that bounded oscillating factors stay in a fixed range:

So x2sin(1x)x^2 \sin\left(\frac{1}{x}\right) is bounded by x2-x^2 and x2x^2, both of which approach 00.

Why oscillation alone does not kill the limit

A function like sin(1x)\sin\left(\frac{1}{x}\right) has no limit as x0x \to 0 - it oscillates forever between 1-1 and 11. But multiplying it by x2x^2, which shrinks to 00, crushes the oscillation down to zero amplitude. The squeeze theorem is the precise tool that proves this intuition.

When to reach for the squeeze theorem

The squeeze theorem is a specialist tool, not a first resort, so it helps to recognize its signature. Reach for it when a limit involves a bounded oscillating factor - typically sin\sin or cos\cos of something that blows up, like sin(1x)\sin\left(\frac{1}{x}\right) near 00 - multiplied by a factor that shrinks to zero. Substitution fails because the oscillating part has no limit, and the algebraic techniques (factoring, conjugates) do not apply because there is nothing to cancel. That combination is the cue. The strategy is then to discard the oscillating factor's exact behavior and only use the fact that it is trapped between 1-1 and 11, which converts the problem into bounding by two functions you can evaluate. If a limit has no such bounded-times-vanishing structure, the squeeze theorem is usually not the intended method.

What a full justification needs

On an AP free-response question, a complete squeeze argument states the bounding inequality, evaluates the limit of each bound, confirms the two limits are equal, and then names the theorem to conclude. Leaving out the equal-limits check loses credit, because the theorem only works when the bounds meet. A clean template runs: "Since 1sin(1x)1-1 \leq \sin\left(\frac{1}{x}\right) \leq 1, multiplying by x20x^2 \geq 0 gives x2f(x)x2-x^2 \leq f(x) \leq x^2. As x0x \to 0, both x20-x^2 \to 0 and x20x^2 \to 0, so by the squeeze theorem limx0f(x)=0\lim_{x \to 0} f(x) = 0." Reusing this skeleton guarantees you include every element the markers look for.

Exam-style practice questions

Practice questions written in the style of College Board exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

AP 2021 (style)1 marksSection I (multiple choice, no calculator). If x2g(x)x2-x^2 \leq g(x) \leq x^2 for all xx, what is limx0g(x)\lim_{x \to 0} g(x)? (A) 00 (B) 11 (C) Does not exist (D) Cannot be determined
Show worked answer →

The correct answer is (A), 00.

The bounding functions are x2-x^2 and x2x^2. Both have limit 00 as x0x \to 0: limx0(x2)=0\lim_{x \to 0}(-x^2) = 0 and limx0x2=0\lim_{x \to 0} x^2 = 0. Since gg is squeezed between two functions that share the limit 00, the squeeze theorem forces limx0g(x)=0\lim_{x \to 0} g(x) = 0.

AP 2023 (style)3 marksSection II (free response, no calculator). Let f(x)=x2sin(1x)f(x) = x^2 \sin\left(\frac{1}{x}\right) for x0x \neq 0. (a) Write inequalities bounding f(x)f(x) using the fact that 1sin(1x)1-1 \leq \sin\left(\frac{1}{x}\right) \leq 1. (b) Evaluate the limits of your bounding functions as x0x \to 0. (c) State limx0f(x)\lim_{x \to 0} f(x) and justify with the squeeze theorem.
Show worked answer →

A 3-point squeeze-theorem question.

(a) (1 point) Since 1sin(1x)1-1 \leq \sin\left(\frac{1}{x}\right) \leq 1 and x20x^2 \geq 0, multiply through by x2x^2: x2x2sin(1x)x2-x^2 \leq x^2 \sin\left(\frac{1}{x}\right) \leq x^2.
(b) (1 point) limx0(x2)=0\lim_{x \to 0}(-x^2) = 0 and limx0x2=0\lim_{x \to 0} x^2 = 0.
(c) (1 point) Both bounds approach 00, so by the squeeze theorem limx0x2sin(1x)=0\lim_{x \to 0} x^2 \sin\left(\frac{1}{x}\right) = 0. The justification must state that the function is trapped between two functions with the common limit 00.

Related dot points

Sources & how we know this