Mean value theorem in this visualization
The mean value theorem, also called Lagrange’s mean value theorem, says: if a function is continuous on the closed interval and differentiable on the open interval , then there is at least one point with where
Now
Points
The left side is the slope of the tangent at ; the right side is the slope of the secant through and , the average rate of change of over the interval. The point is also written . Rolle’s theorem is the case , where the secant is flat and . The page shows the theorem on four smooth functions and on two whose hypotheses can fail: is not differentiable at its corner, and the jump function, on an interval with the jump inside, is neither continuous nor differentiable there.
The blue points A and B sit on the curve above and : drag them, or slide the blue segment on the x-axis to move the whole interval. The yellow line through them is the secant; call its slope . Each blue point marks a point : its tangent is parallel to the secant, and a dashed vertical joins it to the secant: where is smooth, the height of the curve above the secant has derivative zero at every (the two have the same slope there). Under the graph, the slope strip draws in blue and the secant slope as a yellow horizontal line: every is a crossing. With the answers hidden, a tangent point appears that you can move along the curve to find yourself.
What not to read into it
- The theorem promises at least one , not exactly one: on has two, on has four. It does not say where is: for a non-degenerate quadratic the unique is always the midpoint, but for other functions it can lie anywhere inside.
- Differentiability is needed only inside the interval. on has a vertical tangent at 0, and still works.
- When a hypothesis fails, the theorem is silent. on has no , nor does the jump function on ; yet the same jump function on happens to have .
- The points on this page are solved exactly from secant slope for each function, not found by a numerical search.
Where it is used
- Average speed: a car covers 10 km in 5 minutes, an average of 120 km/h. If the distance it has travelled changes continuously and has a derivative, the speed, at every moment inside those 5 minutes, then at some instant its speed was exactly 120 km/h. So a driver whose average over a camera-timed stretch is above the limit was over the limit at some moment.
- If everywhere on an interval, is constant there; two functions with the same derivative differ by a constant, which is why an antiderivative carries .
- Estimates: if on the interval, then . The theorem is also a step in the proof of the fundamental theorem of calculus.