- Foundation
- About 14 min
- 5 practice questions
Continuity on an interval and building continuous functions
Know where polynomials, rational functions, roots and moduli are continuous, combine continuous functions by sums, products, quotients and composition, and use the intermediate value idea to locate a root.
If something looks wrong, please tell us.
Continuity at a point was defined by the three-step check. In practice we rarely run that check for every function: we use the fact that standard functions are continuous wherever they are defined, and that combining continuous functions gives continuous functions. This makes it possible to say at once where a complicated formula is continuous. We also meet a useful consequence, the intermediate value property.
Continuity on an interval
A function is continuous on an open interval (a, b) if it is continuous at every point of it. For a closed interval [a, b], we also need continuity at the end points from the inside: at a, the right-hand limit equals f(a), and at b, the left-hand limit equals f(b). Informally, you can draw the graph without lifting the pen.
Standard functions
| Function | Continuous on |
|---|---|
| polynomial | all real numbers |
| sin x, cos x, eˣ | all real numbers |
| |x| | all real numbers |
| rational function P(x)/Q(x) | every x with Q(x) ≠ 0 |
| √x | [0, ∞) |
| ln x | (0, ∞) |
| tan x | every x except π/2 + nπ |
Combining continuous functions
If f and g are continuous at a, then so are f + g, f − g, f × g and k × f. The quotient f/g is continuous at a provided g(a) ≠ 0. A composite is also continuous: if g is continuous at a and f is continuous at g(a), then f(g(a)) is continuous at a. So sin(x²), eˣ + |x| and √(x² + 1) are continuous everywhere.
Sums, differences, products and composites of continuous functions are continuous. A quotient is continuous wherever the denominator is not zero. So find continuity by finding where the formula is defined.
Worked example 1: a rational function
Where is f(x) = (x + 1)/(x² − 4) continuous? It is a rational function. The denominator x² − 4 = (x − 2)(x + 2) is zero at x = 2 and x = −2. So f is continuous for all real x except 2 and −2, that is on R − {−2, 2}. At x = ±2, f is undefined and so has a break (infinite).
Worked example 2: a square root
Where is f(x) = √(x − 1) continuous? It needs x − 1 ≥ 0, so the domain is [1, ∞). It is continuous at every x > 1, and at x = 1 it is continuous from the right, since √(x − 1) → 0 = f(1) as x → 1⁺. So f is continuous on [1, ∞), using the interval convention.
Worked example 3: when a piecewise function fails
Let f(x) = x² for x < 1 and f(x) = 2x for x ≥ 1. Each piece is a polynomial, so f is continuous for x ≠ 1. At x = 1, the left-hand limit is 1² = 1 and f(1) = 2. These differ, so f is not continuous at 1; it jumps by 1. If the second piece were 2x − 1, which also gives 1 at x = 1, the function would be continuous.
The intermediate value idea
If f is continuous on [a, b] and f(a), f(b) have opposite signs, the graph must cross the x-axis between a and b. So the equation f(x) = 0 has a root in (a, b). Take f(x) = x³ + x − 1. Then f(0) = −1 < 0 and f(1) = 1 + 1 − 1 = 1 > 0. Since f is a polynomial, it is continuous, so the equation x³ + x − 1 = 0 has a root between 0 and 1. This tells us where a root is without finding it.
Worked example 4: another root
Show that x² = 5 has a root in (2, 3). Let f(x) = x² − 5. Then f(2) = 4 − 5 = −1 and f(3) = 9 − 5 = 4. The values have opposite signs and f is continuous, so there is a root in (2, 3). That root is √5, about 2.236, which does lie between 2 and 3.
Key takeaways: polynomials, sin, cos, eˣ and |x| are continuous everywhere; rational functions are continuous where the denominator is not zero; sums, products and composites keep continuity. A quotient needs the denominator non-zero. If a continuous function changes sign on [a, b], it has a root in between.
Check your understanding
-
1. Where is f(x) = (x + 1)/(x² − 4) continuous?
- All real x except x = 2 and x = −2
- All real x except x = −1 only
- All real x, without any exceptions
- Only for the real numbers x > 2
Show answer
Answer: A. It is a rational function, continuous wherever the denominator is not zero. x² − 4 = 0 at x = ±2.
-
2. On which set is f(x) = √(x − 1) continuous?
- (−∞, 1]
- (1, ∞) only
- [1, ∞)
- All real x
Show answer
Answer: C. √(x − 1) is defined for x ≥ 1 and is continuous there (from the right at x = 1).
-
3. Which combination of two functions, both continuous at a, can fail to be continuous at a?
- f + g, for every such pair
- f/g, when g(a) = 0
- f × g, for every such pair
- f − g, for every such pair
Show answer
Answer: B. Sums, differences and products of continuous functions are always continuous. A quotient needs g(a) ≠ 0.
-
4. In which interval must x² − 5 = 0 have a root?
- (0, 1)
- (1, 2)
- (3, 4)
- (2, 3)
Show answer
Answer: D. With f(x) = x² − 5, f(2) = −1 and f(3) = 4 have opposite signs, and f is continuous. So there is a root in (2, 3).
-
5. Let f(x) = x² for x < 1 and f(x) = 2x for x ≥ 1. What is true at x = 1?
- f is continuous because both pieces are polynomials
- f is not continuous: the left limit is 1 but f(1) = 2
- f is continuous because f(1) = 2
- f is not defined at x = 1
Show answer
Answer: B. The left-hand limit is 1 and the right-hand limit and value are both 2. They differ, so there is a jump.
Sign in to keep track of the lessons you finish.