Taylor's theorem explained

In calculus, Taylor's theorem gives an approximation of a k-times differentiable function around a given point by a polynomial of degree k, called the k-th-order Taylor polynomial. For a smooth function, the Taylor polynomial is the truncation at the order k of the Taylor series of the function. The first-order Taylor polynomial is the linear approximation of the function, and the second-order Taylor polynomial is often referred to as the quadratic approximation.[1] There are several versions of Taylor's theorem, some giving explicit estimates of the approximation error of the function by its Taylor polynomial.

Taylor's theorem is named after the mathematician Brook Taylor, who stated a version of it in 1715,[2] although an earlier version of the result was already mentioned in 1671 by James Gregory.[3]

Taylor's theorem is taught in introductory-level calculus courses and is one of the central elementary tools in mathematical analysis. It gives simple arithmetic formulas to accurately compute values of many transcendental functions such as the exponential function and trigonometric functions.It is the starting point of the study of analytic functions, and is fundamental in various areas of mathematics, as well as in numerical analysis and mathematical physics. Taylor's theorem also generalizes to multivariate and vector valued functions. It provided the mathematical basis for some landmark early computing machines: Charles Babbage's Difference Engine calculated sines, cosines, logarithms, and other transcendental functions by numerically integrating the first 7 terms of their Taylor series.

Motivation

If a real-valued function f(x) is differentiable at the point x=a, then it has a linear approximation near this point. This means that there exists a function h1(x) such that

f(x) = f(a) + f'(a)(x - a) + h_1(x)(x - a), \quad \lim_ h_1(x) = 0.

Here

P_1(x) = f(a) + f'(a)(x - a)

is the linear approximation of f(x) for x near the point a, whose graph y=P_1(x) is the tangent line to the graph y=f(x) at . The error in the approximation is:R_1(x) = f(x) - P_1(x) = h_1(x)(x - a).

As x tends to a, this error goes to zero much faster than

f'(a)(x{-}a)

, making

f(x)P1(x)

a useful approximation.

For a better approximation to f(x), we can fit a quadratic polynomial instead of a linear function:

P_2(x) = f(a) + f'(a)(x - a) + \frac(x - a)^2.

Instead of just matching one derivative of f(x) at x=a, this polynomial has the same first and second derivatives, as is evident upon differentiation.

Taylor's theorem ensures that the quadratic approximation is, in a sufficiently small neighborhood of x=a, more accurate than the linear approximation. Specifically,

f(x) = P_2(x) + h_2(x)(x - a)^2, \quad \lim_ h_2(x) = 0.

Here the error in the approximation is

R_2(x) = f(x) - P_2(x) = h_2(x)(x - a)^2,

which, given the limiting behavior of

h2

, goes to zero faster than

(x-a)2

as x tends to a.

Similarly, we might get still better approximations to f if we use polynomials of higher degree, since then we can match even more derivatives with f at the selected base point.

In general, the error in approximating a function by a polynomial of degree k will go to zero much faster than

(x-a)k

as x tends to a. However, there are functions, even infinitely differentiable ones, for which increasing the degree of the approximating polynomial does not increase the accuracy of approximation: we say such a function fails to be analytic at x = a: it is not (locally) determined by its derivatives at this point.

Taylor's theorem is of asymptotic nature: it only tells us that the error R_k in an approximation by a k-th order Taylor polynomial Pk tends to zero faster than any nonzero k-th degree polynomial as x \to a. It does not tell us how large the error is in any concrete neighborhood of the center of expansion, but for this purpose there are explicit formulas for the remainder term (given below) which are valid under some additional regularity assumptions on f. These enhanced versions of Taylor's theorem typically lead to uniform estimates for the approximation error in a small neighborhood of the center of expansion, but the estimates do not necessarily hold for neighborhoods which are too large, even if the function f is analytic. In that situation one may have to select several Taylor polynomials with different centers of expansion to have reliable Taylor-approximations of the original function (see animation on the right.)

