Multi-index coefficients, integral and Lagrange remainders, and the local Peano theorem, with full proofs and solved practice.
Course contents
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=0nf(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=00g(k)(0)/k! is the base case. If Ir−1=g(1)−∑k=0r−1g(k)(0)/k!, the displayed recurrence gives Ir=g(1)−∑k=0rg(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=0mg(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.