Skip to content

Unit 1: Limits and Continuity

Determining Limits Using the Squeeze Theorem

Find a limit by trapping a function between two simpler ones, check the theorem's conditions, and use the limits of sin(x)/x and (1 - cos x)/x that it proves.

Topic 1.8 · 6 min read

As x→0x \to 0, the factor sin⁡1x\sin\frac{1}{x} swings between −1-1 and 11 infinitely many times and never settles, so it has no limit, and the product law can't handle x2sin⁡1xx^2\sin\frac{1}{x}. But the swinging factor can never make the product bigger than x2x^2 or smaller than −x2-x^2, and both of those go to 0. A function pinned between two others that meet at the same height has nowhere else to go. That is the squeeze theorem, and it also proves the two trig limits behind every derivative of sine and cosine.

The squeeze theorem

The graph of y equals x squared times sine of 1 over x near x = 0, oscillating faster and faster as x approaches 0. It stays between the dashed parabolas y = x squared above and y = negative x squared below, touching each of them repeatedly, and all three curves pass through the origin.

The graph shows the idea. The solid curve wiggles without end near 0, but it lives in the narrowing gap between the dashed parabolas, and that gap closes to the single point (0,0)(0, 0).

Why it's true: pick any distance, however small. Close enough to cc, both g(x)g(x) and h(x)h(x) are within that distance of LL. Since f(x)f(x) sits between them, it is too. That is exactly what lim⁡x→cf(x)=L\lim\limits_{x \to c} f(x) = L means.

Each condition earns its place. The bounds must squeeze toward the same number: if 1≤f(x)≤31 \le f(x) \le 3 near cc, you only learn that a limit, if one exists, lies between 1 and 3. For a two-sided limit, the inequality must hold close to cc on both sides; what happens far from cc, or at cc itself, doesn't matter.

Building the bounds

The bounds usually come from the fact that sine and cosine never leave [−1,1][-1, 1], whatever their input:

−1≤sin⁡(anything)≤1,−1≤cos⁡(anything)≤1.-1 \le \sin(\text{anything}) \le 1, \qquad -1 \le \cos(\text{anything}) \le 1.

Multiply through by a factor that is never negative, and the inequality survives. For x≠0x \neq 0, x2>0x^2 > 0, so

−x2≤x2sin⁡1x≤x2.-x^2 \le x^2\sin\frac{1}{x} \le x^2.

Both bounds approach 0 as x→0x \to 0, so lim⁡x→0x2sin⁡1x=0\lim\limits_{x \to 0} x^2\sin\frac{1}{x} = 0.

If the factor can be negative, multiplying flips the inequality wherever it is negative. The clean fix is to bound the absolute value: if ∣f(x)∣≤B(x)|f(x)| \le B(x) near cc and B(x)→0B(x) \to 0, then −B(x)≤f(x)≤B(x)-B(x) \le f(x) \le B(x), and the squeeze theorem gives f(x)→0f(x) \to 0. Example 1 uses this.

Why sin⁡xx\frac{\sin x}{x} approaches 1

Substituting x=0x = 0 into sin⁡xx\frac{\sin x}{x} gives 00\frac{0}{0}, and no identity removes a common factor. The squeeze theorem settles it, using a picture of the unit circle.

A quarter of the unit circle with center O. A ray from O at angle theta above the positive x-axis meets the circle at P and continues to the point T on the vertical line x = 1. Q is the point (1, 0). The shaded sector OPQ lies between the triangle OPQ, whose height is sine theta, and the larger triangle OQT, whose height QT is tangent theta.

Take 0<θ<π20 < \theta < \frac{\pi}{2}, measured in radians. In the figure, three regions are nested: triangle OPQOPQ fits inside the sector OPQOPQ, which fits inside triangle OQTOQT. Their areas are:

  • triangle OPQOPQ: base OQ=1OQ = 1, height sin⁡θ\sin\theta, area 12sin⁡θ\frac{1}{2}\sin\theta;
  • sector OPQOPQ: a fraction θ2π\frac{\theta}{2\pi} of a circle of area π\pi, so area θ2\frac{\theta}{2};
  • triangle OQTOQT: base 11, height QT=tan⁡θQT = \tan\theta, area 12tan⁡θ\frac{1}{2}\tan\theta.

Nested regions have increasing areas, so 12sin⁡θ<12θ<12tan⁡θ\frac{1}{2}\sin\theta < \frac{1}{2}\theta < \frac{1}{2}\tan\theta, which gives

