Jump to content

Taylor's theorem: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Lery007 (talk | contribs)
m A small correction.
Line 75: Line 75:


The Lagrange form of the remainder is
The Lagrange form of the remainder is
:<math> R_n(x)=\frac{1}{(n+1)!}e^c</math>
:<math> R_n(x)=\frac{e^c}{(n+1)!}x^{n+1} \leq \frac{e^c}{(n+1)!}</math> since <math>x \leq 1 </math>
for some {{nowrap|0 < ''c'' < 1}}. Now we have <math> e^c<3</math> and we seek a value of <math>n</math> such that
for some {{nowrap|0 < ''c'' < 1}}. Now we have <math> e^c<3</math> and we seek a value of <math>n</math> such that



Revision as of 02:16, 9 January 2011

The exponential function (continuous red line) and the corresponding Taylor polynomial of degree four (dashed green line) around the origin.

In calculus, Taylor's theorem gives a sequence of approximations of a differentiable function around a given point by polynomials (the Taylor polynomials of that function) whose coefficients depend only on the derivatives of the function at that point. The theorem also gives precise estimates on the size of the error in the approximation. The theorem is named after the mathematician Brook Taylor, who stated it in 1712, though the result was first discovered 41 years earlier in 1671 by James Gregory.

Taylor's theorem in one variable

Motivation

Taylor's theorem asserts that any sufficiently smooth function can locally be approximated by polynomials. A simple example of application of Taylor's theorem is the approximation of the exponential function ex near x = 0:

The approximation is called the n-th order Taylor approximation to ex because it approximates the value of the exponential function by a polynomial of degree n. This approximation only holds for x close to zero, and as x moves further away from zero, the approximation becomes worse. The quality of the approximation is controlled by the remainder term:

More generally, Taylor's theorem applies to any sufficiently differentiable function ƒ, giving an approximation, for x near a point a, of the form

The remainder term is just the difference of the function and its approximating polynomial

Although an explicit formula for the remainder term is seldom of any use, Taylor's theorem also provides several ways in which to estimate the value of the remainder. In other words, for x near enough to a, the remainder ought to be "small"; Taylor's theorem gives information on precisely how small it actually is.

Statement

The precise statement of the theorem is as follows: If n ≥ 0 is an integer and ƒ is a function which is n times continuously differentiable on the closed interval [a, x] and n + 1 times differentiable on the open interval (a, x), then

Here, n! denotes the factorial of n, and Rn(x) is a remainder term, denoting the difference between the Taylor polynomial of degree n and the original function. The remainder term Rn(x) depends on x and is small if x is close enough to a. Several expressions are available for it.

The Lagrange form[1] of the remainder term states that there exists a number ξ between a and x such that

This exposes Taylor's theorem as a generalization of the mean value theorem. In fact, the mean value theorem is used to prove Taylor's theorem with the Lagrange remainder term.

The Cauchy form[2] of the remainder term states that there exists a number ξ between a and x such that

More generally, if G(t) is a continuous function on [a,x] which is differentiable with non-vanishing derivative on (a,x), then there exists a number ξ between a and x such that

This exposes Taylor's theorem as a generalization of the Cauchy mean value theorem.

The above forms are restricted to the case of functions taking real values. However, the integral form[3] of the remainder term applies as well when the function takes complex values. It is:

provided, as is often the case, ƒ(n) is absolutely continuous on [a, x]. This shows the theorem to be a generalization of the fundamental theorem of calculus.

In general, a function does not need to be equal to its Taylor series, since it is possible that the Taylor series does not converge, or that it converges to a different function. However, for many functions ƒ(x), one can show that the remainder term Rn approaches zero as n approaches ∞. Those functions can be expressed as a Taylor series in a neighbourhood of the point a and are called analytic.

Taylor's theorem (with the integral formulation of the remainder term) is also valid if the function ƒ has complex values or vector values. Furthermore, there is a version of Taylor's theorem for functions in several variables. For complex functions analytic in a region containing a circle C surrounding a and its interior, there is a contour integral expression for the remainder

valid inside of C.

Example

Let us compute[4] the approximate value of e to within an error of at most 10−5. Let f(x) = ex and x ∈ [0,1]. Then f(n)(x) = ex for all n, and in particular f(n)(0) = 1. The Taylor polynomial of f(x) around x = 0 is given by:

The Lagrange form of the remainder is

since

for some 0 < c < 1. Now we have and we seek a value of such that

.

By some calculation, the value of n to get the desired accuracy is n = 8. So,

Estimates of the remainder

Another common version of Taylor's theorem holds on an interval (ar, a + r) where the variable x is assumed to take its values. This formulation of the theorem has the advantage that it is often possible to explicitly control the size of the remainder terms, and thus arrive at an approximation of a function valid in a whole interval with precise bounds on the quality of the approximation.

