asymptote
ShopSeason 1Sign in
Play
How to playFormulasFor teachersCreatorsJoin a class gameCalculus guidesBadges and levelsLeaderboardsDailyCurvePracticeShopGift a PassTip jarFounderPricing
/
You approach it and never arrive.

Asymptote is a free online calculus game: a calculus practice game for derivatives, limits and integrals, with typed answers and a live mode for class. Newest guide: Squeeze Theorem: 3 Examples & Practice Problems.

Guides with practice problems: Chain rule · U-substitution · Implicit differentiation · Integration by parts · Product rule · Quotient rule · Power rule · L'Hôpital's rule · Related rates
SupportTermsPrivacyRefundsInstagramXPressMade with ♥ by the_calculusguy© Boolean Productions 2026

Blog · Calculus guides · 31 October 2026 · 4 min read

By the Asymptote team. Every answer on this page is checked by the same machine that grades the game.

Squeeze Theorem: 3 Examples & Practice Problems

An illustration of the squeeze theorem

The squeeze theorem says that if g(x)≤f(x)≤h(x) near a, and g and h both tend to the same limit L as x→a, then f tends to L too. It is how you find limits of functions that wobble, like x2sinx1​ as x→0, where substitution fails and nothing cancels. Trap the function between two simpler ones that agree, and it has nowhere else to go.

On this page

  • Formula
  • When to use it
  • Steps
  • Worked examples
  • Practice problems
  • Common mistakes
  • FAQ

The formula

g(x)≤f(x)≤h(x) near aandx→alim​g(x)=x→alim​h(x)=L⟹x→alim​f(x)=L

Also sold as the sandwich theorem, and in Italy as the two carabinieri theorem: two police officers walking a suspect to the station, one on each side.

When to use it

Use the squeeze theorem when a limit involves something bounded but badly behaved, usually sin or cos of something that blows up, multiplied by something that goes to zero. The bounded part is the giveaway: −1≤sin(anything)≤1 always, so you can bound the whole expression without knowing what the inside does. If plain substitution, factoring or L'Hôpital's rule works, use that instead; the squeeze is for the limits those methods cannot touch.

How to do it, step by step

  1. Find the bounded piece. Usually sin(⋅) or cos(⋅), which sits between −1 and 1 whatever is inside it.
  2. Write the inequality for that piece. For example −1≤sinx1​≤1.
  3. Build the rest of f around it. Multiply or divide every part of the inequality by the other factor. If that factor is negative, flip the inequality signs; if it is positive (like x2), they stay put.
  4. Take the limit of both bounds. If they agree on L, write the conclusion: by the squeeze theorem, limf=L. If they disagree, your bounds are too loose, and you need tighter ones.

Worked examples

Example 1: A wobble times something small

Easy

Find the limit:

x→0lim​x2sin(x1​)

Substitution gives 0⋅sin01​, which is meaningless, and sinx1​ itself has no limit at 0: it oscillates faster and faster between −1 and 1.

But it is bounded. Start there and multiply through by x2, which is positive, so the inequalities keep their direction:

−1≤sinx1​≤1⟹−x2≤x2sinx1​≤x2

Both −x2 and x2 go to 0 as x→0. The function is pinned between them, so it goes to 0 as well, however much it wiggles on the way.

On a graph, x2sinx1​ is a wave trapped inside the two parabolas y=x2 and y=−x2, wiggling infinitely often as it is crushed into the origin.

Answer

x→0lim​x2sin(x1​)=0

Example 2: A limit at infinity

Medium

Find the limit:

x→∞lim​xsinx​

L'Hôpital's rule does not apply: the top does not go to 0 or ∞, it just keeps oscillating. The bound does the work instead.

For x>0, divide −1≤sinx≤1 through by x:

−x1​≤xsinx​≤x1​

Both bounds go to 0 as x→∞, so the function does too. On a graph, that is a wave whose height shrinks like x1​, settling onto the horizontal asymptote y=0 while crossing it infinitely often.

Answer

x→∞lim​xsinx​=0

Example 3: The famous one

Harder

Show that:

x→0lim​xsinx​=1

Substitution gives 00​, and L'Hôpital's rule would need the derivative of sinx, which is itself proved using this limit. So it has to come from geometry.