There are several ways we might use the remainder term:

  1. Estimate the error for a polynomial Pk(x) of degree k estimating f(x) on a given interval (ar, a + r). (Given the interval and degree, we find the error.)
  2. Find the smallest degree k for which the polynomial Pk(x) approximates f(x) to within a given error tolerance on a given interval (ar, a + r) . (Given the interval and error tolerance, we find the degree.)
  3. Find the largest interval (ar, a + r) on which Pk(x) approximates f(x) to within a given error tolerance. (Given the degree and error tolerance, we find the interval.)

Taylor's theorem in one real variable

Statement of the theorem

The precise statement of the most basic version of Taylor's theorem is as follows:

The polynomial appearing in Taylor's theorem is the \boldsymbol-th order Taylor polynomial

P_k(x) = f(a) + f'(a)(x-a) + \frac(x-a)^2 + \cdots + \frac(x-a)^k

of the function f at the point a. The Taylor polynomial is the unique "asymptotic best fit" polynomial in the sense that if there exists a function and a k-th order polynomial p such that

f(x) = p(x) + h_k(x)(x-a)^k, \quad \lim_ h_k(x) = 0,

then p = Pk. Taylor's theorem describes the asymptotic behavior of the remainder term

R_k(x) = f(x) - P_k(x),

which is the approximation error when approximating f with its Taylor polynomial. Using the little-o notation, the statement in Taylor's theorem reads as

R_k(x) = o(|x-a|^), \quad x\to a.

Explicit formulas for the remainder

Under stronger regularity assumptions on f there are several precise formulas for the remainder term Rk of the Taylor polynomial, the most common ones being the following.

These refinements of Taylor's theorem are usually proved using the mean value theorem, whence the name. Additionally, notice that this is precisely the mean value theorem when k=0. Also other similar expressions can be found. For example, if G(t) is continuous on the closed interval and differentiable with a non-vanishing derivative on the open interval between a and x, then

R_k(x) = \frac(x-\xi)^k \frac

for some number \xi between a and x. This version covers the Lagrange and Cauchy forms of the remainder as special cases, and is proved below using Cauchy's mean value theorem. The Lagrange form is obtained by taking

G(t)=(x-t)k+1

and the Cauchy form is obtained by taking

G(t)=t-a

.

The statement for the integral form of the remainder is more advanced than the previous ones, and requires understanding of Lebesgue integration theory for the full generality. However, it holds also in the sense of Riemann integral provided the (k + 1)th derivative of f is continuous on the closed interval [''a'',''x''].

Due to the absolute continuity of f on the closed interval between a and x, its derivative f exists as an L-function, and the result can be proven by a formal calculation using the fundamental theorem of calculus and integration by parts.

Estimates for the remainder

It is often useful in practice to be able to estimate the remainder term appearing in the Taylor approximation, rather than having an exact formula for it. Suppose that f is -times continuously differentiable in an interval I containing a. Suppose that there are real constants q and Q such that

q\le f^(x)\le Q

throughout I. Then the remainder term satisfies the inequality

q\frac\le R_k(x)\le Q\frac,

if, and a similar estimate if . This is a simple consequence of the Lagrange form of the remainder. In particular, if

|f^(x)|\le M

on an interval with some

r>0

, then

|R_k(x)|\le M\frac

^
\le M\frac

for all The second inequality is called a uniform estimate, because it holds uniformly for all x on the interval

Example

Suppose that we wish to find the approximate value of the function f(x)=e^x on the interval [-1,1] while ensuring that the error in the approximation is no more than 10−5. In this example we pretend that we only know the following properties of the exponential function:

From these properties it follows that f^(x)=e^x for all k, and in particular, f^(0)=1. Hence the k-th order Taylor polynomial of f at 0 and its remainder term in the Lagrange form are given by

P_k(x) = 1+x+\frac+\cdots+\frac, \qquad R_k(x)=\fracx^,

where \xi is some number between 0 and x. Since ex is increasing by, we can simply use e^x \leq 1 for x \in [-1,0] to estimate the remainder on the subinterval

[-1,0]

. To obtain an upper bound for the remainder on

[0,1]

, we use the property e^\xi for 0<\xi to estimate

e^x = 1 + x + \fracx^2 < 1 + x + \fracx^2, \qquad 0 < x\leq 1

using the second order Taylor expansion. Then we solve for ex to deduce that

e^x \leq \frac = 2\frac \leq 4, \qquad 0 \leq x\leq 1

