Taylor's theorem

The essence of differentiation is to approximate an arbitrary function by a linear function. We can extend this idea by using higher-order derivatives to obtain better approximations.



Theorem (Taylor's theorem)

Let f(x) be a function of class Cn on an open interval I. Let aI. Then for all xI, there exists cx between x and a such that

f(x)=f(a)+f(a)(xa)+12f(a)(xa)2++1(n1)!f(n)(a)(xa)n1+1n!f(n)(cx)(xa)n.

Proof. If x=a, then we can set cx=a and Eq. (eq:taylor) clearly holds.

Suppose bI, ba. We need to show

f(b)=f(a)+f(a)(ba)+12f(a)(ba)2++1(n1)!f(n1)(a)(ba)n1+1n!f(n)(cb)(ba)n.

for some cb. Let us define the constant A by

A(ba)n=f(b)[f(a)+f(a)(ba)++1(n1)!f(n1)(a)(ba)n1]

and the function g(x) on I by

g(x)=f(b)[f(x)+f(x)(bx)++1(n1)!f(n1)(x)(bx)n1+A(bx)n].

g(x) is a differentiable function on I and g(a)=g(b)=0. Thus, by Rolle's theorem, there exists cb between a and b such that g(cb)=0.

[See also: Mean Value Theorem for Rolle's theorem.]

Let us calculate g(x). Noting that, for k1,

[1k!f(k)(x)(bx)k]=1k!f(k+1)(x)(bx)k1(k1)!f(k)(x)(bx)k1,

the first several terms of g(x) are

f(x)+f(x)f(x)(bx)+f(x)(bx)12f(x)(bx)2+

so that most terms are canceled. After all, we have

g(x)=1(n1)!f(n)(x)(bx)n1+nA(bx)n1.

Since g(cb)=0, we have

0=1(n1)!f(n)(cb)(bcb)n1+nA(bcb)n1

or

A=1n!f(n)(cb).

Substituting this A into g(a)=0, we have Eq. (eq:taylorb). ■

Let's see what Taylor's theorem means. Let us define the polynomial of degree n by

Pn(x)=f(a)+f(a)(xa)+12f(a)(xa)2++1n!f(n)(a)(xa)n.

Taylor's theorem states that the difference between f(x) and Pn(x) is given by

f(x)Pn(x)=1(n+1)!f(n+1)(cx)(xa)n+1

for some cn. If n is sufficiently large and x is close to a (i.e., |xa| is small), then |(xa)n+1| is very small so that the above difference is very small. Thus, Taylor's theorem indicates that the function f(x) can be approximated by polynomial functions.

Example. Consider f(x)=sinx. With a=0, we have

P1(x)=x,P3(x)=x16x3,P5(x)=x16x3+1120x5,

By plotting the graphs of these polynomials, we can see that they approximate sinx with increasingly better accuracies.

Approximation of sinx by Taylor expansions.

Definition (finite Taylor expansion and finite Maclaurin expansion)

The right-hand side of Eq. (eq:taylor) in Taylor's Theorem is called the finite Taylor expansion and the last term 1n!f(n)(cx)(xa)n is called the remainder or residual. The finite Taylor expansion can be also expressed as

f(x)=k=0n11k!f(k)(a)(xa)k+1n!f(n)(a+θ(xa))(xa)n

where θ(0,1) is a constant dependent on x.

In particular, the finite Taylor expansion with a=0 is called the finite Maclaurin expansion

Example. The finite Maclaurin expansion of ex is given by

ex=1+x+x22+x33!++xn1(n1)!+eθxxnn!.

(Exercise!) □

Example. The finite Maclaurin expansion of log(x+1) is given by

log(x+1)=x12x2+13x314x4++(1)n(n1)xn1+(1)n+1xnn(θx+1)n.

(Exercise!) □

Comments

Popular posts from this blog

Birth process

Branching processes: Mean and variance

Informal introduction to formal logic