Intermediate Value Theorem Calculator

The Intermediate Value Theorem is a popular concept in Calculus, often studied together with the mean value theorem. Here I will state the theorem and help you understand this with the help of the Intermediate Value Theorem calculator.

Intermediate Value Theorem

Let f(x) be a function which is continuous on $[a, b]$, $N$ be a real number lying between $f(a)$ and $f(b)$, then there is at least one $c$ with $a \leq c \leq b$ such that $N = f(c)$.

The IVT is also known as Bolzano’s theorem and Weierstrass Intermediate Value Theorem by some mathematicians. Bolzano provided the first proof of the theorem, but at his time the nature of real numbers wasn’t well-defined. The detailed proof was later done by Karl Weierstrass.

The Weierstrass proof of the Intermediate Value Theorem can be found here.

See the definitions of

Intermediate Value Theorem Calculator

Click on the button above to launch the Intermediate Value Theorem calculator and grapher. If the button doesn't appear then you are using an incompatible browser or your browser doesn't have proper Javascript support. Try opening this page in Google Chrome or any other modern browser. This works on mobile devices too. If you are looking for more help, prefer using a math assignment solver or a math tutor.

Note: $x_{min}$ and $x_{max}$ are just graph plotting ranges. These don't have anything to do with the Intermediate Value Theorem. Increase or decrease the values to increase the graph size.

Also, see, mean value theorem calculator.

Calculus: Early Transcendentals book

Calculus: Early Transcendentals

Author: James Stewart

One of the best Calculus textbooks out there. Covers all important topics.

Calculus: An Intuitive and Physical Approach book

Calculus: An Intuitive and Physical Approach

Author: Morris Kline

Interesting textbook with a more reader friendly writing and explanations.

Need some more books on calculus? See the list of the best Calculus Text Books.

The Intermediate Value Theorem guarantees that a continuous function hits every output between two endpoint values. It proves existence. It does not locate the exact input and it does not promise only one solution.

How to use this calculator

Enter a continuous function, an interval \([a,b]\), and the target value \(N\). The theorem applies when \(N\) lies between \(f(a)\) and \(f(b)\) and the function is continuous across the entire closed interval.

For root detection, set \(N=0\). Opposite signs at the endpoints guarantee at least one zero in between, provided continuity holds.

  1. Check that the function is defined and continuous on the whole interval.
  2. Evaluate both endpoints.
  3. Confirm that the target lies between the endpoint outputs.
  4. State only what the theorem guarantees: at least one matching input in the open interval.

Worked example

Take \(f(x)=x^3-x-2\) on [1,2]. We get \(f(1)=-2\) and \(f(2)=4\). Because a polynomial is continuous and 0 lies between -2 and 4, at least one root lies between 1 and 2.

The theorem does not give the root. Bisection narrows it: the sign changes between 1.5 and 2, then between 1.5 and 1.75, and so on. The guarantee makes that numerical search safe.

How to read the result

A failed endpoint check does not prove there is no root. The function may cross zero twice and return to the same sign. The theorem gives a sufficient condition, not a necessary one.

Continuity is the bridge. Without it, a function can jump over the target value even when the endpoint outputs lie on opposite sides.

Common mistakes to avoid

  • Forgetting to check continuity at denominators, radicals, logarithms, or piecewise joins.
  • Claiming a unique solution when the theorem guarantees only at least one.
  • Treating same-sign endpoints as proof of no root.
  • Using an open interval without confirming endpoint values in the required closed interval.

How to verify the result

Verify three conditions: the function is continuous on the closed interval, both endpoint values exist, and the target value lies between those endpoint values. A sign change is the special case used to guarantee at least one zero.

The theorem guarantees existence, not the exact location or uniqueness of a solution. If both endpoint values have the same sign, the test is inconclusive; the function may still cross the axis an even number of times.

Once existence is established, use bisection or another root finder to narrow the location. Recheck continuity at denominators, logarithms, radicals, piecewise joins, and vertical asymptotes before trusting a numerical root inside the interval.

Limits of the calculation

Use the bisection method to approximate a guaranteed root. Use derivatives or monotonicity to establish uniqueness. Use graphing only as supporting evidence, because a plot can miss narrow behavior.

Discontinuous functions need separate interval analysis. Split the domain at every discontinuity before applying the theorem.

Use Rolle's Theorem Calculator, Mean Value Theorem Calculator, Difference Quotient Calculator when the next part of the problem needs a different method.

Useful calculus books and tools

For the Intermediate Value Theorem, verify continuity on the closed interval before using the endpoint values. Calculus answers are easier to trust when you can connect the symbolic work to a graph, an estimate, and the theorem behind the method.

As an Amazon Associate, I earn from qualifying purchases.

Frequently Asked Questions

What does the Intermediate Value Theorem state?

If f is continuous on [a, b] and k is any value between f(a) and f(b), then there exists at least one c in (a, b) with f(c) = k. In short: continuous functions don't skip values.

Why does continuity matter?

Because discontinuous functions can jump over values. Step functions are the classic counterexample — they go from one value to another without ever passing through anything in between.

How do I use the IVT to prove a root exists?

Show f(a) and f(b) have opposite signs, then by IVT there's a c in (a, b) where f(c) = 0. This is the basis of the bisection method for numerical root-finding.

Does the IVT tell you where the root is?

No — only that one exists. To locate it, you apply the theorem repeatedly (bisection) or switch to a faster numerical method like Newton-Raphson.

Is the IVT valid for vector-valued functions?

Not directly. The single-variable IVT applies to real-valued functions. There are higher-dimensional analogs (the Borsuk–Ulam theorem, the Brouwer fixed-point theorem) but they're separate results.

Can the IVT find multiple roots?

It guarantees at least one. If you suspect more, subdivide the interval and apply IVT to each piece. The calculator does this automatically when you enable 'find all roots'.

What's the difference between IVT and Mean Value Theorem?

IVT is about values f(c). MVT is about derivatives — it asserts a slope f'(c) equals the average rate of change. They're related but answer different questions.

More Calculators