Gaussian Integral


By Gavin Adams on Thursday, January 17, 2002 - 02:18 am:
A=ò-¥¥ e-x2 dx is the well known gaussian integral.

If we say that B=ò-¥¥ e-y2 dy then:

A2=A B=ò-¥¥ e-x2 dxò-¥¥ e-y2 dy

NOW

Here are the two points that I don't understand:

  1. Why can we then say that:

    ò-¥¥ e-x2 dxò-¥¥ e-y2 dy = ò-¥¥ e-x2-y2 dx dy

    How can we make this statement?

    Why can we move the inside of the integral in y into the integral in x?

  2. After we do this we convert to a polar equation:

    ò-¥¥ò-¥¥ e-x2-y2 dx dy = ò02pò0¥ e-r2r dr dq

    I see that obviously r2=x2+y2 by why do we multiply by r dr dq?

    How does one convert an equation like this generally into polar form to find an integral in rectangular form?


After that it's pretty easy to evaluate the integral, but i really don't understand those two essential points


By Dan Goodman on Thursday, January 17, 2002 - 10:00 pm:
I'm in a bit of a hurry so this answer will probably be too short.

In answer to (1): since ò-¥¥ e-x2 dx is just a number A (or B) and we know that for any integral and constant K we have that Kòf(y) dy=òK.f(y) dy then we can set f(y)=e-y2 and K=A to get that ò-¥¥ e-x2 dxò-¥¥ e-y2 dy = ò-¥¥ò-¥¥ e-x2 dx e-y2 dy. That's just moving a constant inside the integral. Now, as far as the ò-¥ ¥ e-x2 dx is concerned, e-y2 is just a constant, so we ò-¥¥e-x2 dx e-y2 = ò-¥¥ e-x2 e-y2 dx=ò-¥¥ e-x2-y2 dx. So we get that ò-¥¥e-x2-y2 dx dy. So, there are two steps involved, each is just taking a constant inside an integral.

The answer to (2) is in general a bit more complicated. There was a discussion not that long ago on Nrich about Jacobians and change of coordinates in integrals (which is what you want to know about), perhaps someone will post the link.

The basic idea is this:

Suppose we had an integral with respect to x. If we change variables to y=2x then we have to change the limits first of all, but also change the dx to (1/2)dy. Intuitively, you can say that dy/dx=2 so dy=2dx so dx=dy/2. This is sort of dodgy but gives the right answer. What we're doing is scaling the area of the infinitessimal element by a certain factor, in this case 1/2. You have to include that scale factor when you change variables. It turns out that the right scale factor for the change from 2D cartesian (or rectangular if you prefer) to 2D polar coordinates is r. If you draw a box with vertices (r,q), (r+dr,q), (r,q+dq) and (r+dr,q+dq) and work out its area, this will be the scaling factor at the point (r,q). This is true for cartesian coordinates as well, but the box obviously has area dx.dy in that case. Have a go at working it out, remember that you can discard any terms with more that three d terms, so dr.dr.dq can be discarded for example, because when you integrate it over r and q you have a dr left over which makes it 0. Sorry I can't be more clear but I'm short of time...


By Brad Rodgers on Thursday, January 17, 2002 - 10:03 pm:

For 1), we know that A is a constant, so


Aò0¥ e-y2 dy=ò0¥ A e-y2 dy
In that way, it's pretty intuitional. There is a rigorous theorem about this called Fubini's theorem, but it involves special cases, so isn't neccessary here.

For 2), to understand it rigorously, you would have to understand change of variables in a double integral, which involves something called a Jacobian. I can try to find a link on this though, if you want. You can understand it pretty well though, by considering that the area of a region in rectangular coordinates is

òòR dx dy,

whereas the area in polar coordinates is

òab (1/2)r2 dq = òòR ' r dr dq

where R ' is the same basic regionas R, just R ' has representation in polar coordinates, and R has representation in rectangular (e.g. if R is x2+y2=1, then R ' is r=1). Does that make sense? If not, I can try to find another explanation on another site.

If anyone else wants to explain this in a slightly different way, feel free to do so, as I generally have trouble putting concepts like this into words...

Brad


By Brad Rodgers on Thursday, January 17, 2002 - 10:03 pm:

Oops, hadn't yet seen your post, Dan.

Brad


By Yatir Halevi on Saturday, January 19, 2002 - 12:12 pm:
How, from that do you prove that the integral (from 0 to ¥) is equal to

Ö
 

p
 
/2

?


Yatir


By Dan Goodman on Saturday, January 19, 2002 - 01:56 pm:
Yatir, once you have the integral from -¥ to ¥ being

Ö
 

p
 

it's immediate that the integral from 0 to ¥ is

Ö
 

p
 
/2

, because the integrand (the bit inside the integral) is symmetric about 0, e-x2=e-(-x)2.

By Yatir Halevi on Saturday, January 19, 2002 - 02:04 pm:

This I know.
My question was how do I integrate in polar coordinates?

Yatir

p.s.
Is there a different way of finding the value of the integral without switching to polar coordinates?


By Kerwin Hui on Saturday, January 19, 2002 - 02:31 pm:

Yatir,

Yes there is a way without switching to polar coordinates (but it requires more work). Let

defn

and show that f(x)+g(x)=pi/4. Now let x tends to infinity. See this archive thread for more details.

Alternatively we could start by a binomial distribution and let n tends to infinity. You can get the result after some (nasty) work. I saw that in a book which takes 2 pages to get to the answer with this method.

Kerwin