Está en la página 1de 5

ejemplo 1

In[1]:=

Normal[Series[Sin[x], {x, 0, 10}]]


normal serie seno
x3 x5 x7 x9
Out[1]= x- + - +
6 120 5040 362 880

In[2]:=

x3 x5 x7 x9
PlotSin[x], x - + - + , {x, - 3 Pi, 3 Pi}
repre seno 6 120 5040 362 880 nm nmero pi

Out[2]=
-5 5

-2

-4

ejemplo 2

defina una funcin que calcule los polinomios de taylor de la funcion f(x)=cos(x) y la graf apox a x origen
, orden 7

In[7]:=

f[x_] := Cos[x]
coseno
Pol[x_] := Evaluate[Normal[Series[f[x], {x, , 7}]]]
evala normal serie

In[9]:= Pol[x] // Expand


expande factores
2 4 6 3 x 5 x x2 2 x2 4 x2 x3 3 x3 x4 2 x4 x5 x6
Out[9]= -1 + - + -x+ - + - + + - - + - +
2 24 720 6 120 2 4 48 6 36 24 48 120 720
2

In[11]:=

Plot[{f[x], Pol[x]}, {x, - 1, 3 }]


representacin grfica

2
Out[11]=

2 4 6 8

-1

Ejemplo 3

In[12]:=

f[z_] := Log[1 - z]
logaritmo

In[15]:=

Pol[z_] := Evaluate[Normal[Series[f[z], {z, 0, 16}]]]


evala normal serie

In[16]:=

Pol[z] // Expand
expande factores
z2 z3 z4 z5 z6 z7 z8 z9 z10 z11 z12 z13 z14 z15 z16
Out[16]= -z - - - - - - - - - - - - - - -
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
3

In[17]:=

Plot[{f[z], Pol[z]}, {z, - 2, 2}]


representacin grfica

-2 -1 1 2

-10

-20

Out[17]=
-30

-40

-50

Ejemplo 4

In[18]:=

x
h[x_] :=
6 x2 + 5

h ''[1] x - 12 h '''[1] x - 13 h ''''[1] x - 14


In[19]:= h[1] + h '[1] x - 1 + + +
2! 3! 4!
1 13 (- 1 + x)2 1259 (- 1 + x)3 56 087 (- 1 + x)4
Out[19]= - (- 1 + x) + + -
11 121 2662 87 846 3 865 224

In[20]:=

h ''[1] x - 12 h '''[1] x - 13 h ''''[1] x - 14


h[1] + h '[1] x - 1 + + + // Expand
2! 3! 4! expande factores

96 907 40 105 x 80 639 x2 11 656 x3 56 087 x4


Out[20]= + - + -
1 288 408 483 153 644 204 161 051 3 865 224

In[21]:=

Normal[Series[h[x], {x, 1, 4}]]


normal serie
1 13 (- 1 + x)2 1259 (- 1 + x)3 56 087 (- 1 + x)4
Out[21]= - (- 1 + x) + + -
11 121 2662 87 846 3 865 224
4

In[22]:=

Normal[Series[h[x], {x, 1, 4}]] // Expand


normal serie expande factores
96 907 40 105 x 80 639 x2 11 656 x3 56 087 x4
Out[22]= + - + -
1 288 408 483 153 644 204 161 051 3 865 224

In[24]:=

Poli[x_] := Evaluate[Normal[Series[h[x], {x, 1, 4}]]]


evala normal serie

In[25]:=

Plot[{h[x], Poli[x]}, {x, - 3, 4}]


representacin grfica

0.5

-3 -2 -1 1 2 3 4

-0.5

Out[25]=

-1.0

-1.5

-2.0

Ejemplo 5

In[26]:=

1
g[x_] :=
4 - x2

In[28]:=

Normal[Series[g[x], {x, 1, 4}]] // Expand


normal serie expande factores
91 136 x 83 x2 184 x3 61 x4
Out[28]= - + - +
243 243 81 243 243

In[29]:=

Poli2[x_] := Evaluate[Normal[Series[g[x], {x, 1, 4}]]]


evala normal serie
5

In[34]:=

Plot[{g[x], Poli2[x]}, {x, - 6, 5}]


representacin grfica

100

50

Out[34]=

-6 -4 -2 2 4

-50

Ejemplo 6

m[x_] :=

También podría gustarte