The squeeze theorem and special functions · Mathematics… | StemPy Lab
Course 20.3·Lesson 2 of 3
The squeeze theorem and special functions
If g(x)≤f(x)≤h(x)
Lesson 2 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
What you will be able to do
trap a function between two simpler ones and read off its limit;
find limits that contain ∣x∣ and the greatest integer [x];
turn a limit at a point into a limit at 0 by a substitution.
The squeeze theorem
Imagine a hallway with two walls. A person walks along it and the walls close in to the same spot. The person has to arrive at that spot. In symbols: suppose g(x)≤f(x)≤h(x) for x near a, and x→alimg(x)=x→alimh(x)=L. Then x→alimf(x)=L.
Example 1. Find x→0limxsinx1. The sine swings, but it is always between −1 and 1. So −∣x∣≤xsinx1≤∣x∣. Both walls tend to 0, so the limit is 0.
The graph of y = x sin(1/x) for x from -0.3 to 0.3, in blue, swinging up and down between two red straight lines, y = |x| and y = -|x|, which form a V shape and its mirror image. The blue curve touches the red lines again and again and is pinched to zero at x = 0, where all three meet.
Example 2. Find x→∞limxsinx. We have −x1≤xsinx≤x1 for x>0, so the limit is 0.
Example 3. The standard limit xsinx→1 was squeezed too, between cosx and 1.
The modulus
The modulus ∣x∣ equals x for x≥0 and −x for x<0. To take a limit, split into the left and the right.
Find x→1limx2−1∣x−1∣.
Right side, x>1.∣x−1∣=x−1. The fraction is x+11→21.
Left side, x<1.∣x−1∣=−(x−1). The fraction is −x+11→−21.
Compare. The two one-sided limits differ, so the limit does not exist.
The greatest integer
The greatest integer[x] is the largest integer that is not above x. So [2.7]=2, [3]=3 and [−1.2]=−2. It jumps at every integer. Some books write ⌊x⌋. The fractional part is {x}=x−[x].
x→3−lim[x]=2 and x→3+lim[x]=3. The limit at 3 does not exist.
x→2.5lim[x]=2, because [x] is constant near 2.5.
Use the squeeze. Since [t]≤t<[t]+1, we get t−1<[t]≤t. Take t=x1 with x>0 and multiply by x: 1−x<x[x1]≤1. As x→0+ both walls tend to 1. So x→0+limx[x1]=1. For x<0 the same argument gives 1 again.
Similarly x→∞limx[x]=1, because xx−1<x[x]≤1.
Turning x→a into h→0
Many trigonometric limits have x→a with a=0. The standard limits need 0. Put x=a+h, so that h→0.
Find x→π/2lim2π−xcosx.
Put x=2π−h. Then h→0.
cos(2π−h)=sinh. The fraction is hsinh.
The limit is 1.
Another: x→πlimπ−xsinx. Put x=π−h and use sin(π−h)=sinh. The limit is 1.
A warning about oscillation at infinity
x→∞limsinx does not exist, because the values keep swinging. But x→∞limxx+sinx=1, because xsinx→0. The bounded part loses against the growing part.
Practise with new numbers
Try it in Python
The program prints xsinx1 between its two walls for smaller and smaller x, and then x[x1].
Common mistakes
Ignoring a side. For a modulus or [x], check the left and the right.
Squeezing with walls that do not meet. Both walls must tend to the same number.
Treating sinx1 as small. On its own it does not tend to anything. Only the factor x in front makes it vanish.
Forgetting the negative side of [x].[−1.2]=−2, not −1.
Remember these
Squeeze: g≤f≤h and g,h→L give f→L.
Split ∣x−a∣ at a. Compare the one-sided limits.
t−1<[t]≤t, which gives x[x1]→1 as x→0.
Put x=a+h to turn x→a into h→0.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
Find x→0limx2cosx1.
Find x→2−lim[x] and x→2+lim[x].
Find x→∞limx+23x+sinx.
Find x→0+limx∣x∣ and x→0−limx∣x∣.
Find x→π/2lim2π−x1−sinx.
References
OpenStax, Calculus Volume 1, Chapter 2, section 2.3 on the squeeze theorem.
NCERT, Mathematics Textbook for Class XI, Chapter 12, the sections on limits of trigonometric functions.
Enroll free in Harder Limits: Forms, Bounds and Expansions
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.