- Practice
- About 18 min
- 5 practice questions
Continuity and types of discontinuity
Test a function for continuity at a point and on an interval, use the algebra of continuous functions, and classify removable and jump discontinuities.
If something looks wrong, please tell us.
By the end of this lesson you can
- State the three conditions for continuity of f at x₀.
- List standard continuous functions and use the algebra of continuous functions, including composites.
- Test continuity on a closed interval using one-sided limits at the ends.
- Classify removable and jump discontinuities and find constants that make a function continuous.
Many processes change gradually: a rod expands steadily when heated, a plant grows without sudden leaps. Others jump: postage charges step up at fixed weights, and your age in whole years changes overnight on your birthday. Continuity makes 'no sudden jump' precise, and the textbook warns that the safe way to define it is through limits rather than by looking at a graph.
Continuity at a point
Definition 9.7. f is continuous at x₀ if it is defined in a neighbourhood of x₀ and the limit of f(x) as x → x₀ exists and equals f(x₀). That is three conditions: (i) f(x₀) exists; (ii) lim (x→x₀) f(x) exists; (iii) lim (x→x₀) f(x) = f(x₀). Condition (iii) can be restated as lim (Δx→0) [f(x₀ + Δx) − f(x₀)] = 0: a small change in x gives a small change in y. It also says lim f(x) = f(lim x), so the symbols lim and f can be interchanged.
How continuity at x₀ can fail
-
f(x₀) not defined
- (x² − 9)/(x − 3) at x = 3
- 1/x at x = 0
-
lim (x→x₀) f(x) does not exist
- One-sided limits differ: ⌊x⌋ at integers
- f(x) → ∞: 1/x² at 0
-
Limit exists but is not f(x₀)
- A single point moved off the curve
- Fixed by redefining f(x₀)
Standard continuous functions and their algebra
- Constant functions, powers xⁿ (n a positive integer) and polynomials are continuous at every point of R.
- A rational function p(x)/q(x) is continuous at every point where q(x) ≠ 0.
- sin x and cos x are continuous on R; tan x, cot x, sec x and cosec x are continuous on their domains.
- The nth root function, |x|, eˣ (on R) and log x (on (0, ∞)) are continuous on their domains.
- 1/x is continuous at every point except 0, where it is not defined; ⌊x⌋ is discontinuous at every integer.
Algebra of continuous functions. If f and g are continuous at x₀, then so are f + g, f − g, cf, fg and f/g (when g(x₀) ≠ 0). Composite function theorem: if g is continuous at x₀ and f is continuous at g(x₀), then f ∘ g is continuous at x₀. So sin(x² + 1), e^(cos x) and |x − 3| are continuous on all of R.
Continuity on a closed interval (Definition 9.9). f is continuous on [a, b] if it is continuous at every point of (a, b), continuous from the right at a (lim (x→a⁺) f(x) = f(a)) and continuous from the left at b (lim (x→b⁻) f(x) = f(b)). For example f(x) = √(x − 1) is defined on [1, ∞), continuous at every x > 1, and lim (x→1⁺) √(x − 1) = 0 = f(1), so it is continuous on [1, ∞).
Worked example 1: where is a function continuous?
(i) f(x) = (x + 1)/(x² − 4) is a rational function; its denominator is 0 at x = 2 and x = −2, so f is continuous on (−∞, −2), (−2, 2) and (2, ∞). (ii) tan x is undefined at x = (2n + 1)π/2, n ∈ Z, and continuous on each open interval between consecutive such points. (iii) g(x) = x² + sin x is a sum of continuous functions, so it is continuous on R.
Removable and jump discontinuities
Removable discontinuity (Definition 9.10): lim (x→x₀) f(x) exists (finite) but f(x₀) is undefined or differs from it. Redefining f(x₀) as the limit removes the discontinuity. Jump discontinuity (Definition 9.11): both one-sided limits exist and are finite but are unequal; the jump is |f(x₀⁺) − f(x₀⁻)|, and no redefinition at one point can fix it.
Worked example 2: a removable discontinuity
f(x) = (x² − 4)/(x − 2) for x ≠ 2 and f(2) = 3. Working: f(2) = 3 exists, and for x ≠ 2, f(x) = x + 2, so lim (x→2) f(x) = 4. But 4 ≠ 3, so f is discontinuous at 2. The limit exists, so the discontinuity is removable: redefining f(2) = 4 gives the continuous function x + 2. In the same way, sin x/x for x ≠ 0 with the value 1 at x = 0 is continuous everywhere, since sin x/x → 1.
Worked example 3: a jump in a price list
A courier (made-up rates) charges C(w) = 40 rupees for a parcel of weight 0 < w ≤ 1 kg and 70 rupees for 1 < w ≤ 2 kg. At w = 1: C(1⁻) = 40 = C(1), but C(1⁺) = 70. The one-sided limits are finite and unequal, so C has a jump discontinuity at w = 1, with a jump of 70 − 40 = 30 rupees. It is continuous from the left at 1, but not from the right.
Worked example 4: choosing a constant
Find k so that f(x) = kx + 1 for x ≤ 2 and 3x − 1 for x > 2 is continuous on R. Working: each piece is a polynomial, so the only point to check is x = 2. f(2) = f(2⁻) = 2k + 1 and f(2⁺) = 3(2) − 1 = 5. Continuity needs 2k + 1 = 5, so k = 2. Check: with k = 2 both pieces give 5 at x = 2.
f is continuous at x₀ when f(x₀) exists, lim (x→x₀) f(x) exists and the two are equal. Limit exists but ≠ f(x₀) or f(x₀) undefined: removable. Finite one-sided limits that differ: jump.
Key takeaways: continuity at a point is three checks; polynomials, rational functions (away from zeros of the denominator), trigonometric, exponential, logarithmic and root functions are continuous on their domains; sums, products, quotients and composites keep continuity; and discontinuities are removable or jumps depending on whether the limit exists.
Check your understanding
-
1. At which points is f(x) = (x − 1)/(x² − 5x + 6) discontinuous?
- x = 1 only
- x = 2 and x = 3
- x = −2 and x = −3
- Nowhere
Show answer
Answer: B. x² − 5x + 6 = (x − 2)(x − 3) is 0 at x = 2 and x = 3, where f is not defined. Elsewhere f is a quotient of polynomials with non-zero denominator, so it is continuous. At x = 1 the numerator is 0, which causes no problem.
-
2. f(x) = (x² − 1)/(x − 1) for x ≠ 1. What value of f(1) makes f continuous at 1?
- 0
- 1
- Not possible
- 2
Show answer
Answer: D. For x ≠ 1, f(x) = x + 1, which tends to 2 as x → 1. Defining f(1) = 2 makes the limit equal the value, so the discontinuity is removable.
-
3. What kind of discontinuity does ⌊x⌋ have at x = 3?
- A jump discontinuity
- A removable discontinuity
- None; it is continuous at 3
- An infinite discontinuity
Show answer
Answer: A. The left-hand limit at 3 is 2 and the right-hand limit is 3. Both are finite but unequal, so there is a jump of 1.
-
4. For which a is f(x) = ax² for x < 1 and 4x − 1 for x ≥ 1 continuous at x = 1?
- 1
- 4
- 3
- 5
Show answer
Answer: C. f(1) = f(1⁺) = 4 − 1 = 3 and f(1⁻) = a. Continuity needs a = 3.
-
5. If g is continuous at x₀ and f is continuous at g(x₀), what can you say about f ∘ g?
- It is continuous at x₀
- It is discontinuous at x₀
- It is continuous only if f = g
- Nothing can be said
Show answer
Answer: A. This is the composite function theorem on continuity: f ∘ g is continuous at x₀.
Sign in to keep track of the lessons you finish.