Take 0<x<2π​ on the unit circle. A small triangle, a sector of angle x and a larger triangle sit inside each other, with areas 21​sinx, 21​x and 21​tanx:

sinx≤x≤tanx⟹1≤sinxx​≤cosx1​⟹cosx≤xsinx​≤1

The middle step divides by sinx>0; the last one flips everything upside down, which reverses the inequalities. Both bounds tend to 1 as x→0. For negative x, xsinx​ takes the same values, since both top and bottom change sign, so the limit from the left is 1 as well.

Answer

x→0lim​xsinx​=1

Squeeze theorem practice problems

Three to try, easy to harder. Type an answer and it is checked instantly by the same checker that grades the game; any correct form counts. Stuck? The answer and the first step are under each one.

Problem 1

Easy

Find the limit:

x→0lim​xcos(x1​)

Stuck? Show the answer

Answer

0

How to start

Start from −1≤cosx1​≤1 and multiply by ∣x∣: the function is trapped between −∣x∣ and ∣x∣.

Problem 2

Medium

Find the limit:

x→∞lim​x3x+sinx​

Stuck? Show the answer

Answer

3

How to start

Since −1≤sinx≤1, the top is between 3x−1 and 3x+1. Divide those bounds by x and take their limits.

Problem 3

Harder

Find the limit:

x→0lim​2x21−cos(4x)​

Stuck? Show the answer

Answer

4

How to start

Multiply top and bottom by 1+cos(4x), so the top becomes sin2(4x). Then build (4xsin4x​)2, the squeezed limit, which tends to 1.

Want more? Asymptote has 243 related problems, free, with no account.

Common mistakes

  • Bounds that do not agree. −1≤sinx1​≤1 is true, but the bounds tend to −1 and 1, so it proves nothing about sinx1​ alone. The squeeze only works when both sides meet.
  • Forgetting to flip the inequality. Multiplying by a negative number reverses both signs. If x<0 is in play, check which bound is really on top.
  • Writing limsinx1​=0 along the way. It has no limit at all. The product has a limit because the x2 crushes it, not because the sine settles down.
  • Splitting the limit of a product. limx2⋅limsinx1​ is not allowed when the second limit does not exist. That is precisely the case the squeeze theorem exists for.

Practice it now

Five minutes, no account

Asymptote has no squeeze-theorem problems as such, since a proof is hard to type into a box. The closest thing is the standard trig limits, bxsin(ax)​ and friends as x→0, which run on the limit in the third example and turn up in a Sprint once the difficulty reaches 4.

Play a SprintSee it on the formula sheet

FAQ

Is the squeeze theorem the same as the sandwich theorem?
Yes, same theorem, different snack. It is also called the pinching theorem.
When do you use the squeeze theorem?
When the function has a bounded factor that oscillates, such as sin or cos of something that blows up, multiplied by a factor that tends to zero.
Does the squeeze theorem work for limits at infinity?
Yes. The inequality only has to hold for large enough x, and both bounds must tend to the same limit as x→∞.
Why is limx→0​xsinx​=1 important?
It is the limit behind dxd​sinx=cosx, and every trig derivative is built from that one.
Where can I find squeeze theorem practice problems?
Right on this page: the practice problems section has three squeeze theorem problems, easy, medium and harder, with the answer and the first step under each one, and a box that checks what you type with the same checker that grades Asymptote. The game has 243 related problems after that, free and with no account: try a five-minute Sprint.

Keep going

  • L'Hôpital's Rule: When to Use It & Practice Problems

    L'Hôpital's rule: for 0/0 or ∞/∞, the limit of f/g equals the limit of f'/g'. When it applies, 3 worked examples and practice problems with answers.

  • Derivatives of Trig Functions: Table & Practice Problems

    Derivatives of sin, cos, tan, cot, sec and csc in one table: (sin x)' = cos x, (cos x)' = −sin x. A trick for the signs, 3 examples and practice problems.

  • Trig Substitution: Which to Use & Practice Problems

    Trig substitution: a²−x² → x = a sin θ, a²+x² → x = a tan θ, x²−a² → x = a sec θ. Converting back with a triangle, 3 examples and practice problems.