Using the Squeeze Theorem to Show
limx0sin(x)x=0\begin{aligned}\lim_{x\to 0}\frac{\sin(x)}{x} = 0\end{aligned}

This was written for my Fall 2023 calculus students in M408C, "Differential and Integral Calculus".

  1. The squeeze theorem
    1. Feeling the truth in your gut
    2. Feeling the truth in your gut with a picture
    3. A careful calculation
  2. A solution to the problem
    1. Step 1: Convince ourselves the limit exists and is 1.
    2. Step 2: Try the first bounds you can think of
    3. Step 3: Get clever.
      1. Area of the small triangle
    4. Area of the wedge
    5. Area of the large triangle
    6. Comparing the areas
    7. Doing some algebra
    8. Appling the squeeze theorem

In one of the recitation classes a while back we needed to either use the following fact:

limx0sin(x)x=1.\begin{aligned} \lim_{x\to 0}\frac{\sin(x)}{x} = 1. \end{aligned}

At the time, I forgot how to calculate this limit without using l'Hopital's rule, Taylor Series or the "Small Angle Approximation". This is a problem, because:

The correct way to calculate this limit, or at least, a correct way to calculate it, is by using the Squeeze Theorem. It's a wonderful computation tool. It's doubly embarrassing that I forgot it that day, especially because we used it that same worksheet to find a very similar limit: limx0xsin(1/x)\lim_{x\to 0} x\sin(1/x)! I wrote this post explaining the solution to this problem and delving into a lot of detail about the squeeze theorem, lest you forget it like I did.

Thanks to Catherine Chi for reminding me of this solution and for suggesting we use the areas of triangles to come up with good bounds for the function sin(x)/x\sin(x)/x.

The squeeze theorem

Theorem: (The Squeeze Theorem)     Let ff, gg and hh be real valued functions on some interval containing the real number aa. Suppose there exists some ϵ>0\epsilon > 0 such that for all ax(aϵ,a+ϵ)a\neq x \in (a - \epsilon, a + \epsilon) we have g(x)f(x)h(x).\begin{aligned} g(x) \leq f(x) \leq h(x). \end{aligned} If limxag(x)=limxah(x)=L\lim_{x\to a} g(x) = \lim_{x\to a} h(x) = L, then limxaf(x)=L\lim_{x\to a} f(x) = L as well.

This may be hard to parse, so let's go over the statement of this theorem in more detail.

That's still a big wall of text, and while it's convincing, perhaps you still don't feel the truth of the squeeze theorem. Here are two final things that hopefully help you feel it's truth.

Feeling the truth in your gut

Here's a slogan for you:

Slogan:    Limits preserve non-strict inequalities.

This means that if g(x)f(x)h(x)g(x) \leq f(x) \leq h(x) as above, then limxag(x)limxaf(x)limxah(x)\lim_{x\to a} g(x)\leq \lim_{x\to a} f(x) \leq \lim_{x\to a} h(x). You have to be careful: if we have strict inequalities g(x)<f(x)<h(x)g(x) < f(x) < h(x), then we can only say that limxag(x)limxaf(x)limxah(x)\lim_{x\to a} g(x)\leq \lim_{x\to a} f(x) \leq \lim_{x\to a} h(x); limits turn strict inequalities into non-strict inequalities. If this fact is giving you pause, draw some pictures (perhaps some example graphs of gg, ff and hh) and try to convince yourself that it is true!

If we accept this fact, then in the scenario that limxag(x)=limxah(x)=L\lim_{x\to a} g(x) = \lim_{x\to a} h(x) = L we simply get that

g(x)f(x)h(x)    Llimxaf(x)L.\begin{aligned} g(x) \leq f(x) \leq h(x) \implies L \leq \lim_{x\to a} f(x) \leq L. \end{aligned}

The only way something can be simultaneously smaller and bigger than something else is if they're equal! This is one of Terry Tao's problem solving strategies: break up equalities into inequalities).

Feeling the truth in your gut with a picture

Remember this weird function?

 squeeze1.png
The graph of y=xsin(1/x)y = x\sin(1/x) in red, y=xy = |x| in blue and y=xy = -|x| in green.

