Find a course

Module 1: Limits and ContinuityLesson 4 of 1212 min

Continuity and the Intermediate Value Theorem

Test continuity with the three-part definition, classify discontinuities, make piecewise functions continuous and apply the intermediate value theorem.

Step 1 of 13Learn

Drawing without lifting your pencil

Informally, a function is continuous if you can draw its graph without lifting your pencil. Temperature over a day is continuous: it can't jump from 50°F to 70°F without passing through every value in between. The price of a parking garage, which jumps from $5 to $8 at the 2-hour mark, is not.

The precise definition uses limits. A function f is continuous at x = a if all three conditions hold:

  1. f(a) is defined (there's a point on the graph at x = a).
  2. lim (x → a) f(x) exists (both sides approach the same value).
  3. lim (x → a) f(x) = f(a) (the approach and the arrival agree).

If any condition fails, f has a discontinuity at a.

A function is continuous on an interval if it's continuous at every point in the interval. Most functions you know are continuous wherever they're defined:

  • Polynomials are continuous everywhere.
  • Rational functions are continuous everywhere except where the denominator is zero.
  • √x, eˣ, ln x, sin x and cos x are continuous on their domains.
  • Sums, products and compositions of continuous functions are continuous, and so are quotients where the denominator isn't zero.

This is the formal reason direct substitution works: for continuous functions, condition 3 says the limit is the function value.

Step 2 of 13Learn

Three kinds of discontinuity

When continuity fails, it fails in one of three typical ways.

Removable discontinuity (a hole). The limit exists, but f(a) is undefined or different from the limit. Example: (x² − 1)/(x − 1) at x = 1. It's called removable because redefining a single point, f(1) = 2, would fix it.

Jump discontinuity. The left- and right-hand limits both exist but are different, so the graph jumps. Example: the parking garage price, or the piecewise function x + 1 (for x < 2) and x² (for x ≥ 2). No single-point fix can repair a jump.

Infinite discontinuity. The function grows without bound near a, so there's a vertical asymptote. Example: 1/x at x = 0, or tan x at x = π/2.

There are stranger cases, like sin(1/x) near 0, which oscillates without settling, but these three cover almost every problem you'll meet.

Classifying a rational function's discontinuities: find where the denominator is zero. Then factor and cancel. If the factor cancels completely, it's a hole (removable). If it remains in the denominator, it's a vertical asymptote (infinite).

For (x − 2)/(x² − 4) = (x − 2)/((x − 2)(x + 2)) = 1/(x + 2): there's a hole at x = 2 and a vertical asymptote at x = −2.

Step 3 of 13Practice · Sort into groups

Classify each discontinuity.

Tap an item, then tap its group (or drag it there).

Step 4 of 13Compare

Three kinds of discontinuity

AspectRemovable (hole)JumpInfinite
Two-sided limitExistsDoes not existDoes not exist
One-sided limitsEqualFinite but differentAt least one is ±∞
Typical example(x2 − 4)/(x − 2) at 2A step price at 2 hours1/(x − 5) at 5
Can redefining f(a) fix it?YesNoNo

Step 5 of 13Learn

Making a piecewise function continuous

A common problem asks you to choose a constant so that a piecewise function has no break.

Example. Find k so that f is continuous everywhere:

f(x) = kx + 1 for x < 2, and f(x) = x² for x ≥ 2.

Each piece is a polynomial, so it's continuous on its own. The only possible trouble is at the seam, x = 2. For continuity there, the two pieces must meet:

  • Left-hand limit: k(2) + 1 = 2k + 1
  • Right-hand limit and f(2): 2² = 4

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

With k = 1.5, the line 1.5x + 1 reaches height 4 exactly where the parabola starts, and the graph flows through without a gap.

The strategy works for any piecewise function: check each piece on its own interval, then set the one-sided limits equal at each boundary and solve. If there are two unknown constants, you'll get two equations from two boundaries and solve them as a system.

Remember that continuity at the seam also requires f(a) to match. Usually one piece includes the boundary point (with ≤ or ≥), so its value at a is automatically the right-hand or left-hand limit.

Step 6 of 13Try the calculator

Close the gap: kx + 1 for x < 2, x2 for x ≥ 2

The left piece arrives at 2k + 1, the right piece starts at 4. Change k until the gap is 0, and check that it matches the worked example.

Left-hand limit 2k + 1
3
Right-hand limit (and f(2))
4
Gap (0 means continuous)
1

Step 7 of 13Practice · Work it out

Find k so that f is continuous at x = 3, where f(x) = x² − k for x < 3 and f(x) = 2x + 1 for x ≥ 3.

Step 8 of 13Learn

The intermediate value theorem

Continuity has a powerful consequence.

Intermediate value theorem (IVT). If f is continuous on the closed interval [a, b] and N is any number between f(a) and f(b), then there is at least one c in (a, b) with f(c) = N.

In plain words: a continuous function can't get from one height to another without passing through every height in between. If you hike from 1,000 m to 3,000 m elevation, at some point you were at exactly 2,000 m.

Finding roots. Does x³ + x − 1 = 0 have a solution between 0 and 1? Let f(x) = x³ + x − 1, a polynomial, so it's continuous.

  • f(0) = −1 (negative)
  • f(1) = 1 (positive)

Since 0 is between −1 and 1, the IVT guarantees some c in (0, 1) with f(c) = 0. Check the midpoint: f(0.5) = 0.125 + 0.5 − 1 = −0.375, still negative, so the root is in (0.5, 1). Halving the interval again and again, the bisection method, pins it down: c ≈ 0.682.

The IVT tells you a solution exists, not where it is or how many there are. And the continuity condition matters: f(x) = 1/x has f(−1) = −1 and f(1) = 1, yet 1/x is never 0. The asymptote at x = 0 lets it skip from negative to positive.

Step 9 of 13Practice · Chart

f(x) = x3 + x − 1 on [0, 1]

Tap the first x-value where f(x) is positive.

Tap the point that answers the question, then press Check.

f(x) = x^3 + x − 1 on [0, 1]Line chart with 6 categories: 0: -1; 0.2: -0.792; 0.4: -0.536; 0.6: -0.184; 0.8: 0.312; 1: 1.-1-0.500.51f(x)00.20.40.60.81x
f(x) = x3 + x − 1 on [0, 1]
xf(x)
0-1
0.2-0.792
0.4-0.536
0.6-0.184
0.80.312
11

Step 10 of 13Practice · True or false

Since f(x) = 1/x satisfies f(−1) < 0 < f(1), the intermediate value theorem guarantees that 1/x = 0 for some x between −1 and 1.

Step 11 of 13Note

Step 12 of 13Practice · Choose one

Where is f(x) = (x + 2)/(x² − 9) discontinuous?

Step 13 of 13Practice · Select all that apply

Which functions are continuous for every real number x? Select all that apply.

Select all that apply.