simply by maximizing the numerator and minimizing the denominator. Combining these estimates for ex we see that

|R_k(x)| \leq \frac \leq \frac, \qquad -1\leq x \leq 1,

so the required precision is certainly reached, when

\frac < 10^ \quad \Longleftrightarrow \quad 4\cdot 10^5 < (k+1)! \quad \Longleftrightarrow \quad k \geq 9.

(See factorial or compute by hand the values 9! =362880 and 10! =3628800.) As a conclusion, Taylor's theorem leads to the approximation

e^x = 1+x+\frac + \cdots + \frac + R_9(x), \qquad |R_9(x)| < 10^, \qquad -1\leq x \leq 1.

e2.71828

, correct up to five decimal places.

Relationship to analyticity

Taylor expansions of real analytic functions

Let IR be an open interval. By definition, a function f : IR is real analytic if it is locally defined by a convergent power series. This means that for every a ∈ I there exists some r > 0 and a sequence of coefficients ck ∈ R such that and

f(x) = \sum_^\infty c_k(x-a)^k = c_0 + c_1(x-a) + c_2(x-a)^2 + \cdots, \qquad |x-a|

In general, the radius of convergence of a power series can be computed from the Cauchy–Hadamard formula

\frac = \limsup_|c_k|^\frac.

This result is based on comparison with a geometric series, and the same method shows that if the power series based on a converges for some bR, it must converge uniformly on the closed interval [a-r_b,a+r_b], where r_b=\left\vert b-a \right\vert. Here only the convergence of the power series is considered, and it might well be that extends beyond the domain I of f.

The Taylor polynomials of the real analytic function f at a are simply the finite truncations

P_k(x) = \sum_^k c_j(x-a)^j, \qquad c_j = \frac

of its locally defining power series, and the corresponding remainder terms are locally given by the analytic functions

R_k(x) = \sum_^\infty c_j(x-a)^j = (x-a)^k h_k(x), \qquad |x-a|

Here the functions

\begin& h_k:(a-r,a+r)\to \R \\[1ex]& h_k(x) = (x-a)\sum_^\infty c_ \left(x - a\right)^j\end

are also analytic, since their defining power series have the same radius of convergence as the original series. Assuming that ⊂ I and r < R, all these series converge uniformly on . Naturally, in the case of analytic functions one can estimate the remainder term R_k(x) by the tail of the sequence of the derivatives f′(a) at the center of the expansion, but using complex analysis also another possibility arises, which is described below.

Taylor's theorem and convergence of Taylor series

The Taylor series of f will converge in some interval in which all its derivatives are bounded and do not grow too fast as k goes to infinity. (However, even if the Taylor series converges, it might not converge to f, as explained below; f is then said to be non-analytic.)

One might think of the Taylor series

f(x) \approx \sum_^\infty c_k(x-a)^k = c_0 + c_1(x-a) + c_2(x-a)^2 + \cdots

of an infinitely many times differentiable function f : RR as its "infinite order Taylor polynomial" at a. Now the estimates for the remainder imply that if, for any r, the derivatives of f are known to be bounded over (a − r, a + r), then for any order k and for any r > 0 there exists a constant such that

for every x ∈ (a − r,a + r). Sometimes the constants can be chosen in such way that is bounded above, for fixed r and all k. Then the Taylor series of f converges uniformly to some analytic function

\begin& T_f:(a-r,a+r)\to\R \\& T_f(x) = \sum_^\infty \frac \left(x-a\right)^k\end

(One also gets convergence even if is not bounded above as long as it grows slowly enough.)

The limit function is by definition always analytic, but it is not necessarily equal to the original function f, even if f is infinitely differentiable. In this case, we say f is a non-analytic smooth function, for example a flat function:

\begin& f:\R \to \R \\& f(x) = \begine^ & x>0 \\0 & x \leq 0 .\end\end

Using the chain rule repeatedly by mathematical induction, one shows that for any order k,

f^(x) = \begin\frac\cdot e^ & x>0 \\0 & x \leq 0\end

for some polynomial pk of degree 2(k − 1). The function

-1
x2
e
tends to zero faster than any polynomial as x \to 0, so f is infinitely many times differentiable and for every positive integer k. The above results all hold in this case:

