http://www.intmath.com/series-expansion/2-maclaurin-series.php
2. Maclaurin Series
By M. Bourne
In the last section, we learned about Taylor Series, where we found an approximating polynomial for a particular function in the region near some value We now take a particular case of Taylor Series, in the region near
The infinite series expansion for
[Note: Some textbooks call the series on this page "Taylor Series" (which they are, too), or "series expansion" or "power series".]
Example: Expanding sin x
Find the Maclaurin Series expansion for
We need to find the first, second, third, etc derivatives and evaluate them at x = 0. Starting with:
Now to substitute the values of these derivatives into the Maclaurin Series:
f(x) ≈f(0)+f’(0)x +f’’(0)2!x2 +f’’’(0)3!x3 +fiv(0)4!x4+...
We have:
sin x=0+(1)(x) +0 +−13!x3 +0 +15!x5 +0 +−17!x7+...
This gives us:
sin x=x−16x3+1120x5 −15040x7+...
First dervative:f(x) = sin xf(0) = 0
Second dervative:f '(x) = cos xf '(0) = cos 0 = 1
Third dervative:f ''(x) = −sin xf ''(0) = −sin 0 = 0
Fourth dervative:f '''(x) = −cos xf '''(0) = −cos 0 = −1
We observe that this pattern will continue forever.f iv(x) = sin xf iv(0) = sin 0 = 0
Now to substitute the values of these derivatives into the Maclaurin Series:
We plot our answer
to see if the polynomial is a good approximation to
We observe that our polynomial (in red) is a good approximation to
Example: Expanding ex
Find the Maclaurin Series expansion of Exercise
Find the Maclaurin Series expansion ofFinding Pi Using Infinite Series
In the 17th century, Leibniz used the series expansion of arctan x to find an approximation of π.We start with the first derivative:
The value of this derivative whenddxarctan x=11+x2
Similarly for the subsequent derivatives:
f’’(0)=0
f’’’(0)=−2
fiv(0)=0
Now we can substitute into the Maclaurin Series formula:fv(0)=24
Considering that (see the 45-45 triangle)
we can substitutearctan1=π4
All very well, but it was not a good way to find the value of π because this expansion converges very slowly.π=4(1−13+15−17+...)
Even after adding 1000 terms, we don't have 3 decimal place accuracy.
(We know now that π = 3.141 592 653 5..., and we know many other more efficient ways to find4∑n=01000(−1)n2n+1=3.142591654...
Here's the graph of y = arctan x (in blue) compared to the polynomial we just found (in red).
No hay comentarios:
Publicar un comentario