Some important limits can be evaluated using the following theorem, which is known as the Sandwich Theorem (as well as the Squeeze Theorem and the Pinching Theorem). It states that if a function f is sandwiched between two functions g and h near a and if g and h approach the same number L, then f must approach L too as .
Quick Reference
| Theorem | Bounding Condition | Result |
|---|---|---|
| Sandwich Theorem | near a with | |
| Zero Bounded Theorem | and near a |
The validity of this theorem is suggested by the following figure.

Suppose that
for all x near a (except possibly at itself). If
then
- The Sandwich Theorem also holds for the one-sided limits; that is, we can replace by or in the above equations, and the theorem will be still valid.
The rigorous proof is as follows.
Proof of the Sandwich Theorem
Suppose is given. We need to show that there exists a such that for all x:
Because and , there exist some and such that for all x:
and
[Note that is equivalent to and if we add to each side it is equivalent to . (See here)]
Now if we choose , then for all x if then
That is, or .
Worked Examples
Show that
where the symbol (also ) denotes the greatest integer (or floor) function.
The greatest integer function or the floor function is defined by . For example, , , . Notice that .
Solution
For every number t, we know . Therefore, for every :
If , we can multiply each side by x and the directions of inequalities are preserved:
Because , by the Sandwich Theorem:
If , we still multiply both sides by x but the directions of inequalities are reversed:
Again because , by the Sandwich Theorem:
Because , we conclude that
The graphs of , , and are depicted in the following figure.

Use the inequalities , , and the Sandwich Theorem to prove:
Then conclude that:
Solution
(a) Since for all values of x, we have and , it follows from the Sandwich Theorem that .
(b) Since , it follows from the Sandwich Theorem that . By the Sum Law, we have . Because , we obtain .
To prove parts (c) and (d), let . In this case, is equivalent to and , .
(c) Using the Addition Formula for Sine, we have . Thus:
Because and are two constants, by the Constant Multiple Law, we have:
In the previous parts, we proved and . Therefore:
Finally, .
(d) Similar to part (c), we use the Addition Formula for Cosine:
\begin{aligned} \lim_{h\to 0} \cos(h + a) &= \lim_{h\to 0} (\cos h \cos a + \sin h \sin a) \\ &= \cos a \lim_{h\to 0} \cos h + \sin a \lim_{h\to 0} \sin h \\ &= \cos a \times 1 + \sin a \times 0 = \cos a. \end{aligned}
Evaluate the following limits:
Solution
(a) Note that for , we have . If and we multiply each side by x, the directions of the inequalities will not change: (). Because , it follows from the Sandwich Theorem that .
If and we multiply each side by x, we need to reverse the direction of the inequalities: (). Because , it follows from the Sandwich Theorem that . Because the left and right limits are equal, we conclude that .
.png)
(b) Similar to part (a), we start from the fact that and if we replace t with when , we get . Multiplying each side by : . Because , by the Sandwich theorem .
cos(1px-pow-2).png)
(c) Similar to part (a), we start with (). If , then and therefore . If , then and therefore . Because , it follows from the Sandwich Theorem that .
sin(1px).png)
The following theorem is also useful.
Theorem: Suppose that and is a bounded function near a (); that is, there are numbers m and M such that for x near a (but not necessarily equal to a). Then
- The above theorem says that if we multiply a function that approaches zero by another function that does not blow up at , then the result still approaches zero.
For example, because sine is a bounded function () and , we have
The graphs of and are shown below.
.png)
Similarly because and , we have
Let's solve the last example again but this time using the above theorem.
Evaluate the following limits using the Zero Bounded Theorem:
Solution
In all above , are bounded functions because the sine and cosine functions never exceed or fall below : , ().
The remaining factors all approach zero: , , .
Each limit is therefore of the form (something tending to zero) (something bounded). By the theorem, all three are zero:
Compare the length of this argument with the case-by-case work of the previous example.
Exercises
Suppose that for all near , the function satisfies:
Evaluate using the Sandwich Theorem.
Answer
Solution
Let and .
Evaluating the limits of the bounding functions as :
Since near and , by the Sandwich Theorem:
Evaluate the following limits:
Answer
(a) (b)
Solution
(a) For , the cosine function is bounded: .
Since , by the Zero Bounded Theorem:
(b) Similarly, for , . Multiplying by :
Since and , by the Sandwich Theorem:
Evaluate the limit at infinity:
Answer
Solution
For , divide both the numerator and the denominator by :
To find , note that for all . For , dividing by gives:
Since and , by the Sandwich Theorem:
Now, applying the Quotient and Sum Laws:
Evaluate , where denotes the floor function.
Answer
Solution
By definition of the floor function, for any real number :
Setting , we have .
For , dividing each term by preserves the direction of the inequalities:
Evaluating the limits of the outer expressions as :
By the Sandwich Theorem:
Suppose that a function satisfies for all . Evaluate .
Answer
Solution
The inequality is equivalent to:
Adding to all parts:
Evaluating the limits of the outer functions as :
By the Sandwich Theorem: