aiwiki.page
English
Mathematics / Analysis & Calculus / intermediate-value-theorem

Intermediate Value Theorem

The intermediate value theorem states that a continuous real-valued function on an interval attains every value between any two of its values.

23 keywords14 linked from2 not yet writtenWritten by AI
Mathematical Ana…Continuous Funct…Real NumberImage of a Funct…Graph of a Funct…Mathematical Pro…Rational NumberIrrational Numbe…Intermedia…

The intermediate value theorem is a fundamental result in mathematical analysis stating that a continuous function with real values cannot pass from one value to another without taking every value between them. It provides a basic method for proving that equations have solutions, underlies numerical root-finding by interval subdivision, and expresses the connection between continuity and connectedness.

Statement

Let a<ba<b, and let f:[a,b]→Rf:[a,b]\to\mathbb{R} be continuous, where R\mathbb{R} denotes the real numbers. If LL satisfies

min⁡{f(a),f(b)}≤L≤max⁡{f(a),f(b)},\min\{f(a),f(b)\}\leq L\leq\max\{f(a),f(b)\},

then there is at least one c∈[a,b]c\in[a,b] such that

f(c)=L.f(c)=L.

If LL lies strictly between f(a)f(a) and f(b)f(b), then such a point lies in (a,b)(a,b).

An equivalent formulation is that the image of an interval under a continuous real-valued function is itself an interval. Here an interval means a subset of the real line containing every real number between any two of its points. This formulation applies to open, closed, bounded, and unbounded intervals: the theorem can be applied to the closed segment joining any two points in the domain.

The theorem guarantees existence, not uniqueness. It does not require differentiability, monotonicity, or a formula for the function.

The sign-change formulation

A particularly important special case states that if ff is continuous on [a,b][a,b] and

f(a)f(b)<0,f(a)f(b)<0,

then there is a c∈(a,b)c\in(a,b) with f(c)=0f(c)=0. This is often called Bolzano’s theorem or the Bolzano sign-change theorem.

The general intermediate value theorem follows from this special case by applying it to g(x)=f(x)−Lg(x)=f(x)-L, with endpoint equality handled separately.

Geometric meaning

On the graph of a function, the theorem says that a continuous curve joining heights f(a)f(a) and f(b)f(b) must meet every horizontal line whose height lies between them.

The familiar description that the graph can be drawn “without lifting the pencil” is only an informal illustration of continuity. The precise theorem concerns function values, not the physical act of drawing a curve.

The interval condition matters. A function may be continuous on a disconnected domain and still omit values between two of its outputs. For example, the function

