Tutorials › Calculus I › Why Every Intermediate Output Must Occur

Continuity and the Intermediate Value Theorem · Tutorial 284 of 1495

Why Every Intermediate Output Must Occur

See why continuity prevents a graph from skipping any output between its values at the ends of an interval.

Beginner 8 min read

What You'll Learn

  • State the Intermediate Value Theorem in terms of endpoint outputs.
  • Interpret intermediate outputs as horizontal levels the graph must meet.
  • Distinguish values between the inputs from values between the outputs.
  • Check continuity and the interval before applying the theorem.
  • Work exact examples where the guaranteed input can be identified.

From Endpoint Outputs to Every Value Between

A continuous function can rise, fall, or turn around. But on an interval, it cannot move from one output level to another while skipping a level in between. This is the central interpretation of the Intermediate Value Theorem: if the function is continuous on a closed interval, then every value between its endpoint outputs occurs somewhere on that interval.

To use the theorem, focus on the function’s outputs at the endpoints—not merely on the endpoint inputs. If \(f(a)=2\) and \(f(b)=7\), for example, the theorem guarantees that each value from \(2\) to \(7\) is attained, provided \(f\) is continuous on \([a,b]\).

The key idea: A continuous graph drawn across an interval cannot pass from below a horizontal level to above it without meeting that level.

The Intermediate Value Theorem

Continuity on a closed interval means that \(f\) is continuous at every point of \([a,b]\), including its endpoints in the one-sided sense appropriate to the domain. The Intermediate Value Theorem then connects the endpoint outputs to all the outputs between them.

Theorem: Suppose \(f\) is continuous on \([a,b]\). If \(y\) is any number between \(f(a)\) and \(f(b)\), inclusive, then there exists at least one \(c\in[a,b]\) such that \(f(c)=y\). If \(y\) is strictly between \(f(a)\) and \(f(b)\), then \(c\) can be taken in \((a,b)\).

“Between” allows either order of the endpoint outputs. If \(f(a)<f(b)\), the possible target values satisfy \(f(a)\le y\le f(b)\). If \(f(b)<f(a)\), they satisfy \(f(b)\le y\le f(a)\). The function does not need to be increasing or decreasing, and the theorem does not say that the input \(c\) is unique.

The conclusion follows directly from the theorem’s hypotheses: check continuity on the whole closed interval, calculate the two endpoint outputs, and verify that the desired \(y\) lies between them. The theorem then supplies an input \(c\) in the interval with output \(y\). If \(y\) equals an endpoint output, an endpoint itself may provide that input; a target strictly between the outputs must be reached at an interior point.

What the Graph Tells You

Imagine the graph of \(y=f(x)\) drawn from \(x=a\) to \(x=b\). The points at the ends have heights \(f(a)\) and \(f(b)\). Choose a horizontal line \(y=y_0\) whose height lies between those two heights. The theorem says that the graph meets this horizontal line at some point with input \(c\in[a,b]\). At that point, \(f(c)=y_0\).

This picture is a useful interpretation, not a replacement for checking the conditions. A gap, jump, or break can allow a graph to miss a level between its endpoint heights. The guarantee applies when the function is continuous on the entire interval, not just at its endpoints or at most points.

The theorem also does not require the graph to travel directly from one endpoint to the other. It may oscillate or turn back. That can make a particular output occur more than once, but the theorem only guarantees that it occurs at least once.

Worked Example: A Straight-Line Graph

Let \(f(x)=2x+1\) on \([0,3]\). Does \(f\) attain the output \(4\) on this interval?

First, \(f\) is a linear function, so it is continuous on \([0,3]\). Calculate the endpoint outputs:

$$ f(0)=2(0)+1=1, \qquad f(3)=2(3)+1=7. $$

The target \(4\) lies between \(1\) and \(7\), since \(1<4<7\). The Intermediate Value Theorem guarantees some \(c\in(0,3)\) with \(f(c)=4\). In this example we can find it by solving the equation:

$$ 2c+1=4 \quad\Longrightarrow\quad 2c=3 \quad\Longrightarrow\quad c=\frac{3}{2}. $$

Check that this input is in the interval and gives the target output:

$$ 0<\frac{3}{2}<3, \qquad f\left(\frac{3}{2}\right) =2\left(\frac{3}{2}\right)+1 =3+1 =4. $$

The graph meets the horizontal line \(y=4\) at input \(x=\frac{3}{2}\), exactly as the theorem guarantees.

Finding a Guaranteed Output Does Not Require Solving

The theorem is useful even when the input \(c\) cannot be found by simple algebra. Its conclusion is an existence statement: it guarantees that at least one suitable input lies in the interval. To apply it, you do not need a formula for that input.

When an exact input is easy to calculate, substituting it back checks the result. When it is not easy to calculate, the guarantee still follows once continuity and the endpoint-output comparison have been verified. The theorem gives existence, not necessarily a method for locating the input exactly.

Worked Example: A Value Between the Outputs of a Square Function

Let \(f(x)=x^2\) on \([0,2]\). Show that the function attains the output \(2\).

