MATHEMATICS · LESSON 03 OF 10

Continuity

A function is continuous at a point when its limit there exists and equals its value: no holes, jumps or breaks.

What this lesson explains

Continuity is the mathematical version of “no sudden breaks”. Temperatures, positions and concentrations in physical processes change continuously, and many theorems of calculus (the Intermediate Value Theorem, the Extreme Value Theorem and the Mean Value Theorem) only work for continuous functions. Before you use one of those theorems you must check continuity.

Continuity also tells you when direct substitution is allowed: at a point of continuity, the limit is simply the value.

Before you begin

Limits and one-sided limits

limx→a f(x) = L means f(x) approaches L as x approaches a from both sides (see the Limits topic). For a piecewise function, the left-hand limit uses the rule for x < a and the right-hand limit uses the rule for x > a.

Domains

A rational function is undefined where its denominator is zero; √u needs u ≥ 0; ln u needs u > 0. A function cannot be continuous at a point where it is not defined.

The idea, made visible

Informally, a function is continuous on an interval if you can draw its graph there without lifting your pen. Precisely, continuity at a single point x = a requires three things to happen together: f(a) is defined, limx→a f(x) exists, and the two are equal.

When one of the three conditions fails we have a discontinuity, and its type tells you what went wrong. A removable discontinuity is a hole: the limit exists but the value is missing or different; redefining one value repairs it. A jump discontinuity has different one-sided limits; no single value can repair it. An infinite discontinuity has the function growing without bound, as with 1 / x at 0.

Three kinds of discontinuity at x = aLeft: a line with an open circle (hole) and the function value drawn as a separate dot above it, a removable discontinuity. Middle: two line pieces with a gap between them at the same x, a jump discontinuity. Right: a curve rising without bound on both sides of a dashed vertical asymptote, an infinite discontinuity.Removablelimit exists ≠ valueJumpone-sided limits differInfinitevalues grow without bound
The three kinds of discontinuity. A hole (open circle) with the value elsewhere can be repaired; a jump or a vertical asymptote cannot.
Intermediate Value Theorem for f(x) = x³ − x − 1 on [1, 2]The curve starts below the x-axis at x = 1, where f(1) = −1, and ends above it at x = 2, where f(2) = 5. Because the curve is unbroken it must cross the axis between them, near x = 1.32.11.52−1135xyf(1) = −1f(2) = 5root c ≈ 1.32
f(x) = x³ − x − 1 is continuous and changes sign between x = 1 and x = 2, so it has a root in between (about 1.32).

Most functions you meet are continuous wherever they are defined: polynomials everywhere; rational functions except where the denominator is zero; √x for x ≥ 0; sin x and cos x everywhere; ex everywhere and ln x for x > 0. Sums, products and compositions of continuous functions are continuous, and so are quotients wherever the denominator is not zero. The places to check carefully are the “joins” of piecewise functions and the zeros of denominators.

Continuity on a closed interval [a, b] guarantees the Intermediate Value Theorem: the function takes every value between f(a) and f(b). In particular, if f(a) and f(b) have opposite signs, the equation f(x) = 0 has a solution between a and b. This is how we know an equation has a root before we can find it.

Checking the three conditions
Function at af(a) defined?limit exists?equal?verdict
x² + 1 at a = 2yes, 5yes, 5yescontinuous
(x² − 4)/(x − 2) at a = 2noyes, 4—removable discontinuity
same, but with f(2) = 4 definedyes, 4yes, 4yescontinuous (repaired)
x + 2 for x < 1, x² for x ≥ 1, at a = 1yes, 1no: left 3, right 1—jump of size 2
1/(x − 3)² at a = 3nono: +∞—infinite discontinuity

Key terms

