Multivariable Taylor Approximation and Error
Use a Hessian to improve a local model and bound error across all nearby directions.
Builds on Lagrange Multipliers and Constraint Geometry
The bigger question: Where is the best value when movement has limits?
On this page
Add curvature to the tangent model
For a twice continuously differentiable scalar function near , with displacement vector , the second-order Taylor expansion is
In two variables the quadratic term is . The factor two on the mixed term comes from both off-diagonal Hessian entries.
To bound the error of the first-order approximation, suppose the Hessian operator norm is at most along the segment from to . Then . The bound must hold along the segment, not only at the base point.
Visual guide
- Exact quadratic value
- Linear prediction
Worked example: an exact quadratic
For at , , and . At displacement , the linear model gives .
The quadratic correction is , giving the exact answer . There is no higher remainder because the original function is quadratic. Since the Hessian eigenvalues are , the first-order error bound is , safely above the actual error .
Try it yourself.
Choose an answer and explain your reasoning to yourself. Use a hint if you get stuck.
Hint 1 · Find a starting point
The one-variable second-order term includes a factorial.
Hint 2 · Take the next step
The quadratic form generalizes f″(a)h²/2.
Show the reasoning
Answer: ½hᵀHh
The term is ½hᵀHh; Hh is a vector and cannot be a scalar change in f.
Before moving on: what would make one of the other answers wrong? Saying why is part of understanding.
Worked example: uncertainty propagation
For a measured quantity and small input errors , the first-order change is approximately . If and , its magnitude is bounded by .
For area near , with both input errors at most , this linear bound is . The exact correction has magnitude at most , so a rigorous total bound is . Units are area units; independent statistical errors would call for a different probabilistic calculation.
Practice
- Write the quadratic Taylor polynomial for at zero.
- If and , bound the linearization error.
- Why does a zero gradient not make the quadratic correction vanish?
Show worked solutions
- .
- At most .
- The gradient controls the first-order term; the Hessian can still be nonzero, as at the origin of .
Further study
MIT OpenCourseWare: Multivariable Calculus provides a full university course with additional lectures and exercises.
Pause before the next idea.
Can you explain how the visualization connects to this lesson’s goal? If a step still feels uncertain, put this lesson on your review list and try the check again another day.