Calculus I · Limits and Continuity · lesson

The Squeeze Theorem

Concept

Learning objectives

Use upper and lower bounds to determine a limit even when the middle function oscillates or is difficult to evaluate directly.

The Squeeze Theorem and Trigonometric Limits

When Direct Algebra Is Not Enough

Some functions refuse to simplify into a friendly formula. The Squeeze Theorem handles them by trapping their outputs between two simpler functions.

Concept

Suppose three people walk through a doorway side by side. The person in the middle cannot end up above the person on the top or below the person on the bottom. If the top and bottom people are forced toward the same height, the middle person is forced there too. That is the Squeeze Theorem.

Theorem

Squeeze Theorem

Suppose that for all xx sufficiently close to aa,

g(x)f(x)h(x),g(x)\le f(x)\le h(x),

and suppose

limxag(x)=Landlimxah(x)=L.\lim_{x\to a}g(x)=L \qquad\text{and}\qquad \lim_{x\to a}h(x)=L.

Then

limxaf(x)=L.\boxed{\lim_{x\to a}f(x)=L}.
Guided walkthrough

A number trapped between shrinking walls

Suppose f(x)f(x) satisfies

x2f(x)x2-x^2\le f(x)\le x^2

near x=0x=0. Find limx0f(x)\lim_{x\to0}f(x).

Show worked solution

The lower wall approaches

limx0(x2)=0.\lim_{x\to0}(-x^2)=0.

The upper wall approaches

limx0x2=0.\lim_{x\to0}x^2=0.

Because f(x)f(x) is trapped between two functions that both approach 00,

limx0f(x)=0.\boxed{\lim_{x\to0}f(x)=0}.

We do not need a formula for ff. The trap is enough.

Interactive checksqueeze-flow-01

Evaluate limx0x2sin(1/x)\lim_{x\to0}x^2\sin(1/x).

Your work stays on this device. No account or AI grader is used.

Show hint

Use sin(1/x)1|\sin(1/x)|\le1.

Attempt once to unlock the solution

Submit an answer first. The hint is available now.

Bounded oscillation times a shrinking factor

The inequalities

1sinu1-1\le\sin u\le1

and

1cosu1-1\le\cos u\le1

hold for every real uu. If a bounded trigonometric factor is multiplied by something that approaches zero, the product is often squeezed to zero.

Worked example

An oscillating function forced to zero

Evaluate

limx0x2sin(1x).\lim_{x\to0}x^2\sin\left(\frac1x\right).
Show worked solution

Start with the universal sine bound:

1sin(1x)1.-1\le\sin\left(\frac1x\right)\le1.

Since x20x^2\ge0, multiply every part by x2x^2 without reversing the inequalities:

x2x2sin(1x)x2.-x^2\le x^2\sin\left(\frac1x\right)\le x^2.

Now take limits of the outer functions:

limx0(x2)=0,limx0x2=0.\lim_{x\to0}(-x^2)=0, \qquad \lim_{x\to0}x^2=0.

Therefore,

limx0x2sin(1x)=0.\boxed{\lim_{x\to0}x^2\sin\left(\frac1x\right)=0}.

The sine factor continues oscillating. The shrinking factor x2x^2 reduces the size of every oscillation until the graph is trapped near zero.

Oscillating function squeezed between x squared and negative x squared.
Read this graph as text

An oscillating function squeezed to zero. The middle curve y = x squared times sin(1/x) oscillates on separate domains to the left and right of zero. A dashed upper curve y = x squared and a dotted lower curve y = negative x squared form a narrowing envelope. The middle curve remains inside that envelope, and all three approach zero. The middle formula is undefined at zero and is never connected across it.

The middle function is heavy and solid, the upper bound is dashed, and the lower bound is dotted. The inequality is also written as text.

Why it matters: Make the Squeeze Theorem visible by comparing an oscillating middle function with upper and lower bounds that share limit zero.

Read the graph

The oscillating function is trapped between x2-x^2 and x2x^2, both of which approach zero.

Interactive graph exploration

Functions: y=x2sin(1/x)y=x^2\sin(1/x), y=x2y=x^2, and y=x2y=-x^2. Window: 0.35x0.35-0.35\le x\le0.35, 0.13y0.13-0.13\le y\le0.13. Use at least 1500 samples on each side of zero for the oscillating curve. Do not connect across x=0x=0, where the displayed formula is undefined.

Worked example

Absolute-value squeeze

Evaluate

limx0xcos(5x).\lim_{x\to0}x\cos\left(\frac{5}{x}\right).
Show worked solution

Because cosu1|\cos u|\le1,

xcos(5x)x.\left|x\cos\left(\frac5x\right)\right| \le |x|.

This means

xxcos(5x)x.-|x|\le x\cos\left(\frac5x\right)\le|x|.

Both outer functions approach zero, so

limx0xcos(5x)=0.\boxed{\lim_{x\to0}x\cos\left(\frac5x\right)=0}.
Problem 1

When a function contains sin(1/x)\sin(1/x), cos(1/x)\cos(1/x), or another bounded oscillating factor, ask whether the rest of the expression approaches zero. The inequality

bounded factor×shrinking factorCshrinking factor|\text{bounded factor}\times\text{shrinking factor}| \le C|\text{shrinking factor}|

is often the entire argument.

After the explanation

Use the section idea

Reading lens

Can the expression be rewritten around a known small-angle limit, with every scaling factor accounted for?

Mental model

The fundamental sine limit is a reusable local shape: other trigonometric limits work when you expose that shape through identities and scaling.

Decision

Look for a bounded oscillation times a shrinking factor, or rewrite the expression into sine-over-angle factors whose arguments match their denominators.

Common trap

The sine function is not equal to its angle; their ratio merely approaches one near zero, and that statement requires radian measure.

Check yourself

Mastery means you can mark every scaling factor before simplifying and can explain where the Squeeze Theorem enters the argument.

Source & rights

Original instruction with traceable references.

The exposition is original. No Active Calculus exercise is reproduced verbatim. Public-domain examples were modernized and recomposed when used as inspiration.

The verified handoff declares original composition and requires owner provenance review. BetterGrades-original material remains separate from public-domain references; no source textbook PDF is published here.

Vocab
Limit
Math glossaryLimit
limxaf(x)=L\lim_{x\to a}f(x)=L

The value a function approaches as its input approaches a target.

Learn more
Function
Math glossaryFunction
y=f(x)y=f(x)

A rule or relation assigning exactly one output to each allowed input.

Learn more
Continuity
Math glossaryContinuity
limxaf(x)=f(a)\lim_{x\to a}f(x)=f(a)

At a point, the function value exists and equals the limit there.

Learn more
Domain
Math glossaryDomain
domf\operatorname{dom}f

The set of permitted input values.

Learn more
Math glossary