The function \(x^2\) is continuous on \([0,2]\). Its endpoint outputs are

$$ f(0)=0^2=0, \qquad f(2)=2^2=4. $$

Since \(0<2<4\), the target output is strictly between the endpoint outputs. The theorem guarantees a \(c\in(0,2)\) such that \(c^2=2\). Solving this equation gives \(c=\sqrt{2}\) or \(c=-\sqrt{2}\). Only the positive value belongs to \([0,2]\): indeed, \(1<\sqrt{2}<2\), whereas \(-\sqrt{2}<0\).

Check the selected input and substitute it into the function:

$$ 0<\sqrt{2}<2, \qquad f(\sqrt{2})=(\sqrt{2})^2=2. $$

Thus \(x=\sqrt{2}\) is in the interval and gives the required output. The theorem guarantees that an input exists; solving the equation identifies one in this particular example.

A Continuous Function Can Turn Around

Do not picture the theorem as a claim that the function always moves in one direction. A graph can turn around and still attain every level between its endpoint heights. Continuity, rather than monotonicity, is the key condition.

Worked Example: A Function That Turns Around

Consider \(f(x)=x^2-2x\) on \([0,3]\). Show that the function attains the output \(1\), even though its graph turns around.

This polynomial is continuous on \([0,3]\). Calculate its endpoint outputs:

$$ f(0)=0^2-2(0)=0, \qquad f(3)=3^2-2(3)=9-6=3. $$

The target \(1\) is between the endpoint outputs, because \(0<1<3\). The theorem therefore guarantees at least one \(c\in(0,3)\) with \(f(c)=1\). To identify such an input in this example, solve:

$$ c^2-2c=1 \quad\Longrightarrow\quad c^2-2c-1=0. $$

Using the quadratic formula gives

$$ c=\frac{2\pm\sqrt{(-2)^2-4(1)(-1)}}{2} =\frac{2\pm\sqrt{8}}{2} =1\pm\sqrt{2}. $$

Since \(1<\sqrt{2}<2\), the value \(1+\sqrt{2}\) is greater than \(0\) and less than \(3\). The other value, \(1-\sqrt{2}\), is less than \(0\), so it lies outside the interval. Check the input in the interval by substitution:

$$ f(1+\sqrt{2}) =(1+\sqrt{2})^2-2(1+\sqrt{2}) =3+2\sqrt{2}-2-2\sqrt{2} =1. $$

Thus \(c=1+\sqrt{2}\) is a valid input in \([0,3]\) giving output \(1\). The turning shape of the graph does not prevent it from attaining the target.

A Common Mistake: Comparing the Wrong Numbers

The theorem compares the target output with \(f(a)\) and \(f(b)\). It does not compare the target with the inputs \(a\) and \(b\). Confusing those pairs can produce an invalid conclusion.

Pitfall: For \(f(x)=x^2+1\) on \([-2,1]\), it is wrong to say, “The target \(0\) lies between the endpoint inputs \(-2\) and \(1\), so the theorem guarantees \(f(c)=0\).” The theorem requires a comparison with the endpoint outputs.

Calculate those outputs instead:

$$ f(-2)=(-2)^2+1=5, \qquad f(1)=1^2+1=2. $$

The target \(0\) is not between \(2\) and \(5\). Therefore, the Intermediate Value Theorem does not guarantee an input with output \(0\). In fact, for every real \(x\), \(x^2\ge 0\), so \(x^2+1\ge 1\); there is no such input at all.

A reliable check is to write down the endpoint outputs before comparing them with the target. Also verify that the function is continuous on the entire closed interval. Without both checks, the theorem cannot be applied.

What the Theorem Does and Does Not Say

  • It guarantees an attained output: every value between the endpoint outputs occurs somewhere on the interval.
  • It requires continuity on the whole closed interval: continuity only at the endpoints is not enough.
  • It allows either endpoint-output order: the output at \(b\) may be larger or smaller than the output at \(a\).
  • It guarantees existence, not uniqueness: there may be more than one input with the same output.
  • It does not assert that every real number is attained: the guarantee concerns only values between \(f(a)\) and \(f(b)\).

In applications, this is a way to establish that a continuous model must pass through a specified level. In a graph, it guarantees an intersection with a horizontal line whose height is between the endpoint heights. The key work is checking the hypotheses and comparing the correct output values.

Check Your Understanding

For each question, identify the interval, the endpoint outputs, and whether the Intermediate Value Theorem applies.

  1. If \(f\) is continuous on \([a,b]\), with \(f(a)=6\) and \(f(b)=2\), which outputs does the theorem guarantee are attained?
  2. Why must the target be compared with \(f(a)\) and \(f(b)\), rather than with \(a\) and \(b\)?
  3. For \(f(x)=x^2\) on \([0,3]\), does the theorem guarantee that output \(5\) occurs? State the endpoint outputs and explain.
  4. Does the theorem guarantee a unique input for each output between \(f(a)\) and \(f(b)\)?
  5. What continuity condition must be checked before applying the theorem on \([a,b]\)?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon