Taylor Polynomials

I.  Quiz

II.  Homework

III. Review of the Tangent Line

Recall that if f(x) is a function, then f'(a) is the slope of the tangent line at x = a.  Hence

y - f(a) = f'(a)(x - a)  or

P1(x) = y = f(a) + f'(a)(x - a) is the equation of the tangent line.

We can say that this is the best linear approximation to f(x) near a.

Note that P1'(x) = f'(a).

IV.  Quadratic Approximations

Example:  Let f(x) = e2x

Find the best quadratic approximation at  x = 0.

Solution  

Note f'(x) = 2e2x  and f''(x) = 4e2x

Let P2(x) = a0 + a1x + a2x2  

Note P'2(x) = a1 + 2a2x  and P''2(x) = 2a2

P2(0)  =  a0 = f(0) = 1 Hence a0 = 1

P2'(0) = a1 = f'(0) = 2 Hence  a1 = 2

P2''(0) = 2a2 = f''(0) = 4 Hence  a2 = 2

We will demonstrate this on the screen.

V.  The Taylor Polynomial

Suppose that we want the best nth degree approximation to f(x) at x = a.

We compare f(x) to

Pn(x) =  a0 + a1(x - a) + a2(x - a)2  + a3(x - a)3 + ... + an(x - a)n

We make the following observations:

f(a) =  Pn(a) =  a0 so that  a0 = f(a)

f'(a) = P'n(a) =  a1 + 2a2(x - a)  + 3a3(x - a)2 + ... + nan(x - a)n-1 at x = a so that a1 = f'(a)

f''(a) = P''n(a) =   2a2  + (3)(2)a3(x - a)+ ... + n(n - 1)an(x - a)n-2 at x = a so that a2 = 1/2f''(a)

Note each time we take a derivative we pick up the next integer in other words

a3 = 1/(2)(3) f'''(a) 

If we define f(k)(a) to mean the kth derivative of f evaluated at a  then

ak = 1/k! f(k)(a)

In General

Pn(x) =  f(a) + f'(a)(x - a) + f''(a)/2!(x - a)2  + f(3)(a)/3! (x - a)3 + ... + f(n)(a)/n! (x - a)n

= sum from k = 0 to n of f(k)(a)/k! (x - a)k

This is called the nth degree taylor polynomial at x = a.

When a = 0,

= sum from k = 0 to n of f(k)(0)/k! xk is called the nth McLaurin Series.

Examples:

Find the fifth degree McLaurin Polynomial for sinx

f(0) = sin(0) = 0

f'(0) = cos(0) = 1

f''(0) = -sin(0) = 0

f(3)(0) = -cos(0) = -1

f(4)(0) = sin(0) = 0

f(5)(0) = cos(0) = 1

So that P5(x) = 0 + 1/1! x + 0/2! x2 + -1/3! x3 + 0/4! x4 + 1/5! x5

x - x3/6 + x5/120

VI .  Taylor's Remainder

Theorem:  If f is smooth from a to b, let Pn(x)  be the nth degree Taylor polynomial at x = c, then for every x there is a z between x and c with

f(x) = Pn(x) + f(n+1)(z)/(n + 1)! (x - c)n+1   

Example

We have

sin(.1) = .1 - (.1)3/6 + (.1)5/120 + -sin z/6! (.1)6 = .099833416667 + E

Where E < 1/6! (.1)6  = .0000000014