Multi-index coefficients, integral and Lagrange remainders, and the local Peano theorem, with full proofs and solved practice.
§4.TEstimated reading time: 31 min
1. Notation and the segment hypothesis
Let d be a positive integer and m a nonnegative integer. Let U⊂Rd be open, a∈U, and h∈Rd, and assume
[a,a+h]={a+th:0≤t≤1}⊂U.
For the integral and Lagrange remainder formulas below, suppose f:U→R is Cm+1 on an open neighborhood V⊂U of this segment. Thus all iterated coordinate partial derivatives through order m+1 exist and are continuous on V. No convexity of all of U is required. The displacement h is not required to be a unit vector.
A multi-index is α=(α1,…,αd)∈N0d, where N0={0,1,2,…}. Put
A zero exponent contributes the factor 1 even when the coordinate is zero; 0!=1, h0=1 and ∂0f=f. Write ej for the jth coordinate unit vector. The degree-m Taylor polynomial, written in displacement coordinates, is
Tm,a(h)=∣α∣≤m∑α!∂αf(a)hα.
Its degree can be less than m. The continuous-partial hypothesis makes the order of differentiation immaterial; a justification is given below.
2. One-variable tools and closed endpoints
In the one-variable integral theorem, continuous derivatives on the closed interval mean that the derivatives on its interior extend continuously to its endpoints, with the corresponding one-sided derivatives there. The derivative values in the Taylor polynomial are those endpoint values. Extension to an open interval is a sufficient, but stronger, way to satisfy this convention. In the present multivariable setting it is automatic: the open set {t∈R:a+th∈V} contains [0,1].
Fermat's necessary condition. At a differentiable interior local maximum or minimum, f′(a)=0.
Proof. At a local maximum, sufficiently small positive increments give nonpositive difference quotients and negative increments give nonnegative ones. A two-sided derivative can satisfy both sign limits only by being zero. Negating the function treats a minimum. □
The interior hypothesis matters: f(x)=x on [0,1] has extrema at endpoints despite derivative 1. The converse fails: x3 has zero derivative at zero but no extremum there.
Rolle's theorem. If a<b, f is continuous on [a,b], differentiable on (a,b) and f(a)=f(b), then f′(c)=0 for some c∈(a,b).
Proof. The extreme-value theorem supplies maximum and minimum. If the function is constant, every interior point works. Otherwise a value differs from the equal endpoint values, so either a maximum or a minimum occurs in the interior. Fermat's condition applies there. □
Mean value theorem. Under the same continuity and differentiability hypotheses but without equal endpoint values, some c∈(a,b) satisfies f(b)−f(a)=f′(c)(b−a).
Subtract the secant line f(a)+[f(b)−f(a)](x−a)/(b−a) from f and apply Rolle. This proves the theorem without assuming f′ is continuous. Consequences include: derivative zero on an interval makes the function constant; nonnegative derivative makes it nondecreasing; and ∣f′∣≤M on an interval gives ∣f(y)−f(x)∣≤M∣y−x∣ for points in it. An interval-wide derivative bound cannot be inferred from one derivative value.
The order-n Taylor polynomial at a is Tn(x)=k=0∑nf(k)(a)(x−a)k/k!, whose degree may be smaller than n if leading derivatives vanish.
Theorem: Taylor's integral remainder
Let n≥0 and let f have continuous derivatives through order n+1 on the closed interval between a and x. Then
f(x)=Tn(x)+n!1∫axf(n+1)(t)(x−t)ndt.
Consequently, if ∣f(n+1)(t)∣≤M there, then ∣f(x)−Tn(x)∣≤M∣x−a∣n+1/(n+1)!.
Proof. At n=0, the identity is the fundamental theorem f(x)−f(a)=∫axf′(t)dt. For n≥1, integrate the remainder by parts, taking u=(x−t)n/n! and dv=f(n+1)(t)dt. The boundary at x is zero and at a contributes −f(n)(a)(x−a)n/n!. The remaining integral is the order-(n−1) remainder. Induction therefore yields the identity. This uses oriented integrals, so it also holds when x<a. Taking absolute values, reversing integration limits if needed, and integrating ∣x−t∣n gives the stated bound. Continuity of the highest derivative makes every use of parts and the bound valid.
This theorem provides a sufficient regularity setting, not the weakest possible hypotheses. For a Taylor series to represent f at a fixed x, the remainders must tend to zero as n→∞. A finite-order error bound alone does not prove that without control of its dependence on n.
3. Repeated directional differentiation, with the coefficient count
For a fixed h, define Dhq(x)=dsdq(x+sh)s=0 wherever this derivative exists. Put Dh0f=f and Dhk+1f=Dh(Dhkf). These are repeated derivatives in the same fixed direction, not derivatives with a varying direction.
The first directional derivative. If q is C1 near x, split the increment from x to x+sh into the d successive coordinate increments. For sufficiently small s, all of these small segments lie in a ball contained in the domain. The one-variable mean value theorem gives, for each j with hj=0, a point zj,s on the jth small segment such that
q(x+sh)−q(x)=j:hj=0∑shj∂jq(zj,s).
Here zj,s→x as s→0; coordinates with hj=0 make no increment. Divide by s=0 and use continuity of the partial derivatives to obtain
Dhq(x)=j=1∑dhj∂jq(x).(1)
This argument also handles negative s, since the mean value theorem uses the interval between the two coordinate endpoints.
Why the mixed partials commute. For a C2 function q, fix different coordinates i,j and take small positive u,v so a coordinate rectangle based at x lies in the domain. Its double difference is
Δ=q(x+uei+vej)−q(x+uei)−q(x+vej)+q(x).
Apply the mean value theorem first to s↦q(x+sei+vej)−q(x+sei) on [0,u], then to the difference of ∂iq in the jth coordinate. It gives
uvΔ=∂j∂iq(x+ξei+ηej),0<ξ<u,0<η<v.
Reversing the two coordinate roles gives Δ/(uv)=∂i∂jq(x+ξei+ηej) for another point in the same rectangle. Let u,v↓0. Continuity gives ∂j∂iq(x)=∂i∂jq(x). For derivatives of higher order, apply this result to the inner derivative of f preceding an adjacent pair of differentiations, and then differentiate the resulting identity by any remaining outer derivatives. All orders involved are at most m+1. Every permutation is a finite succession of adjacent swaps, so all orderings with the same coordinate multiplicities agree.
Claim. For every 0≤k≤m+1 and every x∈V,
Dhkf(x)=∣α∣=k∑α!k!hα∂αf(x).(2)
Complete induction. At k=0, the only multi-index is 0, and the right side is f(x). Suppose (2) holds for an integer k with 0≤k≤m. Each ∂αf in that finite sum is C1. By (1), linearity of differentiation and commutation of partial derivatives,
The omitted coordinates have βj=0 and contribute zero to the sum of coordinates. This is precisely (2) at k+1, completing the induction. In counting terms, k!/α! is the number of ordered lists of k coordinate choices in which coordinate j occurs αj times; the displayed recurrence proves that count rather than assuming it.
Now set g(t)=f(a+th). Differentiating at any t is differentiation of f at a+th in direction h. Starting with g(0)(t)=f(a+th) and using this observation successively gives
Thus the identity I0=g(1)−k=0∑0g(k)(0)/k! is the base case. If Ir−1=g(1)−k=0∑r−1g(k)(0)/k!, the displayed recurrence gives Ir=g(1)−k=0∑rg(k)(0)/k!. Induction proves it up to r=m, including m=0. Formula (3) at 0 now gives
Formula (3) at order m+1 gives (4), since (m+1)!/m!=m+1 and the sum is finite. In particular the degree is m and the derivative in the remainder has order m+1.
Strict-intermediate-point proof. Let R=g(1)−k=0∑mg(k)(0)/k! and define
H(t)=g(t)−k=0∑mk!g(k)(0)tk−Rtm+1.
Then H(1)=0 and H(r)(0)=0 for 0≤r≤m. Rolle on [0,1] gives a point c1∈(0,1) with H′(c1)=0. If m≥1, Rolle on [0,c1], using H′(0)=0, gives c2∈(0,c1) with H′′(c2)=0. More precisely, whenever 1≤r≤m and H(r)(cr)=0 with cr>0, the additional zero H(r)(0)=0 allows Rolle on [0,cr] to produce cr+1∈(0,cr) with H(r+1)(cr+1)=0. After m+1 applications, θ=cm+1∈(0,1) satisfies
0=H(m+1)(θ)=g(m+1)(θ)−(m+1)!R.
For m=0, the first application already is the last. Substitute (3) to obtain (5).
The same θ in every term of (5) comes from applying a scalar theorem once to the single line function g. Applying separate mean value arguments to individual partial derivatives or to separate coordinate paths can give different points; those points cannot be silently replaced by a common one. The common-point claim here is for a real scalar function, not a componentwise common-point claim for a vector-valued function.
If h=0, then g is constant, Tm,a(0)=f(a) and Rm(a,0)=0; (4) remains valid. No strict geometric intermediate point on the singleton segment is required. Even for h=0, the line function can be constant; the Rolle proof still applies. At m=0, the formulas reduce to f(a+h)−f(a)=∫01∇f(a+th)⋅hdt and the scalar segment mean value formula.
5. Bounds and a weaker local Taylor statement
If ∣∂αf(x)∣≤M for every ∣α∣=m+1 and every x on the segment, (4) gives
Indeed ∫01(1−t)mdt=1/(m+1), and expanding the product of m+1 copies of j∑∣hj∣ groups ordered coordinate choices with exactly the coefficient count proved in (2). A bound at a alone does not imply (6). Alternatively, a direct bound ∣Dhm+1f(a+th)∣≤K∥h∥m+1 gives ∣Rm∣≤K∥h∥m+1/(m+1)!.
The Cm+1 assumption is sufficient for (4) and (5); it is not a requirement for every local Taylor approximation. If m≥1 and f is only Cm on a neighborhood of a, then
f(a+h)=Tm,a(h)+o(∥h∥m)(h→0).(7)
To prove this weaker assertion without adding another derivative, apply (4) with degree m−1 to sufficiently short segments. The integral containing the constant Dhmf(a) equals Dhmf(a)/m!, exactly the degree-m term by (2). After subtracting that constant inside the integral, the error is bounded by
There are finitely many such α, and continuity at a controls all segment points because ∥th∥≤∥h∥. Cauchy–Schwarz gives j∑∣hj∣≤d∥h∥, proving (7). At m=0, continuity alone gives f(a+h)=f(a)+o(1). These weaker conclusions do not assert an order-(m+1) remainder or an infinite series representation.
6. Worked example: third order and a fourth-order remainder
Let f(x,y)=ex+2y, a=(0,0) and h=(u,v). For α=(p,q), ∂αf(0,0)=2q. Therefore
For example, the u2v coefficient is ∂x2∂yf(0,0)/(2!1!)=2/2=1; in Dh3f(0,0) the same term has coefficient (3!/(2!1!))2=6, which becomes 1 only after division by 3!.
Put s=u+2v. The line function is g(t)=ets, so g(4)(t)=s4ets. Thus
eu+2v−T3,0(u,v)=6s4∫01(1−t)3etsdt,
and for a nonzero displacement one common θ∈(0,1) gives R3=s4eθs/24. In particular ∣R3∣≤e∣s∣∣s∣4/24. If s=0, the line is constant and the error is exactly zero, even when h=0. This cancellation is compatible with the general bound, and illustrates why total degree, rather than a separate degree limit in each coordinate, is used.
7. Practice and full solution
P01. For f(x,y,z)=5+x2y+2xyz−yz2, expand about a=(1,0,1) with displacement h=(u,v,w).
Find T2,a(h) and the exact remaining terms.
Verify every nonzero third-order mixed coefficient using ∂αf/α!, and verify the directional integral and Lagrange remainders.
Decide whether T3,a is exact, including at h=0.
Full solution. Substitution and collection by total degree give
Hence T2,a=5+2v+4uv and R2=u2v+2uvw−vw2. The third partials are constant. Their nonzero multi-indices and values are
∂(2,1,0)f=2,∂(1,1,1)f=2,∂(0,1,2)f=−2.
All other third-order multi-index derivatives vanish. Division by 2!1!0!=2, 1!1!1!=1 and 0!1!2!=2 gives respectively the coefficients 1,2,−1. Formula (2) gives
This is independent of the point on the segment. The integral remainder is 21∫01(1−t)2Dh3fdt=Dh3f/6=R2, because the integral of (1−t)2 is 1/3. For h=0, the Lagrange form has the same value for every θ∈(0,1), so in particular for the point supplied by the theorem. Finally all fourth-order derivatives vanish; the degree-3 polynomial is the full displayed expansion, with zero remainder for every displacement. At h=0 both remainders are zero directly.
Further study
Concept lensAlgebraic
The coefficient count is the multinomial theorem
Apply formula (2) of Section 3 to f(x)=e⟨c,x⟩ for a fixed c∈Rd. Every partial derivative is ∂αf=cαf, and along a line Dhf=⟨c,h⟩f, so Dhkf=⟨c,h⟩kf. Substituting into (2) and cancelling the positive factor f(x) gives
(c1h1+⋯+cdhd)k=∣α∣=k∑α!k!cαhα,
the multinomial theorem. Formula (2) is therefore the multinomial theorem with partial derivatives in place of the numbers cj, and the recurrence in Section 3 that produced (k+1)!/β! is the usual inductive proof of the multinomial coefficients. The same identity, with ∣hj∣ in place of cjhj, is what turns the sum in (6) into (j∑∣hj∣)m+1/(m+1)!, and the case c=(1,2) is the computation Dhkf(0,0)=(u+2v)k behind the example of Section 6.
Worked example
(A third-order polynomial for a product, certified by bound (6))
Let f(x,y)=exsiny, a=(0,0) and h=(u,v). Since ∂(p,q)f=exdyqdqsiny, the values at the origin are ∂(p,q)f(0,0)=0,1,0,−1 for q≡0,1,2,3(mod4). The coefficients ∂αf(0,0)/α! with ∣α∣≤3 that are nonzero are
This agrees with multiplying the one-variable expansions 1+u+u2/2+⋯ and v−v3/6+⋯ and keeping total degree at most 3. Every fourth-order partial derivative has the form ±exsiny or ±excosy, so on the segment from 0 to h it is bounded by M=e∣u∣. Bound (6) with m=3 gives
∣eusinv−T3,0(u,v)∣≤24e∣u∣(∣u∣+∣v∣)4.
At h=(0.1,0.2): T3,0=0.2+0.02+0.001−0.001333…=0.219667 (to six decimals), the bound is e0.1(0.3)4/24≈0.000373, and indeed e0.1sin0.2=0.219564 to six decimals, an error of about 0.000103.
Worked example
(A sign from the Lagrange remainder)
The Lagrange form (5) with m=1 can prove an inequality, not only estimate an error. For f(x,y)=ex+2y and h=(u,v)=0, put s=u+2v. As in Section 6, the line function is g(t)=ets, so Dh2f(θh)=g′′(θ)=s2eθs, and (5) gives some θ∈(0,1) with
eu+2v−(1+u+2v)=R1(0,h)=2!Dh2f(θh)=2s2eθs≥0.
Hence eu+2v≥1+u+2v for every (u,v); the case h=0 is an equality. Equality holds exactly when s=0, that is, on the line u+2v=0, where both sides equal 1. The graph of f therefore lies above its tangent plane at the origin and touches it along a whole line, which is consistent with the rank-one quadratic term s2/2.
Worked example
(Peano's form (7) where the exact remainders are unavailable)
Let f(x,y)=(x2+y2)3/2=∥(x,y)∥3 and a=(0,0). Away from the origin,
and fyy is fxx with x and y exchanged. These tend to 0 at the origin, and the difference quotients of f and of fx,fy at the origin are O(∥h∥2) and O(∥h∥), so f is C2 with f, ∇f and the Hessian all zero at the origin. Thus T2,0=0. The function is not C3 near the origin: fxxx=3x(2x2+3y2)/∥(x,y)∥3 equals 6 on the positive x-axis and 0 on the y-axis, so it has no limit at the origin. Formulas (4) and (5) with m=2 therefore do not apply to segments starting at a. Statement (7), which needs only C2, still applies and predicts f(h)=o(∥h∥2); the exact error is ∥h∥3, in agreement.
Quick check
(Use formula (2) of Section 3 with d=2 and k=2 to write Dh2f for h=(u,v), and identify it with the Hessian quadratic form.)
List the three multi-indices with ∣α∣=2 and their weights 2!/α!.
Solution · Answer
The multi-indices are (2,0), (1,1) and (0,2), with weights 2!/(2!0!)=1, 2!/(1!1!)=2 and 2!/(0!2!)=1. Hence
Dh2f=fxxu2+2fxyuv+fyyv2=hTHfh,
where the commutation of mixed partials proved in Section 3 lets fxy and fyx be combined into one term. Dividing by 2! gives the quadratic term 21hTHfh of T2,a.
Quick check
(For d=3, how many terms (multi-indices) does T2,a have, and what is the coefficient of h1h2h3∂(1,1,1)f(a+th) in Dh3f(a+th)?)
Count multi-indices by total degree, then apply (2) with k=3.
Solution · Answer
There is 1 multi-index of degree 0, there are 3 of degree 1, and there are 6 of degree 2: (2,0,0),(0,2,0),(0,0,2),(1,1,0),(1,0,1),(0,1,1). So T2,a has 1+3+6=10 terms. By (2), the coefficient of h(1,1,1)∂(1,1,1)f in Dh3f is 3!/(1!1!1!)=6, the number of orders in which the three different coordinates can be chosen.
The explorer below lists, for d = 2 or 3 and k ≤ 5, every multi-index α with |α| = k together with its weight k!/α! from formula (2), counts them as C(d + k − 1, k), and checks Σ (k!/α!) h^α = (h₁ + ⋯ + h_d)^k for an integer h.
Quick check
(For f(x,y)=sin(x+y) at a=(0,0) and h=(0.1,0.05), compare the bound (6) for m=1 with the bound for m=2. Which is sharper, and why may you use m=2 with the same polynomial?)
Compute T1,0 and T2,0 first; every derivative of f is ±sin(x+y) or ±cos(x+y).
Solution · Answer
All second partials at the origin equal −sin0=0, so T2,0=T1,0=u+v, which is 0.15 at h. Every derivative is bounded by M=1, and ∣u∣+∣v∣=0.15. Bound (6) gives ∣R1∣≤0.152/2=0.01125 for m=1 and ∣R2∣≤0.153/6=0.0005625 for m=2. Both bound the same error sin0.15−0.15, because the two polynomials coincide; the second is about twenty times sharper. The actual error is sin0.15−0.15≈−0.000562, so the m=2 bound is almost attained.
ExploreMATH2010 · multi-indices
Multi-indices of order k and the weights k!/α!
Choose the number of variables d, the total degree k and an integer displacement h. The figure lists every multi-index α with |α| = k, its weight k!/α! from formula (2), and checks that Σ (k!/α!) h^α equals (h₁ + ⋯ + h_d)^k, which is formula (2) for f(x) = e^(x₁ + ⋯ + x_d), where every ∂^α f equals f.
Number of variables d
Total degree k
h = (1, 2), (h₁ + h₂)² = 3² = 9
Each dot is one multi-index α with |α| = k, labelled by its weight k!/α!. For d = 2 they lie on a segment from (k, 0) to (0, k); for d = 3 they fill a triangle whose corners are (k, 0, 0), (0, k, 0) and (0, 0, k). The ringed dot is the multi-index chosen for the recurrence.
Terms of Σ (k!/α!) h^α
α
α!
k!/α!
h^α
value of h^α
(k!/α!) h^α
(2, 0)
2
1
h₁²
1
1
(1, 1)
1
2
h₁h₂
2
4
(0, 2)
2
1
h₂²
4
4
Multi-indices with |α| = k
3
C(d + k − 1, k)
3
Terms of T_k (all |α| ≤ k)
6
Σ k!/α! (equals d^k)
4
Σ (k!/α!) h^α
9
(h₁ + ⋯ + h_d)^k
9
Recurrence k!/β! = Σ (k − 1)!/(β − e_j)!
2 = 1 + 1 [β = (1, 1); β − e_j = (0, 1), (1, 0)]
d = 2, k = 2, h = (1, 2): 9 = 9 ✓. The weighted sum equals (h₁ + ⋯ + h_d)^k, as the multinomial theorem requires: expanding k factors of h₁ + ⋯ + h_d gives d^k ordered lists of coordinate choices, and exactly k!/α! of them use coordinate j exactly α_j times.
Why the weights are k!/α! and the count is C(d + k − 1, k)
Formula (2) says D_h^k f = Σ over |α| = k of (k!/α!) h^α ∂^α f. In counting terms k!/α! is the number of ordered lists of k coordinate choices in which coordinate j occurs α_j times; the recurrence of Section 3, k!/β! = Σ over j with β_j ≥ 1 of (k − 1)!/(β − e_j)!, proves this count by induction, because each list for β ends with some coordinate j and removing it leaves a list for β − e_j.
For f(x) = e^(x₁ + ⋯ + x_d), ∂^α f = f for every α and D_h f = (h₁ + ⋯ + h_d) f, so D_h^k f = (h₁ + ⋯ + h_d)^k f. Cancelling f in (2) gives Σ (k!/α!) h^α = (h₁ + ⋯ + h_d)^k; with h = (1, …, 1) the weights add up to d^k.
A multi-index with |α| = k is a way to place k identical marks into d boxes; writing the marks as stars and the d − 1 box walls as bars, it is a choice of the k star positions among d + k − 1 places, so there are C(d + k − 1, k) of them. Summing over the degrees 0, 1, …, k gives C(d + k, k) terms of T_k; for d = 3 and k = 2 this is 10.
d is 2 or 3, k runs from 0 to 5 and each entry of h is an integer from −3 to 3. All values are exact integers; a zero exponent contributes the factor 1 even when the entry is 0.