Polynomial Average Value and Witness Calculator
Enter a constant, line, quadratic, or cubic. The worksheet finds the average height from the integral, solves for every matching point in the closed interval, and shows how above- and below-average parts balance.
Find the average value of a polynomial on an interval
Integrate the curve and locate every point where its height equals the average.
Polynomial and interval
Enter the coefficients of 1, x, x² and x³ in that order, separated by commas. Use zero for a missing term.
The interval includes this endpoint.
Choose a point to the right of the left endpoint.
3 points equal the average on this interval.
Average, integral, and matching points
- Average value
- 2
- Definite integral
- 4
- x = -1/2Crossing · Interior
- x = 0Crossing · Interior
- x = 1/2Crossing · Interior
At x = 0, f(x) = 2. Difference from average 0.
The dashed line is the average. Shaded regions show where the curve rises above or falls below it.
Signed areas around the average
The net signed area relative to the average is 0.
- Below average · -9/64x from -1 to -0.5
- Above average · 1/64x from -0.5 to 0
- Below average · -1/64x from 0 to 0.5
- Above average · 9/64x from 0.5 to 1
Export the average value audit
The CSV records coefficients, exact values, and certified bounds for isolated roots.
View CSV text
How to use this calculator
- Enter the coefficients of 1, x, x², and x³, using zeros for missing terms.
- Enter the ordered closed-interval endpoints.
- Read the integral and average height, then inspect all points where the curve equals that height.
- Move the x-position slider and compare the signed areas. Export the calculation to use the exact values and isolation brackets.
The Formula
The mathematical logic powering this calculation is:
For f(x) = a₀ + a₁x + a₂x² + a₃x³ and a < b, use F(x) = a₀x + a₁x²/2 + a₂x³/3 + a₃x⁴/4. The integral is F(b) − F(a) and the average value is (F(b) − F(a))/(b − a). The integral mean value theorem guarantees a point on the closed interval with f(x) equal to that average.
Subtract the average from the constant coefficient and solve f(x) − average = 0. The worksheet uses exact rational arithmetic to detect degree and repeated roots. For a quadratic, it checks each monotone interval separated by the vertex and isolates crossings by bisection. For distinct cubic roots, it reuses rational Sturm isolation to enclose each real root, then checks whether it belongs to the closed interval. A repeated root of multiplicity two is a tangency. A triple root crosses the level with zero slope. When the expression is identically zero, every x in the interval is a witness.
At rational roots recovered exactly, the worksheet shows the reduced fraction. For other roots it shows an approximation and exports the certified rational bounds, with width at most 10⁻⁵⁰. For each region between successive witnesses or endpoints, integrate f(x) − average using its antiderivative. Areas with exact endpoints are exact. Other areas use the midpoints of the certified root intervals and are labeled approximate. The sum of signed areas is exactly zero by the definition of the average.
Use four coefficients in ascending power order. Enter zero for absent terms. Coefficients and interval endpoints accept values from −1,000 to 1,000 with up to six decimal places. The curve is sampled for illustration. Witness membership and multiplicity come from the arithmetic.Worked Example
If you input:
- Polynomial: 2 − x/4 + x³
- Interval: [−1, 1]
Result:
The integral is 4 and the average is 2. The curve crosses its average at −1/2, 0, and 1/2. Its four signed areas relative to the average are −9/64, 1/64, −1/64, and 9/64.
Frequently Asked Questions
Why does the average sometimes occur at more than one point?
A polynomial can rise and fall across the interval, so the same height may occur several times. Every point at the average is a valid witness.
Can a witness be an interval endpoint?
Yes. The integral mean value theorem uses the closed interval. The calculator includes a left or right endpoint when the polynomial equals the average there.
Why can adjacent shaded regions both lie above the average?
A tangency touches the average without changing sides. The worksheet separates the areas at that witness and reports both adjacent regions above or both below.
How is this related to the derivative mean value theorem?
Here the average is a height obtained from the integral. The derivative theorem compares slopes. Its witnesses are where an interior tangent has the same slope as the secant through the endpoints.
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.
Riemann Sum & Integral Approximation Calculator
Compare left, right, midpoint and trapezoid estimates for a cubic or lower-degree polynomial. See the signed rectangles and how the error converges.
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.
