Skip to main content

The Hessian and Taylor Expansion

The linear prediction for Q missed 0.0075. Can a second-order model account for it exactly? This chapter forms the Hessian and tracks quadratic remainder conditions.

  • Hessian: The matrix of second partial derivatives governing the quadratic term of a second-order Taylor approximation.

Collect second derivatives​

For a scalar C2C^2 function, the Hessian HfH_f has entries ∂i∂jf\partial_i\partial_jf. Continuous second partials ensure equality of mixed partials, so it is symmetric. Without suitable hypotheses, mixed partials need not agree.

For QQ, the Hessian is constant:

HQ=(2112).H_Q=\begin{pmatrix}2&1\\1&2\end{pmatrix}.

At a=(1,1)Ta=(1,1)^T, the second-order expansion is

Q(a+h)=3+(3,3)h+12hTHQh.Q(a+h)=3+(3,3)h+\tfrac12h^TH_Qh.

Here it is exact because QQ has degree two. The scalar (3,3)h(3,3)h is a row times a column, not a componentwise product.

Linear and quadratic predictions for Q with its two principal curvature directions
The Hessian supplies a quadratic correction and symmetric directional curvature.

State the general approximation​

If f∈C2f\in C^2 near aa,

f(a+h)=f(a)+Df(a)h+12hTHf(a)h+o(∥h∥2).f(a+h)=f(a)+Df(a)h+\tfrac12h^TH_f(a)h+o(\|h\|^2).

A cubic bound needs more than just existence of the Hessian at one point. If ff has continuous third derivative with operator norm at most MM along the segment, the quadratic remainder has magnitude at most M∥h∥3/6M\|h\|^3/6. These claims follow by applying one-variable Taylor theory to t↦f(a+th)t\mapsto f(a+th).

Read the directional curvature​

The quadratic term is half the second derivative along the increment. For unit uu, directional curvature is uTHfuu^TH_fu. The symmetric Hessian has orthonormal eigen-directions by the spectral theorem. For QQ they are (1,1)/2(1,1)/\sqrt2 and (1,−1)/2(1,-1)/\sqrt2, with curvatures 33 and 11.

At h=(0.1,−0.05)Th=(0.1,-0.05)^T, the quadratic correction is 0.00750.0075, exactly the earlier linear error. Curvature of a scalar output is distinct from curvature of an embedded geometric curve; both use second derivatives but answer different questions.

Review the spectral theorem for the orthonormal eigen-direction argument.

Basic practice​

Prepare​

Reuse Q, a, h, and the linear residual table. Review the spectral theorem for a symmetric 2 × 2 matrix.

Record assumed inputs, predictions, and exact calculations separately. If you use software, label rounded outputs; no physical measurement is implied.

Predict​

Will the second-order model leave any remainder for this polynomial?

Execute​

  1. Compute H_Q and verify its two eigenpairs.
  2. Calculate ½hᵀH_Qh and add it to the linear prediction.
  3. Repeat with h/2 and compare the quadratic corrections.

Observe and record​

Case or quantityPredictionExact result or argumentError or software check
Hessian eigenpairs
Correction at h
Correction at h/2

Check after working: The eigenvalues are 3 and 1. Corrections are 0.0075 and 0.001875, a factor of four smaller. The quadratic prediction is exact for Q.

Optional extension​

For Q(x, y) + x³, calculate the cubic remainder about (1, 1) after using its full second-order Taylor polynomial.

Keep and continue​

Keep the Hessian and its positive eigenvalues. Next, use them to classify critical points and constrained extrema.

Previous: The Multivariable Chain Rule

Next: Multivariable Optimization