Chalk−1

Math · Calculus I · Concept

Continuity and the Intermediate Value Theorem

A function is continuous at x=a when f⁡(a) is defined, the limit of f⁡(x) as x approaches a exists, and the two are equal. The graph of a continuous function has no hole, jump or vertical asymptote on any interval where it is defined. On a closed interval, continuity gives the Intermediate Value Theorem (IVT). The function takes every value between f⁡(a) and f⁡(b), which proves that an equation has a solution.

Try one — Chalk checks each line

A concrete case

A fee that jumps

A parking garage charges $4 for a stay of up to 1 hour and $7 for a stay of more than 1 hour, up to 2 hours. A stay of 59 minutes costs $4, and so does a stay of exactly 60 minutes. A stay of 61 minutes costs $7.

On a graph of the fee against time, the line runs flat at 4 up to 1 hour and then starts again at 7. Write F⁢(t) for the fee in dollars after t hours. As t approaches 1 from the left, F⁢(t) stays at 4. From the right it stays at 7. You cannot draw this graph without lifting your pencil, and that break is what “not continuous” means.

Compare the temperature outside. If it is 18 °⁢C at noon and 24 °⁢C at 3 p.m., then at some moment in between it was exactly 21 °⁢C. Temperature changes without jumps, so it cannot skip a value. That guarantee is the Intermediate Value Theorem, the second half of this lesson.

limt→1−F⁢(t)=4,limt→1+F⁢(t)=7
limt→1−F⁢(t)=4limt→1+F⁢(t)=7
The garage fee near 1 hour
StayFee
30 minutes$4
59 minutes$4
60 minutes$4
61 minutes$7
90 minutes$7

The rule

Three conditions

f is continuous at x=a when three things hold. f⁡(a) is defined. The limit of f⁡(x) as x approaches a exists. The limit equals f⁡(a).

Each condition can fail on its own, so check them in order. The garage fee has F⁢(1)=4, so the first condition holds. Its one-sided limits are 4 and 7, so the second fails, and F is not continuous at t=1.

When a condition fails, the way it fails names the discontinuity.

limx→af⁡(x)=f⁡(a)
Four kinds of discontinuity
KindWhat happensExample
RemovableThe limit exists, but f⁡(a) is missing or different. The graph has a hole.(x2−9)⁢/⁢(x−3) at x=3
JumpThe one-sided limits exist but differ.∣⁢x⁢∣⁢/⁢x at x=0
InfiniteA one-sided limit is infinite. The graph has a vertical asymptote.1⁢/⁢(x−3)2 at x=3
OscillatingThe values swing forever and approach no single number.sin(1⁢/⁢x) at x=0

Continuous functions and intervals

Most functions you meet are continuous wherever they are defined. That covers polynomials, rational functions, roots, exponentials, logarithms and the trig functions. Sums, products and compositions of continuous functions are continuous, and so are quotients wherever the denominator is not 0.

f is continuous on an open interval when it is continuous at every point of it. On a closed interval [a,b], each endpoint has only one side. f needs its limit from the right at a to equal f⁡(a), and its limit from the left at b to equal f⁡(b).

A piecewise function is usually continuous on each piece, and only the break points need checking. At a break point, the left piece and the right piece must reach the same height, and that height must be the function’s value.

limx→a+f⁡(x)=f⁡(a),limx→b−f⁡(x)=f⁡(b)
limx→a+f⁡(x)=f⁡(a)limx→b−f⁡(x)=f⁡(b)

The Intermediate Value Theorem

If f is continuous on [a,b] and N is any number between f⁡(a) and f⁡(b), then f⁡(c)=N for at least one c in (a,b). A continuous graph cannot get from one height to another without passing through every height in between.

The most common use takes N=0. If f⁡(a) and f⁡(b) have opposite signs, the equation f⁡(x)=0 has a solution between a and b.

f⁡(a)<N<f⁡(b)⟹f⁡(c)=N for some ⁢c in (a,b)
f⁡(a)<N<f⁡(b)⟹f⁡(c)=Nfor some ⁢c in (a,b)

Why it works

Why these conditions, and why the theorem holds

