2
$\begingroup$

How can I get a Taylor expansion of the Sin[x] function by the power series?

$\endgroup$
1
  • 10
    $\begingroup$ Look at Series in the documentation. $\endgroup$
    – JohnD
    Nov 14, 2012 at 2:20

1 Answer 1

24
$\begingroup$

If you're new to Mathematica, then it might make sense to explore these kinds of basic things via the natural language interface. Assuming that you're connected to the internet, so Mathematica can access WolframAlpha's servers, just type

= power series sinx

Note that the equals sign will be reformatted to look like it's part of the WolframAlpha input window. The input and output taken together should look like so:

enter image description here

In addition to generating the series, this also shows you the precise Mathematica syntax to get the series - useful for when you graduate to higher level Mathematica usage!

It can be quite good at guessing your intent. In this particular case, we can type in the exact title of your question and get the correct result!

enter image description here

$\endgroup$
2
  • $\begingroup$ +1 very nice intro ;) I would also explore general SeriesCoefficient[Sin[x], {x, 0, n}] $\endgroup$ Nov 14, 2012 at 6:32
  • 2
    $\begingroup$ +1, and now you've got 110 rep points for not using Mma! Nice! $\endgroup$ Nov 14, 2012 at 13:51

Not the answer you're looking for? Browse other questions tagged or ask your own question.