Taylor's Theorem in Several Variables
Suppose you know a function's value at a single point. You also know its rate of change in every direction. You know how those rates of change are themselves changing. How well can you predict the function's value nearby? In one variable, Taylor's theorem answers this. It builds a polynomial from derivatives at a point, plus a controlled remainder. The multivariable version answers the same question in . Here, "derivative" now means a gradient vector and a Hessian matrix. The bookkeeping of higher partial derivatives threatens to become unmanageable without the right notation. The idea matters because almost every local analysis in higher-dimensional calculus reduces to one thing. This includes classifying critical points, justifying Newton's method, deriving error bounds in numerical analysis, and expanding energies in physics near equilibrium. All of these reduce to approximating a smooth function by a quadratic model near a point. The quadratic model is exactly the second-order Taylor polynomial. The Hessian matrix that appears in it governs whether a critical point is a max, a min, or a saddle. None of this can be stated cleanly without first taming the notation for higher-order partial derivatives. The big picture: multi-index notation converts sums like into single symbols . This exactly mirrors the one-variable formula . Once this notation is in place, the multivariable Taylor theorem is proved by reducing it to the single-variable case. Restrict to the line segment joining the two points. Apply ordinary one-variable Taylor theorem to the resulting function of one real variable. Then translate back using the chain rule. This article builds multi-index notation from scratch. It states and proves the second-order Taylor theorem with Lagrange remainder in . It works through two genuinely asymmetric numerical examples. It also shows exactly why each hypothesis is needed — open domain, continuity of second partials, convexity of the segment — by exhibiting what fails without it.
- A multi-index packages partial derivative orders into one symbol, with and .
- The second-order Taylor polynomial of at is , where is the Hessian matrix.
- The exact Lagrange remainder involves third partial derivatives evaluated at some point on the segment from to — its existence, not its location, is what we prove.
- The proof works by restricting to a line through , reducing an -variable problem to one-variable Taylor's theorem with remainder.
- Clairaut's Theorem on Mixed Partials is essential: it lets the Hessian be symmetric and lets us collapse cross terms like without ambiguity of order.
- This expansion is the algebraic engine behind the second-derivative test for local extrema, foreshadowing The Hessian Matrix and Critical Points and Extrema.
- Key idea: every multivariable Taylor expansion is secretly a single-variable Taylor expansion of , unpacked by the chain rule.
A multi-index is an -tuple of nonnegative integers. For a multi-index and a vector , define
If is a function on an open set possessing all partial derivatives of order at a point, write
Let be open, let , and let be a function whose partial derivatives up to order all exist and are continuous on (i.e. ). For such that the segment , the -th order Taylor polynomial of at is
For this expands, using symmetry of second partials from Clairaut's Theorem on Mixed Partials, to
where is the gradient and is the Hessian matrix, a symmetric matrix.
Intuition
In one variable, Taylor's theorem says a smooth function looks, near , like a polynomial in : a constant term (the value), a linear term (the slope), a quadratic term (the curvature), and so on. In several variables the same idea holds, but "slope" becomes a direction-dependent number — the directional derivative — and "curvature" becomes a quadratic form that can be positive in some directions and negative in others. The Hessian matrix is precisely the object that records this direction-dependent bending. The cleanest way to see why the formula must involve and is to freeze the direction: fix , and look at the single real function for near . This is an ordinary one-variable function, so its own Taylor expansion at is
and the chain rule converts into and into . Setting recovers the multivariable expansion. This restriction-to-a-line trick is not just an analogy; it is the actual proof technique used below.
Central theorem
Let be open and let be of class on (all partial derivatives up to third order exist and are continuous). Let and let be such that the closed segment
is entirely contained in . Then there exists such that
where the remainder is
Consequently, if is finite, then
and in particular as .
Under the hypotheses of the theorem, define by . Then and for every ,
Proof of the Lemma, by repeated application of The Chain Rule in Several Variables. Since and is open, and is a smooth (affine, hence ) map from into , the composite is well defined on ; because , the chain rule guarantees (composition of with an affine — in particular — map is ). By the chain rule, writing so for all ,
This exhibits as a new function of , namely , a finite linear combination (with constant coefficients ) of functions of the form . Differentiating again, applying the chain rule to each term exactly as before (since , being a component of ),
Hence
Note that this double sum is exactly the quadratic form associated to the matrix ; Clairaut's Theorem on Mixed Partials guarantees throughout (since at least), so is symmetric — though symmetry is not even needed to evaluate the sum, only to justify calling it "the" Hessian without ambiguity of index order. Differentiating once more, term by term, using (a consequence of ):
so
where continuity of third partials (again from ) lets us reorder the indices in each triple product freely by repeated use of Clairaut's theorem. This proves the Lemma.
Proof of the Theorem, using one-variable Taylor's theorem with Lagrange remainder (assumed known from single-variable calculus) applied to . By the Lemma, , so ordinary one-variable Taylor's theorem with Lagrange remainder applies to at the base point , evaluated at : there exists such that
(This is the single-variable Taylor theorem with , i.e., quadratic Taylor polynomial plus Lagrange remainder for the third derivative, applied to the interval ; its proof — via the Cauchy Mean Value Theorem or Rolle's theorem applied to an auxiliary function — is standard one-variable material and is not reproduced here, only invoked.) Now translate each term back to using the Lemma:
- and , directly from the definition .
- , by the Lemma's first formula at .
- , by the Lemma's second formula at .
- , by the Lemma's third formula at .
Substituting these four identities into the displayed one-variable Taylor expansion of gives exactly
which is the claimed formula for (the coefficient in the multi-index form arises from collecting repeated indices into a single multi-index with , a standard multinomial bookkeeping identity: the number of ordered triples collapsing to a given is ). For the bound: since each of the terms satisfies
(using and the definition of as a supremum over the segment, which contains since ), the triangle inequality applied to the triple sum over gives
Since and is a fixed compact segment, automatically (continuous functions on compact sets are bounded), so this bound is always available for small enough that . Finally, since (Euclidean norm) up to the fixed constant , we get as , because .
∎Under the hypotheses of the theorem, as ,
Worked examples
Example 1: A non-polynomial function at an asymmetric point. Let (globally on all of , in particular ), and expand about the deliberately asymmetric base point , i.e. compute for near . First compute the needed partials:
At : , , so
So the gradient is and the Hessian is
By the theorem, writing ,
Simplify:
Numerical check. Take , i.e. approximate . Exact value: , . Compute and . So . Taylor estimate: plug , into with :
So . The two agree to about absolute error, and the theorem guarantees this discrepancy is — with , indeed is the right order of magnitude, comfortably bounding the observed error once the constant is included.
Example 2: Verifying the remainder bound explicitly for a cubic. Let , expanded at (again asymmetric, with mixed signs), evaluated at (so target point ). Since is a cubic polynomial, all fourth-order partials vanish, so the Lagrange remainder should reproduce the exact cubic terms with no error left over (a good sanity check on the formula, since the theorem's remainder must exactly capture whatever the theorem's second-order part misses). Compute all needed derivatives:
All third partials are constant, so evaluating them at for any gives the same values — meaning the remainder is exact for any choice of , consistent with the theorem (which only asserts existence of some , but here every works because the third derivatives don't vary). At :
So
Remainder, using constant third partials and multinomial coefficients for the pure/mixed terms in :
Exact value: . And indeed . The identity is exact, confirming the formula's bookkeeping (multinomial coefficients, index collapsing) is correct.
:::counterexample[Why the segment must lie inside ] Drop the hypothesis that , keeping on its domain . Let
(the plane with the non-negative -axis removed), and let be a continuous branch of the argument function on (well-defined and there, since removing a ray from the plane makes the multivalued argument single-valued and smooth). Take , so , and take , so and . The straight segment from to is the set — wait, more carefully, parametrize for ; at this is , which lies on the boundary but is not in (since is exactly the removed ray's endpoint), so the segment actually exits near (for slightly less than , small and close to the boundary, but for slightly more than , — the path crosses arbitrarily close to the removed ray at points with only in the limit; to make the violation unambiguous, perturb slightly). Sharper version: take and for small , so the segment passes through exactly at regardless of , hence . As , while . Every partial derivative of (gradient, Hessian, third derivatives) stays uniformly bounded near as (they depend smoothly on , which stays near , away from the branch cut), so the right-hand side , if the theorem's formula were blindly applied using derivatives only at , would predict to be a small, bounded quantity — yet the true difference as , a jump of order , not small. The naive formula fails outright because the straight path from to leaves the domain of smoothness of : there is no valid with at the crossing point, so the Lagrange-form remainder cannot even be evaluated there, and no true equality holds. This shows the segment hypothesis is not a technicality: it is what allows the one-variable reduction to be defined and differentiable on all of in the first place.
Scope, edge cases & common traps
| Situation | What happens |
|---|---|
| only (not ) | Second-order polynomial still exists and equals the stated quadratic; but Lagrange remainder (with a specific ) is not guaranteed — only the weaker Peano form holds, via a more delicate argument. |
| not convex, but segment anyway | Theorem still applies verbatim — convexity of is never used, only that the one particular segment needed lies in . |
| Recovers exactly the classical single-variable Taylor theorem with Lagrange remainder; the Hessian becomes the scalar . | |
| Higher order | Identical proof strategy (reduce to , apply 1-variable Taylor of order ) gives the general multi-index formula . |
| Mistaking the Hessian for asymmetric | If (mixed partials fail to be continuous), can differ from at isolated points, and "the" Hessian is ill-defined without specifying an order — see Clairaut's Theorem on Mixed Partials. |
A very common mistake is to write
treating the cubic remainder term as evaluated at the base point rather than at an unknown intermediate point . This is false in general: it silently assumes is exactly a cubic polynomial (Example 2 above is the special case where it happens to be true). The correct Lagrange form requires the third derivatives in the remainder to be evaluated at some depending on — a point you generally cannot pin down exactly, only bound. Confusing "there exists " with " can be taken as " is the exact multivariable analogue of the single-variable error of dropping the mean-value point in Taylor's theorem.
The mathematician behind it
Brook Taylor was an English mathematician associated with Isaac Newton's circle at the Royal Society, active during the calculus priority disputes between Newton and Leibniz. His 1715 treatise Methodus Incrementorum Directa et Inversa introduced what is now called Taylor's theorem for functions of a single variable, expressed at the time in the language of finite differences and fluxions rather than modern limits. Multivariable generalizations, multi-index notation, and rigorous remainder estimates came much later, developed over the eighteenth and nineteenth centuries as mathematical analysis was put on a fully rigorous footing by Cauchy, Lagrange (who gave the remainder form used here), and their successors.
Where this lives today
The second-order Taylor expansion is the algebraic core of the second-derivative test for classifying critical points in Critical Points and Extrema: at a critical point where , the expansion collapses to , so the local behavior of near is governed entirely by the definiteness of The Hessian Matrix — positive definite gives a local minimum, negative definite a local maximum, indefinite a saddle. In numerical optimization, Newton's method for minimizing a function repeatedly builds the quadratic model at the current iterate and jumps to its minimizer, exploiting exactly this expansion; the remainder bound explains the method's famous quadratic local convergence rate. In numerical analysis more broadly, finite-difference schemes for partial differential equations are derived and error-bounded using multivariable Taylor expansions with explicit remainder terms. In physics, expanding a potential energy function to second order near an equilibrium point produces the harmonic oscillator approximation, with the Hessian playing the role of a stiffness (or spring-constant) matrix whose eigenvalues give normal-mode frequencies. In statistics and machine learning, second-order (quadratic) approximations of loss functions underlie the Laplace approximation for Bayesian posteriors and quasi-Newton optimization algorithms such as BFGS.
:::faq[Can the theorem fail if is open but not convex, even if the specific segment stays inside ?] No — convexity of is never actually used in the proof. The only requirement is that the particular segment from to lies in ; the rest of 's shape is irrelevant. So on a non-convex open set, Taylor's theorem still holds for pairs whose connecting segment happens to avoid the "missing" region, but may fail (or simply not apply) for pairs whose segment exits the domain, exactly as illustrated in the counterexample with the slit plane.
Ask the tutor: How does the Hessian's definiteness at a critical point actually determine whether it's a max, min, or saddle?
Why do we need multi-index notation at all — couldn't we just write out the sums?
For low orders like in low dimension, writing sums explicitly (as in ) is perfectly manageable. But for order in dimension , the number of distinct terms if you don't collapse repeated mixed partials grows like , while multi-index notation groups all index tuples giving the same partial derivative into one coefficient , so the formula has a fixed, dimension-independent shape mirroring the one-variable case exactly. It also makes the multinomial coefficients transparent, which is essential once you go beyond second order or work with several variables simultaneously, as in PDE theory.
Does the Hessian have to be symmetric for the formula to make sense?
The quadratic form makes sense as a number regardless of whether . But calling the matrix "the Hessian" and treating it as a well-defined symmetric object relies on Clairaut's Theorem on Mixed Partials, which requires near . Without that hypothesis, and could genuinely differ, and the "Hessian matrix" would depend on an arbitrary choice of differentiation order — a genuinely different, non-symmetric matrix for each ordering, undermining later uses like eigenvalue-based classification of critical points.
Is the Taylor polynomial the unique quadratic polynomial approximating to second order at ?
Yes. If is any polynomial of degree in satisfying as , then . This follows by matching Taylor coefficients: subtracting two such polynomials gives a degree- polynomial that is , and a nonzero polynomial of degree cannot be (evaluate along suitable rays and use that a nonzero polynomial's lowest-degree homogeneous part dominates as along a generic direction), forcing the two polynomials to be identical. This uniqueness is why the Hessian is the correct object encoding second-order behavior, not merely one convenient encoding among many.
How does this connect to the classification of critical points?
At a critical point (where ), the linear term of vanishes, leaving up to . The sign behavior of this quadratic form — determined by the eigenvalues of the Hessian — dictates whether is a local min (all eigenvalues positive), local max (all negative), saddle (mixed signs), or an inconclusive degenerate case (a zero eigenvalue). This is the entire content of the second-derivative test, developed fully in Critical Points and Extrema and built on the object introduced here, The Hessian Matrix.
What changes if we want a Taylor expansion of order higher than 2?
Nothing conceptually: the same proof — restrict to , apply the one-variable Taylor theorem of the corresponding order, translate derivatives of back into partial derivatives of via repeated chain rule — produces, for ,
for some . The bookkeeping of multi-indices becomes more valuable as grows, since the number of distinct mixed partials of order in variables grows combinatorially.