The three conditions say exactly that the graph has no break at a. If f⁡(a) is missing, there is a hole. If the limit is missing, the two sides do not meet. If the limit is not f⁡(a), the point sits off the curve. With all three, the values of f near x=a crowd in on f⁡(a), and that is what an unbroken graph means.

The Intermediate Value Theorem follows. Say f is continuous on [0,1], with f⁡(0)=−1 and f⁡(1)=1. Check the midpoint and keep the half whose ends have opposite signs. Each halving keeps a sign change inside an interval half as long, and the intervals close in on one point c.

The left ends of those intervals carry negative values, and they approach c. By continuity f⁡(c) is their limit, so f⁡(c) cannot be positive. The right ends carry positive values that also approach c, so f⁡(c) cannot be negative. f⁡(c) must be 0.

The method

Checking continuity at a point

For a piecewise function, check each break point with these four steps. The table follows f⁡(x)=x2+1 for x<2 and f⁡(x)=3⁢x−1 for x≥2.

Continuity at a break point
StepWhat to doFor the function at x=2
1Find f⁡(a) from the piece that includes af⁡(2) =3⁢(2)−1 =5
2Find the left limit from the left piecex2+1 approaches 5
3Find the right limit from the right piece3⁢x−1 approaches 5
4Continuous only if all three agree5, 5 and 5, so continuous

Using the theorem to show a solution exists

To show an equation has a solution in an interval, follow these steps. The table works through cosx=x on [0,1], in radians.

To pin the solution down further, use bisection. Work out f at the midpoint and keep the half where the sign changes. Each halving makes the interval half as long, about one more binary digit of the answer.

The Intermediate Value Theorem as a method
StepWhat to doFor cosx =x on [0,1]
1Move everything to one side, g⁡(x)=0g⁡(x) =cosx−x
2Check that g is continuous on [a,b]cosx and x are continuous
3Find g⁡(a) and g⁡(b)g⁡(0)=1, g⁡(1) ≈−0.46
4Opposite signs mean a solution in (a,b)cosc =c for some c in (0,1)

Where it breaks

Where it breaks

The theorem needs continuity on the whole closed interval. 1⁢/⁢x is −1 at x=−1 and 1 at x=1, but it is never 0. The break at x=0 lets it jump over 0.

It promises at least one solution, not exactly one, and it gives no formula for c. The cubic x3−x is −6 at x=−2 and 6 at x=2, and it is 0 at −1, 0 and 1.

A sign change is enough, but it is not needed. x2−1 is positive at −2 and at 2, yet it is 0 at −1 and 1. Matching signs at the ends tell you nothing.

Continuity is not smoothness. ∣⁢x⁢∣ is continuous at 0, because its graph has no break, but it has a corner there and no derivative. A derivative asks for more than continuity.

One case trips up the definition itself. 1⁢/⁢x is continuous on its domain, so it is called a continuous function, even though its graph comes in two pieces. At x=0 itself it is not continuous, because 1⁢/0 is undefined, and the asymptote there is an infinite discontinuity.

Check your answer

Check your answer

Each continuity claim, a value that matches, a graph without a break, a root inside an interval, can be tested on its own.

Work out each piece at the break point. Both pieces should give the same number, and it should match the value the definition gives there. For the garage, 4 from the left and 7 from the right do not match.

Graph it. A jump or an asymptote usually shows, but a coarse plot can hide a hole. A root the theorem promises shows as a crossing of the x-axis.

Put a trapped root back in. If bisection has trapped the root of x3+x−1 in (0.625,0.6875), then f⁡(0.68) should be close to 0, and it is about −0.0056.

To have Chalk check the work, write the function on the first row of a Math box and each value below it, as f⁡(x)=x3+x−1 and then f⁡(0)=−1. The Checker puts the input into the function and marks the row ✓, or ✗ with “That isn’t f(0). Recheck the substitution.” A one-sided limit row, such as the limit of x2+1 as x→2− followed by 5, is checked too. To find a constant that makes the pieces meet, write the equation and its solution on the row below.

f is continuous on [0,4], with f⁡(0)=1 and f⁡(4)=9. Must f equal 5 somewhere in between? Must it equal 10?

