I have the following integral
$$\int _{-\infty }^{\infty }\int _{-\infty }^{\infty }\exp \left(a u^2+b v^2+c u v\right) \; dvdu,$$
which returns the following solution:
$$\frac{2 \pi }{\sqrt{4 a b-c^2}}.$$
I would like to generalise the integral to define the following function:
$$f[x, y] := \int _{-\infty }^{\infty }\int _{-\infty }^{\infty }\exp \left(a u^2+b v^2+c u v\right) u^x v^y\; dvdu,$$
which Mathematica generates a solution to in terms of Hypergeometric functions but crucially it is a function of x
and y
. I would like to use this function for a range of different x
and y
, i.e.
Table[f[x,y], {x,0,10}, {y,0,10}]
As a cross check, I would like to get a consistent result when $x=y=0$. The issue is that when I try to evaluate f[0,0]
, I get Indeterminate due to a 0 ComplexInfinity
. I.e. this doesn't reproduce the result at the top. A same issue occurs for f[0,2]
.
Is there a fix to this? Can I define cases where it breaks?
Limit
to find the value at zero? $\endgroup$x
andy
. I get a complex infinity with x=0 and y=2 too $\endgroup$With[{x = 0, y = 2}, Integrate[Exp[a u^2 + b v^2 + c u v] u^x v^y, {v, -∞, ∞}, {u, -∞, ∞}]]
$\endgroup$Integrate[ Exp[a*u^2 + b*v^2 + c*u*v]*v^2, {u, -Infinity, Infinity}, {v, -Infinity, Infinity}]
results inConditionalExpression[-(( 4 a Sqrt[-b] Sqrt[-4 a + c^2/b] \[Pi])/(-4 a b + c^2)^2), Re[a - c^2/(4 b)] < 0]
which is not true (see at the result ofPlot3D[Exp[2*u^2 + 1*v^2 + 2*u*v]*v^2, {u, -5, 5}, {v, -5, 5}]
). Submit a report to Wolfram Technical Support. $\endgroup$