Intermediate Value Theorem Calculator & Root Bracket
Enter a single polynomial or two polynomials with one join. See whether a target output is bracketed under continuity, inspect a jump, or track exact midpoints as the bracket shrinks.
Check whether continuity guarantees a target
Compare endpoint values, see whether the function jumps, and inspect each exact bracket when the theorem applies.
Continuity guarantees a target hit.
Both endpoints are on opposite sides of the target, and the function is continuous on the closed interval.
Left endpoint
x = 1 · value −1
Below target · residual −1
Right endpoint
x = 2 · value 5
Above target · residual 5
Final exact bracket
[339/256, 85/64]
Width 1/256 · Midpoint error bound 1/512
Edit the function and target
Use signed decimals or fractions. Set any unused leading coefficients to zero.
Function, target and retained bracket
- Polynomial f
- Target
- Retained interval
Displayed interval [339/256, 85/64] · width 1/256.
Midpoint 339/256 gives −35701/16777216. Keep the right half.
Review all exact bisection steps
| Step | Midpoint x | Value | Residual | Retained interval | Decision |
|---|---|---|---|---|---|
| 1 | 3/2 | 7/8 | 7/8 | [1, 3/2] | Keep the left half |
| 2 | 5/4 | −19/64 | −19/64 | [5/4, 3/2] | Keep the right half |
| 3 | 11/8 | 115/512 | 115/512 | [5/4, 11/8] | Keep the left half |
| 4 | 21/16 | −211/4096 | −211/4096 | [21/16, 11/8] | Keep the right half |
| 5 | 43/32 | 2707/32768 | 2707/32768 | [21/16, 43/32] | Keep the left half |
| 6 | 85/64 | 3821/262144 | 3821/262144 | [21/16, 85/64] | Keep the left half |
| 7 | 169/128 | −39239/2097152 | −39239/2097152 | [169/128, 85/64] | Keep the right half |
| 8 | 339/256 | −35701/16777216 | −35701/16777216 | [339/256, 85/64] | Keep the right half |
Show bracket CSV text
How to use this calculator
- Choose one polynomial or two polynomials joined at an entered x.
- Enter the cubic, squared, linear and constant coefficients. In joined mode, the right polynomial supplies the join value.
- Enter a closed x interval and the output you want to reach.
- Read the continuity and endpoint tests. If there is a guaranteed bracket, step through the halves and see the exact remainder interval.
- Download the input, signs, midpoint evaluations and retained bounds.
The Formula
The mathematical logic powering this calculation is:
Enter polynomial coefficients for a x³ + b x² + c x + d. Set unused leading coefficients to zero. In two-polynomial mode use f for x before the join and g for x at and after it. Both polynomials are continuous wherever their expression applies. At a join inside (left, right], the left limit f(join) must equal the actual value g(join) for continuity on the entered interval. If the join is at or before the left bound or strictly after the right bound, no join continuity test is needed for this interval. Equal bounds are a single-point interval.
Evaluate both endpoint values and compare them with the target y exactly. An endpoint equal to the target is a known solution. Otherwise, when the function is continuous on the whole closed interval and one endpoint is above the target and the other below, the Intermediate Value Theorem guarantees at least one interior hit. Same-side endpoints give no guarantee; the function might still reach the target. A jump can defeat a sign bracket.
Start bisection only on a continuous bracket with strict opposite signs. At each step calculate the exact midpoint and its residual f(midpoint) − target, using the active polynomial. If the residual is zero, the midpoint is exact. Otherwise keep the half whose ends still straddle the target. Each ordinary step halves the bracket width. After n nonzero steps the width is (right − left) ÷ 2ⁿ. The midpoint of the retained interval is within half its width of at least one solution. The worksheet encloses one solution, not all possible solutions.
Bounds, coefficients, join and target are from −1,000 to 1,000. Enter up to six decimal places or a fraction with positive denominator at most 1,000,000. Request 0–24 halvings. The input and every sign decision use exact rational arithmetic. The plot is illustrative and does not determine signs or continuity.Worked Example
If you input:
- Function: x³ − x − 1
- X interval: 1 to 2
- Target output: 0
- Halvings: 8
Result:
The values are −1 at x = 1 and 5 at x = 2. Since the polynomial is continuous, at least one root is inside. After eight halvings, the retained bracket is [339/256, 85/64] with width 1/256.
Frequently Asked Questions
Does the theorem guarantee exactly one solution?
It guarantees at least one when continuity and endpoint bracketing hold. Several points may give the same target value.
Can the function reach a target outside the endpoint range?
Yes. It may turn around inside the interval. Same-side endpoint values do not prove the target is absent.
What if one endpoint already equals the target?
That endpoint is an exact known solution, even if a separate join fails continuity. No halving is needed to find it.
Why compare both formulas at the join?
The left polynomial gives the limit as x approaches the join from below. The right polynomial gives the actual value there. A mismatch on the tested interval is a jump.
Why does bisection stop early?
An exact zero residual at the midpoint gives a solution immediately. Otherwise the last interval is an enclosure after the number of requested halvings.
How is this different from the Mean Value Theorem?
The Intermediate Value Theorem concerns function outputs under continuity. The Mean Value Theorem concerns matching a tangent slope to a secant slope and also requires interior differentiability.
Similar Calculators
Mean Value Theorem & Tangent Line Calculator
Find where a tangent matches the secant slope, check Mean Value Theorem and Rolle’s conditions, or calculate a tangent line at a chosen point.
Rational Limit Calculator with Graph
Find exact one-sided limits of a rational function. Compare the lowest nonzero powers, cancel common factors and graph holes and vertical poles.
Piecewise Function Graph Calculator
Graph a piecewise function with open and closed endpoints. Evaluate f(x), compare one-sided limits, and identify gaps, jumps and removable discontinuities.
Cubic Equation & Root Calculator
Solve a cubic equation for real and complex roots. Explore multiplicity, the exact discriminant, turning points and certified real-root intervals.
