Taylor's polynomial

Now we are going to build a polynomial of degree n that only goes through one given point x0, and its n derivatives coincide in this point with the n derivatives of the original function f(x). This polynomial is named Taylor's polynomial of degree n around the point x0 of the function f(x).

This polynomial is:

Tn(x)=f(x0)+f(x0)1!(xx0)+f(x0)2!(xx0)2+f(x0)3!(xx0)3++f(n)(x0)n!(xx0)n

Therefore, given a Cn+1 class function, this means derivable n+1 times with continuity, and a point x0 where we know f(x0), f(x0), f(x0),, f(n)(x0), we will be able to calculate Taylor's polynomial.

Example

Let's calculate Taylor's polynomial of order 6 of the function f(x)=ex around x=0. We need to know the value of the function and its six first derivatives in the point x=0. Let's calculate them:

f(0)=1f(x)=exf(0)=1f(x)=exf(0)=1f(x)=exf(0)=1fiv(x)=exfiv(0)=1fv(x)=exfv(0)=1fvi(x)=exfvi(0)=1

So Taylor's polynomial is:

T6(x)=1+x+12x2+16x3+124x4+1120x5+1720x6

This polynomial can be understood as a polynomial approach of the function f(x). Sometimes it is easier to work with a polynomial than with a complicated function and the Taylor's polynomial becomes very useful. In front of this, we wonder what is our error when using this simplification. Well, this error, which measures how correct is our polynomial compared to the given function, is given by the following expression:

error=|f(x)Tn(x)|=f(n+1)(ξ(x))(n+1)!(xx0)n+1

where ξ(x) is a point between x0 and x.