Skip to main content

Someone wanted to learn this too, so Grasp built them a personal learning path.

You can keep exploring this one or create your own

Second-Order Multivariable Taylor Approximation

Hello! Last lesson, you used the gradient to find a field’s change per unit distance in a chosen direction. That is first-order information: it tells you the initial slope, but not how that slope changes as you move. Today you will add second derivatives to construct a second-order Taylor approximation near a specified point.

This local quadratic model is useful throughout higher physics. For example, near a reference configuration, it can describe how a potential changes with small displacements. The aim here is to build the model reliably; the next lesson will use its second-derivative matrix to analyze stationary points.


From a tangent plane to a curved local model

Let be a smooth scalar field, and choose a reference point . Write a nearby point as , where and are displacements from the reference point. The first-order approximation is the tangent plane:

This matches the value and both coordinate slopes of at . It cannot, however, bend as bends. A second-order approximation adds all the possible quadratic displacement terms: , , and .

Watch the selected portion of M4ML - Multivariate Calculus - 4.8 Multivariate Taylor from Digital Media - Imperial College London. Its changing surfaces make the distinction between a tangent plane and a quadratic approximation visible before we calculate one.

M4ML - Multivariate Calculus - 4.8 Multivariate Taylor

Watch how the constant, linear, and quadratic models fit a surface near a chosen point, then see how their formulas are assembled.

Watch the surfaces for the geometric picture. Continue with the quadratic formula, paying particular attention to the mixed term, and matrix notation, which connects the approximation to the Jacobian you have already used.

The image below shows why the reference point matters. The orange quadratic surface follows the blue function near the marked point, but a Taylor approximation is not intended to reproduce the entire surface.

The blue surface represents a nonlinear function, while the orange surface is a quadratic approximation constructed at the red reference point. Their separation farther from that point illustrates the local nature of the approximation.

Where the three quadratic terms come from

Your earlier chain-rule calculations provide a direct way to derive the formula. Hold the displacement fixed and travel from the reference point along the straight line

Here is a function of just one variable. At , you are at ; at , you are at . The ordinary one-variable Taylor formula gives

The chain rule supplies the first derivative:

Differentiate once more. The displacement components are constants, but each partial derivative of changes along the line:

For a sufficiently smooth function, the mixed partials agree: . Evaluating at therefore gives the second-order Taylor polynomial about :

The mixed term has no visible factor of because two equal mixed-derivative contributions combine before the whole quadratic expression is divided by two. Its presence matters: changing and together can affect the field differently from changing either coordinate alone.

In the more familiar notation, substitute and . Keeping these displacements visible is often safer than immediately expanding everything into powers of and .


Constructing an approximation at a specified point

Consider

and construct about . First, calculate the value and first derivatives:

At the reference point, and . Thus the linear part is .

Next find the three distinct second partials:

Their values at are , , and , respectively. With and , the result is

Equivalently,

Notice that there is no term: its coefficient is zero at this reference point. Also notice the term. Omitting it would discard the largest second-order contribution for some directions of displacement.

To see the approximation at work, move to , so and . The tangent-plane estimate is , whereas the quadratic estimate is

The actual function value is approximately . Here the quadratic term makes a substantial improvement. That comparison illustrates the benefit of second-order information, not a promise that the quadratic model will always be closer at every distance.

A dependable construction follows the order used above: choose the reference point; compute , the first partials, and the second partials there; then insert the displacements. Evaluating derivatives at the nearby point instead would produce a different calculation, not the Taylor polynomial about the requested point.


The Hessian packages the curvature

The Hessian collects the second partial derivatives into a matrix:

If , the entire approximation becomes

The gradient supplies the tangent-plane term. The Hessian supplies the quadratic correction. For the worked example,

Multiplying out recovers . This compact form also works for three or more variables: the displacement vector and Hessian simply acquire more entries.

Read Multivariable Taylor polynomial example from Math Insight for a second construction. It uses one function at two different reference points, making it especially useful for checking why a Taylor polynomial must be tied to where it is built.

Multivariable Taylor polynomial example - Math Insight

Read Math Insight’s worked Gaussian example to connect the derivative-by-derivative method with the gradient–Hessian formula.

In “Multivariable Taylor polynomial example,” begin with the displayed matrix formula immediately below “Solution,” then read the calculations. Continue through the final expression for the polynomial at (1,2), just above “Thread navigation.” Compare the simple polynomial at (0,0) with the shifted one at (1,2); focus on how the derivative values and the displacement factors both change.

There is also a useful directional reading of the matrix expression. For a unit direction , put . The approximation along that line is

You already know the coefficient of : it is the directional derivative. The coefficient involving describes how the field bends along that direction near . If the gradient vanishes, as it does at the origin in the Math Insight example, the quadratic term becomes the first potentially informative change.

The approximation remains local. If has continuous second derivatives near , then as the displacement approaches zero, the difference between and becomes small compared with . That is the precise sense in which the quadratic model captures the function through second order; it does not claim equality away from the reference point.


Looking ahead

A second-order Taylor approximation matches a function’s value, first derivatives, and second derivatives at the chosen point. Its linear term comes from the gradient; its quadratic term comes from the Hessian. Remember to express every term using displacements from the specified point, and include the mixed term when it is nonzero.

Next, you will use this same Hessian information to classify nondegenerate stationary points—places where the gradient, and therefore the entire linear term, vanishes.

Can't find a good explanation? Sign up and we'll make it for you

Sign up