However, as k increases for fixed r, the value of Mk,r grows more quickly than rk, and the error does not go to zero.

Taylor's theorem in complex analysis

Taylor's theorem generalizes to functions f : CC which are complex differentiable in an open subset U ⊂ C of the complex plane. However, its usefulness is dwarfed by other general theorems in complex analysis. Namely, stronger versions of related results can be deduced for complex differentiable functions f : U → C using Cauchy's integral formula as follows.

Let r > 0 such that the closed disk B(zr) ∪ S(zr) is contained in U. Then Cauchy's integral formula with a positive parametrization of the circle S(z, r) with

t\in[0,2\pi]

gives

f(z) = \frac\int_\gamma \frac\,dw, \quad f'(z) = \frac\int_\gamma \frac \, dw, \quad \ldots, \quad f^(z) = \frac\int_\gamma \frac \, dw.

Here all the integrands are continuous on the circle S(zr), which justifies differentiation under the integral sign. In particular, if f is once complex differentiable on the open set U, then it is actually infinitely many times complex differentiable on U. One also obtains the Cauchy's estimates

|f^(z)| \leq \frac\int_\gamma \frac

^
\, dw = \frac, \quad M_r = \max_
=r
|f(w)|

for any z ∈ U and r > 0 such that B(zr) ∪ S(cr) ⊂ U. These estimates imply that the complex Taylor series

T_f(z) = \sum_^\infty \frac(z-c)^k

of f converges uniformly on any open disk B(c,r) \subset U with S(c,r) \subset U into some function Tf. Furthermore, using the contour integral formulas for the derivatives f(c),

\begin T_f(z) &= \sum_^\infty \frac\int_\gamma \frac \, dw \\&= \frac \int_\gamma \frac \sum_^\infty \left(\frac\right)^k \, dw \\&= \frac \int_\gamma \frac\left(\frac \right) \, dw \\&= \frac \int_\gamma \frac \, dw = f(z),\end

so any complex differentiable function f in an open set U ⊂ C is in fact complex analytic. All that is said for real analytic functions here holds also for complex analytic functions with the open interval I replaced by an open subset U ∈ C and a-centered intervals (a − ra + r) replaced by c-centered disks B(cr). In particular, the Taylor expansion holds in the form

f(z) = P_k(z) + R_k(z), \quad P_k(z) = \sum_^k \frac(z-c)^j,

where the remainder term Rk is complex analytic. Methods of complex analysis provide some powerful results regarding Taylor expansions. For example, using Cauchy's integral formula for any positively oriented Jordan curve \gamma which parametrizes the boundary \partial W \subset U of a region W \subset U, one obtains expressions for the derivatives as above, and modifying slightly the computation for, one arrives at the exact formula

R_k(z) = \sum_^\infty \frac \int_\gamma \frac \, dw = \frac \int_\gamma \frac, \qquad z\in W.

The important feature here is that the quality of the approximation by a Taylor polynomial on the region W \subset U is dominated by the values of the function f itself on the boundary \partial W \subset U. Similarly, applying Cauchy's estimates to the series expression for the remainder, one obtains the uniform estimates

|R_k(z)|\leq \sum_^\infty \frac= \frac \frac

^
\leq \frac, \qquad \frac
\leq \beta < 1.

Example

The function

\begin& f : \R \to \R \\& f(x) = \frac\end

is real analytic, that is, locally determined by its Taylor series. This function was plotted above to illustrate the fact that some elementary functions cannot be approximated by Taylor polynomials in neighborhoods of the center of expansion which are too large. This kind of behavior is easily understood in the framework of complex analysis. Namely, the function f extends into a meromorphic function

\begin& f:\Complex \cup \ \to \Complex \cup \ \\& f(z) = \frac\end

on the compactified complex plane. It has simple poles at z=i and z=-i, and it is analytic elsewhere. Now its Taylor series centered at z0 converges on any disc B(z0, r) with r < |z − z0|, where the same Taylor series converges at z ∈ C. Therefore, Taylor series of f centered at 0 converges on B(0, 1) and it does not converge for any zC with |z| > 1 due to the poles at i and −i. For the same reason the Taylor series of f centered at 1 converges on B(1, \sqrt) and does not converge for any z ∈ C with \left\vert z-1 \right\vert>\sqrt.

