I want to see the Taylor series representation for arbitrary functions, e.g. $\sin$. With the Series[] command, I can only see the first $n$ terms. Is there the possibility to show the infinite sum representation?
Thanks for the help!
I want to see the Taylor series representation for arbitrary functions, e.g. $\sin$. With the Series[] command, I can only see the first $n$ terms. Is there the possibility to show the infinite sum representation?
Thanks for the help!
Borrowing from Chip Hurst:
f = Inactive[Sum][
Assuming[n > 0, SeriesCoefficient[Sin[x], {x, 0, n}]] x^n, {n,
0, Infinity}]

ExpToTrig[Activate[f]] // Simplify
(*Sin[x]*)
Try this
FullSimplify[SeriesCoefficient[Sin[x], {x, 0, n}], n >= 0 && n ∈ Integers]
((-1)^(1 + n) Sin[n π/2])/n!
Sum[((-1)^k*x^(2*k + 1))/(2*k + 1)!, {k, 0, Infinity}] .
– McLawrence
May 15 '15 at 20:15
Assuming[]does nothing unless there is aSimplify[]orFullSimplify[]within. – J. M.'s missing motivation May 15 '15 at 22:01FullSimplifyinstead of theSimplify @ ExpToTrig[..]. – Michael E2 May 16 '15 at 02:14FullSimplifycan do that. I checked other examples andFullSimplifygives same results asExpToTrig. Thanks – Basheer Algohi May 16 '15 at 04:13