A precise version of Taylor's theorem in this form is as follows. Suppose ƒ is a function which is n times continuously differentiable on the closed interval [ar, a + r] and n + 1 times differentiable on the open interval (ar, a + r). If there exists a positive real constant Mn such that |ƒ(n+1)(x)| ≤ Mn for all x(ar, a + r), then

where the remainder function Rn satisfies the inequality (known as Cauchy's estimate):

for all x(ar, a + r). This is called a uniform estimate of the error in the Taylor polynomial centered at a, because it holds uniformly for all x in the interval.

If ƒ is infinitely differentiable on [ar, a + r], then positive constants Mn exist for each n = 1, 2, 3, … such that | ƒ(n+1)(x)| ≤ Mn for all x(ar, a + r). If, in addition, it is possible to select these constants so that

as

then ƒ is an analytic function on (ar, a + r). In particular, the remainder term in the Taylor approximation Rn(x) tends to zero uniformly as n→∞. In other words, an analytic function is the uniform limit of its Taylor polynomials on an interval.

Taylor's theorem for several variables

Taylor's theorem can be generalized to several variables as follows. Let B be a ball in RN centered at a point a, and ƒ be a real-valued function defined on the closure having n+1 continuous partial derivatives at every point. Taylor's theorem asserts that for any ,

where the summation extends over multi-indices α (this formula uses the multi-index notation).

The remainder terms satisfy the inequality

for all α with |α| = n + 1. As was the case with one variable, the remainder terms can be described explicitly. See the proof for details.

Proof: Taylor's theorem in one variable

Integral version

We first prove Taylor's theorem with the integral remainder term.[5]

The fundamental theorem of calculus states that

which can be rearranged to:

Now we can see that an application of Integration by parts yields:

The first equation is arrived at by letting and dv = dt(in the formula for Integration by parts); the second equation by noting that

the third just factors out some common terms.

Another application yields:

By repeating this process, we may derive Taylor's theorem for higher values of n.

This can be formalized by applying the technique of induction. So, suppose that Taylor's theorem holds for a particular n, that is, suppose that

We can rewrite the integral using integration by parts. An antiderivative of (xt)n as a function of t is given by −(xt)n+1 / (n + 1), so

Substituting this in (*) proves Taylor's theorem for n + 1, and hence for all nonnegative integers n.

The remainder term in the Lagrange form can be derived by the mean value theorem for integrals in the following way:

where is some number from the interval [a, x]. The last integral can be evaluated immediately, which leads to

More generally, for any function G(t), the mean value theorem asserts the existence of in the interval [a, x] satisfying

Mean value theorem

An alternative proof, which holds under milder technical assumptions on the function ƒ, can be supplied using the Cauchy mean value theorem. Let G be a real-valued function continuous on [a, x] and differentiable with non-vanishing derivative on (a, x). Let

By Cauchy's mean value theorem,

(1)

for some ξ ∈ (a, x). Note that the numerator F(x) − F(a) = Rn is the remainder of the Taylor polynomial for ƒ(x). On the other hand, computing F′(t),

Putting these two facts together and rearranging the terms of (1) yields

which was to be shown.

Note that the Lagrange form of the remainder comes from taking G(t) = (xt)n+1, the given Cauchy form of the remainder comes from taking G(t) = (ta), and the integral form of the remainder comes from taking

Proof: several variables

Let x = (x1,...,xN) lie in the ball B with center a. Parametrize the line segment between a and x by u(t) = a + t(xa). We apply the one-variable version of Taylor's theorem to the function ƒ(u(t)):

By the chain rule for several variables,

where is the multinomial coefficient for the multi-index α. Since , we get

The remainder term is given by

The terms of this summation are explicit forms for the Rα in the statement of the theorem. These are easily seen to satisfy the required estimate.

See also

Notes

  1. ^ Klein (1998) 20.3; Apostol (1967) 7.7.
  2. ^ Apostol (1967) 7.7.
  3. ^ Apostol (1967) 7.5.
  4. ^ Bartle,R.G. and D.R. Sherbert, Introduction to Real Analysis, Third Edition, John Wiley & Sons, New York,2000.
  5. ^ Note that this proof requires ƒ(n) to be absolutely continuous on [a, x] so that the fundamental theorem of calculus holds. Except at the end when the mean value theorem is invoked, differentiability of ƒ(n) need not be assumed since absolute continuity implies differentiability almost everywhere as well as the validity of the fundamental theorem of calculus, provided the integrals involved are understood as Lebesgue integrals. Consequently, the integral form of the remainder holds with this particular weakening of the assumptions on ƒ.

References

  • Apostol, Tom (1967). Calculus. Jon Wiley & Sons, Inc. ISBN 0-471-00005-1.
  • Klein, Morris (1998). Calculus: An Intuitive and Physical Approach. Dover. ISBN 0-486-40453-6.