Hi(adsbygoogle = window.adsbygoogle || []).push({});

I need to plot [itex]\sin(x)[/itex] and its first,third, fifth power series expansion on the same

plot. here's what I did

But I got following errors.Code (Text):

T[n_,x_]:=Normal[Series[Sin[x], {x, 0, n}]]

Plot[{Sin[x], T[1, x], T[3, x], T[5, x]}, {x, -2, 2}]

And in the end it plotted only sin(x). so whats happening ?Code (Text):General::ivar: -1.99992 is not a valid variable. >>

General::ivar: -1.99992 is not a valid variable. >>

General::ivar: -1.99992 is not a valid variable. >>

General::stop: Further output of General::ivar will be suppressed during this calculation. >>

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Mathematica plotting several functions

**Physics Forums | Science Articles, Homework Help, Discussion**