Ways to solve the Gaussian Integral
Introduction
Assalamualaikum! It's been a while since my last post (approximately 7 months ago lol). A lot of things happens in the past 7 months! Started my MSc Statistics last September and now I am already in my second semester, Alhamdulillah!In this post, I will talk about a famous integral, which I am pretty sure most Maths BSc student encounter this in their first or second-year statistics course, the Gaussian Integral. I will show you two ways to solve this integral. The first method involves some calculus (which was my initial approach when I first encountered this integral back in my first year) while the second method is probably more intuitive.
Before I start, let's look back at the form of this integral:
\[ \int_{-\infty}^{\infty}e^{-\frac{x^2}{2}}dx\]The integral above is equal to \(\sqrt{2\pi}\). Let's us show this two different ways. I used to prefer the first method since it's just evaluating integral and some calculus, but now I think the second method is much more clever (using some probability theory).
Method 1
The first method involves some calculus, specifically using Double Integrals in Polar Coordinates. That is, \[\int\int_{\mathbb{R}}f(x,y)dxdy=\int_{\theta_{1}}^{\theta_{2}}\int_{r_{1}}^{r_{2}}f(r)rdrd\theta\]Now using this method, let us denote the Gaussian Integral as \(I=\int_{-\infty}^{\infty}e^{-\frac{x^2}{2}}dx\). Then,
\[I^2=\int_{-\infty}^{\infty}e^{-\frac{x^2}{2}}dx\int_{-\infty}^{\infty}e^{-\frac{y^2}{2}}dy\] \[I^2=\int_{-\infty}^{\infty}\int_{-\infty}^{\infty}e^{-\frac{x^2+y^2}{2}}dxdy\]
Using the polar coordinates, where \(r^2=x^2+y^2\), this is actually a circle. This means that \(\theta \in [0, 2\pi]\). Hence, using the Double Integrals in Polar Coordinates method, \(I^2\) can be expressed as: \[I^2=\int_{0}^{2\pi}\int_{0}^{\infty}e^{-\frac{r^2}{2}}rdrd\theta\]
Set \(u=\frac{r^2}{2}\) and hence \(du=rdr\),
\[I^2=\int_{0}^{2\pi}\int_{0}^{\infty}e^{-u}dud\theta\] \[I^2=\int_{0}^{2\pi}d\theta=2\pi\]
This gives \(I=\sqrt{2\pi}\). Shown!
More explanation from this video: https://www.youtube.com/watch?v=l27xKSNad2Y

Inspiring
ReplyDelete