Mean Value Theorem For Integrals
Let be continuous.
Then there exists a such that
How to use
- Drag the blue points and along the -axis to choose the interval.
- The blue curve is .
- The blue shaded region represents the area .
- The red rectangle has base and height (the average value of on ).
- The blue point labeled is placed so that A dashed vertical segment drops from to the -axis to help you read the corresponding .
- The gray dashed horizontal lines labeled and indicate (an approximation of) the minimum and maximum of on . They highlight the inequality which guarantees that the horizontal line intersects the graph in the interval.
- Move and and watch how the blue shaded area changes.
- Notice that the red rectangle adjusts its height so that its area matches the integral area.
- Track the point : it always lies on the graph and on the level , illustrating the existence of a mean value point.
- Try different interval lengths and positions: the average value moves up/down, and the displayed shifts accordingly.
- Hold Shift + scroll to zoom
- Hold Shift + drag to move
- Points shaped like <> act as sliders
Description
Reference: Lecture Notes Calculus 1 ( May22,2022 ) Theorem7.9 page 132 and Figure 7.4
The applet visualizes the Mean Value Theorem for Integrals.
Geometrically, the theorem states that the area of the rectangle with width and height (shown in red) is exactly equal to the area under the curve (the integral).
We use a strictly invertible cubic function.
// f(x) = 0.1x³ + 1
const f = (x: number) => 0.1 * Math.pow(x, 3) + 1;
// Antiderivative F(x) = 0.025x⁴ + x
const F = (x: number) => 0.025 * Math.pow(x, 4) + x;
// Analytical Inverse f⁻¹(y) = ∛(10 * (y - 1))
const fInverse = (y: number) => Math.cbrt(10 * (y - 1));
Using the Fundamental Theorem of Calculus,
we calculate the integral as .
We then find the mean value (height) using the theorem:
const meanValue = () => {
const { start, end } = interval();
if (Math.abs(end - start) < 1e-9) return f(start);
return (F(end) - F(start)) / (end - start);
};
Since the function is invertible, we find the exact coordinate by applying the inverse function to the calculated mean value. This allows the applet to update the point without relying on numerical methods.
const getXi = () => {
const target = meanValue();
return fInverse(target);
};
The anf of , inside , are displayed in gray. Since f(x) is strictly increasing, min is always at start, max is always at end
const extrema = () => {
const { start, end } = interval();
return {
min: f(start),
max: f(end)
};
};