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 interior-extremum condition, Rolle's theorem and the secant-line mean value proof are established in the one-variable theorem unit. Rolle requires continuity on a nondegenerate closed interval and differentiability inside; it does not require a continuous derivative. Those hypotheses hold for the line functions here. We now prove the integral remainder itself.
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.
Use structure before a general remainder bound
For f(x,y)=ex+y at zero, the total-degree-three Taylor polynomial is 1+s+s2/2+s3/6 with s=x+y. The multi-index coefficients agree with this expression by the binomial theorem. At (x,y)=(0.05,−0.03), s=0.02, so the one-variable remainder gives
∣f(x,y)−T3(x,y)∣≤e0.0224(0.02)4.
The reduction keeps cancellation in x+y. Bounding every separate monomial by absolute values instead would replace 0.02 by ∣x∣+∣y∣=0.08 and give a valid but less informative bound. A multi-index theorem supplies a general method; a known lower-dimensional structure can improve its use without changing the theorem.
Practice. Determine the actual remainder on the line y=−x. Does a positive norm upper bound force a positive error?
Full solution. On that line s=0, both the function and every displayed Taylor polynomial equal 1 exactly, so the remainder is zero. A positive upper bound obtained from a norm estimate remains valid, but does not assert that the actual error must be positive.
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
Counterexample mode
Mixed partials that exist everywhere but do not commute
The commutation argument in Section 3 uses continuity of the second partials at the final step. Without it the conclusion fails. Define q(0,0)=0 and
q(x,y)=x2+y2xy(x2−y2)((x,y)=(0,0)).
Since q(u,0)=0, ∂1q(0,0)=0; and for y=0, ∂1q(0,y)=u→0limq(u,y)/u=u→0limy(u2−y2)/(u2+y2)=−y. Hence ∂2∂1q(0,0)=−1. In the same way ∂2q(x,0)=x for every x, so ∂1∂2q(0,0)=1. Away from the origin q is a rational function with nonvanishing denominator, so both mixed partials exist at every point of R2, yet they differ at the origin. They are not continuous there, so q is not C2 near the origin and the hypothesis of Section 1 fails; formula (2), which relies on the order of differentiation being immaterial, is not available for q at the origin.
Concept lensAlgebraic
Formula (2) is the multinomial theorem
Apply formula (2) to f(x)=ec⋅x for a fixed c∈Rd. Then ∂αf=cαec⋅x, while the line function s↦f(x+sh)=ec⋅xesc⋅h gives Dhkf(x)=(c⋅h)kec⋅x. Cancelling ec⋅x, formula (2) becomes
(c1h1+⋯+cdhd)k=∣α∣=k∑α!k!cαhα,
the multinomial theorem. The induction in Section 3 is therefore also a proof of the multinomial theorem, and k!/α! is the multinomial coefficient: the number of ordered lists of k coordinate choices using coordinate j exactly αj times. For a general f, the constant products cα are replaced by the partial derivatives ∂αf(x), and the counting is unchanged.
Proof X-ray
One line function, one intermediate point
The strict-intermediate-point proof in Section 4 never works with f directly. It applies Rolle's theorem repeatedly to the single scalar function H built from the line function g(t)=f(a+th), which produces one θ∈(0,1) with g(m+1)(θ)=(m+1)!R. Only afterwards does formula (3) expand g(m+1)(θ) into the sum over ∣α∣=m+1, and every term of that sum is then evaluated at the same point a+θh. The common point is inherited from one scalar application of Rolle; it is not a property of the individual partial derivatives, which is why the remark after the proof forbids combining separate mean value points.
Counterexample mode
No common Lagrange point for a vector-valued map
Claim: the strict-intermediate-point form (5) also holds for vector-valued f, with one θ for all components. Take d=1, f(t)=(t3,t4), a=0, h=1 and m=1. The degree-one Taylor polynomial at 0 is (0,0), since f(0)=f′(0)=0, so the remainder is R1=f(1)=(1,1). A common Lagrange point would need f′′(θ)/2=(3θ,6θ2)=(1,1), that is θ=1/3 and θ=1/6 at once, which is impossible. The integral form (4) still holds componentwise: ∫01(1−t)(6t,12t2)dt=(1,1). The common-point statement of Section 4 is a theorem about a real scalar function.
Worked example 3.1.1
(A first-order bound from the multi-index estimate (6))
Let f(x,y)=xey, a=(1,0) and h=(u,v) with ∣u∣,∣v∣≤0.1. At a, f=1, ∂xf=ey=1 and ∂yf=xey=1, so T1,a(h)=1+u+v. The second partials are ∂x2f=0, ∂x∂yf=ey and ∂y2f=xey. On the segment, 0.9≤x≤1.1 and ∣y∣≤0.1, so every second partial is at most M=1.1e0.1≈1.2157 in absolute value. Estimate (6) with m=1 gives
∣f(1+u,v)−(1+u+v)∣≤2M(∣u∣+∣v∣)2.
At h=(0.1,0.1) the bound is 1.2157⋅0.04/2≈0.0243, while the actual error is 1.1e0.1−1.2≈0.0157. The bound uses derivative values along the whole segment, as Section 5 requires.
Worked example 3.1.2
(Counting the coefficients of a Taylor polynomial)
The degree-m polynomial Tm,a in d variables has one coefficient for each multi-index with ∣α∣≤m. Adding a slack exponent α0=m−∣α∣≥0 matches these multi-indices with solutions of α0+α1+⋯+αd=m in nonnegative integers. Writing such a solution as m stars separated by d bars, the solutions correspond to choices of d bar positions among m+d places, so the number of coefficients is
(dm+d).
For d=2 and m=3 this is (25)=10, and the polynomial T3,0 of Section 6 has exactly ten terms. For d=3 and m=2 it is also 10: one constant, three linear and six quadratic coefficients. The count grows like md/d!, which is one reason that structure, as in the section on using structure before a general remainder bound, matters in practice.
Worked example 3.1.3
(Both remainders computed exactly for a cube of a linear form)
Let f(x,y)=(x+y)3, a=0, m=1 and h=(u,v) with s=u+v. Then T1,0(h)=0, so R1(0,h)=s3. The line function is g(t)=t3s3, so Dh2f(th)=g′′(t)=6ts3. The integral form (4) gives
R1=1!1∫01(1−t)6ts3dt=6s3(21−31)=s3,
as it must. For s=0, the Lagrange form (5) requires Dh2f(θh)/2!=3θs3=s3, so θ=1/3 exactly, for every such h. When s=0 but h=0 the line function is constant, every θ works, and the remainder is 0, as Section 4 notes.
Quick check
(Use formula (2) to compute Dh3f for f(x,y)=x2y and h=(u,v), and check it with the line function.)
Only the multi-index (2,1) has a nonzero third derivative.
Solution · Answer
The only nonzero third partial is ∂(2,1)f=2. Formula (2) gives Dh3f=2!1!3!u2v⋅2=6u2v. Check: g(t)=f(tu,tv)=t3u2v, so g′′′(t)=6u2v, the same constant.
Quick check
(For f(x,y)=ex+2y from Section 6, use estimate (6) to bound the degree-three error at h=(0.1,0.1), and compare with the structural bound e∣s∣s4/24.)
For ∣α∣=4, ∂αf=2qex+2y with q=α2≤4.
Solution · Answer
On the segment x+2y≤0.3, so every fourth partial is at most M=16e0.3. Estimate (6) gives 16e0.3(0.2)4/24≈1.44⋅10−3. With s=u+2v=0.3, the structural bound is e0.3(0.3)4/24≈4.56⋅10−4, and the actual error e0.3−(1+0.3+0.045+0.0045)≈3.59⋅10−4. Both bounds are valid; the one using the line function is sharper.
Quick check
(How many monomials of total degree exactly 3 are there in 3 variables? Check with the coefficient count above.)
Count multi-indices with ∣α∣=3, or subtract the counts for m=3 and m=2.
Solution · Answer
The number of α∈N03 with ∣α∣=3 is (23+2)=10: three of type x3, six of type x2y and one xyz. The difference of the counts gives the same: (36)−(35)=20−10=10.