For my first blog post, I will demonstrate the classic integral trick to show that the pdf of the normal distribution does in fact meet the requirements of a probability density function and have integral 1.
A Double Integral
First, recall that the pdf of the normal distribution is f(x)=2π1e−2x2 . This function does not yield to integration by parts or substitution, and so a trick is necessary.
Let
I=∫−∞∞2π1e−2x2dx
Observe that I is always positive, because the integrand is always positive. Hence, to show that I is equal to 1, it is enough to show that I2 is equal to 1.
Polar Coordinates
Consider the following:
I2=∫−∞∞f(x)dx⋅∫−∞∞f(y)dy
Because the second integral is a constant with respect to x , it is reasonable to move it inside the integral sign:
The key point to notice is that the transition from dxdy to rdrdθ allows us to use substitution to compute the integral.
Let u=−2r2,du=−rdr and notice that
I2=∫02π∫0−∞−2π1eududθ=∫02π2π1(1−0)dθ=1
and so the pdf of the normal distribution is shown to have integral 1 as desired. This is a classic fun integral trick that is worth knowing, and it applies for all means and variances (above is the mean 0 and variance 1 case). Probability as a field often results in enjoyable integrals.