Cauchy’s mean value theorem
Let be continuous as well as differentiable on .
Let further for all .
Then and there exists a such that
Example 1, from math.stackexchange
How to use the applet:
- Drag the blue points and along the -axis to choose the interval .
- Drag the purple point along the -axis (it is constrained to stay inside ).
- The blue curve is .
- The orange curve is , where
- The red curve (in the lower panel) is constructed so that .
- First choose and . The applet automatically recomputes so that the endpoints of match.
- Now move and look at the tangents at .
- When you hit a point where , the applet highlights (turns green).
- At such a , the tangents to and have the same slope, because
- Hold Shift + scroll to zoom
- Hold Shift + drag to move
- Points shaped like <> act as sliders
Example 2, extension of MVT as parametric curve
How to use
Instead of drawing and as graphs in the -plane, we look at the parametric curve in the -plane. In this applet , so the horizontal coordinate is just .
- Drag the green point and the red point along the blue curve . (They determine the parameters and , i.e. the interval .)
- The orange line is the secant through and in the -plane. Its slope is
- The purple point is , and the purple line is drawn parallel to the secant through that point.
- CMVT guarantees that there exists such that
- In the -plane, the derivative ratio is exactly the slope of the tangent to at (because ). So “parallel to the secant” is the geometric way to see the theorem.
- The applet computes one such automatically (so you can focus on the geometry rather than solving the equation by hand).
- Hold Shift + scroll to zoom
- Hold Shift + drag to move
- Points shaped like <> act as sliders
Description
Reference: Lecture Notes Calculus 1 ( May22,2022 ) Lemma6.15 page 109 The applet are an attempt to show the Cauchy’s mean value theorem.
Example 1
This example is taken from this Math StackExchange answer.
The argument is closed to the proof used in the lecture notes, and provides a nice geometric interpretation.
Given an interval , the applet displays the functions , , and
The choice of is designed so that the endpoints match:
Therefore, by Rolle’s Theorem, there exists such that
Since is constant once and are fixed, the derivative is
computed analytically as a combination of and .
const getR = () => {
const a = getA();
const b = getB();
const denom = g(b) - g(a);
if (Math.abs(denom) < 1e-10) return NaN;
return (f(b) - f(a)) / denom;
};
// h'(x) = f'(x) - r g'(x)
const dh = (x: number) => df(x) - getR() * dg(x);
After fixing and , the student can move the point along the interval and try to satisfy the condition .
When this happens, the applet highlights the geometric meaning of the theorem:
at the tangents to and have the same slope, which corresponds to the CMVT conclusion
Example 2
Link to code. This applet visualizes Cauchy’s Mean Value Theorem (CMVT) through a geometric interpretation in the -plane.
Instead of drawing the graphs of and in the usual -plane, we consider the parametric curve
const curve = board.create(
"curve",
[(t: number) => g(t), (t: number) => f(t), xmin, xmax],
{ strokeColor: COLORS.blue, strokeWidth: 4 }
) as JXG.Curve;
We choose a particularly simple function
so that:
- everywhere),
- is known explicitly,
- the parameter is exactly the x–coordinate of the point on the curve.
Two movable points (green) and (red). The applet draws the secant line through and .
In this applet we take:
Let
Then
Expand:
To find , we solve :
This is why in the code findXi() computes:
- the interval endpoints in parameter space:
left = min(a,b),right = max(a,b)
dF = f(right) - f(left)dG = right - left- then
as t2 = (dF + dG) / (0.9 * dG).
Since , the candidates are
The code then:
- discards the case (no real square root; numerically this can occur for some endpoint choices),
- checks which candidate lies inside
left,right, - returns that one (if both are inside, it picks the one closer to the midpoint).
Finally the tangnet at should be parallel to the secant:
// Secant line AB
const secant = board.create("line", [A, B], {
strokeColor: COLORS.orange,
strokeWidth: 3,
}) as JXG.Line;
// ξ point on the parametric curve
const Xi = board.create(
"point",
[() => g(findXi()), () => f(findXi())],
{ name: "", size: 5, fixed: true, strokeColor: COLORS.purple, fillColor: COLORS.purple }
) as JXG.Point;
board.create("parallel", [secant, Xi], {
strokeColor: COLORS.purple,
strokeWidth: 3,
});