Trap a function between bounds
The limit laws of topic 1.5 find the limit of a product from the limits of its factors, so each factor needs a limit. As \(x\) approaches 0, \(\sin\frac1x\) has no limit, because it swings between \(-1\) and 1 at inputs as close to 0 as you like (topic 1.2). The laws therefore say nothing about \(x\sin\frac1x\).
This topic finds such limits by trapping the function between two simpler functions. Functions \(\cq{g}\) and \(\cq{h}\) are a lower bound and an upper bound for \(f\) near \(c\) if
for every \(x\neq c\) in an open interval around \(c\).
Bounds that meet trap the limit
A curve f with no numbers on the axes, between a faint dashed lower bound g and a faint dashed upper bound h. The bounds rise from left to right and meet at the height L above the input c, and the curve swings between them faster and faster toward c, with swings that shrink. An orange band surrounds the height L, and a faint vertical strip surrounds c. The curve is red where it lies inside the strip but outside the band. A button raises the upper bound near c, so that it approaches a greater height than the lower bound, and the curve then swings up and down in the gap between them.
In Figure 1, the curve is the graph of \(f\), and the faint dashed curves are its bounds, \(g\) below and \(h\) above. The graph of \(f\) swings between them faster and faster near \(c\), and both bounds approach the height \(\cy{L}\).
The orange band holds the heights within a chosen distance of \(L\), and the faint strip holds the inputs within a chosen distance of \(c\). The curve is red where an input inside the strip, other than \(c\), gives an output outside the band. By topic 1.2, \(f(x)\) approaches \(L\) when every band around \(L\), however narrow, has a strip that leaves no red.
Narrow the strip with the second slider until no red is left. Then narrow the band with the first slider. If red appears, a narrower strip removes it again. Because \(g\) approaches \(L\), some strip keeps the graph of \(g\) inside the band. Because \(h\) approaches \(L\), some strip also keeps the graph of \(h\) inside the band. Take a strip narrower than both, inside the interval where the inequalities hold. In it, both bounds lie inside the band, and \(f\) lies between them, so \(f\) lies inside the band too.
This works for every band, so \(f(x)\) approaches \(L\). The result is the Squeeze Theorem, which some books call the Sandwich Theorem or the Pinching Theorem.
The argument uses the inequalities only inside the strip, so it needs them on both sides of \(c\), but only near \(c\). For a limit from one side, the strip lies on that side only, so the inequalities need to hold only there. They may also be strict, because \(g(x)<f(x)\) implies \(g(x)\le f(x)\).
Each bound needs a limit of its own, which you find with the methods of topics 1.5 to 1.7. One bound alone traps nothing, and the two limits must be equal. Use the button under Figure 1 to separate the bounds. The upper bound now approaches a greater height than the lower bound, which leaves a gap at \(c\). The graph of \(f\) swings up and down inside the gap at inputs as close to \(c\) as you like. No band narrower than these swings can hold them, so red stays near \(c\) in every strip, and this \(f\) has no limit. Another function between the same bounds could approach any height in the gap, so bounds that do not meet decide nothing.
Finding bounds
The curve x times sine of 1 over x for x from −0.6 to 0.6, with the inputs and heights −0.5 and 0.5 numbered. It swings up and down faster and faster toward 0, with swings that shrink, between two faint dashed lines, y = x and y = −x, which cross at the origin. On each side of 0, the upper line is labeled |x| and the lower line −|x|. A button relabels the lines x and −x, so that on the left of 0 the upper line is −x and the lower line is x, and the whole left half of the curve turns red.
Bounds usually come from a factor whose values stay between two numbers. The sine and the cosine of every angle lie between \(-1\) and 1, so for every \(x\neq0\)
The absolute value, or size, of a product is the product of the sizes of its factors. The size of \(\sin\frac1x\) is at most 1, so
A size of at most \(|x|\) means a value between \(-|x|\) and \(|x|\), so these are bounds for \(x\sin\frac1x\) on both sides of 0. In Figure 2, they are the faint dashed lines: on each side of 0, the upper line is \(|x|\) and the lower line is \(-|x|\). Both bounds approach 0, so by the Squeeze Theorem, \(\lim_{x\to 0}x\sin\frac1x=0\), although \(\sin\frac1x\) has no limit.
The absolute values are needed because multiplying an inequality by a negative number reverses its order. Multiplying \(-1\le\sin\frac1x\le1\) by \(x\) gives \(-x\le x\sin\frac1x\le x\) only for \(x>0\). Use the button under Figure 2 to try \(-x\) and \(x\) as the bounds on both sides. On the left of 0, the line \(y=-x\) lies above the line \(y=x\), so no value is at least \(-x\) and at most \(x\). The whole left half of the curve turns red, because these bounds do not hold there. For \(x<0\), the bounds are \(x\) below and \(-x\) above, which are \(-|x|\) and \(|x|\) again.
The same steps work for any product \(s(x)\,w(x)\) in which the size of \(w(x)\) is at most 1. The product then has size at most \(|s(x)|\), so it lies between \(-|s(x)|\) and \(|s(x)|\). In general, suppose that the distance \(|f(x)-L|\) is at most \(|s(x)|\) near \(c\), and that \(s(x)\) approaches 0. Then \(f(x)\) lies between \(L-|s(x)|\) and \(L+|s(x)|\). Both approach \(L\), because \(|s(x)|\) is as close to 0 as \(s(x)\) is, so by the Squeeze Theorem, \(f(x)\) approaches \(L\).
If \(f(x)=L+s(x)\,w(x)\), where \(w\) oscillates between \(-1\) and 1, the size \(|s(x)|\) of the swings of \(f\) about \(L\) is the amplitude of the oscillation. The function approaches \(L\) when its amplitude shrinks to 0, whether or not \(w\) has a limit.
Example 1
Choose valid upper and lower bounds
Let \(f(x)=\dfrac{x-2}{4+\cos\frac{1}{x-2}}\) for \(x\neq 2\). Find functions \(g\) and \(h\) such that \(g(x)\le f(x)\le h(x)\) for every \(x\neq 2\) and \(\displaystyle\lim_{x\to 2}g(x)=\lim_{x\to 2}h(x)\). Then find \(\displaystyle\lim_{x\to 2}f(x)\).
Solution
The bounds come from the denominator. The cosine of every angle lies between \(-1\) and 1, so the denominator lies between 3 and 5 for every \(x\neq 2\). Its values are positive, and taking the reciprocals of positive numbers reverses their order:
Multiplying by \(x-2\) keeps this order only for \(x>2\), because \(x-2\) is negative on the left of 2. Absolute values give bounds for both sides. The size of \(f(x)\) is \(|x-2|\) times a number between \(\frac15\) and \(\frac13\), so
for every \(x\neq 2\). Take \(g(x)=-\frac{|x-2|}{3}\) and \(h(x)=\frac{|x-2|}{3}\). Both approach 0 as \(x\) approaches 2, so by the Squeeze Theorem, \(\lim_{x\to 2}f(x)=0\).
Example 2
Check that the bounds meet
For every \(x\neq 3\), \(g(x)\le f(x)\le h(x)\), where \(g(x)=\dfrac{x^2+4x-21}{x-3}\) and \(h(x)=x^2-5x+16\). Find \(\displaystyle\lim_{x\to 3}f(x)\).
Solution
The Squeeze Theorem needs the limits of the bounds \(g\) and \(h\) at 3. The lower bound \(g\) has no value at 3, but its limit uses only the inputs near 3, other than 3. The numerator factors as \((x-3)(x+7)\), and for \(x\neq 3\) the factor \(x-3\) cancels (topic 1.6):
The upper bound \(h\) is a polynomial, so its limit is its value at 3:
Both limits are 10, so the bounds meet, and the Squeeze Theorem gives \(\lim_{x\to 3}f(x)=10\).
Example 3
Use the bounds to find the limit
Find \(\displaystyle\lim_{x\to 0}\left(\sqrt{x+9}+x^2\cos\frac{1}{x}\right)\).
Solution
The factor \(\cos\frac1x\) has no limit at 0, because it swings between \(-1\) and 1 at inputs as close to 0 as you like. The product law therefore does not apply to \(x^2\cos\frac1x\), so bound this term instead.
The cosine lies between \(-1\) and 1, and \(x^2\) is positive for \(x\neq 0\), so \(-x^2\le x^2\cos\frac1x\le x^2\) on both sides of 0. Adding \(\sqrt{x+9}\) to all three parts keeps their order:
As \(x\) approaches 0, \(x+9\) approaches 9, which is positive, so \(\sqrt{x+9}\) approaches \(\sqrt9\) (topic 1.5). The term \(x^2\) approaches 0, so the bounds approach \(\sqrt9-0=3\) and \(\sqrt9+0=3\). Because they meet, the Squeeze Theorem gives the limit 3.
Example 4
Recognize when the squeeze argument fails
Can the Squeeze Theorem find \(\displaystyle\lim_{x\to 0}\left(3+\cos\frac{\pi}{x}\right)\)? Decide whether the limit exists.
Solution
The cosine of every angle lies between \(-1\) and 1, so for every \(x\neq 0\)
These bounds are valid on both sides of 0, but they are the constants 2 and 4, whose limits differ. The bounds do not meet, so the Squeeze Theorem gives no conclusion, and another argument must decide.
Test the inputs \(x=\frac1n\) for whole numbers \(n\ge 1\), which approach 0 as \(n\) grows. There \(\frac{\pi}{x}=n\pi\), and \(\cos n\pi\) is 1 when \(n\) is even and \(-1\) when \(n\) is odd:
The function equals 4 and 2 at inputs as close to 0 as you like, so it approaches no single number. The limit does not exist (topic 1.2). No other bounds can meet either, because bounds that meet would give the function a limit.
Each example is one of the four skills of topic 1.8 in Which & Why: AP Calculus.