Generalizations of Taylor's theorem

Higher-order differentiability

A function is differentiable at if and only if there exists a linear functional and a function such that

f(\boldsymbol) = f(\boldsymbol) + L(\boldsymbol-\boldsymbol) + h(\boldsymbol)\lVert\boldsymbol-\boldsymbol\rVert,\qquad \lim_ h(\boldsymbol)=0.

If this is the case, then L = df(\boldsymbol) is the (uniquely defined) differential of at the point . Furthermore, then the partial derivatives of exist at and the differential of at is given by

df(\boldsymbol)(\boldsymbol) = \frac(\boldsymbol) v_1 + \cdots + \frac(\boldsymbol) v_n.

Introduce the multi-index notation

|\alpha| = \alpha_1+\cdots+\alpha_n, \quad \alpha!=\alpha_1!\cdots\alpha_n!, \quad \boldsymbol^\alpha=x_1^\cdots x_n^

for and . If all the k-th order partial derivatives of are continuous at, then by Clairaut's theorem, one can change the order of mixed derivatives at, so the notation

D^\alpha f = \frac, \qquad |\alpha|\leq k

for the higher order partial derivatives is justified in this situation. The same is true if all the -th order partial derivatives of exist in some neighborhood of and are differentiable at .[4] Then we say that is times differentiable at the point .

Taylor's theorem for multivariate functions

Using notations of the preceding section, one has the following theorem.

B=\{y\in\Rn:\left\|a-y\right\|\leqr\}

for some

r>0

, then one can derive an exact formula for the remainder in terms of order partial derivatives of f in this neighborhood.[5] Namely,

\begin& f(\boldsymbol) = \sum_

\leq k
\frac (\boldsymbol-\boldsymbol)^\alpha + \sum_
=k+1
R_\beta(\boldsymbol)(\boldsymbol-\boldsymbol)^\beta, \\& R_\beta(\boldsymbol) = \frac
\int_0^1 (1-t)^
-1
D^\beta f \big(\boldsymbol+t(\boldsymbol-\boldsymbol)\big) \, dt.\end

In this case, due to the continuity of -th order partial derivatives in the compact set, one immediately obtains the uniform estimates

\left|R_\beta(\boldsymbol)\right| \leq \frac \max_

=\beta
\max_ |D^\alpha f(\boldsymbol)|, \qquad \boldsymbol\in B.

Example in two dimensions

For example, the third-order Taylor polynomial of a smooth function

f:R2\toR

is, denoting

\boldsymbol{x}-\boldsymbol{a}=\boldsymbol{v}

,

\beginP_3(\boldsymbol) = f (\boldsymbol) + &\frac(\boldsymbol) v_1 + \frac(\boldsymbol) v_2 + \frac(\boldsymbol) \frac + \frac(\boldsymbol) v_1 v_2 + \frac(\boldsymbol) \frac \\& + \frac(\boldsymbol) \frac + \frac(\boldsymbol) \frac + \frac(\boldsymbol) \frac + \frac(\boldsymbol) \frac\end

Proofs

Proof for Taylor's theorem in one real variable

Let

h_k(x) = \begin\frac & x\not=a\\0&x=a\end

where, as in the statement of Taylor's theorem,

P(x) = f(a) + f'(a)(x-a) + \frac(x-a)^2 + \cdots + \frac(x-a)^k.

It is sufficient to show that

\lim_ h_k(x) =0.

The proof here is based on repeated application of L'Hôpital's rule. Note that, for each j=0,1,...,k-1,

f(j)(a)=P(j)(a)

. Hence each of the first k-1 derivatives of the numerator in

hk(x)

vanishes at

x=a

, and the same is true of the denominator. Also, since the condition that the function f be k times differentiable at a point requires differentiability up to order k-1 in a neighborhood of said point (this is true, because differentiability requires a function to be defined in a whole neighborhood of a point), the numerator and its k-2 derivatives are differentiable in a neighborhood of a. Clearly, the denominator also satisfies said condition, and additionally, doesn't vanish unless x=a, therefore all conditions necessary for L'Hôpital's rule are fulfilled, and its use is justified. So

