Tutorials › Real Analysis › The Intermediate Value Theorem

Connectedness · Tutorial 311 of 1000

The Intermediate Value Theorem

See why a continuous function on an interval takes every value between two of its values, and how this guarantees roots and unique solutions in useful cases.

Intermediate 9 min read

What You'll Learn

  • State the Intermediate Value Theorem for an arbitrary interval
  • Apply the theorem when the domain is open or unbounded
  • Deduce root existence from a change of sign
  • Prove uniqueness of an intermediate value for strictly monotone functions
  • Distinguish guaranteed existence from an explicit formula for a solution

From Connected Intervals to Intermediate Values

The previous tutorial established that every interval in \(\mathbb{R}\) is connected. This topological fact has a direct consequence for continuous functions: as the input moves through an interval, the function cannot skip a value lying between two values it attains. The Intermediate Value Theorem gives this conclusion in a familiar form and is one of the most useful ways to prove that an equation has a solution.

The theorem concerns values at two points of the domain, not necessarily values at the endpoints of the whole interval. This distinction matters when the domain is open or unbounded. If \(u\) and \(v\) belong to an interval, the segment between them is still contained in that interval, so the theorem applies to those two points even if the interval has no included endpoints.

Theorem (Intermediate Value Theorem): Let \(J\subseteq\mathbb{R}\) be an interval, and let \(f:J\to\mathbb{R}\) be continuous. If \(u,v\in J\) and \(y\) lies between \(f(u)\) and \(f(v)\), inclusive, then there exists \(c\in J\) such that \(f(c)=y\).

Here, “\(y\) lies between \(f(u)\) and \(f(v)\), inclusive” means either \(f(u)\leq y\leq f(v)\) or \(f(v)\leq y\leq f(u)\). The conclusion includes the endpoint cases: if \(y=f(u)\), take \(c=u\), and if \(y=f(v)\), take \(c=v\). The substantive case is when \(y\) is strictly between the two values.

This interval formulation follows from the Intermediate-Value Property on a Connected Set established earlier in the course. An interval \(J\) is connected, and \(f\) is continuous on \(J\), so that result applies directly to \(u\), \(v\), and \(y\). Equivalently, the image of the segment between \(u\) and \(v\) is connected; connected subsets of the real line are intervals, so that image cannot omit an intermediate value.

Worked Example: A Square Root Exists

Consider \(f(x)=x^2-3\) on \([1,2]\). This is continuous, and direct substitution gives \(f(1)=1^2-3=-2\) and \(f(2)=2^2-3=1\). The value \(0\) lies between \(-2\) and \(1\), so the Intermediate Value Theorem gives a \(c\in[1,2]\) with \(f(c)=0\). Substituting the formula for \(f\), this means \(c^2-3=0\), or \(c^2=3\).

Thus there is a positive real number whose square is \(3\). The theorem guarantees its existence without requiring an explicit expression for \(c\). It also locates the solution in \([1,2]\); in fact, because \(c^2=3\), it cannot equal either endpoint, since \(1^2\ne3\) and \(2^2\ne3\).

The Domain Need Not Have Endpoints

A common misreading is to think that the theorem requires a continuous function on a closed interval \([a,b]\). That is a convenient and frequent special case, but the theorem only needs two points \(u,v\) in the domain and an interval containing them. The interval property guarantees that every point between \(u\) and \(v\) is in the domain. Continuity on that interval then gives the intermediate value.

Worked Example: Using Points Inside an Open Interval

Let \(f(x)=x^2\) on \(J=(-1,2)\). The domain is open, so neither endpoint belongs to it. Choose \(u=0\) and \(v=3/2\), both of which do belong to \(J\). Their function values are \(f(0)=0^2=0\) and \(f(3/2)=(3/2)^2=9/4\). Since \(1\) lies between \(0\) and \(9/4\), the theorem gives some \(c\in(-1,2)\) such that \(c^2=1\).

In this particular example, \(c=1\) is an explicit solution. Applying the theorem to the restriction of \(f\) to \([0,3/2]\) guarantees at least one solution between the selected inputs \(0\) and \(3/2\), so it gives more precise location information here: a solution can be chosen in \([0,3/2]\). No claim about the behavior at \(-1\) or \(2\) is needed, because those points are not in the domain.

The same reasoning works on unbounded intervals. For example, if a continuous function is defined on \((4,\infty)\), any two of its domain points determine a closed segment contained in \((4,\infty)\). The theorem is applied to those points, not to an endpoint at infinity. There is no need to assign a function value at infinity or to assume that the function has a limit there.

A Sign Change Guarantees a Root

The most common application takes the target value to be zero. A function that is negative at one point and positive at another must vanish somewhere between them. The statement remains true if one endpoint value is already zero, in which case that endpoint itself is a root.

Theorem (Sign-Change Root Theorem): Let \(J\subseteq\mathbb{R}\) be an interval, let \(f:J\to\mathbb{R}\) be continuous, and let \(a,b\in J\) with \(a<b\). If \(f(a)f(b)\leq0\), then there is \(c\in[a,b]\) such that \(f(c)=0\).

