- Practice
- About 15 min
- 5 practice questions
Squeeze theorem, discontinuities and the intermediate value theorem
Use the squeeze theorem for bounded-times-vanishing limits, classify discontinuities as removable, jump or infinite, repair removable ones, and use the intermediate value theorem to show that an equation has a root.
If something looks wrong, please tell us.
Some limits cannot be found by algebra because one factor oscillates, as in x sin(1/x). The squeeze theorem handles them. Once limits are secure, the next question is what goes wrong when a function is not continuous, and what continuity guarantees. This lesson covers the squeeze theorem, the types of discontinuity and the intermediate value theorem.
The squeeze theorem
If g(x) ≤ f(x) ≤ h(x) near a, and both g and h tend to the same limit L as x → a, then f(x) also tends to L. A frequent use is a bounded factor multiplied by a factor that tends to 0.
If |f(x)| ≤ M|g(x)| and g(x) → 0, then f(x) → 0. A bounded factor times a vanishing factor vanishes.
Worked example 1: x² sin(1/x)
Find lim(x→0) x² sin(1/x). We know −1 ≤ sin(1/x) ≤ 1, so −x² ≤ x² sin(1/x) ≤ x². Both bounds tend to 0, so the limit is 0. Note that sin(1/x) alone has no limit at 0, since it oscillates between −1 and 1 ever faster. The product settles because x² shrinks it.
Worked example 2: the greatest integer at infinity
Find lim(x→∞) [x]/x, where [x] is the greatest integer not exceeding x. We have x − 1 < [x] ≤ x, so (x − 1)/x < [x]/x ≤ 1 for x > 0. The left side is 1 − 1/x → 1, so the limit is 1. Be careful at 0: for x slightly below 0, [x] = −1 and [x]/x = −1/x, which becomes large and positive, so the left-hand limit at 0 is +∞, while the right-hand limit is 0.
Types of discontinuity
| Type | What happens at x = a | Example |
|---|---|---|
| Removable | the limit exists, but f(a) is undefined or differs from the limit | (x² − 9)/(x − 3) at x = 3 |
| Jump | left and right limits exist but are different | [x] at x = 2 (left 1, right 2) |
| Infinite | at least one side tends to ±∞ | 1/x at x = 0 |
| Oscillating | no limit because the values keep swinging | sin(1/x) at x = 0 |
Worked example 3: repairing a removable discontinuity
For f(x) = (x² − 9)/(x − 3), x ≠ 3, the limit at 3 is lim (x + 3) = 6. The function is not defined at 3, so it is discontinuous there. Define f(3) = 6 and the function becomes continuous. A jump or infinite discontinuity cannot be repaired by changing one value.
The intermediate value theorem
If f is continuous on [a, b] and k is any number between f(a) and f(b), then there is at least one c in [a, b] with f(c) = k. Its most common use is to show that a root exists.
Worked example 4: a root without solving
Show that x³ + x − 1 = 0 has a root between 0 and 1. Let f(x) = x³ + x − 1, which is continuous. f(0) = −1 and f(1) = 1. Since f changes sign, there is a c in (0, 1) with f(c) = 0. A second example: for f(x) = cos x − x, f(0) = 1 and f(π/2) = −π/2, so cos x = x has a solution between 0 and π/2.
The condition that matters
The theorem needs continuity on the whole interval. The function 1/x has f(−1) = −1 and f(1) = 1, yet it never takes the value 0, because it is discontinuous at 0. A sign change alone proves nothing without continuity.
Key takeaways: squeeze bounded oscillation with vanishing bounds; classify a discontinuity by comparing the one-sided limits with f(a); only removable ones can be repaired; the intermediate value theorem guarantees a root only for a function continuous on the closed interval.
Check your understanding
-
1. What is lim(x→0) x sin(1/x)?
- 0
- 1
- does not exist
- ∞
Show answer
Answer: A. −|x| ≤ x sin(1/x) ≤ |x|, and both bounds tend to 0, so the squeeze theorem gives 0.
-
2. The function f(x) = [x] at x = 3 has which kind of discontinuity?
- removable
- infinite
- jump
- oscillating
Show answer
Answer: C. The left limit at 3 is 2 and the right limit is 3. Both are finite but unequal, so it is a jump.
-
3. For f(x) = (x² − 25)/(x − 5), what value f(5) makes f continuous?
- 0
- 10
- 5
- 25
Show answer
Answer: B. For x ≠ 5, f(x) = x + 5, which tends to 10 as x → 5. Defining f(5) = 10 removes the gap.
-
4. Which statement about f(x) = x³ + 2x − 4 on [1, 2] is guaranteed by the intermediate value theorem?
- f is increasing
- f(c) = 0 for exactly one c
- f(1.5) = 0
- f(c) = 0 for some c in (1, 2)
Show answer
Answer: D. f(1) = −1 and f(2) = 8, and f is continuous, so there is at least one root in (1, 2). The theorem does not say how many.
-
5. Why does the intermediate value theorem fail to give a root of 1/x on [−1, 1]?
- f(−1) and f(1) are equal
- 1/x is not continuous at 0
- 1/x is always positive
- the interval is too short
Show answer
Answer: B. The sign change from f(−1) = −1 to f(1) = 1 does not force a zero, because 1/x is discontinuous at 0 and skips all values near 0.
Sign in to keep track of the lessons you finish.