Consider the function (coming from a joint probability density):
f(x,y)=1ye−y−xy.
I want to evaluate the definite integral (marginal):
F(x)=∫∞0f(x,y)dy.
It is very hard to find a primitive in y, so what I did was the following workaround:
∫f(x,y)dx=−e−y−xy.
So if we let g(x,y):=−e−y−xy, we can write:
f(x,y)=∂g∂x(x,y).
Therefore:
F(x)=∫∞0∂g∂x(x,y)dy.
Now the trick was: can we move the derivation out of the integral? Under what assumptions? If that were the case, we could write:
F(x)=ddx∫∞0g(x,y)dy,
which can be calculated in terms of Bessel functions:
F(x)=ddx∫∞0−e−y−xydy=−ddx(2√xK1(2√x)).
Deriving:
F(x)=K0(2√x)−1√xK1(2√x)+K2(2√x).
(The last two passages according to Wolfram Alpha, for x≥0.)
The Kn should be the "modified Bessel functions of the 2nd kind".
I would like to ask:
- Is it "legal" to carry the derivative out of the integral sign?
- Are the last two (Wolfram Alpha) passages correct?
- Is there any other way of obtaining F(x)? What is the result?
Thanks.
Answer
Following the analysis here:
F(x)=∫∞0dyye−y−xy
Sub u=y+xy, then
y=12(u±√u2−4x)
dy=12(1±u√u2−4x)du
Then
F(x)=14x∫2√x∞du(1−u√u2−4x)(u+√u2−4x)e−u+14x∫∞2√xdu(1+u√u2−4x)(u−√u2−4x)e−u=2∫∞2√xdue−u√u2−4x=2∫∞0dve−2√xcoshv=2K0(2√x)
By using recurrence relations for the Kn, we see that the above simple expression is equivalent to the one derived using differentiation under the integral sign.
No comments:
Post a Comment