Free Intermediate Value Theorem calculator: enter a polynomial and interval to verify the sign change and locate the guaranteed root by bisection, with steps.
Intermediate Value Theorem Calculator
Checks the IVT conditions first — then actually finds the root the theorem guarantees.
Enter your values
Fill in the fields below — the result appears with every step shown.
Your result will appear here
Enter your values above, then press Calculate — or press Enter in any field.TinyExe · Intermediate Value Theorem Result
Calculated locally in your browser
—
Name
—
Coefficient of x^3 (p)
—
Coefficient of x^2 (q)
—
Coefficient of x (r)
—
How this was calculated
What to do next
TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.
Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.
The short answer
The Intermediate Value Theorem says a continuous function takes every value between its endpoint values, so if a polynomial has opposite signs at two interval ends, a root must lie between them. This calculator verifies the sign change, then locates that guaranteed root by bisection: x cubed minus x minus two has a root near one point five two.
- IVT needs continuity plus opposite signs at the endpoints
- Polynomials are continuous on every interval
- The theorem guarantees existence; bisection supplies the location
- x^3 - x - 2 has a root near 1.5214 on [1,2]
Reading the result
Reference values for this calculator.
| Signs of f(a), f(b) | IVT conclusion | This tool |
|---|---|---|
| Opposite | A root is guaranteed | Finds it by bisection |
| Same | No guarantee (a root may still exist) | Explains and stops |
| Either is zero | That endpoint is a root | Reports the endpoint |
The formula
The exact formula this calculator uses — every variable in it is explained in the card below.
The formula
Ideas enhancement: the tool does not just assert the theorem — it verifies the sign-change condition, refuses honestly when the IVT gives no guarantee, and then locates the guaranteed root by bisection, reporting f(root) so the answer can be checked.
Worked examples
Worked examples with the full working shown — try them in the calculator to check.
Example 1
worked example: x^3 - x - 2 on [1,2]
p = 1, q = 0, r = -1, s = -2, a = 1, b = 2
| Calculation | Steps |
|---|---|
| f(1) = -2 and f(2) = 4 have opposite signs f is a polynomial, so it is continuous — the IVT guarantees a root between 1 and 2 Bisection: halve the interval 60 times, always keeping the half whose ends have opposite signs Root approx x = 1.52138, where f(x) is within 0 of 0 | Root near x = 1.5214 — value: 1.5214 root x (IVT + bisection). |
Result
Example 2
edge: linear root x - 2 on [0,4]
p = 0, q = 0, r = 1, s = -2, a = 0, b = 4
| Calculation | Steps |
|---|---|
| f(0) = -2 and f(4) = 2 have opposite signs f is a polynomial, so it is continuous — the IVT guarantees a root between 0 and 4 Bisection: halve the interval 60 times, always keeping the half whose ends have opposite signs Root approx x = 2, where f(x) is within 0 of 0 | Root near x = 2 — value: 2 root x (IVT + bisection). |
Result
Example 3
large: x^2 - 100 on [0,20]
p = 0, q = 1, r = 0, s = -100, a = 0, b = 20
| Calculation | Steps |
|---|---|
| f(0) = -100 and f(20) = 300 have opposite signs f is a polynomial, so it is continuous — the IVT guarantees a root between 0 and 20 Bisection: halve the interval 60 times, always keeping the half whose ends have opposite signs Root approx x = 10, where f(x) is within 0 of 0 | Root near x = 10 — value: 10 root x (IVT + bisection). |
Result
How to use this calculator
Step 1
Enter the four coefficients of your cubic (use 0 for any missing power, so quadratics and lines work too).
Step 2
Enter the interval ends a and b.
Step 3
Press Calculate — the tool checks the signs of f(a) and f(b) first.
Step 4
If the signs differ, read the root found by bisection and check f(root) in the details.
Step 5
If the signs match, move or widen the interval and try again.
Frequently asked questions
What does the Intermediate Value Theorem say?
If a function is continuous on [a,b], it takes every value between f(a) and f(b). In particular, if f(a) and f(b) have opposite signs, the function must cross zero somewhere between them, so a root exists.
Does the IVT find the root?
No — it only guarantees existence. This calculator adds bisection, repeatedly halving the interval while keeping the sign change, to pin the root down numerically.
What if f(a) and f(b) have the same sign?
The theorem gives no guarantee. A root might still exist (the graph could dip across and back), but this tool says so honestly instead of inventing one.
Why do polynomials always qualify?
Polynomials are continuous everywhere, so the continuity condition of the IVT is automatically satisfied for any interval.
How accurate is the bisection result?
Sixty halvings shrink the interval by a factor of 2^60, far beyond the displayed precision, so the printed root is accurate to the digits shown. The f(root) detail lets you verify the residual yourself.
About this calculator
A calculus theorem guaranteeing a root inside an interval where a continuous function changes sign.
The Intermediate Value Theorem is often the first existence proof students meet: it guarantees a root without producing one. Pairing the guarantee with bisection — the simplest numerical root-finder — shows the full arc from pure theory to a number you can use, and the sign-check step is exactly the habit examiners reward.
Ideas enhancement: the tool does not just assert the theorem — it verifies the sign-change condition, refuses honestly when the IVT gives no guarantee, and then locates the guaranteed root by bisection, reporting f(root) so the answer can be checked.
Use it in calculus coursework and numerical-methods practice: proving a root exists in an interval, choosing a bisection bracket, and checking homework answers.
How to calculate it yourself
Step 1
Enter the four coefficients of your cubic (use 0 for any missing power, so quadratics and lines work too).
Step 2
Enter the interval ends a and b.
Step 3
Press Calculate — the tool checks the signs of f(a) and f(b) first.
Step 4
If the signs differ, read the root found by bisection and check f(root) in the details.
Step 5
If the signs match, move or widen the interval and try again.
Real-life examples
Locating sqrt(9) the calculus way
A student demonstrates the IVT on f(x) = x^2 - 9 over [0, 5]: f(0) is negative, f(5) is positive, so a root is guaranteed — and bisection walks it down to 3.
f(0) = -9 and f(5) = 16 have opposite signs f is a polynomial, so it is continuous — the IVT guarantees a root between 0 and 5 Bisection: halve the interval 60 times, always keeping the half whose ends have opposite signs Root approx x = 3, where f(x) is within 0 of 0
Root near x = 3 — value: 3 root x (IVT + bisection).
Cubic root bracket for an equation
An engineer needs a root of x^3 - 2x - 5 (the classic Wallis example) and brackets it on [2, 3] after checking the endpoint signs change.
f(2) = -1 and f(3) = 16 have opposite signs f is a polynomial, so it is continuous — the IVT guarantees a root between 2 and 3 Bisection: halve the interval 60 times, always keeping the half whose ends have opposite signs Root approx x = 2.094551, where f(x) is within 0 of 0
Root near x = 2.0946 — value: 2.0946 root x (IVT + bisection).
Ideas & use cases
- Bracket hunting: if an interval fails the sign test, slide it along the number line with this tool until the signs flip — that search is how numerical solvers are seeded.
- Compare methods: find the root here by bisection, then check it against the solver calculator's exact quadratic roots when the polynomial is quadratic.
- Estimate square roots: x^2 - 9 on [0,5] locates sqrt(9) = 3 by the same machinery that approximates any root.
Limitations & sources
- The IVT guarantees at least one root, not all roots — bisection converges to one of them. It applies to the polynomial entered; functions with discontinuities need the discontinuity checked separately.
Sources: Intermediate Value Theorem statement: OpenStax Calculus Volume 1, section 2.4 (Continuity); bisection method: standard numerical-methods references (e.g. Burden & Faires, Numerical Analysis)