sin⁡θ<θ<sin⁡θcos⁡θ.\sin\theta < \theta < \frac{\sin\theta}{\cos\theta}.

Divide through by sin⁡θ\sin\theta, which is positive here: 1<θsin⁡θ<1cos⁡θ1 < \frac{\theta}{\sin\theta} < \frac{1}{\cos\theta}. Taking reciprocals of positive numbers reverses both inequalities:

cos⁡θ<sin⁡θθ<1.\cos\theta < \frac{\sin\theta}{\theta} < 1.

As θ→0+\theta \to 0^+, cos⁡θ→1\cos\theta \to 1 and the constant 1 stays 1, so the squeeze theorem gives lim⁡θ→0+sin⁡θθ=1\lim\limits_{\theta \to 0^+}\frac{\sin\theta}{\theta} = 1. For negative θ\theta, sin⁡(−θ)−θ=−sin⁡θ−θ=sin⁡θθ\frac{\sin(-\theta)}{-\theta} = \frac{-\sin\theta}{-\theta} = \frac{\sin\theta}{\theta}, so the expression takes the same values on both sides of 0, and the left-hand limit is also 1.

The sector area θ2\frac{\theta}{2} is where radians matter. In degrees the sector's area is πθ360\frac{\pi\theta}{360}, and the same argument gives sin⁡x∘x→π180\frac{\sin x^\circ}{x} \to \frac{\pi}{180} instead of 1. Calculus uses radians so that this limit is 1.

Why 1−cos⁡xx\frac{1 - \cos x}{x} approaches 0

This one also starts as 00\frac{0}{0}. For 0<x<π20 < x < \frac{\pi}{2}, use 1−cos⁡2x=sin⁡2x1 - \cos^2 x = \sin^2 x:

1−cos⁡x=(1−cos⁡x)(1+cos⁡x)1+cos⁡x=sin⁡2x1+cos⁡x.1 - \cos x = \frac{(1 - \cos x)(1 + \cos x)}{1 + \cos x} = \frac{\sin^2 x}{1 + \cos x}.

Since 1+cos⁡x>11 + \cos x > 1 here, 0<1−cos⁡x<sin⁡2x0 < 1 - \cos x < \sin^2 x. Divide by x>0x > 0 and use sin⁡xx<1\frac{\sin x}{x} < 1 from the previous section:

0<1−cos⁡xx<sin⁡x⋅sin⁡xx<sin⁡x.0 < \frac{1 - \cos x}{x} < \sin x\cdot\frac{\sin x}{x} < \sin x.

Both 0 and sin⁡x\sin x approach 0, so lim⁡x→0+1−cos⁡xx=0\lim\limits_{x \to 0^+}\frac{1 - \cos x}{x} = 0. For negative xx, replacing xx by −x-x changes only the sign of the denominator, so the values on the left are the negatives of those on the right, and they approach −0=0-0 = 0 as well.

So arrange the expression to match before using either one. For example, sin⁡5x2x=52⋅sin⁡5x5x→52\frac{\sin 5x}{2x} = \frac{5}{2}\cdot\frac{\sin 5x}{5x} \to \frac{5}{2}, and tan⁡xx=sin⁡xx⋅1cos⁡x→1⋅1=1\frac{\tan x}{x} = \frac{\sin x}{x}\cdot\frac{1}{\cos x} \to 1 \cdot 1 = 1.

Worked examples

Worked exampleExample 1: a bound with an odd power

Find lim⁡x→0x3cos⁡5x\lim\limits_{x \to 0} x^3\cos\dfrac{5}{x}.

Show solution

The factor cos⁡5x\cos\frac{5}{x} has no limit at 0, so the product law can't be used. Bound it instead: ∣cos⁡5x∣≤1\left|\cos\frac{5}{x}\right| \le 1 for every x≠0x \neq 0, so

∣x3cos⁡5x∣=∣x∣3∣cos⁡5x∣≤∣x∣3,that is,−∣x∣3≤x3cos⁡5x≤∣x∣3.\left|x^3\cos\frac{5}{x}\right| = |x|^3\left|\cos\frac{5}{x}\right| \le |x|^3, \quad\text{that is,}\quad -|x|^3 \le x^3\cos\frac{5}{x} \le |x|^3.

