Taylor Polynomials

Definition: The degree n Taylor polynomial of the function f at the point x = a is

Example

Here we have defined a function t(n, z) of two variables, and n is the degree of the polynomial.

You can use the applet above to see the values of other polynomials.

Try it yourself ...

Now we will take a closer look at the polynomials. In the applet below I defined a vector v with 8 components. Initially each component is set equal to 0. Next I set the kth component of v equal to the kth derivative of f. Notice the pattern. Finally, I redefined the components of v to be the derivatives evaluated at x = 0. Now you see why I used only odd degree polynomials. The even degree terms have coefficient 0.



So far we have compared sin(x) and it's Taylor polynomials only at x = 0.1. What happens with other values of x?

Try it yourself ...

The Taylor polynomials at x = a can effectively approximate a function for values of x that are near a. In our example, a is 0, and the Taylor polynomials are very close to sin at x = 0.1, but very far off at x = 2.

Looking at the graphs will help to illustrate this point.

Here I have defined a polynomial taylor of just one variable. The n that appears in the formula for taylor is the degree of the polynomial (when n is odd), and it is initially set equal to 3.

The graph shows the the sine function f and the degree 3 taylor polynomial of f at 0.

Clearly, taylor is quite close to f near zero. However, away from 0 the values of the polynomial and f are not close.

You can use the applet to change the value of n and then graph the new polynomial.

Try it yourself ...