What is it?
Somewhere on the instantaneous rate of change equals the average rate: . It is the bridge from derivatives to inequalities — and therefore to every error bound in numerical analysis.
Why does it exist?
Derivatives are local; we often need global statements: "if the derivative is small everywhere, the function barely changes", "if the function increases", "this numerical method's error is at most…". The mean value theorem converts one into the other.
Intuition
Draw the secant from to and slide it parallel to itself: at the last moment it touches the graph, it is a tangent. Physically: if you drove 120 km in one hour, at some instant your speedometer read exactly 120 km/h — which is how average-speed cameras can fine you.
Statement
If is continuous on and differentiable on , there is with
Idea of the proof
Subtract the secant line from : the difference satisfies , so Rolle gives , i.e. equals the slope of the secant.
Proof
Let and . Then is continuous on , differentiable on , and . By Rolle's theorem there is with .
Corollaries. (1) If on an interval, is constant. (2) If , is strictly increasing. (3) If , then : bounded derivative implies Lipschitz.
Formulas
- the form used for error bounds
Why does it matter?
Whenever a numerical analyst proves that a method's error is at most , a mean value theorem (or its big brother, Taylor's theorem with remainder) is somewhere in the proof. Convergence proofs for gradient descent, Newton's method and ODE solvers all go through it.
Where it shows up in computing
Error bounds of numerical methods are derived from the MVT and Taylor's theorem.
Where it shows up in AI
Convergence proofs bound the decrease per step with the MVT applied to the gradient.
Where is it used?
Computing topics reachable from here, through the chain of ideas that leads to them:
λ Scientific computing and algorithms
- Taylor's theorem and the remainder→Scientific computing★★★★★
- Fundamental theorem of calculus→Cumulative distribution function→Monte Carlo methods★★★★★
- Fundamental theorem of calculus→Symbolic computation (CAS)★★★★★
- Fundamental theorem of calculus→Improper integrals→Integral test→Algorithm analysis and complexity★★★★★
- Taylor's theorem and the remainder→Floating point (IEEE 754)★★★★★
ℒ AI and machine learning
- Lipschitz continuity→Gradient descent★★★★★
- Lipschitz continuity→Gradient descent→Learning rate★★★★★
- Lipschitz continuity→Gradient descent→Backpropagation★★★★★
- Lipschitz continuity→Gradient descent→Stochastic gradient descent (SGD)★★★★★
- Lipschitz continuity→Gradient descent→Loss landscape★★★★★
- Lipschitz continuity→Gradient descent→Reinforcement learning★★★★★
- +9
⚙ Robotics and control
- Fundamental theorem of calculus→Improper integrals→Laplace transform→Control theory★★★★★
- Fundamental theorem of calculus→Improper integrals→Probability density function→Continuous distributions→Kalman filter★★★★★
- Fundamental theorem of calculus→Improper integrals→Laplace transform→Control theory→Trajectory optimization and MPC★★★★★
- Fundamental theorem of calculus→Improper integrals→Laplace transform→PID control★★★★★
∿ Signals, media and vision
- Fundamental theorem of calculus→Improper integrals→Fourier transform→Signal processing★★★★★
- Fundamental theorem of calculus→Improper integrals→Fourier transform→Sampling theorem (Nyquist–Shannon)★★★★★
- Fundamental theorem of calculus→Improper integrals→Fourier transform→Fast Fourier transform (FFT)★★★★★
- Fundamental theorem of calculus→Improper integrals→Fourier transform→Telecommunications (modulation, OFDM)★★★★★
- Fundamental theorem of calculus→Improper integrals→Laplace transform→Z-transform→Digital filters★★★★★
- Fundamental theorem of calculus→Improper integrals→Fourier transform→Signal processing→Media compression (JPEG, MP3, video)★★★★★
- +1
⚛ Physics and simulation
- Fundamental theorem of calculus→Physics engines★★★★★
- Fundamental theorem of calculus→Physics engines→N-body gravitational simulation★★★★★
- Fundamental theorem of calculus→Physics engines→Fluid dynamics and CFD★★★★★
- Fundamental theorem of calculus→Physics engines→Fluid dynamics and CFD→Weather and climate modelling★★★★★
What depends on it
Exercises
Use the MVT to prove for all real .
Solution
for some , and .
A car passes two cameras 10 km apart, 5 minutes apart. Prove it exceeded 110 km/h at some moment.
Solution
Average speed km/h. By the MVT, at some instant .