Continuity and the Kinds of Discontinuity
Learn the three-part test for continuity and how to tell removable, jump, infinite and oscillating discontinuities apart.
Key takeaways
- Continuity at a requires three things: f(a) is defined, the limit at a exists, and the two are equal.
- A removable discontinuity has a limit but a missing or mismatched value, so redefining one point fixes it.
- A jump has two finite one-sided limits that differ, and an infinite discontinuity has unbounded values nearby.
- Sums, products, quotients with nonzero denominators and compositions of continuous functions are continuous.
- A continuous function can still have sharp corners, so continuity does not guarantee a derivative.
A function is continuous at a point when its value there is exactly what the nearby values lead you to expect. In symbols, f is continuous at a if the limit of f(x) as x approaches a equals f(a).
A discontinuity is a failure of that agreement. There are a few distinct ways to fail, and naming the type tells you whether the problem can be repaired and how the graph looks near the trouble spot.
The three-part test
To check continuity at a point a, ask in order:
- Is f(a) defined?
- Does the limit of f(x) as x approaches a exist as a finite number?
- Are the two numbers equal?
All three must hold. For f(x) = x² at a = 3, the value is 9, the limit is 9, and they match.
The meaning in everyday terms is that small changes in input produce small changes in output. If you want f(x) within a chosen tolerance of f(a), you can achieve it by keeping x close enough to a. The idea relies on limits, with the one added requirement that the target be the actual value.
On an interval, a function is continuous if it is continuous at every point, using one-sided limits at any endpoint that belongs to the interval. The picture of drawing the graph without lifting your pencil is a fair guide on an interval, though it breaks down for some very wiggly functions.
Removable discontinuities
Let g(x) = (x² − 4)/(x − 2). It is undefined at 2, but for every other x it equals x + 2. The limit at 2 is therefore 4. The graph is a line with a hole.
This is called a removable discontinuity: if you define g(2) = 4, the function becomes continuous. The same label applies when a value exists but sits in the wrong place, for instance if someone sets g(2) = 10.
A more interesting case is h(x) = x sin(1/x), undefined at 0. Since the sine lies between −1 and 1, the size of h(x) is at most the size of x, which shrinks to 0. Defining h(0) = 0 makes it continuous, even though the graph oscillates infinitely often on the way in.
Jump discontinuities
A jump occurs when the left-hand and right-hand limits both exist as finite numbers but differ. No choice of value at the point can satisfy both sides.
The floor function, which returns the greatest integer less than or equal to x, jumps at every integer. Just below 3 it equals 2, and from 3 onward it equals 3. Between integers it is constant and therefore continuous.
Jumps model sudden switches: a postage price that rises at a weight threshold, or an idealized signal that turns on at a given instant. At the jump, a function can still be continuous from one side. The floor function is continuous from the right at each integer. The technique of checking sides is covered in one-sided limits.
Infinite and oscillating discontinuities
An infinite discontinuity occurs when the values grow without bound on at least one side of the point. The function 1/(x − 1)² near 1 is an example, as is tan x near π/2. The graph usually shows a vertical asymptote.
An oscillating discontinuity occurs when the values neither settle nor run off to infinity. The standard example is sin(1/x) near 0, which takes every value between −1 and 1 infinitely often in every interval around 0.
A point of vocabulary causes arguments. The function 1/x is continuous at every point of its domain, which excludes 0. Many calculus books say it has an infinite discontinuity at 0. Analysis books often say that continuity is simply not in question at a point where the function does not exist. Both are consistent once the convention is stated.
Some books group these into two classes. Removable and jump discontinuities, where both side limits are finite, are said to be of the first kind. All others are of the second kind.
Which functions are continuous
You rarely need the three-part test from scratch. Polynomials are continuous everywhere. So are sine, cosine and exponential functions. Rational functions, logarithms, roots and the other trigonometric functions are continuous wherever they are defined.
New continuous functions come from old ones. If f and g are continuous at a, then f + g, f − g and f × g are too, and so is f/g when g(a) ≠ 0. If g is continuous at a and f is continuous at g(a), the composite f(g(x)) is continuous at a.
For example, cos(x² + 1)/(eˣ + 2) is continuous for every real x. Each part is continuous, and the denominator is always greater than 2.
To find the discontinuities of a formula, look for zero denominators, arguments leaving the domain of a root or logarithm, and points where a piecewise rule switches.
Choosing a constant to close the gap
A common exercise asks for a value that makes a piecewise function continuous. Let f(x) = kx + 1 for x ≤ 3, and f(x) = x² − 2 for x > 3.
value and left limit at 3: 3k + 1
right limit at 3: 9 − 2 = 7
continuity requires: 3k + 1 = 7
so: k = 2 With k = 2 the two pieces meet at the point (3, 7). The slopes there still differ: the line has slope 2 and the parabola has slope 6. The graph has a corner.
That corner shows that continuity is weaker than differentiability. The converse direction does hold: a function with a derivative at a point is continuous there. See why differentiability and continuity differ.
A full diagnosis of one function
Putting the pieces together, find and classify every discontinuity of this function:
f(x) = (x² − 3x + 2) / (x² − 4x + 3) First factor both parts:
x² − 3x + 2 = (x − 1)(x − 2)
x² − 4x + 3 = (x − 1)(x − 3) The denominator is zero at x = 1 and x = 3, so those are the only points to examine. Everywhere else f is a quotient of continuous functions with a nonzero denominator.
At x = 1, the common factor cancels, leaving (x − 2)/(x − 3) for x ≠ 1. The limit there is (−1)/(−2) = 1/2. This is a removable discontinuity, and setting f(1) = 1/2 repairs it.
At x = 3, the simplified expression has numerator near 1 and denominator near 0. From the right, the denominator is small and positive, so f tends to ∞. From the left it tends to −∞. This is an infinite discontinuity, and no redefinition can help.
Notice that both points made the original denominator zero, yet they behave in entirely different ways. The type is decided by the limit, so you cannot read it off from the zero denominator alone. Always simplify and then look at each side.
Strange examples
Intuition formed on smooth graphs does not cover everything. Define a function to be 1 at rational numbers and 0 at irrational numbers. Every interval contains both kinds of number, so no limit exists anywhere, and this function (named after Dirichlet) is discontinuous at every point.
A subtler example, often called Thomae's function, assigns 0 to irrationals and 1/q to a rational p/q written in lowest terms with q positive. Near any point, rationals with small denominators are sparse, so the values tend to 0. As a result it is continuous at every irrational number and discontinuous at every rational one. There are also functions continuous everywhere and differentiable nowhere.
Continuity and measurement
Continuity is also a statement about how trustworthy a calculation is. If f is continuous at a, and you know the input only approximately, a good enough input guarantees a good output. Say a square's side is measured as about 10 centimeters. Its area, the side squared, is continuous, so tightening the measurement pins the area near 100 square centimeters as closely as you wish.
At a jump this promise fails. If a fee changes at exactly 1 kilogram, a parcel measured as "about 1 kilogram" could fall in either price band, and no amount of closeness short of knowing the side of the threshold settles it. Whenever a model contains a threshold, expect sensitivity right there.
Why continuity matters
Continuity is the hypothesis behind several major theorems. On a closed, bounded interval, a continuous function attains a largest and a smallest value. It also passes through every value between those at its endpoints, which is the intermediate value theorem. And it has a definite integral.
Remove the hypothesis and each of the first two can fail. On the interval from 0 to 1, define a function as x for x < 1 and as 0 at x = 1. Its values come arbitrarily close to 1 but never reach it, so there is no largest value.
In practice, continuity also justifies a habit you use constantly: substituting a number into a formula to find a limit. That step is valid precisely because the function is continuous at that number. When substitution fails or looks suspicious, you are being told to examine the neighborhood more carefully.