Example 4.  Consider the function  [Graphics:Images/TaylorPolyMod_gr_271.gif].  
4 (a).  Find the terms up to  [Graphics:Images/TaylorPolyMod_gr_272.gif]  in the Maclaurin series for  f[x].
Solution 4 (a).

4 (a).  Find the terms up to  [Graphics:../Images/TaylorPolyMod_gr_275.gif]  in the Maclaurin series for  f[x].

[Graphics:../Images/TaylorPolyMod_gr_276.gif]


[Graphics:../Images/TaylorPolyMod_gr_277.gif]

Remark.  If you just find the "Series" it will include a "Big [Graphics:../Images/TaylorPolyMod_gr_278.gif]"  term, which cannot be used in either evaluations or graphing, we eliminate it with the command "Normal."  The "Big [Graphics:../Images/TaylorPolyMod_gr_279.gif]  term lets us know the power of x in the "remainder.

[Graphics:../Images/TaylorPolyMod_gr_280.gif]

[Graphics:../Images/TaylorPolyMod_gr_281.gif]

[Graphics:../Images/TaylorPolyMod_gr_282.gif]

[Graphics:../Images/TaylorPolyMod_gr_283.gif]

Aside.  Of course the "full" Maclaurin series has an infinite number of terms.  Mathematica is capable of finding sums of infinite series.  

The following is just for fun !

There are two ways to get infinite sums, the old way and the new way.

[Graphics:../Images/TaylorPolyMod_gr_284.gif]
[Graphics:../Images/TaylorPolyMod_gr_285.gif]

The "symbolic" command is:

[Graphics:../Images/TaylorPolyMod_gr_286.gif]
[Graphics:../Images/TaylorPolyMod_gr_287.gif]

Now graph f[x] and the Maclaurin polynomial s[x] over the interval [-2, 2].  

[Graphics:../Images/TaylorPolyMod_gr_288.gif]

[Graphics:../Images/TaylorPolyMod_gr_289.gif]

[Graphics:../Images/TaylorPolyMod_gr_290.gif]

The curves are distinct, but this is only evident if we look at them over a larger interval.

[Graphics:../Images/TaylorPolyMod_gr_291.gif]

[Graphics:../Images/TaylorPolyMod_gr_292.gif]

[Graphics:../Images/TaylorPolyMod_gr_293.gif]

Background for part 4 (b).  Use the fact that the series is "alternating" to investigate the error for the Maclaurin polynomial of degree n = 10 over the interval  [-2.0, 2.0].  

Now look closely at the "error" when the series is used to approximate the function. How close are were the two curves in part (a) ?

[Graphics:../Images/TaylorPolyMod_gr_294.gif]

[Graphics:../Images/TaylorPolyMod_gr_295.gif]

[Graphics:../Images/TaylorPolyMod_gr_296.gif]

This series is "very nice" because it is alternating, and for that reason the error bound is the magnitude of the "next non-zero term" in the series.

[Graphics:../Images/TaylorPolyMod_gr_297.gif]

[Graphics:../Images/TaylorPolyMod_gr_298.gif]

[Graphics:../Images/TaylorPolyMod_gr_299.gif]

[Graphics:../Images/TaylorPolyMod_gr_300.gif]

The error bound for the entire interval  [-2.0, 2.0] is

[Graphics:../Images/TaylorPolyMod_gr_301.gif]

[Graphics:../Images/TaylorPolyMod_gr_302.gif]

[Graphics:../Images/TaylorPolyMod_gr_303.gif]

[Graphics:../Images/TaylorPolyMod_gr_304.gif]

[Graphics:../Images/TaylorPolyMod_gr_305.gif]

[Graphics:../Images/TaylorPolyMod_gr_306.gif]

This estimate is "conservative" and is a little larger than the "actual" maximum error which occurred at   [Graphics:../Images/TaylorPolyMod_gr_307.gif]  

[Graphics:../Images/TaylorPolyMod_gr_308.gif]

[Graphics:../Images/TaylorPolyMod_gr_309.gif]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(c) John H. Mathews 2004