Help me compute numerically this integral

  • Context: Graduate 
  • Thread starter Thread starter bayes
  • Start date Start date
  • Tags Tags
    Integral
Click For Summary

Discussion Overview

The discussion revolves around the numerical computation of a complex integral defined in Mathematica, involving multiple variables and integrals. Participants seek assistance in evaluating this integral, which is related to a research project in physics.

Discussion Character

  • Exploratory, Technical explanation, Debate/contested, Mathematical reasoning

Main Points Raised

  • One participant requests help to compute a specific integral using Mathematica, emphasizing its importance.
  • Another suggests using Wolfram Alpha for numerical integration, but this is challenged due to the complexity of the integral.
  • A participant describes their attempts to analyze the integrand at a specific point, reporting issues with Mathematica's evaluation.
  • Concerns are raised about the convergence of the integral when x equals y, with some participants suggesting that it may lead to infinity.
  • There is a proposal to explore alternative numerical methods such as Gauss quadrature or Monte Carlo integration.
  • Some participants discuss plotting the integrand to investigate its behavior and whether it ever becomes negative.
  • One participant expresses confidence that Mathematica experts could potentially solve the integral, suggesting contacting them for further assistance.

Areas of Agreement / Disagreement

Participants express differing views on the ability of Mathematica to evaluate the integral, with some believing it cannot converge while others remain uncertain. There is no consensus on the behavior of the integral when x equals y.

Contextual Notes

Participants note that the integral arises from a research project in physics, but details about its application are limited. There are unresolved questions regarding the convergence of the integral and the behavior of the integrand.

bayes
Messages
6
Reaction score
0
Hi,

Can anybody with a powerful computer help me compute numerically the following integral:

1) k[x_, y_] :=
Exp[-Integrate[(Cosh[2 t] Cos[
2 t (ArcSinh[Cot[x]] - ArcSinh[Cot[y]])/Pi] - 1) Exp[
t]/(t Sinh[2 t] Cosh[t]), {t, 0, Infinity}]]

2) NIntegrate[k[x, y], {x, -PI, 0}, {y, -PI, 0}]

I'm using the notation of mathematica. I am interested in in the integral defined in 2)

This is extremely important to me and any help is highly appreciated.

Thanks
 
Physics news on Phys.org
What happens when you plug-in the NIntegrate command into Wolfram Alpha? Do a google search on it if you're not familiar. It's a internet interface to (some of) the features of Mathematica.
 
Thank you for your reply but Mathematica alpha does only single integrals whereas mine involves 3 integrals. Moreover mathematica isn't capable of computing this integral.
 
bayes said:
Hi,

Can anybody with a powerful computer help me compute numerically the following integral:

1) k[x_, y_] :=
Exp[-Integrate[(Cosh[2 t] Cos[
2 t (ArcSinh[Cot[x]] - ArcSinh[Cot[y]])/Pi] - 1) Exp[
t]/(t Sinh[2 t] Cosh[t]), {t, 0, Infinity}]]

2) NIntegrate[k[x, y], {x, -PI, 0}, {y, -PI, 0}]

I'm using the notation of mathematica. I am interested in in the integral defined in 2)

This is extremely important to me and any help is highly appreciated.

Thanks

What is the context of this integral? Where does it come from? What is the application? Is this a school project?
 
This integral shows up in a research project in physics. Unfortunately I can't give you more details than that.

Thanks
 
Last edited:
I think you need to more analyze the integrand in the domain of integration. For example, if I just choose a point (x,y)=(-pi/4,-pi/4) and then attempt to numerically integrate over t this is what Mathematica reports:

Code:
In[1]:=
myk[x_, y_, t_] := 
  ((Cosh[2*t]*Cos[(2*t*(ArcSinh[Cot[x]] - ArcSinh[Cot[y]]))/Pi] - 1)*
    Exp[t])/(t*Sinh[2*t]*Cosh[t])

In[3]:=
myx = -Pi/4
myy = -Pi/4
NIntegrate[myk[myx, myy, t], {t, 0, Infinity}]

Out[3]=
-(Pi/4)

Out[4]=
-(Pi/4)

During evaluation of In[3]:= NIntegrate::inumri:
The integrand (E^t (-1+Cosh[2 t]) Csch[2 t] Sech[t])/t has 
evaluated to Overflow, Indeterminate, or Infinity for all 
sampling points in the region with 
boundaries {{0.,4.64782*10^14}}. >>

Out[5]=
NIntegrate[myk[myx, myy, t], {t, 0, Infinity}]
 
Thanks jackmell for your help but I think mathematica is not able to evaluate this integral. I know for a fact that when x = y then the integral over t is zero so I don't understand your result when x=y = -PI/4. If anyone knows another numerical method such as Gauss quadrature or Monte Carlo that would be great.
 
Wait a minute dude. Let's just plot it then:

Code:
Plot[myk[-Pi/4, -Pi/4, t], {t, 0, 100}, PlotRange -> {{0, 100}, {0, 2}}]

and also, use FindInstance to see if it ever goes below the x-axis:

Code:
In[23]:= FindInstance[
 myk[-\[Pi]/4, -\[Pi]/4, t] == 0 && t > 0, t, Reals]

Out[23]= {}

so at least initially, these results are suggesting the integrand when (x,y)=(-pi/4,-pi/4) is always positive and note if I just start integrating it from t=0, 100, then 1000, then 10000, then 100000, the value of the integral grows larger and larger. These results are leading me to believe the integral that I have input to Mathematica may indeed not converge but there is still a slight chance that Mathematica is wrong but it's not often.
 

Attachments

  • myintegrand.jpg
    myintegrand.jpg
    5.4 KB · Views: 443
Yes I think when x = y your integral goes to +Infinity and therefore Exp[-Integral] goes to 0 and that's what I mean when I said I expect it to go to zero when x = y. I really meant the exponential of minus the integral. So our calculations agree when x = y. Thanks for your help.
 
  • #10
bayes said:
Yes I think when x = y your integral goes to +Infinity and therefore Exp[-Integral] goes to 0 and that's what I mean when I said I expect it to go to zero when x = y. I really meant the exponential of minus the integral. So our calculations agree when x = y. Thanks for your help.

Ok, sorry. Forgot about the Exp. Yeah, looks like a challenging integral but I have confidence the Mathematica experts at Drexel could do it. So if you really need more help, then send them an e-mail about it:

http://mathforum.org/kb/forum.jspa?forumID=79
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K