Free for students · Ad-free · WCAG 2.1 AA Compliant · Accessibility

Determining Limits Using the Squeeze Theorem

Lesson ~9 min read

In simple terms: In simple terms, the Squeeze Theorem helps you find a tricky limit by "squeezing" it between two simpler functions that go to the same place.

Why this matters

Imagine you're trying to figure out the exact location of your friend Jordan's drone as it lands. The drone's path is super erratic, zig-zagging back and forth. You can't track it directly. But, you have two friends, Priya and Marcus, who are walking steadily toward the same landing spot. Priya is always to the left of the drone's path, and Marcus is always to the right.

Even if you can't calculate the drone's wild path, you know that if Priya and Marcus both end up at the exact same spot on the ground, the drone must land there too. It has no other choice—it's been squeezed between them.

The Squeeze Theorem is the mathematical version of this. It's a powerful tool for finding limits of weird, wiggly functions that we can't solve any other way. We'll learn how to set up this "squeeze" and confidently find the limit.

Concept overview

flowchart TD
    A[Start: Find lim f(x) as x->c] --> B{Can I use direct substitution or algebra?};
    B -->|Yes| C[Solve directly. You're done!];
    B -->|No| D{Is f(x) a product of a bounded function and a function going to 0?};
    D -->|Yes| E[Identify the bounded part, e.g., sin(x) or cos(x)];
    E --> F[Create an inequality, e.g., -1 <= sin(x) <= 1];
    F --> G[Multiply/divide to make the middle f(x). Now you have g(x) <= f(x) <= h(x)];
    G --> H{Do lim g(x) and lim h(x) equal the same value L?};
    H -->|Yes| I[Conclusion: By Squeeze Theorem, lim f(x) = L];
    H -->|No| J[Theorem doesn't apply. Re-check your g(x) and h(x)];
    D -->|No| K[Try another limit technique];
This flowchart shows the decision-making process for using the Squeeze Theorem. It starts with a limit problem and branches based on whether direct methods work. If not, it guides the user to check for a "squeezable" function, build the inequality, check if the outer limits match, and finally draw a conclusion.

Core explanation

Hello, future calculus masters! I'm Saavi, and I'm here to guide you through one of the most elegant tools in your limit toolkit: the Squeeze Theorem.

Sometimes, you'll hit a limit problem that resists all your usual methods. Direct substitution gives you an indeterminate form, and there's no obvious algebra to simplify it. These problems often involve a trigonometric function like sine or cosine, which oscillate back and forth, multiplied by another function.

Consider a limit like this: lim (x→0) x² * sin(1/x)

If you try to plug in 0, you get 0 * sin(1/0), which is a mess. sin(1/0) is undefined and doesn't approach any single value. So, what do we do? We use the Squeeze Theorem.

The "Friend Sandwich" Analogy

Think of it like this: You're in the back of a car, squished between two friends, Carlos and Sofia. You are the middle function, f(x). Carlos, on your left, is the lower-bound function, g(x). Sofia, on your right, is the upper-bound function, h(x).

The car is heading to a big concert in downtown Dallas. The limit point, c, is the moment you all arrive at the venue's entrance. The limit value, L, is the specific parking spot you're all heading for.

If you know that Carlos and Sofia are both going to end up at Parking Spot B-4, and you are physically stuck between them, where are you going to end up? Parking Spot B-4. You have no choice.

That's the entire idea of the Squeeze Theorem.

The Three Conditions for the Squeeze Theorem

For the theorem to work, you have to prove three things. On the AP exam, you must show all three steps for full credit.

  1. 1
    The Squeeze Condition
    You must establish that your tricky function, f(x), is truly stuck between your two chosen "friend" functions, g(x) and h(x), for all the x-values near your limit point c. g(x) ≤ f(x) ≤ h(x)
  2. 2
    The Agreement Condition
    You must show that both of your "friend" functions are heading to the exact same limit, L, as x approaches c. lim (x→c) g(x) = L and lim (x→c) h(x) = L
  3. 3
    The Conclusion
    If the first two conditions are met, you can confidently state that your function's limit must also be L. Therefore, lim (x→c) f(x) = L.

Applying the Theorem: Step-by-Step

Let's go back to our problem: lim (x→0) x² * sin(1/x)

Step 1: Find your bounding functions. This is where most students get stuck at first. You need to find the part of the function that you do know something about. Here, it's the sin(1/x) part.

No matter what you plug into a sine function—whether it's x, 1/x, or x²-4x+5—the output is always trapped between -1 and 1. This is the key!

So, we start with this known fact: -1 ≤ sin(1/x) ≤ 1

Step 2: Build your inequality to match the original function. Our original function isn't just sin(1/x), it's x² * sin(1/x). To get our inequality to match, we need to multiply all three parts by .

Since is always positive (or zero), we don't have to worry about flipping the inequality signs. (-1) * x² ≤ x² * sin(1/x) ≤ (1) * x² -x² ≤ x² * sin(1/x) ≤ x²

Look at that! We just established our Squeeze Condition.

  • Our g(x) is -x².
  • Our f(x) is x² * sin(1/x).
  • Our h(x) is .

Step 3: Check the limits of your bounding functions. Now we check the Agreement Condition. Do our two simple, friendly functions g(x) and h(x) go to the same place as x approaches 0?

lim (x→0) -x² = -(0)² = 0 lim (x→0) x² = (0)² = 0

Yes! They both go to 0.

Step 4: State your conclusion. We've shown that x² * sin(1/x) is squeezed between two functions that both approach 0. Therefore, by the Squeeze Theorem, our function must also approach 0.

Your formal answer on an exam would look like this:

Since -x² ≤ x² * sin(1/x) ≤ x², and lim (x→0) -x² = 0 and lim (x→0) x² = 0, then by the Squeeze Theorem, lim (x→0) x² * sin(1/x) = 0.

That's it. You've taken a complex, oscillating function and elegantly proven its limit without breaking a sweat. This method is your secret weapon for a very specific, but important, class of problems.

Worked examples

Let's walk through a couple of examples together. The key is to recognize the pattern: a bounded function (like sin or cos) multiplied by a function that goes to zero.

Example 1

A Limit at Infinity

Problem: Find lim (x→∞) (cos(x)) / (x² + 5)

Step 1: Analyze the function and identify the "squeeze" opportunity. As x goes to infinity, the denominator x² + 5 gets huge. The numerator, cos(x), just wiggles back and forth between -1 and 1. A number between -1 and 1 divided by an infinitely large number should be zero, but we need to prove it formally. This is a perfect setup for the Squeeze Theorem.

Step 2: Start with the bounded part of the function. We know the range of the cosine function. No matter what x is, cos(x) is always between -1 and 1. -1 ≤ cos(x) ≤ 1

Step 3: Build the inequality to match the original function. Our function has cos(x) divided by x² + 5. So, let's divide all three parts of our inequality by x² + 5. Since x is going to infinity, x² + 5 is always a positive number, so we don't need to worry about flipping the inequality signs.

-1 / (x² + 5) ≤ cos(x) / (x² + 5) ≤ 1 / (x² + 5)

This is our Squeeze Condition. We have our g(x), f(x), and h(x).

Step 4: Find the limits of the outer functions. Now we check the Agreement Condition.

  • lim (x→∞) -1 / (x² + 5): As x gets infinitely large, the denominator x² + 5 becomes infinitely large. -1 divided by a huge number is 0.
  • lim (x→∞) 1 / (x² + 5): Similarly, 1 divided by a huge number is 0.

The limits match! Both g(x) and h(x) approach 0.

Step 5: State the conclusion. Since our function is squeezed between two other functions that both approach 0 as x goes to infinity, our function's limit must also be 0.

Final Answer: Because -1/(x²+5) ≤ cos(x)/(x²+5) ≤ 1/(x²+5) and lim (x→∞) -1/(x²+5) = 0 and lim (x→∞) 1/(x²+5) = 0, by the Squeeze Theorem, lim (x→∞) cos(x)/(x²+5) = 0.

Example 2

A Slightly Different Setup

Problem: Let f(x) be a function such that 4x - 9 ≤ f(x) ≤ x² - 4x + 7 for all x. Find lim (x→4) f(x).

Step 1: Analyze the problem. This is a gift! The problem has already done the hard work of finding the bounding functions for you. You don't have to build the inequality; you just have to use it. Your g(x) is 4x - 9 and your h(x) is x² - 4x + 7.

This is where some students get confused. They think they need to find out what f(x) is. You don't! The whole point of the theorem is that we can find the limit of f(x) without ever knowing its exact formula.

Step 2: Find the limits of the given outer functions. We just need to check the Agreement Condition. We'll find the limit of the left and right sides as x approaches 4.

  • lim (x→4) (4x - 9): We can use direct substitution here. 4(4) - 9 = 16 - 9 = 7

  • lim (x→4) (x² - 4x + 7): Direct substitution works here, too. (4)² - 4(4) + 7 = 16 - 16 + 7 = 7

Step 3: State the conclusion. The limits are the same! The lower bound and the upper bound both approach 7 as x approaches 4.

Final Answer: Since f(x) is bounded by 4x - 9 and x² - 4x + 7, and since lim (x→4) (4x - 9) = 7 and lim (x→4) (x² - 4x + 7) = 7, we can conclude by the Squeeze Theorem that lim (x→4) f(x) = 7.

Try it yourself

Ready to try on your own? Remember the process: find the bounded part, build the inequality, check the limits of the outer functions, and conclude.

Problem 1: Find the limit: lim (x→0) x⁴ * cos(2/x)

Hint: What do you know about the range of cos(anything)? How can you use that to build an inequality? Remember that x⁴ is always non-negative.

Problem 2: A function h(t) models the height of a kite in feet at time t in seconds. It is known that for t near 2 seconds, the height is bounded by two other functions: g(t) = -t² + 6t - 1 and k(t) = t² - 2t + 7. Find lim (t→2) h(t).

Hint: The problem has already given you the "squeeze." What's the only thing you need to check before you can draw your conclusion?