The absolute values matter: for negative xx, x3x^3 is negative, and multiplying −1≤cos⁡5x≤1-1 \le \cos\frac{5}{x} \le 1 by it would flip the inequality. Since lim⁡x→0(−∣x∣3)=lim⁡x→0∣x∣3=0\lim\limits_{x \to 0}\left(-|x|^3\right) = \lim\limits_{x \to 0}|x|^3 = 0, the squeeze theorem gives lim⁡x→0x3cos⁡5x=0\lim\limits_{x \to 0} x^3\cos\frac{5}{x} = 0.

Worked exampleExample 2: bounds given as an inequality

The function ff satisfies 4x−9≤f(x)≤x2−2x4x - 9 \le f(x) \le x^2 - 2x for all real xx. Find lim⁡x→3f(x)\lim\limits_{x \to 3} f(x). What does the inequality tell you about lim⁡x→0f(x)\lim\limits_{x \to 0} f(x)?

Show solution

Both bounds are polynomials, so their limits come from substitution: lim⁡x→3(4x−9)=3\lim\limits_{x \to 3}(4x - 9) = 3 and lim⁡x→3(x2−2x)=9−6=3\lim\limits_{x \to 3}(x^2 - 2x) = 9 - 6 = 3. The bounds hold for all xx and approach the same value, so by the squeeze theorem lim⁡x→3f(x)=3\lim\limits_{x \to 3} f(x) = 3.

The lower bound never exceeds the upper one, because their difference is (x2−2x)−(4x−9)=x2−6x+9=(x−3)2≥0(x^2 - 2x) - (4x - 9) = x^2 - 6x + 9 = (x - 3)^2 \ge 0, so the two bounds touch only at x=3x = 3. That is why x=3x = 3 is the one place they squeeze. At x=0x = 0 the bounds approach −9-9 and 00, which are different, so the inequality says only that f(x)f(x) stays between them near 0. It doesn't determine lim⁡x→0f(x)\lim\limits_{x \to 0} f(x), or even guarantee it exists.

Worked exampleExample 3: using the trig limits

Find (a) lim⁡x→0sin⁡3xtan⁡5x\lim\limits_{x \to 0}\dfrac{\sin 3x}{\tan 5x} and (b) lim⁡x→01−cos⁡2xx2\lim\limits_{x \to 0}\dfrac{1 - \cos 2x}{x^2}.

Show solution

(a) Write tan⁡5x=sin⁡5xcos⁡5x\tan 5x = \frac{\sin 5x}{\cos 5x}, then give each sine the denominator it needs:

sin⁡3xtan⁡5x=sin⁡3x cos⁡5xsin⁡5x=35⋅sin⁡3x3x⋅5xsin⁡5x⋅cos⁡5x.\frac{\sin 3x}{\tan 5x} = \frac{\sin 3x\,\cos 5x}{\sin 5x} = \frac{3}{5}\cdot\frac{\sin 3x}{3x}\cdot\frac{5x}{\sin 5x}\cdot\cos 5x.

The middle two factors each approach 1 and cos⁡5x→1\cos 5x \to 1, so the limit is 35\frac{3}{5}.

(b) The double-angle identity cos⁡2x=1−2sin⁡2x\cos 2x = 1 - 2\sin^2 x turns the numerator into 2sin⁡2x2\sin^2 x:

1−cos⁡2xx2=2sin⁡2xx2=2(sin⁡xx)2→2(1)2=2.\frac{1 - \cos 2x}{x^2} = \frac{2\sin^2 x}{x^2} = 2\left(\frac{\sin x}{x}\right)^2 \to 2(1)^2 = 2.
Worked exampleExample 4: an exam-style squeeze (no calculator)

The function ff satisfies cos⁡x≤f(x)≤1+x2\cos x \le f(x) \le 1 + x^2 for all xx in the interval −1<x<1-1 < x < 1.

(a) Find lim⁡x→0f(x)\lim\limits_{x \to 0} f(x). Justify your answer.

(b) Find f(0)f(0).

(c) Find lim⁡x→0f(x)−1x\lim\limits_{x \to 0}\dfrac{f(x) - 1}{x}. Justify your answer.

Show solution

(a) Both bounds are continuous at 0: lim⁡x→0cos⁡x=1\lim\limits_{x \to 0}\cos x = 1 and lim⁡x→0(1+x2)=1\lim\limits_{x \to 0}(1 + x^2) = 1. Since cos⁡x≤f(x)≤1+x2\cos x \le f(x) \le 1 + x^2 on an open interval containing 0 and both bounds have limit 1, the squeeze theorem gives lim⁡x→0f(x)=1\lim\limits_{x \to 0} f(x) = 1.

