Is it possible to integrate a transcendental function given by a power series sum, instead of summing up the individual integrals in the power series? Reason why I’m asking this is cause each individual integral takes too long to calculate, so if I need to sum say 50 terms it will take forever, so if Mathematica has a way to define a function by means of a power series, however complicated it may get and then calculate its integral over say 0 and 1, that’d be ideal.
Let me give an example below:
The example is such that summing up 50 terms of this series would require calculating 50 integrals which are really slow to calculate, so I think there must be a better way to do that.
Let me know if you’d like to me to paste the plain Mathematica code in here, I’m new to this site so I don’t know very well how to do that.
M = 10; n = 2; m = 1;
N[(1/4)*
Sum[(I*2*Pi*n)^k*Sum[(((-2)^(k-p)*(m*p)^(k+1))/(p!*(k-p)!*k!))*
Integrate[(1-u)^k*Coth[(m*p*u)/2]*(E^(m*p*n*u)-1), {u,0,1}], {p,1, k}], {k,1,M}], 5]
Btw, how do I copy and paste here from a notebook without having to replace Mathematica’s graphic symbols with plain commands?
Amazing, that is the best. If I’m able to finish my work successfully I will let you know so you can have a look (no more hassle for you, just for your curiosity).
Let me give you a little background first.
The formula I’m trying to calculate is below:
Note it converges if M is finite, but not infinite. But then, below I have a formula which gives an analytic continuation for the infinite sum over n which converges even if m>0 (if m<0 both the left and the right-hand sides converge and they match, if m>0 only the right-hand side converges – note that below M=\infty):
Now, to make things simpler, let’s try to sum up everything together for a large M2. Let’s ignore the complex part, because for positive m only the last term is complex. I could’ve used better variable names, but darn Mathematica made N a reserved keyword.
Hence altogether the sum I need to calculate is this little monster:
bmmmburns
(Marvin Ray Burns A.G.S. (cum laude))
10
I hate it when formulas get that messy.(Sometimes they have to, but by being clever, we can, sometimes, simplify them a little. There are even ways of making Mathematica simplify it.) Let me see if I can come up with a less complicated one.
Where did the formula that you said diverges at infinity come from?
I think you won’t be able to simplify that long formula further.
I even posted a post on math.stackexchange asking if somebody knows how to simplify it.
Besides, I know the Simplify formula in Mathematica, it just doesn’t work for these sums.