← Back to Home

Squeeze Theorem and One-Sided Limits

This theorem is good when you have some weird trigonometric functions (you can use it in other types too, but I think this is the most common) such as $\lim_{x \to 0} xsin(\frac{1}{x})$. Here you can't just plug in $0$ because you would be dividing by $0$. To use the squeeze theorem:

  1. Check your original function and look for the part that you can easily figure out the maximum and minimum values of. In other words, look for the function that is stuck between 2 bounds.

    In $xsin(\frac{1}{x})$, $x$ can take on any value you decide to give it, so it's not really stuck. $sin(\frac{1}{x})$ is a trigonometric function that is stuck between $-1$ and $1$ (this is based on your knowledge regarding trigonometry. If you feel unprepared in trigonometry, don't worry. You can learn as you go.)
  2. Write the stuck equation between its maximum and minimum values.

    In our case, you have to write: $-1 \le sin(\frac{1}{x}) \le 1$.
  3. Your goal is to make the middle part of the inequality the same as your original function.

    In our case, $sin(\frac{1}{x})$ is simply missing an $x$. So let us multiply everything by an $x$ (technically, the absolute value of $x$). Here is what we get: $$-1x \le xsin(\frac{1}{x}) \le 1x.$$
  4. Take the limit of the left, middle, and right inequalities as $x$ approaches the value in your original limit.

    So in our case, $x$ was approaching $0$. So, our inequalities become:
    $$\lim_{x \to 0} -1x \le \lim_{x \to 0} xsin(\frac{1}{x}) \le \lim_{x \to 0} 1x $$
    we can easily evaluate $\lim_{x \to 0} -1x$ and $\lim_{x \to 0} 1x$. We can just input $x=0$ in each, giving us $0$ as the answer for both.

    So our inequalities become:
    $$0 \le \lim_{x \to 0} xsin(\frac{1}{x}) \le 0$$
  5. If the left and right inequalities are the same, then congrats you did it. You can now say: $\lim_{x \to 0} xsin(\frac{1}{x})=0$

I hope that you can now see that it's called the squeeze theorem because you squeezed your limit between 2 easier limits to get the answer.

2.7 Left and right handed limits

$\lim_{x^+ \to a} f(x)$ is the right handed limit because of the plus sign on the $x$ and $\lim_{x^- \to a} f(x)$ is the left handed limit because of the minus sign on the $x$.

Consider this limit $\lim_{x \to 0} \frac{1}{x}$. If we just input $x=0$, we will be dividing by $0$, which isn't allowed. What else do we know? Let's look at the graph of $\frac{1}{x}$, which I showed you on the Graphs and functions page.

Graph by desmos of y=1/x with blue arrows: as x gets closer to 0 from the right, the graph goes up to positive infinity, and from the left it goes down to negative infinity.

As we get closer to $0$ from the right side, we approach positive infinity. We can represent this using the limit $\lim_{x^+ \to 0} \frac{1}{x}=\infty$.

However, as we get closer from the left side, we approach negative infinity. We can represent this using the limit $\lim_{x^- \to 0} \frac{1}{x}=-\infty$.

When your left handed limit doesn't equal the right handed limit (in our case, positive infinity $\ne$ negative infinity), we say that limit does not exist (DNE). In our case, we represent this by $\lim_{x \to 0} \frac{1}{x}=DNE$.

Solving left and right handed limit uses the same laws as the usual limits.