- Foundation
- About 20 min
- 5 practice questions
Continuity at a point and on a domain
Test whether a function is continuous at a point by comparing the left-hand limit, right-hand limit and value, find unknown constants that make a piecewise function continuous, and use the algebra of continuous functions.
If something looks wrong, please tell us.
By the end of this lesson you can
- State the definition of continuity at a point and check it for polynomial, rational and piecewise functions.
- Find the value of a constant that makes a piecewise function continuous, and list the points of discontinuity of a function.
- Use the facts that sums, differences, products, quotients and composites of continuous functions are continuous.
Informally, a function is continuous if its graph can be drawn without lifting the pen. Calculus needs a precise version of this idea, because the rules for derivatives in this chapter only make sense where a function does not jump or break. Continuity is defined using the limits you met in Class 11.
Definition
Let f be a real function and c a point in its domain. f is continuous at c if lim (x→c) f(x) = f(c). In practice this means three things must agree: the left-hand limit lim (x→c⁻) f(x), the right-hand limit lim (x→c⁺) f(x), and the value f(c). If f is not continuous at c, c is a point of discontinuity. f is called a continuous function if it is continuous at every point of its domain. At an endpoint of a closed interval, only the one-sided limit from inside is used.
f is continuous at c ⇔ lim (x→c⁻) f(x) = lim (x→c⁺) f(x) = f(c).
Checking continuity of a piecewise function at the joining point c
- Find f(c) Use the piece that includes x = c.
- Left-hand limit Use the piece valid for x < c and let x → c.
- Right-hand limit Use the piece valid for x > c and let x → c.
- Compare Continuous only if all three numbers are equal.
Worked examples
Worked example 1. f(x) = 3x − 5 at x = 2. Working: lim (x→2) (3x − 5) = 1 and f(2) = 1, so f is continuous at 2. In fact every polynomial is continuous at every real number, because its limit at c is found simply by substituting c.
Worked example 2. f(x) = x² + 1 for x ≤ 1 and f(x) = 3x − 1 for x > 1. At x = 1: f(1) = 1 + 1 = 2; LHL = lim (x→1⁻) (x² + 1) = 2; RHL = lim (x→1⁺) (3x − 1) = 2. All three agree, so f is continuous at 1. Each piece is a polynomial, so f is continuous everywhere.
Worked example 3. g(x) = x + 2 for x ≤ 0 and g(x) = x − 2 for x > 0. At x = 0: g(0) = 2 and LHL = 2, but RHL = lim (x→0⁺) (x − 2) = −2. The limits differ, so g is discontinuous at 0 (its graph jumps by 4); it is continuous at every other point.
Worked example 4 (find k). f(x) = kx + 1 for x ≤ 2 and f(x) = 3x − 1 for x > 2 is continuous at x = 2. Find k. Working: f(2) = LHL = 2k + 1, and RHL = 3 × 2 − 1 = 5. Continuity needs 2k + 1 = 5, so k = 2.
Worked example 5 (a removable gap). h(x) = (x² − 9)/(x − 3) for x ≠ 3 and h(3) = 6. For x ≠ 3, h(x) = (x − 3)(x + 3)/(x − 3) = x + 3, so lim (x→3) h(x) = 6 = h(3): h is continuous at 3. Had we defined h(3) = 5, h would be discontinuous at 3, though only because of that single value.
Worked example 6 (greatest integer function). f(x) = [x], the greatest integer ≤ x. At an integer n: LHL = n − 1 (just left of n, [x] = n − 1) and RHL = n = f(n). So [x] is discontinuous at every integer and continuous at every non-integer, where it is locally constant.
A subtle point
f(x) = 1/x is continuous: its domain is all real x ≠ 0, and it is continuous at every point of that domain. The value x = 0 is not in the domain, so continuity there is not even asked. Discontinuity is only discussed at points of the domain.
Algebra of continuous functions
If f and g are continuous at c, then f + g, f − g, fg and (when g(c) ≠ 0) f/g are continuous at c. Also, if g is continuous at c and f is continuous at g(c), then the composite fog is continuous at c. Together with the basic continuous functions (polynomials, sin x, cos x, |x|, eˣ, log x on x > 0), this settles most questions at once.
| Function | Continuous where? | Reason |
|---|---|---|
| x⁴ − 3x + 7 | All real x | Polynomial |
| (x + 1)/(x² − 4) | All real x except ±2 (not in domain) | Quotient of polynomials |
| tan x = sin x/cos x | Its whole domain (x ≠ odd multiples of π/2) | Quotient of continuous functions |
| |x − 2| + cos x | All real x | Sum of continuous functions |
| sin(x²) | All real x | Composite of continuous functions |
Key takeaways: continuity at c needs LHL = RHL = f(c). Piecewise functions must be checked at the joining points; constants are found by equating the one-sided limits. Sums, products, quotients (where defined) and composites of continuous functions are continuous, so polynomials, rational functions and trigonometric functions are continuous on their domains.
Check your understanding
-
1. f(x) = 2x + 1 for x < 3 and f(x) = x + 4 for x ≥ 3. Which statement is correct?
- f is discontinuous at x = 3
- f is continuous at x = 3
- f is not defined at x = 3
- f has a jump of 1 at x = 3
Show answer
Answer: B. f(3) = 3 + 4 = 7. LHL = 2(3) + 1 = 7. RHL = 3 + 4 = 7. All three agree, so f is continuous at 3.
-
2. f(x) = kx² for x ≤ 2 and f(x) = 3 for x > 2 is continuous at x = 2. What is k?
- 3/2
- 4/3
- 2/3
- 3/4
Show answer
Answer: D. LHL = f(2) = 4k and RHL = 3. Continuity needs 4k = 3, so k = 3/4.
-
3. At which points is f(x) = [x] (greatest integer function) discontinuous?
- Only at x = 0
- At no point
- At every integer
- At every non-integer
Show answer
Answer: C. At an integer n, the left-hand limit is n − 1 while the right-hand limit and f(n) are n. Between integers [x] is constant, hence continuous.
-
4. f(x) = (x² − 4)/(x − 2) for x ≠ 2 and f(2) = k. For which k is f continuous at 2?
- 4
- 0
- 2
- No value of k
Show answer
Answer: A. For x ≠ 2, f(x) = x + 2, so the limit at 2 is 4. Continuity needs f(2) = 4, i.e. k = 4.
-
5. Assertion (A): f(x) = 1/x is a continuous function.
Reason (R): f is continuous at every point of its domain, which does not include 0.- Both A and R are true, and R is the correct explanation of A
- Both A and R are true, but R is not the correct explanation of A
- A is true but R is false
- A is false but R is true
Show answer
Answer: A. A function is continuous if it is continuous at every point of its domain. 1/x is continuous at every x ≠ 0, and 0 is not in its domain, so R is exactly why A holds.
Sign in to keep track of the lessons you finish.