\begin\lim_ \frac&= \lim_ \frac \\[1ex]&= \cdots \\[1ex]&= \lim_ \frac\\[1ex]&= \frac\lim_ \frac\\[1ex]&=\frac(f^(a) - P^(a))= 0\end

where the second-to-last equality follows by the definition of the derivative at x=a.

Alternate proof for Taylor's theorem in one real variable

Let

f(x)

be any real-valued continuous function to be approximated by the Taylor polynomial.

Step 1: Let F and G be functions. Set F and G to be

\beginF(x) = f(x) - \sum^_ \frac(x-a)^ \end

\beginG(x) = (x-a)^\end

Step 2: Properties of F and G:

\beginF(a) & = f(a) - f(a) - f'(a)(a - a) - ... - \frac = 0 \\G(a) & = (a-a)^n = 0\end

Similarly,

\beginF'(a) = f'(a) - f'(a) - \frac - ... - \frac = 0\end

\beginG'(a) &= n(a-a)^ = 0\\&\qquad \vdots\\G^(a) &= F^(a) = 0\end

Step 3: Use Cauchy Mean Value Theorem

Let

f1

and

g1

be continuous functions on

[a,b]

. Since

a<x<b

so we can work with the interval

[a,x]

. Let

f1

and

g1

be differentiable on

(a,x)

. Assume

g1'(x)0

for all

x\in(a,b)

.Then there exists

c1\in(a,x)

such that

\begin\frac = \frac\end

Note:

G'(x)0

in

(a,b)

and

F(a),G(a)=0

so

\begin\frac = \frac = \frac\end

for some

c1\in(a,x)

.

This can also be performed for

(a,c1)

:

\begin\frac = \frac = \frac\end

for some

c2\in(a,c1)

.This can be continued to

cn

.

This gives a partition in

(a,b)

:

a < c_ < c_ < \dots < c_ < x

with

\frac = \frac = \dots = \frac .

Set

c=cn

:

\frac = \frac

Step 4: Substitute back

\begin\frac = \frac = \frac\end

By the Power Rule, repeated derivatives of

(x-a)n

,

G(n)(c)=n(n-1)...1

, so:

\frac = \frac = \frac.

This leads to:

\beginf(x) - \sum^_ \frac(x-a)^ = \frac(x-a)^\end.

By rearranging, we get:

\beginf(x) = \sum^_ \frac(x-a)^ + \frac(x-a)^\end,

or because

cn=a

eventually:

f(x) = \sum^_ \frac(x-a)^.

Derivation for the mean value forms of the remainder

Let G be any real-valued function, continuous on the closed interval between a and x and differentiable with a non-vanishing derivative on the open interval between a and x, and define

F(t) = f(t) + f'(t)(x-t) + \frac(x-t)^2 + \cdots + \frac(x-t)^k.

For

t\in[a,x]

. Then, by Cauchy's mean value theorem,

for some \xi on the open interval between a and x. Note that here the numerator F(x)-F(a)=R_k(x) is exactly the remainder of the Taylor polynomial for y=f(x). Compute

