I'm Trying to use Mathematica to symbolically integrate a function with respect to x, y, and z.
For some reason, this computation either takes about, 60s and returns the input, or takes many hours and doesn't seem to finish. here is a screenshot of the problem. This is an attempt to integrate the gravitational potential equation over x, y, and z. The constants have been pulled out of the integration in order to try and reduce computation error or time.

as you can see, at this moment in time, mathematica has been working for over 20,000 seconds (running about 30% on i7 @ 2.8ghz.
I feel like perhaps there is an error in my formatting, because i've run into many problems attempting to perform similar integration. I've used assumptions in past attempts, but they've haven't proved useful.
any suggestions?



Assumptions->{L>0,W>0,a>0,b>a}etc (or whatever they should be ) – george2079 Jun 10 '14 at 20:36Integrate[1/Sqrt[x^2 + y^2 + z^2], x, y, z], as this does quickly give an answer. Then fill in the bounds manually. – Jacob Akkerboom Jun 10 '14 at 20:37Integrate[-1/Sqrt[x^2 + y^2 + z^2], {z, Catalan, EulerGamma}, {x, 0, Khinchin}, {y, 0, Glaisher}] // AbsoluteTiming. After which you can substitute with{Catalan->a, EulerGamma->b, Khinchin->L/2,Glaisher->W/2}. – Daniel Lichtblau Jun 10 '14 at 22:21ShowProgressfunction code? It very interesting. – Mariusz Iwaniuk Mar 29 '18 at 18:36