Processing math: 100%

Tuesday, 8 March 2011

Evaluating the integral of a Gaussian

Okay, so I thought I'd take a step back from the quite technical blog about finding the Volume of an n-sphere and look at some of the (often overlooked) techniques that were used.

First, is evaluating the following integral of a gaussian - which occurs very commonly in branches of physics and engineering;

I=ex2dx

Let's now have a look at what I2
looks like;
I2=(ex2dx)2=ex2dxex2dx
Now, using a dummy variable y in the second integral , we get;
I2=ex2dxey2dy
Note: We can use dummy variables since they are exactly that; a variable which is only used to integrate over and (presumably) does not appear in the evaluated integral.
We can bring the exponents together - the integrals are independent.
I2=e(x2+y2)dxdy

Now we use a change of variable from cartesian coordinates to polar with;
x=rcos(θ)
and
y=rsin(θ)
With the determinant of the Jacobian matrix being rdθdr
and noting the change of terminals of integration.

Hence I2=2π00er2rdrdθ
Noting that nothing in the integrand depends on theta.
Now, letting u=r2
we get dudr=2r
so dr=du2r
We get I2=2πu=u=0eurdu2r


Finally; I2=2π2[eu]u=u=0=π[(ee0)]=π

Hence I2=πI=π

Note: This isn't really a strict or rigorous derivation - as I just dealt with the Improper Integrals without taking limits and checking their convergence. This was intended just to get the general idea across.

To be continued...

5 comments:

  1. It's been a long time since I did any complex maths.
    You know what they say, use it or lose it.

    ReplyDelete
  2. @Raw: That is so true :x I remember some parts, but only barely..

    ReplyDelete
  3. If all your posts will be like this, I might get addicted to your blog.

    ReplyDelete
  4. Wow, a couple of years ago this would have made perfect sense to me.

    ReplyDelete
  5. Agreed with everyone else, I've lost this part of my brain.

    ReplyDelete