Taylor polynomials

We already know that we can approximate a function near a given point by a Taylor series:

> f(x)=taylor(f(x),x=c,5);

[Maple Math]

From this approximation, we can define a Taylor Polynomial by truncating the series after a number of terms, e.g.

> P[4](x):=convert(taylor(f(x),x=c,5),polynom);

[Maple Math]

with the error term given by

> R[4](x)=((D@@5)(f)(xi(x))/(`5!`))*(x-c)^5;

[Maple Math]

with [Maple Math] between [Maple Math] and [Maple Math] . In general, the error term is given by

> R[n](x)=((D@@(n+1))(f)(xi(x))/((n+1)!))*(x-c)^(n+1);

[Maple Math]

with [Maple Math] between [Maple Math] and [Maple Math] .

This formula is of some theoretical importance, and can lead to upper estimates for the truncation error of the approximation. It can not be use to calculate the actual error since [Maple Math] is an unknown quantity.

In Worksheet 3, we have seen that this approximation can be good close to [Maple Math] , but will fail rapidly for values of [Maple Math] which do not lie close to [Maple Math] . The obvious disadvantage is that the Taylor Polynomial only approximates a function around one given point and does not take other data points into account.