Continuous at a point
f is continuous at x = a when (1) f(a) is defined, (2) limx→a f(x) exists, and (3) limx→a f(x) = f(a).
Continuous on an interval
f is continuous at every point of an open interval (a, b). On a closed interval [a, b] we also need one-sided continuity at the ends: limx→a+ f(x) = f(a) and limx→b− f(x) = f(b).
Removable discontinuity
The limit at a exists, but f(a) is undefined or differs from it. Defining f(a) to be the limit removes the discontinuity.
Jump discontinuity
Both one-sided limits exist but are different. The size of the jump is |right limit − left limit|.
Infinite discontinuity
At least one one-sided limit is +∞ or −∞. The graph has a vertical asymptote at x = a.

The formulas and what they mean

Symbols, meanings and units
SymbolMeaningUnit
f(a)the value of f at a (must exist for continuity)output units
limx→a± f(x)one-sided limits from the right (+) or left (−)output units
[a, b], (a, b)closed interval (endpoints included), open interval (endpoints excluded)input units

Continuity test

limx→a f(x) = f(a)

Conditions and limits: All three parts must be checked: the value exists, the limit exists, and they are equal.

Continuity of combinations

f ± g, f·g, f / g, f(g(x)) are continuous

Conditions and limits: When f and g are continuous at the relevant points; the quotient needs g(a) ≠ 0; the composition needs g continuous at a and f continuous at g(a).

Intermediate Value Theorem (IVT)

f continuous on [a, b] and N strictly between f(a) and f(b) ⇒ f(c) = N for some c in (a, b)

Conditions and limits: Continuity on the whole closed interval is essential. The theorem guarantees that c exists; it does not say where, or that there is only one.

Why it works: Why the IVT needs continuity

Consider f(x) = −1 for x < 0 and f(x) = 1 for x ≥ 0, on [−1, 1].

  1. f(−1) = −1 < 0 and f(1) = 1 > 0, so the signs are opposite.

    This is the situation in which the IVT would promise a zero.

  2. Yet f(x) is never 0: it only takes the values −1 and 1.

    The graph jumps over the axis at x = 0.

  3. The hypothesis fails: f has a jump discontinuity at 0.

    Without continuity the conclusion of the theorem can be false.

A theorem’s conclusion is only guaranteed when its conditions are checked. That is why every IVT argument starts with “f is continuous on [a, b] because …”.

A first worked example

How to test continuity at x = a (especially for piecewise functions)

  1. Find f(a) from the rule that applies at a (watch for ≤ versus <). If it is undefined, f is not continuous at a.
  2. Find the left-hand limit using the rule for x < a and the right-hand limit using the rule for x > a.
  3. If the one-sided limits differ, there is a jump: not continuous. If they agree, that common value is the limit.
  4. Compare the limit with f(a). Equal: continuous. Different: removable discontinuity.
  5. To make a piecewise function continuous by choosing a constant, set the left-hand and right-hand expressions equal at the join and solve.

Repair a removable discontinuity

Problem. f(x) = 2x + 1 for x ≠ 2. What value of f(2) makes f continuous at 2?

  1. limx→2 (2x + 1) = 5.

    2x + 1 is a polynomial, so substitute x = 2.

  2. Continuity needs f(2) = limx→2 f(x).

    The third condition of the definition.

Result: Define f(2) = 5.

What it means: Filling the hole with the limiting value makes the graph an unbroken line.

A different case

A piecewise function with a jump

Problem. f(x) = x + 2 for x < 1 and f(x) = x2 for x ≥ 1. Is f continuous at x = 1? If not, how big is the jump?

  1. f(1) = 12 = 1.

    x = 1 belongs to the rule for x ≥ 1.

  2. Left-hand limit: limx→1− (x + 2) = 3.

    Use the rule that holds for x < 1.

  3. Right-hand limit: limx→1+ x2 = 1.

    Use the rule that holds for x > 1.

  4. 3 ≠ 1, so the two-sided limit does not exist.

    Condition (2) fails.

Result: f is not continuous at 1. It has a jump discontinuity of size |1 − 3| = 2.

What it means: No choice of f(1) could fix this, because the two pieces approach different heights.

More worked cases

Each case below uses a different skill. Every step and result is shown.

Choose a constant to make a piecewise function continuous

