§ 01The Intuition — Drawing Without Lifting Your Pen
Continuity is one of the most natural ideas in mathematics, yet it is also one of the most precisely defined. Understanding both sides (the intuition and the rigour) is what separates students who can merely calculate from those who genuinely understand calculus.
Imagine tracing the graph of a function with a pen. If you can draw the entire graph from left to right without ever lifting your pen from the paper, the function is continuous. The moment you are forced to lift your pen (to jump across a gap, to skip over a hole, or to leap from one branch to another) the function has a discontinuity at that point.
This informal description is powerful enough to guide intuition, but it is far too vague for mathematical proofs. A function with a gap at exactly one point still looks "nearly drawable" in most pictures, yet it is discontinuous there. Calculus requires a definition that captures every such case without ambiguity.
Before we can state the formal definition, we need one concept already in hand: the limit. If you need a refresher, the Introduction to Limits page covers everything you need. But if you are comfortable with the idea that limx→a f(x) describes the value a function approaches as x gets close to a (without necessarily reaching a), then you are ready.
§ 02The Three Conditions for Continuity at a Point
A function f is continuous at x = a if and only if all three of the following conditions hold simultaneously. All three. Not two out of three.
The Continuity Checklist at x = a
- f(a) is defined. The function must actually have a value at x = a. A function with a hole at x = a, where f(a) simply does not exist, fails here immediately.
- limx→a f(x) exists. The left-hand limit and right-hand limit must both exist and be equal. If the function jumps to different values from the left and the right, the two-sided limit does not exist, and continuity fails.
- limx→a f(x) = f(a). The value the function approaches must equal the value the function actually takes. Having both conditions 1 and 2 hold is not enough, the limit and the function value must agree.
Each condition independently can fail, and each type of failure produces a different kind of discontinuity. This is why the three-condition formulation is so useful: it gives you a diagnostic checklist. When you find that a function is discontinuous at a point, you can immediately ask which condition failed?: and the answer tells you exactly what type of discontinuity you are dealing with.
This compact single-line definition silently requires all three conditions above: for limx→a f(x) = f(a) to hold, f(a) must be defined (otherwise the right-hand side has no meaning), the limit must exist (otherwise the left-hand side has no value), and the two must be equal (that's what the equals sign demands).
Continuity on an Interval
We say f is continuous on an open interval (a, b) if it is continuous at every point within that interval. For a closed interval [a, b], we additionally require:
- Right-hand continuity at the left endpoint: limx→a⁺ f(x) = f(a)
- Left-hand continuity at the right endpoint: limx→b⁻ f(x) = f(b)
This is a natural adjustment: at the endpoints of a closed interval, there is only one side to approach from, so we only demand one-sided continuity there.
§ 03The Four Types of Discontinuity
Not all discontinuities are the same. The type of discontinuity tells you which of the three conditions failed, and whether or not the discontinuity can be "fixed."
The limit exists, but either f(a) is undefined or f(a) ≠ lim f(x). There is a "hole" in the graph. You can patch it by redefining f(a).
The left-hand and right-hand limits both exist but are unequal. The function literally "jumps" from one value to another. Cannot be removed.
The function grows without bound near x = a (a vertical asymptote). At least one one-sided limit is ±∞. Cannot be removed.
The function oscillates increasingly rapidly near x = a, so the limit simply doesn't exist. Example: sin(1/x) near x = 0. Cannot be removed.
Visualising the Four Types
The four types of discontinuity: removable (hole), jump, infinite (asymptote), oscillating
Continuous Functions You Already Know
Certain families of functions are continuous everywhere on their natural domains, and this fact is worth knowing by heart:
- All polynomials: continuous on (−∞, ∞)
- All rational functions: continuous everywhere except where the denominator is zero
- sin x, cos x: continuous on (−∞, ∞)
- tan x, sec x, csc x, cot x: continuous everywhere they are defined
- eˣ, aˣ (a > 0), continuous on (−∞, ∞)
- ln x, loga x: continuous on (0, ∞)
- ⁿ√x: continuous on (0, ∞), or (−∞, ∞) when n is odd
Furthermore, sums, differences, products, quotients (where defined), and compositions of continuous functions are continuous. This means that most functions you encounter in calculus are continuous almost everywhere, and discontinuities tend to occur only at isolated "problem points."
§ 04Ten Worked Examples
Apply the three-condition checklist to functions ranging from simple polynomials to piecewise definitions and rational functions. Each example identifies the discontinuity type where relevant.
This is a polynomial, so we know theoretically it must be continuous everywhere. Let's verify with the checklist.
This is a rational function. Discontinuities can only occur where the denominator is zero, so x = 2 is suspicious.
Condition 1 fails immediately. But let's check the limit, because this tells us the type of discontinuity:
The limit exists (equals 4) but g(2) is undefined. This is a removable discontinuity. We can patch it by defining g(2) = 4.
Removable discontinuity at x = 2Piecewise functions are prime candidates for jump discontinuities. Always check left and right limits separately.
LHL = 2 ≠ RHL = 4, so the two-sided limit does not exist. Condition 2 fails.
Jump discontinuity at x = 1The denominator is zero at x = 3, so f(3) is undefined, condition 1 fails. Checking the limit reveals:
The function blows up on both sides (in opposite directions). This is a vertical asymptote, an infinite discontinuity. There is no way to define f(3) to make this function continuous here.
Infinite discontinuity at x = 3Let f(x) = (x³ − 8)/(x − 2). Find the value of f(2) that makes f continuous at x = 2.
Define f(2) = 12. Then all three conditions hold and f is continuous at x = 2.
Define f(2) = 12 to patch the discontinuityThis rational function is undefined wherever the denominator equals zero.
At each point, check whether the numerator is also zero (removable) or non-zero (infinite):
Everywhere else, f is a ratio of continuous functions with non-zero denominator, so f is continuous.
Infinite discontinuities at x = 2 and x = −3Since both pieces are polynomials, continuity can only break at the join point x = 1. We need the left and right limits to agree with the function value.
This is the classic oscillating discontinuity example.
Even if we tried to assign a value at x = 0, the limit doesn't exist. As x → 0, the argument 1/x grows without bound, causing sin(1/x) to oscillate infinitely rapidly between −1 and +1. No single value is approached.
This is an oscillating discontinuity: the most exotic type, and not removable by any assignment of f(0).
Oscillating discontinuity at x = 0 — not removableThe square root function requires a non-negative argument. We need x − 4 ≥ 0, so the natural domain is [4, ∞).
We only need right-hand continuity at x = 4 because it is the left endpoint of the domain. Both conditions are satisfied.
Continuous on [4, ∞)§ 05The Intermediate Value Theorem
Continuity on a closed interval guarantees something remarkable: the function must pass through every value between its endpoints. This seemingly obvious statement has profound consequences.
then there exists at least one c ∈ (a, b) such that f(c) = N.
In plain English: a continuous function cannot jump over a value. If a function starts at height f(a) and ends at height f(b), it must at some point have been at every height in between. The theorem guarantees existence, it does not tell you where c is, only that it exists.
Application: Proving a Root Exists
One of the most powerful uses of the IVT is proving that equations have solutions, even when you cannot find the solution explicitly. The method is:
- Show f is continuous on some interval [a, b].
- Compute f(a) and f(b).
- If f(a) and f(b) have opposite signs, then 0 is between them, so f(c) = 0 for some c ∈ (a, b).
§ 06Common Mistakes
§ 07Practice Quiz — 10 Questions
Test your understanding of continuity with this interactive quiz. Mixed multiple-choice and fill-in-the-blank questions.
Which condition is NOT required for f to be continuous at x = a?
What type of discontinuity does f(x) = (x² − 9)/(x − 3) have at x = 3?
If f(x) = x³ − 2x + 1 (a polynomial), what is limx→−1 f(x)?
Answer:
Consider f(x) = { 2x + 1 if x < 3, x² − 2 if x ≥ 3 }. Is f continuous at x = 3?
Find the value of k that makes f(x) = { kx + 2 if x ≤ 1, 3x − k if x > 1 } continuous at x = 1.
Answer: k =
The Intermediate Value Theorem guarantees that f(x) = x² − 3 has a root in (1, 2). Which fact directly enables this conclusion?
What type of discontinuity does f(x) = 1/(x−1)² have at x = 1?
For f(x) = (x² − 16)/(x − 4), what value should f(4) be defined as to make f continuous at x = 4?
f(4) =
Which of the following is always continuous on (−∞, ∞)?
f is continuous on [0, 4] with f(0) = −3 and f(4) = 7. What does the IVT guarantee?
Next StepsContinue the Limits Series
Now that you can classify and analyse continuity with precision, the next pages build on it directly:
- L'Hôpital's Rule, the most powerful shortcut for indeterminate-form limits, and it requires continuity of the derivatives involved.
- Epsilon-Delta Definition: the rigorous underpinning of everything limits and continuity do.
- Differentiation from First Principles, differentiability implies continuity, but not vice versa.