While f(x)=xsin(1/x)f(x) = x\sin(1/x) looks bizarre, it's bounded above by x|x| and below by x-|x|, as you can see from the graph. At x=0x = 0, we get x=x=0|x| = -|x| = 0, and so visually, it looks like f(x)f(x) is being squeezed into 00. Nonetheless, let's carefully write down a calculation of the limit as x0x\to 0 using the squeeze theorem.

A careful calculation

Proof: Remember that 1sin(x)1-1 \leq \sin(x) \leq 1 for all possible values of xx. This means the inequality still holds if we replace xx with 1/x1/x: 1sin(1/x)1-1 \leq \sin(1/x) \leq 1. We now want to multiply xx into these inequalities, but if xx is negative then all the inequalities will flip. Therefore, we break this into cases.

Case 1: (x0x \geq 0)     As long as x>0x > 0, then we're free to multiply it into the inequality without changing anything: 1sin(x)1    xxsin(x)x.\begin{aligned} -1 \leq \sin(x) \leq 1 \implies -x \leq x\sin(x) \leq x. \end{aligned}

Since xx is positive in this case, we can replace it with x|x| wherever we want. Doing that gives us xxsin(x)x.\begin{aligned} -|x| \leq x\sin(x) \leq |x|. \end{aligned} If that last step confused you, try to explain it to yourself: why does xxsin(x)x-x \leq x\sin(x) \leq x imply that xxsin(x)x-|x| x\leq \sin(x) \leq |x| when x0x \geq 0? If you're wondering why we use x|x| at all, read through the next case.

Case 2: (x<0x < 0)    If x<0x < 0, then we need to flip the inequalities: 1sin(x)1    xxsin(x)x.\begin{aligned} -1 \leq \sin(x) \leq 1 \implies -x \geq x\sin(x) \geq x. \end{aligned} Since xx is negative, we have that x=x-|x| = x, hence (x)xsin(x)x.\begin{aligned} -(-|x|) \geq x\sin(x) \geq -|x|. \end{aligned} or, after rearranging, xxsin(x)x.\begin{aligned} -|x| \leq x\sin(x) \leq |x|. \end{aligned}

Now you see why we used the absolute value signs: it's a clever way to get upper and lower bounds on xsin(x)x\sin(x) that work when x0x\geq 0 and when x<0x < 0. Now, if we set

g(x)=xandh(x)=x,\begin{aligned} g(x) = -|x| \hspace{1em}\text{and}\hspace{1em} h(x) = |x|, \end{aligned}
then clearly limxag(x)=limxah(x)=0\lim_{x\to a}g(x) = \lim_{x\to a}h(x) = 0. By what we just shown,
g(x)xsin(1/x)h(x)\begin{aligned} g(x) \leq x\sin(1/x) \leq h(x) \end{aligned}
for all xx (no need to look at a small neighborhood, these are global bounds). By the squeeze theorem, we immediately get limxaxsin(x)=0\lim_{x\to a}x\sin(x) = 0. Done!

Notice what happened here: we spent all our work finding upper and lower bounds. Once we had them, the calculation of the limit was immediate.

Takeaway: The squeeze theorem lets you replace the problem of calculating a difficult limit with the problem of finding nice upper and lower bounds.

A solution to the problem

Let's turn to the problem at hand.

Show the following is true:

limx0sin(x)x=1.\begin{aligned} \lim_{x\to 0} \frac{\sin(x)}{x} = 1. \end{aligned}

Our strategy is to find functions gg and hh which bound sin(x)/x\sin(x)/x near 00 and which have the same limit at 00. Finding functions which bound sin(x)/x\sin(x)/x is easy; the tricky part is ensuring they have the same limit.

Step 1: Convince ourselves the limit exists and is 1.

 thefunction.png
Graph of the function f(x)=sin(x)/xf(x) = \sin(x)/x.

I'm convinced.

Step 2: Try the first bounds you can think of

We know that 1sin(x)1-1 \leq \sin(x)\leq 1, so maybe we can copy our strategy from the xsin(1/x)x\sin(1/x) example. If we do that, then we get

1xsin(x)x1x.\begin{aligned} -\frac{1}{|x|} \leq \frac{\sin(x)}{x} \leq \frac{1}{|x|}. \end{aligned}

Great! Only trouble is, as x0x\to 0, our lower bound goes to -\infty and our upper bound goes to ,\infty, so we now only know that if the limit exists,

