Mean Value Theorem
Statement
If is continuous on and differentiable on , then there exists a point such that:
The right-hand side is the slope of the secant line through and . The theorem guarantees a point where the tangent slope matches this secant slope exactly.
Visualization
Consider on .
Secant slope:
Tangent slope: , so
f(x) = x²
9 | * ← (3,9)
| /
7 | / secant
| / slope=4
5 | /
| *····· ← tangent at c=2, slope=4
1 | * ← (1,1)
+--+---+---+--
1 2 3
| secant slope | |||
|---|---|---|---|
| 1 | 1 | 2 | — |
| 2 | 4 | 4 | 4 ✓ |
| 3 | 9 | 6 | — |
The tangent at is parallel to the secant joining the endpoints.
Proof Sketch
- Define where is the secant line.
- Boundary values: .
- Apply Rolle's Theorem: Since is continuous on , differentiable on , and , there exists with .
- Conclude: , so .
Rolle's Theorem itself follows from the Intermediate Value TheoremIntermediate Value TheoremA continuous function on a closed interval hits every value between its endpointsRead more → applied to the derivative.
Connections
- Chain RuleChain RuleDifferentiate composite functions by peeling layersRead more → — MVT is used in the proof of the chain rule for Lipschitz compositions
- Intermediate Value TheoremIntermediate Value TheoremA continuous function on a closed interval hits every value between its endpointsRead more → — Rolle's Theorem (used in the MVT proof) is a special case of IVT applied to
- Fundamental Theorem of CalculusFundamental Theorem of CalculusIntegration and differentiation are inverse operationsRead more → — MVT is the key lemma showing antiderivatives differ by at most a constant
- Taylor's TheoremTaylor's TheoremApproximate smooth functions by polynomials with explicit error boundsRead more → — Taylor's theorem is a higher-order generalisation of the MVT
- L’Hôpital's Rule — L'Hôpital's rule is proved using a generalised form of the MVT (Cauchy's MVT)
Lean4 Proof
import Mathlib.Analysis.Calculus.MeanValue
/-- Mean Value Theorem: wraps Mathlib's `exists_hasDerivAt_eq_slope`. -/
theorem mvt {f f' : ℝ → ℝ} {a b : ℝ} (hab : a < b)
(hfc : ContinuousOn f (Set.Icc a b))
(hff' : ∀ x ∈ Set.Ioo a b, HasDerivAt f (f' x) x) :
∃ c ∈ Set.Ioo a b, f' c = (f b - f a) / (b - a) :=
exists_hasDerivAt_eq_slope f f' hab hfc hff'Referenced by
- Cauchy's Mean Value TheoremCalculus
- Rolle's TheoremCalculus
- L'Hôpital's RuleCalculus
- L'Hôpital's RuleCalculus
- Fundamental Theorem of CalculusCalculus
- Fundamental Theorem of CalculusCalculus
- Taylor's TheoremCalculus
- Taylor's TheoremCalculus
- Intermediate Value TheoremCalculus
- Darboux's TheoremCalculus
- Inverse Function TheoremCalculus
- Squeeze TheoremAnalysis
- Gradient Descent ConvergenceOptimization
- Lagrange MultipliersOptimization
- Holder's InequalityProbability
- Picard–Lindelöf TheoremDifferential Equations
- Heat Equation Maximum PrincipleDifferential Equations
- Maximum Modulus PrincipleComplex Analysis