PlanetMath (more info)
 Math for the people, by the people. Sponsor PlanetMath
Encyclopedia | Requests | Forums | Docs | Wiki | Random | RSS  
Login
create new user
name:
pass:
forget your password?
Main Menu
Owner confidence rating: High Entry average rating: No information on entry rating
[parent] example of Taylor polynomials for $\sin x$ (Example)

In this entry we compute several Taylor polynomials for the function $ \sin x$ around $ x=0$ and we produce graphs to compare the function with the corresponding Taylor polynomial. Recall that for a given function $ y=f(x)$ (here we suppose $ f$ is infinitely differentiable) and a point $ x=a$, the Taylor polynomial of degree $ n$ ($ n\geq 0$) is given by:

$\displaystyle T_n(x)=f(a)+f'(a)(x-a)+\frac{f''(a)}{2!}(x-a)^2+\ldots+\frac{f^{(n)}(a)}{n!}(x-a)^n$
where $ f^{(n)}$ denotes the $ n$th derivative of $ f(x)$.

From now on we assume $ f(x)=\sin x$ and $ a=0$. Notice that the derivatives of $ \sin x$ are cyclic:

$\displaystyle f'(x)=\cos x,\quad f''(x)=-\sin x, \quad f'''(x)=-\cos x, \quad f^{(4)}(x)=\sin x = f(x).$

Therefore, the Taylor polynomials are easy to compute. In fact:

$\displaystyle f^{(2n)}(0)=0, \quad f^{(2n+1)}(0)=(-1)^n$

Thus, the first Taylor polynomial is given by:

$\displaystyle T_1(x)= 0 + 1\cdot x = x$
In the following graph one can compare the function $ T_1(x)=x$ and $ \sin x$.
\includegraphics[scale=0.7]{taylor1}
The function $ y=\sin x$ and the first Taylor polynomial.

Notice that $ T_2(x)=T_1(x)$. More generally, $ T_{2n}(x)=T_{2n-1}(x)$ so we will not compute any other even order Taylor polynomials. However, the third degree Taylor polynomial is given by the formula:

$\displaystyle T_3(x)=x-\frac{x^3}{3!}=x - \frac{x^3}{6}$
\includegraphics[scale=0.7]{taylor3}
The function $ y=\sin x$ and the third Taylor polynomial.

The Taylor polynomial of degree $ 5$ is given by:

$\displaystyle T_5(x)=x-\frac{x^3}{3!}+\frac{x^5}{5!}$
\includegraphics[scale=0.7]{taylor5}
The function $ y=\sin x$ and the fifth Taylor polynomial.

Next, we compute some Taylor polynomials of higher degree. In particular, the Taylor polynomial of degree $ 15$ has the form:

$\displaystyle T_{15}(x)=x-\frac{x^3}{6} + \frac{x^5}{120} - \frac{x^7}{5040} + ... ...ac{x^{11}}{39916800} + \frac{x^{13}}{6227020800} - \frac{x^{15}}{1307674368000}$
\includegraphics[scale=0.7]{taylor15}
The function $ y=\sin x$ and the Taylor polynomial of degree $ 15$.

Finally, we produce a detailed view of the Taylor polynomial of degree $ 99$. In particular, notice that the graphs are very close until $ x=34$ or so, but after that $ T_{99}(x)$ behaves rather jittery and wildly.

\includegraphics[scale=0.7]{detailtaylor100}
A detail of the Taylor polynomial of degree $ 99$ (the interval $ (34,39)$).




"example of Taylor polynomials for $\sin x$" is owned by alozano.
(view preamble | get metadata)

View style:

See Also: complex sine and cosine, higher order derivatives of sine and cosine

Keywords:  Taylor polynomial, pretty graphs, sine function

This object's parent.
Log in to rate this entry.
(view current ratings)

Cross-references: interval, formula, order, even, cyclic, derivative, degree, point, differentiable, graphs, function, Taylor polynomials

This is version 4 of example of Taylor polynomials for $\sin x$, born on 2005-02-18, modified 2005-03-23.
Object id is 6782, canonical name is ExampleOfTaylorPolynomialsForSinX.
Accessed 7999 times total.

Classification:
AMS MSC41A58 (Approximations and expansions :: Series expansions )

Pending Errata and Addenda
None.
[ View all 3 ]
Discussion
Style: Expand: Order:
forum policy
graphs by drini on 2005-02-18 17:10:47
oh I mistook polynomials and series on the correction, nevermind.

I quite like your graphs, the look is Mathematica-ish to me, and if so, what are the parameters you used for Plot?
 f
G -----> H G
p \ /_ ----- ~ f(G)
 \ / f ker f
 G/ker f 
[ reply | up ]

Interact
post | correct | update request | add example | add (any)