Source scope: §4.6, PDF pages 29. Numerical examples, experiments, added derivations, and practice are teaching supplements unless identified as source results.
A tangent predicts; curvature corrects
For at zero, the tangent predicts and the quadratic model predicts . At , the exact value is about , compared with and . As the step shrinks, both models improve. A plot helps us see error, but a theorem specifies the assumptions and the remainder.
Theorem 6 (Taylor’s theorem). Suppose is continuously differentiable and . There is a such that
If is twice continuously differentiable, then
and there exists such that
These are all three source formulas. Each existential can be different. The in the integral is a dummy variable covering the whole segment. If the function is defined on an open domain smaller than , require the entire segment and a neighborhood of it to be inside that domain with the stated smoothness.
Understand the intermediate point
The first formula is exact because it uses a gradient at some intermediate point. It does not say exactly. Likewise the exact second-order formula uses a Hessian at an intermediate point. Replacing it by gives the local quadratic approximation.
For at zero, the exact second-order remainder beyond the linear model is for some . The quadratic approximation instead uses . This makes the distinction visible in the running example.
Teaching derivation. Set . The chain rule gives and . Apply the one-variable mean value theorem and second-order Taylor theorem on . Apply the fundamental theorem of calculus separately to each gradient component to obtain the integral formula. The PDF states these formulas without proof and attributes this version to [1].
Transfer
For , the Hessian is constant, so the quadratic expansion is exact at every step. For it is only a local approximation because curvature changes along the step.
Source reference [1]. J. Nocedal and S. J. Wright, Numerical Optimization, Springer Science+Business Media, 2006. The next lesson uses these formulas to prove local-minimum conditions.
Explore the relationship
Compare exact values and local models
As the step shrinks, which approximation loses error faster?
Preparing interactive controls…