Problem. f(x) = kx + 1 for x < 2 and f(x) = x2 − 1 for x ≥ 2. Find k so that f is continuous everywhere.

  1. Each piece is a polynomial, so f is continuous everywhere except possibly at the join x = 2.

    Polynomials are continuous on their own.

  2. Right-hand limit and value: 22 − 1 = 3. Left-hand limit: 2k + 1.

    Substitute x = 2 into each rule.

  3. Set them equal: 2k + 1 = 3, so k = 1.

    Continuity at the join requires equal one-sided limits, equal to f(2).

Result: k = 1.

What it means: With k = 1 the line y = x + 1 meets the parabola exactly at (2, 3).

Show that an equation has a root (IVT)

Problem. Show that x3 − x − 1 = 0 has a solution between 1 and 2.

  1. Let f(x) = x3 − x − 1. It is a polynomial, so it is continuous on [1, 2].

    Check the hypothesis first.

  2. f(1) = 1 − 1 − 1 = −1 < 0 and f(2) = 8 − 2 − 1 = 5 > 0.

    The values have opposite signs, so 0 lies between them.

  3. By the IVT there is c in (1, 2) with f(c) = 0.

    The theorem applies because both conditions hold.

Result: The equation has a root in (1, 2). (Numerically, c ≈ 1.3247.)

What it means: The IVT proves existence. To locate the root more precisely, halve the interval repeatedly: f(1.5) = 0.875 > 0, so the root lies in (1, 1.5), and so on.

Where is a rational function discontinuous?

Problem. Find and classify the discontinuities of f(x) = x2 − 1 / x2 − 3x + 2.

  1. Factor: (x − 1)(x + 1) / (x − 1)(x − 2). The denominator is zero at x = 1 and x = 2.

    A rational function is continuous everywhere else.

  2. At x = 1: for x ≠ 1, f(x) = x + 1 / x − 2 → 2 / −1 = −2. The limit exists, f(1) does not.

    The factor (x − 1) cancels: removable discontinuity.

  3. At x = 2: the numerator of x + 1 / x − 2 tends to 3 and the denominator to 0.

    Non-zero over zero means the values grow without bound: infinite discontinuity.

Result: Removable discontinuity at x = 1 (hole at (1, −2)); infinite discontinuity (vertical asymptote) at x = 2.

What it means: A factor that cancels gives a hole; a factor that remains in the denominator gives an asymptote.

Common misunderstandings

  • Misunderstanding: “f(a) exists, so f is continuous at a.”

    Correct idea: The value is only the first of three conditions. The limit must also exist and equal f(a).

  • Misunderstanding: “The limit exists, so f is continuous.”

    Correct idea: The limit may differ from the value (a removable discontinuity), or the value may be missing.

  • Misunderstanding: Using the wrong rule at the join of a piecewise function.

    Correct idea: Read the inequality signs: with “x ≥ 1”, f(1) comes from the second rule, but the left-hand limit comes from the first.

  • Misunderstanding: “The IVT tells us where the root is.”

    Correct idea: It only guarantees that at least one root exists in the interval. Finding it needs further work (for example, repeated halving).

  • Misunderstanding: “1/x is discontinuous, so it is not a continuous function.”

    Correct idea: 1/x is continuous at every point of its domain (all x ≠ 0). At x = 0 it is not defined, so its graph breaks there (textbooks call this an infinite discontinuity). Always say where continuity holds or fails.

Keep in mind

  • limx→a f(x) = f(a)Continuity test
  • f ± g, f·g, f / g, f(g(x)) are continuousContinuity of combinations
  • f continuous on [a, b] and N strictly between f(a) and f(b) ⇒ f(c) = N for some c in (a, b)Intermediate Value Theorem (IVT)

Scope of this lesson

  • Continuity is treated for functions of one real variable. Uniform continuity and ε–δ proofs of continuity are beyond this course level.
  • The Extreme Value Theorem (a continuous function on [a, b] has a maximum and a minimum) is used in the “Extrema and curve shape” topic.

Next: Derivative as a rate. The derivative is the instantaneous rate of change: the limit of average rates, and the slope of the tangent line.

Original study text. Sources and credits.