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

Determining Limits Using the Squeeze Theorem

Lesson ~10 min read

In simple terms: In simple terms, the Squeeze Theorem helps us find a tricky limit by "squeezing" its function between two easier functions that both lead to the same value.

Why this matters

Imagine you're walking down a crowded school hallway with two of your friends, Priya and Marcus. Priya is on your left and Marcus is on your right, and you're all walking together. Up ahead, the hallway narrows, and both Priya and Marcus decide to walk through the same single door to the library.

Because you're stuck walking between them, you don't have much of a choice. If Priya goes through that door, and Marcus goes through that exact same door, you're going through it too. There's nowhere else for you to go.

This is the core idea behind the Squeeze Theorem. Sometimes we have a complicated function (you) whose destination (limit) is hard to figure out. But if we can trap it between two simpler functions (Priya and Marcus) that we know are heading to the same exact spot, we can say with certainty where our complicated function must be heading, too.

Concept overview

flowchart TD
    A[Start: Find lim f(x) as x->c] --> B{Try Direct Substitution};
    B --> C{Is the result a real number?};
    C -- Yes --> D[Done! That's the limit.];
    C -- No --> E{Try Algebraic Simplification?};
    E -- No --> F{Is f(x) a product of a zero-bound part and a bounded part like sin/cos?};
    F -- Yes --> G[Use Squeeze Theorem];
    F -- No --> H[Try other methods, e.g. L'Hopital's Rule];
    G --> I[1. Find g(x) and h(x) such that g(x) <= f(x) <= h(x)];
    I --> J[2. Show that lim g(x) = L and lim h(x) = L];
    J --> K[3. Conclude: By Squeeze Theorem, lim f(x) = L];
This flowchart shows the decision-making process for solving limit problems. It guides the user to first try direct substitution and algebra, then shows when to apply the Squeeze Theorem: when a function is a product of a part going to zero and a bounded part. The three steps of the Squeeze Theorem are then listed.

Core explanation

Hey there, future calculus whizzes. It's Saavi. Today, we're tackling a powerful tool in your limit toolkit: the Squeeze Theorem. It's also sometimes called the Sandwich Theorem, and for good reason!

When Do You Need the Squeeze Theorem?

So far, you've learned to find limits using direct substitution, factoring, or multiplying by the conjugate. But what happens when none of those work?

Consider a limit like this: lim (x->0) x²sin(1/x)

If you try direct substitution, you get 0² * sin(1/0). That sin(1/0) part is a huge problem. The function sin(u) oscillates, and as u goes to infinity (which is what 1/x does as x approaches 0), it just keeps bouncing between -1 and 1 forever. It never settles on a single value. So, direct substitution fails. Algebraic tricks won't help either.

This is exactly the kind of problem where the Squeeze Theorem shines. It's designed for functions that are a product of two things:

  1. A part that goes to zero (like ).
  2. A part that is "bounded," meaning it's trapped between two numbers (like sin(1/x)).

The Official Definition

Here’s the theorem in its formal glory. Don't let the symbols intimidate you; we'll break it down right after.

The Squeeze Theorem: Let f(x), g(x), and h(x) be functions. If g(x) <= f(x) <= h(x) for all x near a certain point c (but not necessarily at c), AND If lim (x->c) g(x) = L and lim (x->c) h(x) = L, THEN lim (x->c) f(x) = L.

Analogy Time: The Hallway Squeeze

Think back to our hallway scenario.

  • The lower function, g(x), is your friend Priya.
  • The upper function, h(x), is your friend Marcus.
  • The tricky middle function, f(x), is you.
  • The point c is the location of the library door.
  • The limit L is the single point in space where the doorway is.

The theorem says that if Priya (g(x)) is always on one side of you and Marcus (h(x)) is always on the other, and they both walk to the exact same spot L at the doorway c, then you (f(x)) have no choice but to arrive at that same spot L.

How to Build Your "Sandwich"

The hardest part of using the Squeeze Theorem is finding your "bread" functions, g(x) and h(x). Luckily, for most problems you'll see in AP Calculus, the strategy is very predictable.

The key is to start with the bounded part of the function. For any angle θ, you know for a fact that the sine and cosine functions are always trapped:

  • -1 <= sin(θ) <= 1
  • -1 <= cos(θ) <= 1

This is your starting point. This is the universal truth that lets you build the entire inequality.

Let's walk through the process for lim (x->0) x²sin(1/x):

  1. 1
    Start with the bound
    Identify the bounded part, which is sin(1/x). It doesn't matter what's inside the sine function; its output is always between -1 and 1. -1 <= sin(1/x) <= 1
  2. 2
    Build the function
    Your goal is to make the middle of your inequality look exactly like the function in the limit problem. Right now, you have sin(1/x). You need x²sin(1/x). How do you get there? You multiply by . This is where most students slip up. You can't just multiply the middle. You must multiply all three parts of the inequality to keep it true.

    -1 * (x²) <= x² * sin(1/x) <= 1 * (x²)

    Which simplifies to: -x² <= x²sin(1/x) <= x²

    (Note: We can do this without worrying about flipping the inequality signs because is always non-negative).

  3. 3
    Find the limits of the outer functions
    Now you have your three functions:
    • g(x) = -x² (the bottom bread)
    • f(x) = x²sin(1/x) (the filling)
    • h(x) = x² (the top bread)

    Take the limit of the outer functions as x approaches 0:

    • lim (x->0) -x² = -(0)² = 0
    • lim (x->0) x² = (0)² = 0
  4. 4
    State your conclusion
    The limits of both outer functions are the same! They both equal 0. Since our target function is squeezed between them, its limit must also be 0. You must state this conclusion formally.

    "Since 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 successfully used the Squeeze Theorem. The key is to start with the known bounds of sine or cosine, build your inequality, and then show that the two outer functions approach the same limit.

Worked examples

Let's walk through a couple of problems together so you can see the pattern. The structure is the same every time.

Example 1

Example

Problem: Find the limit lim (x->0) x⁴cos(2/x).

Solution:

  1. 1
    Analyze the function
    First, try direct substitution. We get (0)⁴ * cos(2/0), which involves cos(∞). This is undefined. The function is a product of a term going to zero (x⁴) and a bounded oscillating term (cos(2/x)). This is a perfect candidate for the Squeeze Theorem.
  2. 2
    Establish the initial inequality
    The core of this is the cos(2/x) part. We know that the cosine function, no matter its input, is always bounded between -1 and 1. -1 <= cos(2/x) <= 1
  3. 3
    Build the target function
    Our goal is x⁴cos(2/x). To get from cos(2/x) to our target, we need to multiply by x⁴. We must multiply every part of the inequality. -1 * (x⁴) <= x⁴ * cos(2/x) <= 1 * (x⁴) This simplifies to: -x⁴ <= x⁴cos(2/x) <= x⁴
  4. 4
    Take the limits of the outer functions
    Now, we find the limits of our "sandwich bread" as x approaches 0.
    • Limit of the lower bound: lim (x->0) -x⁴ = -(0)⁴ = 0
    • Limit of the upper bound: lim (x->0) x⁴ = (0)⁴ = 0
  5. 5
    State the conclusion
    Both the lower and upper bounding functions approach the same limit, 0. Therefore, the function squeezed between them must also approach 0. Conclusion: Since lim (x->0) -x⁴ = 0 and lim (x->0) x⁴ = 0, by the Squeeze Theorem, lim (x->0) x⁴cos(2/x) = 0.

Common Mistake Check: A student might see cos(2/x) and just assume the answer is "does not exist." But the x⁴ in front is the crucial piece. It "dampens" the oscillations, forcing the entire function toward zero.

Example 2

Example

Problem: A function f(x) is known to satisfy the inequality 1 + 3x² <= f(x) <= 4 - x² for all x. Find lim (x->1) f(x).

Solution:

  1. 1
    Analyze the problem
    This one is even more direct! They've already given you the "sandwich." You don't have to build it yourself. Your job is just to check if the two pieces of bread meet at the same point.
    • Lower bound: g(x) = 1 + 3x²
    • Upper bound: h(x) = 4 - x²
    • We need to find the limit of f(x) as x approaches 1.
  2. 2
    Take the limits of the outer functions
    We'll evaluate the limits of g(x) and h(x) as x approaches 1.
    • Limit of the lower bound: lim (x->1) (1 + 3x²) = 1 + 3(1)² = 1 + 3 = 4
    • Limit of the upper bound: lim (x->1) (4 - x²) = 4 - (1)² = 4 - 1 = 3
  3. 3
    State the conclusion
    Wait a minute. The limit of the lower bound is 4, but the limit of the upper bound is 3. They are not equal. Conclusion: The conditions for the Squeeze Theorem are not met. The two bounding functions do not approach the same limit as x approaches 1. Therefore, we cannot determine lim (x->1) f(x) using the Squeeze Theorem with the given information.

Why this is important: This shows that the Squeeze Theorem isn't a magic wand. It only works if the two bounding functions converge to the exact same value. Don't just assume they will. Always do the work and check.

Try it yourself

Ready to try on your own? Remember the steps: start with the bound, build the function, check the limits, and conclude.

Problem 1: Find the limit of f(x) = x³cos(1/x²) as x approaches 0.

Hint: What are the absolute minimum and maximum values that cos(anything) can produce? Start there. Your process will look very similar to the x⁴cos(2/x) example.


Problem 2: You are given that a function h(x) is bounded by two other functions, g(x) = 2x - x² and k(x) = √(x² + 4) - 2. What is lim (x->0) h(x)?

Hint: You don't need to know anything about h(x) itself. Just find the limits of g(x) and k(x) as x approaches 0. If they match, you have your answer.