You are here
Home ›example of Taylor polynomials for $\sin x$
Primary tabs
example of Taylor polynomials for
In this entry we compute several Taylor polynomials for the function around and we produce graphs to compare the function with the corresponding Taylor polynomial. Recall that for a given function (here we suppose is infinitely differentiable) and a point , the Taylor polynomial of degree () is given by:
where denotes the th derivative of .
From now on we assume and . Notice that the derivatives of are cyclic:
Therefore, the Taylor polynomials are easy to compute. In fact:
Thus, the first Taylor polynomial is given by:
In the following graph one can compare the function and .
The function and the first Taylor polynomial.
Notice that . More generally, so we will not compute any other even order Taylor polynomials. However, the third degree Taylor polynomial is given by the formula:
The function and the third Taylor polynomial.
The Taylor polynomial of degree is given by:
The function and the fifth Taylor polynomial.
Next, we compute some Taylor polynomials of higher degree. In particular, the Taylor polynomial of degree has the form:
The function and the Taylor polynomial of degree .
Finally, we produce a detailed view of the Taylor polynomial of degree . In particular, notice that the graphs are very close until or so, but after that behaves rather jittery and wildly.
A detail of the Taylor polynomial of degree (the interval ).
Mathematics Subject Classification
41A58 Series expansions (e.g. Taylor, Lidstone series, but not Fourier series)- Forums
- Planetary Bugs
- HS/Secondary
- University/Tertiary
- Graduate/Advanced
- Industry/Practice
- Research Topics
- LaTeX help
- Math Comptetitions
- Math History
- Math Humor
- PlanetMath Comments
- PlanetMath System Updates and News
- PlanetMath help
- PlanetMath.ORG
- Strategic Communications Development
- The Math Pub
- Testing messages (ignore)
- Other useful stuff
Recent Activity
new question: Sorry to steal a few minutes of your time for this question, but i honestly don't know what else to do. by Whrazithar
new question: equality of the determinants of submatrices of an orthogonal matrix by ismayli
Jun 11
new correction: Typo by suitangi
Jun 2
new question: Creating another set with same cardinality. by hkkass
Jun 1
new image: ProblemOneRevised by unlord
new Education: Chapter II by rspuzio
May 31
new collection: The Calculus by Davis and Brenke by rspuzio
new question: Proofs by weixifan
new question: Summation Integration Question by trevor.nickle
May 27
new correction: typo+finite measure hypothesis by Filipe



Comments
graphs
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
Re: graphs
Yep, the graphs were made with Mathematica,
* To find the Taylor polynomial of degree $n$
Normal[Series[Sin[x],{x,0,n}]]
* To plot (for example Sin[x] and T_1(x)=x ):
Plot[{Sin[x],x},{x,-4,4},ImageSize->{640,480},PlotStyle->{Hue[0.2],Hue[0.7]}]
I can't remember the Hue assignment for the colors I used. The color is given by a number 0<=x<= 1 and Hue[x].
* To export the graph to eps, jpg or whatever .ext :
Export["prettygraph.ext", Plot[{Sin[x],x} ... ]]
Alvaro
Re: graphs
thanks a lot, I was wondering of Hue , since I always used RGB which is too cumbersome, I forgot you could export directly from code, thanks again
f
G -----> H G
p \ /_ ----- ~ f(G)
\ / f ker f
G/ker f