limx0sin(x)x,\begin{aligned} -\infty\leq \lim_{x\to 0}\frac{\sin(x)}{x}\leq \infty, \end{aligned}

which just means that limx0sin(x)x\lim_{x\to 0}\frac{\sin(x)}{x} is "some number". Not exactly helpful.

 dumb_bound.png
Graph of y=sin(x)/xy = \sin(x)/x in red, y=1/xy = 1/|x| in blue and y=1/xy=-1/|x| in green. Not a good helpful bound.

Note: You can use these bounds to prove that limxsin(x)x=limxsin(x)x=0\lim_{x\to -\infty} \frac{\sin(x)}{x} = \lim_{x\to -\infty}\frac{\sin(x)}{x} = 0. You have to modify the squeeze theorem a bit though to make sense of limits at infinity.

Step 3: Get clever.

As suggested by Catherine, we're breaking out some triangles and circles. Consider the normal setup on the unit circle, only this time we're adding a second, bigger triangle (seen in green):

 maincircle.jpg
A triangle with hypotnuse 1, a wedge of the circle and a triangle with adjacent side 1; all with angle θ\theta.

We're going to compare the areas of these three shapes.

 shapes.jpg
Name the orange triangle AA, name the wedge BB and name the green triangle CC.

Area of the small triangle

Using the formula Area of Triangle=12(base)(height)\text{Area of Triangle} = \frac 12 \text{(base)}\cdot \text{(height)}, we get that the area of the small triangle is

Area(A)=12cosθsinθ.\begin{aligned} \operatorname{Area}(A) = \frac12 \cos\theta\sin\theta. \end{aligned}

Area of the wedge

Recall that the fraction of the area taken up by a circle wedge is θ/2π\theta/2\pi:

 wedge.jpg
Finding the area of the wedge

This means that

Area(B)=θ2.\begin{aligned} \operatorname{Area}(B) = \frac{\theta}{2}. \end{aligned}

Area of the large triangle

From the diagram, it's

Area(C)=12tanθ.\begin{aligned} \operatorname{Area}(C) = \frac 12 \cdot \tan\theta. \end{aligned}

Comparing the areas

Based on the construction of these three shapes in the original picture, we see that AA sits inside BB and BB sits inside CC. Thus

Area(A)Area(B)Area(C).\begin{aligned} \operatorname{Area}(A) \leq \operatorname{Area}(B) \leq \operatorname{Area}(C). \end{aligned}
 shapes.jpg
The shapes sit inside each other: ABCA\subseteq B\subseteq C.

Doing some algebra

Substituting the formulas we found in for the areas in inequality (15), we get

12cosθsinθθ212tanθ.\begin{aligned} \frac12 \cos\theta\sin\theta \leq \frac{\theta}{2} \leq \frac12 \tan\theta. \end{aligned}

Multiply by 22 to get

cosθsinθθtanθ=sinθcosθ.\begin{aligned} \cos\theta\sin\theta \leq \theta \leq \tan\theta = \frac{\sin\theta}{\cos\theta}. \end{aligned}

Now we make some restrictions. We're eventually going to be applying the squeeze theorem at θ=0\theta = 0, so we may as well restrict our possible values of θ\theta. Let's say that π/2<θ<π/2-\pi/2 < \theta < \pi/2; if you look at the statement of the squeeze theorem, we have chosen ϵ=π/2\epsilon = \pi/2. Now we're working in the interval (π2,π2)\left(-\frac\pi2, \frac\pi2\right).

Note: We actually already implicitly made this restriction to θ\theta. If θ\theta was any larger, then the triangles wouldn't have angles that sum to π\pi radians.

I'd like to divide by sinθ\sin\theta, but in order to control what happens to the inequalities, I need to break into the cases sinθ>0\sin\theta > 0 and sinθ<0\sin\theta < 0.

Case 1: (θ>0\theta > 0)     This means sinθ>0\sin\theta > 0 as well, so I can divide by it without affecting the inequalities. Dividing everything in equation (17) by θ\theta gives me cosθsinθθtanθ=sinθcosθcosθθsinθ1cosθ.\begin{aligned} \cos\theta\sin\theta \leq \theta \leq \tan\theta = \frac{\sin\theta}{\cos\theta}\hspace{1em}\leadsto\hspace{1em}\cos\theta \leq \frac{\theta}{\sin\theta} \leq \frac{1}{\cos\theta}. \end{aligned} Now I've got θsinθ\frac{\theta}{\sin\theta}, the opposite of what I want. Can I flip everything? Again, I need to verify that the signs behave well. Recall that, when aa and bb have matching signs, we get