Proof. If \(f(a)=0\), choose \(c=a\). If \(f(b)=0\), choose \(c=b\). Otherwise, \(f(a)\) and \(f(b)\) are both nonzero. The condition \(f(a)f(b)\leq0\) then forces them to have opposite signs: either \(f(a)<0<f(b)\) or \(f(b)<0<f(a)\). In either case, \(0\) lies between \(f(a)\) and \(f(b)\). By the Intermediate Value Theorem applied to the restriction of \(f\) to \([a,b]\subseteq J\), there is \(c\in[a,b]\) with \(f(c)=0\). Since \([a,b]\subseteq J\), this point belongs to the domain. \(\square\)

Worked Example: Locating a Root by Opposite Signs

Let \(f(x)=x^3-2\) on \([1,2]\). A polynomial is continuous, and \(f(1)=1^3-2=-1\), while \(f(2)=2^3-2=6\). Their product is \((-1)(6)=-6<0\). The Sign-Change Root Theorem therefore gives \(c\in[1,2]\) such that \(c^3-2=0\), so \(c^3=2\).

This proves that a real cube root of \(2\) exists between \(1\) and \(2\). The theorem does not by itself show that this root is the only one, nor does it give a decimal approximation. Those are separate questions; the conclusion here is existence in a specified interval.

When the Intermediate Value Is Unique

The Intermediate Value Theorem gives existence, but it does not generally give uniqueness. For example, the function \(x\mapsto x^2\) on \([-2,2]\) takes the value \(1\) at both \(-1\) and \(1\). A useful additional hypothesis is strict monotonicity. A strictly increasing or strictly decreasing function never takes the same value at two distinct points, so an intermediate value can occur at most once.

Theorem (Unique Intermediate Value for a Strictly Monotone Function): Let \(J\subseteq\mathbb{R}\) be an interval, and let \(f:J\to\mathbb{R}\) be continuous and strictly monotone. For any \(u,v\in J\) and any \(y\) between \(f(u)\) and \(f(v)\), there is exactly one \(c\) between \(u\) and \(v\), inclusive, such that \(f(c)=y\).

Proof. Existence follows from the Intermediate Value Theorem applied to the restriction of \(f\) to the closed interval with endpoints \(u\) and \(v\), which lies in \(J\). For uniqueness, suppose \(c_1\) and \(c_2\) are two points between \(u\) and \(v\) with \(f(c_1)=y=f(c_2)\). If \(c_1\ne c_2\), one of them is smaller; say \(c_1<c_2\). If \(f\) is strictly increasing, then \(f(c_1)<f(c_2)\), contradicting \(f(c_1)=f(c_2)\). If \(f\) is strictly decreasing, then \(f(c_1)>f(c_2)\), giving the same contradiction. Hence \(c_1=c_2\), and the solution is unique. \(\square\)

Worked Example: Existence and Uniqueness on a Closed Interval

Consider \(f(x)=x^3+x\) on \([0,2]\), and ask whether \(f(x)=5\) has a solution there. First, \(f(1)=1^3+1=2\) and \(f(2)=2^3+2=10\), so \(5\) lies between these values. Continuity and the Intermediate Value Theorem give at least one \(c\in[1,2]\) such that \(c^3+c=5\).

To check uniqueness, take any \(x,y\in[0,2]\) with \(x<y\). Then \(f(y)-f(x)=y^3+y-(x^3+x)=(y-x)(y^2+xy+x^2+1)\). Here \(y-x>0\), and \(y^2+xy+x^2+1>0\), so \(f(y)-f(x)>0\). Thus \(f\) is strictly increasing on \([0,2]\). The unique-intermediate-value result now shows that the solution \(c\in[1,2]\) is unique. This argument proves existence and uniqueness without solving the cubic explicitly.

What the Theorem Does—and Does Not—Tell You

The theorem is a qualitative existence tool. Its conclusion is that a point with a specified function value exists; it does not usually identify that point or calculate it. For equations that cannot be solved exactly, this can still be decisive. If continuity and opposite endpoint signs have been verified, one has a rigorous existence proof even when a numerical method is needed to estimate the root.

The hypotheses must be checked. Continuity cannot be omitted: define \(g(x)=-1\) for \(x<0\) and \(g(x)=1\) for \(x\geq0\) on \([-1,1]\). Then \(g(-1)=-1\) and \(g(1)=1\), but \(g\) never equals \(0\); the jump at \(0\) prevents continuity. Also, the interval condition matters. A continuous function on a disconnected domain may take values on both sides of a target while never taking that target. For instance, \(h(x)=x\) on \([-2,-1]\cup[1,2]\) takes both negative and positive values but never equals \(0\), because \(0\) is outside its domain.

When applying the theorem, a reliable sequence of checks is: identify an interval contained in the domain, verify continuity there, calculate the two function values, and confirm that the target lies between them. If uniqueness is also required, establish an additional property such as strict monotonicity; it is not part of the Intermediate Value Theorem alone.

Check Your Understanding

Use the Intermediate Value Theorem and its consequences to answer the following questions.

  1. Why can the theorem be applied to two points in an open interval even though the interval’s endpoints are not included?
  2. A continuous function satisfies \(f(a)=4\) and \(f(b)=-3\), with \(a<b\) and \([a,b]\) in its domain. What does the theorem guarantee about the value \(0\)?
  3. In the Sign-Change Root Theorem, why does \(f(a)f(b)<0\) imply that \(0\) lies between \(f(a)\) and \(f(b)\)?
  4. Which hypothesis in the unique-intermediate-value result rules out two different points having the same function value?
  5. Give one reason why a sign change alone is not enough to conclude that a function has a root.