Professional Documents
Culture Documents
The Taylor Series For Sinx
The Taylor Series For Sinx
+
3!
5!
7!
The Taylor polynomial of degree 1 for sin x is P1 (x) = x. The Taylor
polynomial of degree 3 is
x3
P3 (x) = x
3!
and so forth. Notice that P2 (x) = P1 (x) and P4 (x) = P3 (x).
The graph below shows sin x and the Taylor polynomials P1 (x), P3 (x),
P13 (x), and P15 (x).
sin x = x
1.5
0.5
0.5
1.5
2
10
10
x = -10:.2:10;
plot(x,sin(x))
axis([-10 10 -2 2])
hold
Current plot held
x = sym(x);
taylor(sin(x),16)
ans =
x - 1/6*x^3 + 1/120*x^5 - 1/5040*x^7 + 1/362880*x^9 - 1/39916800*x^11
+ 1/6227020800*x^13 - 1/1307674368000*x^15
x= -10:.2:10;
plot(x, x, g)
plot(x, x-1/6*x.^3, r)