a<b    1a>1b\begin{aligned} a < b \iff \frac{1}{a} > \frac{1}{b} \end{aligned}

(play with some positive numbers to convince yourself of this if it's unfamiliar). As long as 0<θ<π/20 < \theta < \pi/2, as we have assumed is the case, then everything in these inequalities is positive. Taking the reciprocal of everything in (18) gives me 1cosθsinθθcosθ,\begin{aligned} \frac{1}{\cos\theta} \geq \frac{\sin\theta}{\theta} \geq \cos\theta, \end{aligned}

and magically, we have arrived at upper and lower bounds for sinθθ\frac{\sin\theta}{\theta} on the interval θ(0,π2)\theta\in \left(0,\frac{\pi}{2}\right)!

Case 2: (θ<0\theta < 0)   If the angle is negative, then the shapes we drew flip down into quadrant 4 of the plane. The formulas we used for area then include a negative side length, so our inequalities in Equation 6 flip! This gives us 12cosθsinθθ212tanθ.\begin{aligned} \frac12 \cos\theta\sin\theta \geq \frac{\theta}{2} \geq \frac12 \tan\theta. \end{aligned} I can repeat the steps from before, except θ<0\theta < 0 implies sinθ<0\sin\theta <0 too, so when I divide by it I must flip all the inequalities again:

cosθθsinθ1cosθ.\begin{aligned} \cos\theta \leq \frac{\theta}{\sin\theta} \leq \frac{1}{\cos\theta}. \end{aligned}

We're in the interval θ(π2,0)\theta\in \left(-\frac{\pi}{2},0\right). Here, cosθ\cos\theta is positive, sinθ\sin\theta is negative and θ\theta is negative. This means sinθ/θ\sin\theta/\theta is positive, all sides of the inequalities in (21) have matching sign. According to the rule from Case 1, I therefore flip the inequalities one more time when I take reciprocals, leaving me with 1cosθsinθθcosθ.\begin{aligned} \frac{1}{\cos\theta} \geq \frac{\sin\theta}{\theta} \geq \cos\theta. \end{aligned} This is the same pair of lower and upper bounds as in the other case.

Appling the squeeze theorem

We're now ready to apply the squeeze theorem. Set g(θ)=cosθg(\theta) = \cos\theta and h(θ)=1cosθh(\theta) = \frac{1}{\cos\theta}. By what we have just shown with a lovely combination of geometry and algebra is that, whenever θ(π2,π2)\theta \in \left(-\frac\pi2,\frac\pi2\right), we have

g(θ)sinθθh(θ).\begin{aligned} g(\theta) \leq \frac{\sin\theta}{\theta}\leq h(\theta). \end{aligned}

Taking limits, we get

limθ0g(θ)=limθ0cosθ=cos(0)=1,\begin{aligned} \lim_{\theta\to 0} g(\theta) = \lim_{\theta\to 0} \cos\theta = \cos(0) = 1, \end{aligned} limθ0h(θ)=limθ01cosθ=1cos(0)=1,\begin{aligned} \lim_{\theta\to 0} h(\theta) = \lim_{\theta\to 0} \frac{1}{\cos\theta} = \frac{1}{\cos(0)} = 1, \end{aligned}

and hence by the squeeze theorem we get

limθ0sinθθ=1.\begin{aligned} \lim_{\theta\to 0}\frac{\sin\theta}{\theta} = 1. \end{aligned}

We're done! Here's a last graph to illustrate that these bounds do indeed work, in case you don't trust the algebra.

 thebounds.png
The graph of y=sinxxy=\frac{\sin x}{x} in red, of y=cosxy=\cos x in blue and y=1cosxy = \frac{1}{\cos x} in green restricted to the domain x(π2,π2)x \in \left(-\frac\pi2, \frac\pi2\right)
 fulldomainbounds.png
Full domain of all functions. Luckily we only care what's happening near x=0x=0
©Isaac Martin. Last modified: January 19, 2024.