(b) The inequality holds at x=0x = 0 too: cos⁡0≤f(0)≤1+0\cos 0 \le f(0) \le 1 + 0, so 1≤f(0)≤11 \le f(0) \le 1 and f(0)=1f(0) = 1.

(c) Subtract 1 throughout: cos⁡x−1≤f(x)−1≤x2\cos x - 1 \le f(x) - 1 \le x^2. Now divide by xx, one side at a time, because dividing by a negative number reverses inequalities.

For 0<x<10 < x < 1:

cos⁡x−1x≤f(x)−1x≤x.\frac{\cos x - 1}{x} \le \frac{f(x) - 1}{x} \le x.

As x→0+x \to 0^+, the left bound is −1−cos⁡xx→0-\frac{1 - \cos x}{x} \to 0 and the right bound x→0x \to 0, so the right-hand limit is 0.

For −1<x<0-1 < x < 0, the inequalities reverse:

x≤f(x)−1x≤cos⁡x−1x.x \le \frac{f(x) - 1}{x} \le \frac{\cos x - 1}{x}.

As x→0−x \to 0^-, both bounds again approach 0, so the left-hand limit is 0. Both one-sided limits are 0, so lim⁡x→0f(x)−1x=0\lim\limits_{x \to 0}\frac{f(x) - 1}{x} = 0.

Where students lose points

On the exam

The two trig limits come inside quotients that you rearrange first, as in Example 3. The squeeze theorem itself is a justification: when a question gives you an inequality like the one in Example 4, a complete answer states the inequality, shows that both bounds have the same limit, and names the squeeze theorem. Topic 2.7 uses both trig limits to find the derivatives of sin⁡x\sin x and cos⁡x\cos x.

Check yourself

  1. Question 1

    What is lim⁡x→0sin⁡7xsin⁡2x\lim\limits_{x \to 0}\dfrac{\sin 7x}{\sin 2x}?

    1. A

      72\dfrac{7}{2}

    2. B

      11

    3. C

      27\dfrac{2}{7}

    4. D

      The limit does not exist.

    Show answer

    A

    Rewrite as 72⋅sin⁡7x7x⋅2xsin⁡2x\dfrac{7}{2}\cdot\dfrac{\sin 7x}{7x}\cdot\dfrac{2x}{\sin 2x}. Both fractions approach 1, leaving 72\frac{7}{2}. Choice B applies the known limit without matching each sine's angle to its own denominator.

  2. Question 2

    The function gg satisfies 2−x2≤g(x)≤2cos⁡x2 - x^2 \le g(x) \le 2\cos x for all xx near 0. Find lim⁡x→0g(x)\lim\limits_{x \to 0} g(x).

    Show answer

    lim⁡x→0g(x)=2\lim\limits_{x \to 0} g(x) = 2

    Both bounds are continuous at 0, and 2−0=22 - 0 = 2 and 2cos⁡0=22\cos 0 = 2. The bounds hold near 0 and approach the same value, so by the squeeze theorem g(x)→2g(x) \to 2.

  3. Question 3

    The function hh satisfies 1≤h(x)≤31 \le h(x) \le 3 for all xx. What can you conclude about lim⁡x→0h(x)\lim\limits_{x \to 0} h(x)?

    1. A

      It exists and is between 1 and 3.

    2. B

      It equals 2.

    3. C

      It might not exist.

    4. D

      It equals 1.

    Show answer

    C

    The bounds approach different values (1 and 3), so the squeeze theorem doesn't apply. A function like 2+sin⁡1x2 + \sin\frac{1}{x} stays between 1 and 3 and has no limit at 0. Choice A assumes the limit exists, which is the one thing the theorem would have had to prove.

  4. Question 4

    Find lim⁡x→0x21−cos⁡x\lim\limits_{x \to 0}\dfrac{x^2}{1 - \cos x}.

    Show answer

    22

    Multiply top and bottom by 1+cos⁡x1 + \cos x: the expression becomes x2(1+cos⁡x)sin⁡2x=(xsin⁡x)2(1+cos⁡x)\dfrac{x^2(1 + \cos x)}{\sin^2 x} = \left(\dfrac{x}{\sin x}\right)^2(1 + \cos x), which approaches 12⋅2=21^2 \cdot 2 = 2.

Go deeper