Multi-index coefficients, integral and Lagrange remainders, and the local Peano theorem, with full proofs and solved practice.
§13.TEstimated reading time: 29 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.
8. Further study
Concept lensCombinatorial
Formula (2) is the multinomial theorem in disguise
For numbers h1,…,hd the multinomial theorem reads (h1+⋯+hd)k=∣α∣=k∑α!k!hα, because k!/α! counts the ordered lists of k choices with coordinate j chosen αj times. Formula (2) is the same identity applied to the commuting operators h1∂1,…,hd∂d: by (1), Dh=j∑hj∂j, and commutation of the partial derivatives lets (Dh)k be expanded exactly like a power of a sum of numbers. For d=2 and k=3 this gives Dh3=u3∂13+3u2v∂12∂2+3uv2∂1∂22+v3∂23, the pattern of (u+v)3. The bound (6) is the same theorem once more, applied to ∣h1∣,…,∣hd∣; the induction in Section 3 proves the count instead of assuming the operator expansion.
Worked example
(A product of one-variable functions, to third order)
Let f(x,y)=eysinx at a=(0,0) with h=(u,v). For α=(p,q), ∂αf(0,0)=sin(p)(0)⋅1, and sin(p)(0) equals 0,1,0,−1 for p=0,1,2,3. The only nonzero coefficients with ∣α∣≤3 therefore come from α=(1,0),(1,1),(1,2),(3,0):
1!0!1=1,1!1!1=1,1!2!1=21,3!0!−1=−61.
Hence
T3,0(u,v)=u+uv+21uv2−61u3.
As a check, multiply the one-variable polynomials u−61u3 and 1+v+21v2 and discard terms of total degree above three; the result is the same. The truncation is by total degree, as in the definition of Tm,a, so the product term −61u3v of degree four is omitted.
Worked example
(When the bound (6) is nearly attained)
Let f(x,y)=sin(x+y), m=2, a=(0,0) and h=(0.1,0.2). With s=u+v, the second derivatives vanish at the origin, so T2,0=s and the approximation is 0.3. Every third partial derivative equals −cos(x+y), so M=1 works on the segment, and (6) gives
∣R2(a,h)∣≤3!1(0.1+0.2)3=0.0045.
The actual error is 0.3−sin0.3≈0.0044798. The bound is almost sharp here because both displacement coordinates have the same sign, every third derivative has the same value, and ∣cos(θs)∣ is close to 1 for the small s involved, so the absolute values in (6) lose almost nothing. When the terms of Dh3f have mixed signs, (6) can overestimate considerably, and computing g′′′ directly is better.
Worked example
(A C² function for which only the local statement (7) is available)
Let f(x,y)=(x2+y2)3/2=r3. Away from the origin fx=3xr and fxx=3r+3x2/r, with similar formulas for the other derivatives, including fxy=3xy/r. Each second partial is bounded by 6r, so it tends to 0; at the origin the first and second partials are 0 from the difference quotients, for example fx(t,0)=3t∣t∣ gives fxx(0,0)=lim3∣t∣=0. Thus f is C2 on R2 and T2,0=0.
It is not C3 near the origin: fxx(t,0)=6∣t∣ has no derivative at t=0. So (4) and (5) with m=2 are not available, while (7) with m=2 applies and asserts f(h)=o(∥h∥2). Here this is visible directly, since f(h)=∥h∥3. The example shows the division of labour in Section 5: the weaker statement needs one derivative fewer, and it gives no formula for the error.
Quick check
(How many multi-indices α∈N03 satisfy ∣α∣≤2? How many terms can T2,a have for a function of three variables?)
Count the multi-indices of each total degree separately.
Solution · Answer
There is 1 multi-index of degree 0, there are 3 of degree 1, namely e1,e2,e3, and 6 of degree 2, namely 2ej for three values of j and ei+ej for three pairs i<j. So there are 10 in all, and T2,a has at most 10 terms; some coefficients may vanish. In general the number of α∈N0d with ∣α∣≤m is (dm+d), here (35)=10.
Quick check
(For f(u,v,w)=eu+v+w at the origin, find the coefficient of uv2w in T4,0, and its coefficient in Dh4f(0).)
Every partial derivative of f at the origin equals 1.
Solution · Answer
The monomial uv2w is hα for α=(1,2,1), with ∣α∣=4 and α!=1!2!1!=2. Since ∂αf(0)=1, its coefficient in T4,0 is 1/2. By (2), its coefficient in Dh4f(0) is 4!/α!=24/2=12, and dividing by 4! recovers 1/2.
Quick check
(For f(x,y)=x2y, a=(1,1) and m=1, compute R1(a,h) exactly and find the point θ in the Lagrange form (5).)
Write the Lagrange form with the second partial derivatives evaluated at a+θh and compare it with the exact remainder.
Solution · Answer
Here T1,a=1+2u+v, and f(1+u,1+v)=(1+2u+u2)(1+v), so R1=u2+2uv+u2v. The second partials are fxx=2y, fxy=2x and fyy=0, so (5) reads
2!2(1+θv)u2+1!1!2(1+θu)uv=u2+2uv+3θu2v.
Equality with R1 forces 3θu2v=u2v. If u=0 and v=0, then θ=1/3. If u2v=0, every θ∈(0,1) works, which is consistent with the theorem's assertion that some θ exists.