Science Oxygenwww.ScienceOxygen.com

Taylor Series Expansion

 

Motivation:

                       For a polynomial   f(x)  of degree n,  we can represent it as

 

                                                      f(x) =

 

                        This can be done by  starting dividing  f(x)  by  (x-c) , and taking the quotient polynomial to be divided by (x-c) again, …  With this process by dividing the quotient polynomial generated from the previous division,  we can find all the  ai’s .  It can be done via synthetic division. However, that is not the only way to find all the ai’s .

 

                        At first, we can find  

                                                             f(c) = a0

 

                        And

                                       f(x) =  =

                                  f’(c) = a1

 

                                      f(x) =  =  +2a2

                                 f”(c) = 2a2 

 

                                     …

 

                                     f(n-1)(x) = ann!(x-c) + an-1(n-1)!

                                  f(n-1)(c) = an-1(n-1)! 

 

                                    f(n)(x) = ann!

 

                        Since f  is a polynomial of degree n,  f(n)(x)  is a constant. With the equality above,  we still can find  an .  In general, we have

 

                                      ai ,   i = 1, 2, 3, …, n

                     And

                                  f(x) = f(c) + f’(c)(x-c)+ … +  (x-c)i + … +  (x-c)n

              But this is just for the case that   f(x) is a polynomial.  We would like to find the similar expression when   f(x) is a function other than polynomial.  The result is known as Taylor series expansion for a function f(x) at x=c . Especially, when c=0,  it is known as McLaurin series

 

Theorem( Taylor Theorem )

              Let  f   be a function that  it is n times continuously differentiable on a interval I containing x and c , i.e.  f’, f”, … f(n)  exist in the interval.  And  f(n+1)  is continuous in the interval I.   Then

                               f(x) = f(c) + f’(c)(x-c) + … +  (x-c)n +  (x-c)n+1

                                        where b is between x and c .

 

Proof:

                     Let

                                     R(t)= f(x)- f(t) -  

                                    R(x) = 0

 

                     Differentiate with respect to t on both sides:

 

                                   R’(t) = -f’(t)

                                           =   -

 

 

                    Set

                                  Q(t)= R(t) –    R(c)

                              Q(c) = 0,  and Q(x) = R(x) = 0

 

                   From mean value theorem, there exist b between c and x such that

 

                                                             Q’(b) = 0

 

                    And            Q’(t) = R’(t) + (n+1)  R(c)

                             So,    

                                        0 = Q’(b) = R’(b) + (n+1)  R(c)

                              R(c) = - R’(b)  

                                           =

                                           =

 

 

                   Furthermore,      R(t)= f(x)- f(t) -

                     = f(x)- f(c) -

 

                        f(x) =  f(c) +  +

 

                When c=0,  it is known as McLaurin Series.   It is usually used to find the values of many transcendental functions like sin(x), ln(x), ... .

 

 

Example:    Taylor series expansion of  sin(x)  around 0 .

       

                       f(x) = sin(x)  ,  f(0)=0

                       f’(x) = cos(x) , f’(0)=1

                       f’(x) = -sin(x),  f”(0)=0

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

                       f(4)(x) = sin(x),   f(4)(0) = 0

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

                             ...

 

                    sin(x) = x -  + .... + (-1)k  + ...

 

 

 

 

Example: Taylor series expansion of  ln(x)  around  1 .

 

                    f(x) = ln(x)

                    f’(x) =   ,  f’(x)=1

                    f”(x) = - ,  f”(1)= -1

                    f(3)(x) =  ,  f(3)(1) = 2

                    f(4)(x) = ,  f(4)(1) = - 3!

 

                 ...

                 f(n+1)(x) =

 

              So,

                         ln(x) = (x-1) -  (x-1)2 +  (x-1)3- ... +  (x-1)n + ...

 

 

Example:   f(x)=ex  .  Find its Taylor series expansion around 0 .

 

      Sol:

                     f’(x) = ex  ,  f’(0) = 1

                     f”(x) = ex ,   f”(0) = 1

                    f(3)(x) = ex ,  f(3)(0) = 1

                    ...

                    f(n)(x) = ex  , f(n)(0) = 1

 

              Thus, 

                            ex = 1 + x +  x2 +  x3 + ... +  xn + ...

Copyright ©2004- ScienceOxygen.com all right reserved