Divergent Integral and Mathematica

Click For Summary
SUMMARY

The discussion focuses on calculating a double integral in Mathematica, specifically using the expression Integrate[(x*y)/(x*y-m2/s2),{x,0,1},{y,0,1-x}]. The user encounters difficulties with the y-integral results, which appear unhelpful, leading to a manual calculation that introduces complications at the limit as x approaches 0. Suggestions include using interpolation techniques to address the potential infinity issue in the integral. The user acknowledges a possible error in the logarithmic term of their manual calculation.

PREREQUISITES
  • Familiarity with double integrals and their notation
  • Understanding of Mathematica syntax and functions
  • Knowledge of logarithmic properties and limits
  • Basic concepts of interpolation methods
NEXT STEPS
  • Explore Mathematica's Integrate function for advanced integral calculations
  • Study interpolation techniques in Mathematica to handle singularities
  • Review properties of logarithms and their behavior near limits
  • Investigate alternative methods for evaluating double integrals analytically
USEFUL FOR

Mathematicians, physicists, and students working on integral calculus, particularly those using Mathematica for complex integral evaluations.

gn0m0n
Messages
33
Reaction score
1
Hi,

I am trying to calculate a double integral, in Mathematica it could be denoted

Integrate[(x*y)/(x*y-m2/s2),{x,0,1},{y,0,1-x}]

That is,

\int\int\frac{xy}{(xy-m^{2}/s^{2})}dydx with boundaries y=0,y=1-x and x=0,x=1. m and s are constants, of course.

Now, I get some fairly crazy-looking and unhelpful results for the y-integral from Mathematica but I simply used a table of integrals and plugging in obtained

1-x+\frac{1}{x}*\frac{m^{2}}{s^{2}}*Ln|x-x^{2}-\frac{m^{2}}{s^{2}}|

Now of course when I integrate this from x=0 to x=1 then I have a problem as x goes to 0. Someone suggested using interpolation somehow but I know very little about that and don't see if this is where to apply it. I don't think the integral should be infinite - perhaps the y-integral was wrong?

Any help would be much appreciated!
 
Physics news on Phys.org
I should have had a denominator of m^2/s^2 in the log there, or subtracted a log|^2/s^2|.

Anyway, that is not the problem...
 
Last edited:

Similar threads

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