5, yes. 10, not necessarily. 5 lies between 1 and 9, so the Intermediate Value Theorem promises some c with f⁡(c)=5. 10 lies outside, so the theorem says nothing. f⁡(x)=2⁢x+1 never reaches 10 on [0,4], while a curve that climbs past 10 and comes back down to 9 does. The theorem’s silence is not a no.

Why the theorem is true, and where it leads

On the rational numbers alone, the theorem fails. x2−2 is −1 at x=1 and 2 at x=2, but no fraction has a square of exactly 2. Bisection closes in on 2, which is not a fraction. The theorem holds because the real numbers have no such gaps, a property called completeness.

Continuity has a precise form, like the limit. For every ε>0 there is a δ>0 such that ∣⁢x−a⁢∣<δ gives ∣⁢f⁡(x)−f⁡(a)⁢∣<ε. Unlike the limit, x=a is allowed here, because f⁡(a) itself must be right.

The Extreme Value Theorem is the theorem’s companion. A continuous function on a closed interval [a,b] reaches a largest and a smallest value there. Optimization rests on it, and so does Rolle’s theorem, and through it the Mean Value Theorem.

∣⁢x−a⁢∣<δ⟹∣⁢f⁡(x)−f⁡(a)⁢∣<ε

Common mistakes

  • Checking only that the limit exists. A removable hole has a limit but no matching value, and (x2−9)⁢/⁢(x−3) is not continuous at 3 even though its limit there is 6.
  • Checking one side at a break point. The garage fee matches its value from the left, 4, but not from the right, 7. Both one-sided limits must equal the function’s value.
  • Applying the Intermediate Value Theorem across a break. 1⁢/⁢x changes sign on [−1,1] but is never 0. Check that f is continuous on the whole closed interval first.
  • Reading the theorem as giving exactly one solution. It guarantees at least one, and x3−x changes sign on [−2,2] with three zeros between.
  • Deciding there is no root because f⁡(a) and f⁡(b) have the same sign. x2−1 is positive at −2 and at 2 and is 0 twice in between. The theorem says nothing in that case.

Key terms

Continuity
A function is continuous at a point when it is defined there and its limit there equals that value, so the graph has no hole, jump or break. On an interval this must hold at every point, using one-sided limits at closed ends.
Discontinuity
A point where a function isn’t continuous: a hole, a jump, a vertical asymptote or an endless oscillation. A plot with too few points can hide one or seem to show one that isn’t there.
Removable discontinuity
A hole in a graph: the function has a limit at the point but is undefined there or has a different value. Redefining the value to match the limit removes the hole.
Jump discontinuity
A point where the left-hand and right-hand limits both exist but are different, so the graph jumps. Changing the value at the point can’t fix it.
Vertical asymptote
A vertical line x=a that the graph approaches as the function’s values grow without bound near a, often where a denominator is zero. The graph is not joined across it.
One-sided limit
The limit as x approaches a from the left only (x→a−) or from the right only (x→a+). The two-sided limit exists exactly when both one-sided limits exist and are equal.
Intermediate Value Theorem
If f is continuous on [a,b] and N is any number between f⁡(a) and f⁡(b), then f⁡(c)=N for at least one c in (a,b). It guarantees that a solution exists without saying where.
Bisection
Finding a root by repeatedly halving an interval where a continuous function changes sign, keeping the half where the sign change is. Each step halves the uncertainty.

Work through an example

Find the value of k that makes f continuous at x=2, where f⁡(x)=x2+k for x<2 and f⁡(x)=3⁢x−1 for x≥2.

Make a piecewise function continuous →

Trap a root with the Intermediate Value Theorem →

Classify three kinds of discontinuity →

Sources and scope

Authored study material. Tool results depend on the stated inputs and model assumptions.

After reading

Try it, then study it

Open the example in its tool to check steps or change values, then review the key terms as flashcards.

See the pieces meet in Graph Solve for k in Math Check the left limit in Math Study the 8 key terms Open worked example on a board Intermediate Value Theorem in Math Reference

Your existing work stays on this device. Examples open as editable copies.