\beginF'(t) = & f'(t) + \big(f(t)(x-t) - f'(t)\big) + \left(\frac(x-t)^2 - \frac(x-t)\right) + \cdots \\& \cdots + \left(\frac(x-t)^k - \frac(x-t)^\right)= \frac(x-t)^k,\end

plug it into and rearrange terms to find that

R_k(x) = \frac(x-\xi)^k \frac.

This is the form of the remainder term mentioned after the actual statement of Taylor's theorem with remainder in the mean value form.The Lagrange form of the remainder is found by choosing

G(t)=(x-t)k+1

and the Cauchy form by choosing

G(t)=t-a

.

Remark. Using this method one can also recover the integral form of the remainder by choosing

G(t) = \int_a^t \frac (x-s)^k \, ds,

but the requirements for f needed for the use of mean value theorem are too strong, if one aims to prove the claim in the case that f is only absolutely continuous. However, if one uses Riemann integral instead of Lebesgue integral, the assumptions cannot be weakened.

Derivation for the integral form of the remainder

Due to the absolute continuity of

f(k)

on the closed interval between a and x, its derivative

f(k+1)

exists as an

L1

-function, and we can use the fundamental theorem of calculus and integration by parts. This same proof applies for the Riemann integral assuming that

f(k)

is continuous on the closed interval and differentiable on the open interval between a and x, and this leads to the same result than using the mean value theorem.

The fundamental theorem of calculus states that

f(x)=f(a)+ \int_a^x \, f'(t) \, dt.

Now we can integrate by parts and use the fundamental theorem of calculus again to see that

\beginf(x) &= f(a)+\Big(xf'(x)-af'(a)\Big)-\int_a^x tf(t) \, dt \\&= f(a) + x\left(f'(a) + \int_a^x f(t) \,dt \right) -af'(a)-\int_a^x tf(t) \, dt \\&= f(a)+(x-a)f'(a)+\int_a^x \, (x-t)f(t) \, dt,\end

which is exactly Taylor's theorem with remainder in the integral form in the case

k=1

. The general statement is proved using induction. Suppose that

Integrating the remainder term by parts we arrive at

\begin\int_a^x \frac (x - t)^k \, dt = & - \left[\frac{f^{(k+1)} (t)}{(k+1)k!} (x - t)^{k+1} \right]_a^x + \int_a^x \frac (x - t)^ \, dt \\= & \ \frac (x - a)^ + \int_a^x \frac (x - t)^ \, dt.\end

Substituting this into the formula shows that if it holds for the value

k

, it must also hold for the value

k+1

. Therefore, since it holds for

k=1

, it must hold for every positive integer

k

.

Derivation for the remainder of multivariate Taylor polynomials

We prove the special case, where

f:Rn\toR

has continuous partial derivatives up to the order

k+1

in some closed ball

B

with center

\boldsymbol{a}

. The strategy of the proof is to apply the one-variable case of Taylor's theorem to the restriction of

f

to the line segment adjoining

\boldsymbol{x}

and

\boldsymbol{a}

. Parametrize the line segment between

\boldsymbol{a}

and

\boldsymbol{x}

by

\boldsymbol{u}(t)=\boldsymbol{a}+t(\boldsymbol{x}-\boldsymbol{a})

We apply the one-variable version of Taylor's theorem to the function

g(t)=f(\boldsymbol{u}(t))

:

f(\boldsymbol)=g(1)=g(0)+\sum_^k\fracg^(0)\ +\ \int_0^1 \frac g^(t)\, dt.

Applying the chain rule for several variables gives

\beging^(t)&=\fracf(\boldsymbol(t))\\&= \frac f(\boldsymbol+t(\boldsymbol-\boldsymbol))\\&= \sum_

=j
\left(\begin j\\ \alpha\end \right) (D^\alpha f) (\boldsymbol+t(\boldsymbol-\boldsymbol)) (\boldsymbol-\boldsymbol)^\alpha\end

where

\tbinomj\alpha

is the multinomial coefficient. Since

\tfrac{1}{j!}\tbinomj\alpha=\tfrac{1}{\alpha!}

, we get:

f(\boldsymbol)= f(\boldsymbol) + \sum_\frac (D^\alpha f) (\boldsymbol)(\boldsymbol-\boldsymbol)^\alpha+\sum_

=k+1
\frac(\boldsymbol-\boldsymbol)^\alpha \int_0^1 (1-t)^k (D^\alpha f)(\boldsymbol+t(\boldsymbol-\boldsymbol))\,dt.

References

External links

Notes and References

  1. (2013). and quadratic approximation" Retrieved December 6, 2018
  2. Book: Taylor, Brook . la. Methodus Incrementorum Directa et Inversa . Direct and Reverse Methods of Incrementation . London . 1715 . p. 21–23 (Prop. VII, Thm. 3, Cor. 2). Translated into English in Book: Struik, D. J. . A Source Book in Mathematics 1200–1800 . Cambridge, Massachusetts . Harvard University Press . 1969 . 329–332.
  3. .
  4. This follows from iterated application of the theorem that if the partial derivatives of a function exist in a neighborhood of and are continuous at, then the function is differentiable at . See, for instance, .
  5. Web site: Higher-Order Derivatives and Taylor's Formula in Several Variables . Folland . G. B. . Department of Mathematics University of Washington . 2024-02-21 .