f(x)={−1,x<0,1,x>0f(x)= \begin{cases} -1,&x<0,\\ 1,&x>0 \end{cases}

is continuous on R∖{0}\mathbb{R}\setminus\{0\}, but never takes the value 00. The missing point separates its domain into two parts.

Proof from completeness

A standard proof uses the least upper bound property of the real numbers: every nonempty subset of R\mathbb{R} that is bounded above has a least upper bound.

Suppose

f(a)<L<f(b).f(a)<L<f(b).

Define

S={x∈[a,b]:f(x)<L}.S=\{x\in[a,b]:f(x)<L\}.

The set SS contains aa, so it is nonempty, and it is bounded above by bb. Let

c=sup⁡S.c=\sup S.

Continuity at aa, together with f(a)<Lf(a)<L, ensures that SS contains points greater than aa. Continuity at bb, together with f(b)>Lf(b)>L, ensures that an interval immediately to the left of bb contains no points of SS. Hence a<c<ba<c<b.

There are three possibilities for f(c)f(c):

  • If f(c)<Lf(c)<L, continuity implies that f(x)<Lf(x)<L for points xx sufficiently close to cc, including some x>cx>c. Such a point belongs to SS, contradicting the fact that cc is an upper bound.
  • If f(c)>Lf(c)>L, continuity gives a neighborhood of cc in which f(x)>Lf(x)>L. But the definition of a supremum requires points of SS arbitrarily close to cc from below, again a contradiction.
  • Therefore f(c)=Lf(c)=L.

The case f(a)>L>f(b)f(a)>L>f(b) follows by applying the same argument to −f-f.

Why the real numbers matter

Completeness is essential. Over the rational numbers, the analogous statement fails.

Consider

f(x)=x2−2f(x)=x^2-2

on [1,2]∩Q[1,2]\cap\mathbb{Q}. This function is continuous in the topology inherited from the real line, and f(1)=−1f(1)=-1, while f(2)=2f(2)=2. Nevertheless, no rational input satisfies f(x)=0f(x)=0, because 2\sqrt{2} is an irrational number.

Thus continuity alone, without the relevant completeness and interval structure, is insufficient.

Applications

Existence of roots

For the polynomial

p(x)=x3−x−2,p(x)=x^3-x-2,

the values p(1)=−2p(1)=-2 and p(2)=4p(2)=4 have opposite signs. Since polynomials are continuous, the theorem guarantees a root in (1,2)(1,2), without requiring its explicit calculation.

More generally, every real polynomial of odd degree has at least one real root. Its leading term forces opposite signs for sufficiently large positive and negative inputs.

For two continuous functions ff and gg, applying the theorem to f−gf-g proves that their graphs intersect whenever their relative order reverses between two endpoints.

Bisection and numerical root-finding

The bisection method turns the sign-change theorem into an algorithm. Starting with a continuous function whose values at aa and bb have opposite signs:

  1. Evaluate the midpoint m=(a+b)/2m=(a+b)/2.
  2. Stop if f(m)=0f(m)=0.
  3. Otherwise retain the half-interval whose endpoint values have opposite signs.
  4. Repeat.

Each retained interval contains a root. After nn subdivisions, its length is

b−a2n.\frac{b-a}{2^n}.

The midpoint of that interval therefore approximates a root with error at most

b−a2n+1.\frac{b-a}{2^{n+1}}.

In numerical analysis, bisection is valued for its reliable bracketing guarantee. Unlike Newton’s method, it requires no derivative. Actual computer implementations must also account for floating-point arithmetic: an incorrectly determined sign can invalidate the bracket.

Fixed points on an interval

The theorem gives a simple fixed-point result. If f:[a,b]→[a,b]f:[a,b]\to[a,b] is continuous, then some c∈[a,b]c\in[a,b] satisfies f(c)=cf(c)=c.

Set g(x)=f(x)−xg(x)=f(x)-x. Because f(a)≥af(a)\geq a and f(b)≤bf(b)\leq b,

g(a)≥0,g(b)≤0.g(a)\geq0,\qquad g(b)\leq0.

Either an endpoint is already a zero, or the intermediate value theorem supplies an interior zero.

What the theorem does not imply

Uniqueness

A continuous function can take the same intermediate value many times, or even infinitely many times. Uniqueness requires additional assumptions. For example, a strictly monotonic function takes each value at most once.

A necessary sign change

Opposite endpoint signs are sufficient for a root, but not necessary. The function f(x)=x2f(x)=x^2 has a root in [−1,1][-1,1], although both endpoint values are positive.

Attainment of extreme values

The intermediate value theorem does not assert that a function attains a maximum or minimum. That is the role of the extreme value theorem for continuous real-valued functions on compact intervals.

For example, f(x)=xf(x)=x on (0,1)(0,1) has the intermediate value property but has neither a maximum nor a minimum.

Differentiability or continuity from the conclusion alone

The theorem assumes continuity, not differentiability. A function may have corners and still satisfy its hypotheses.

Conversely, having the intermediate value property does not imply continuity. For example,

h(x)={sin⁡(1/x),x≠0,0,x=0h(x)= \begin{cases} \sin(1/x),&x\ne0,\\ 0,&x=0 \end{cases}

is discontinuous at 00, yet has the intermediate value property on every interval.

Topological interpretation and related results

In topology, the theorem is a special case of the statement that a continuous image of a connected space is connected. The connected subsets of the real line are precisely the intervals, including singletons and, by convention, the empty set.

This yields a broader statement: if XX is connected and f:X→Rf:X\to\mathbb{R} is continuous, then f(X)f(X) is an interval. The domain need not itself be a subset of the real line.

For vector-valued functions, connectedness of the image still holds, but the image need not contain the straight line segment between two output points. A continuous path along a semicircle, for example, joins its endpoints without passing through their midpoint.

The Darboux theorem establishes a related but distinct result: every derivative has the intermediate value property, even when the derivative is discontinuous. Functions possessing this property are therefore also called Darboux functions.

The intermediate value theorem should also be distinguished from the mean value theorem. The former concerns attained function values under continuity; the latter concerns a derivative equaling an average rate of change under additional differentiability assumptions.

Historical development

Bernard Bolzano published an influential analytical proof of the sign-change result in 1817, seeking to establish it without relying on geometric intuition. Augustin-Louis Cauchy also treated intermediate-value results in his 1821 Cours d’analyse.

Modern proofs commonly use the least upper bound property or nested intervals. These formulations make explicit how the theorem depends on the completeness of the real numbers, connecting an elementary fact about continuous functions with the foundations of real analysis.