Section 18.2 Normalization of the Gaussian
In Section 18.1 we gave a general formula for a Gaussian function with three real parameters. When Gaussian's are used in probability theory, it is essential that the integral of the Gaussian for all \(x\) is equal to one, i.e. the area under the graph of the Gaussian is equal to one, so that the total probability of anything happening is one. We can use this condition to find the value of the normalization parameter \(N\) in terms of the other two parameters.
Of course, you can use computer algebra to find the value of the integral and/or just look it up online or in a table of integrals, i.e.
and use an appropriate substitution. But there is a sweet trick to finding the integral of a Gaussian that is worth knowing.
First, give the name \(I\) to the integral you are trying to find
Next, find the value of the square of this integral, i.e. this integral times itself. Don't forget to name the ``dummy'' variables of integration with different names. In this case, we will call the variables \(x\) and \(y\text{,}\) to suggest coordinates in the plane.
Finally, taking advantage of the fact that the integration (abstractly) covers the whole two-dimensional plane, we change to polar coordinates, centered at the point \((x_0, y_o)\text{,}\) using the substitutions
to obtain
(Note the limits of integration!)
In the final line, the new factor of \(r\) in the integrand made it possible to do the integral with the substitution given by \(u=\frac{r^2}{2\sigma^2}\) (Details left to the reader. See Section 6.7 for an explanation of substitution in integrals.)
If we want to normalize the function for probability applications, the value of this integral should be equal to one, so we would choose
and the formula for the normalized Gaussian is
In section Section 18.1, you can explore how the parameters \(N\) and \(\sigma\) separately affect the shape of the graph of a Gaussian. The normalization condition (18.2.9), relates these two parameters. As a Gaussian gets taller, it must also get narrower in just the right way to keep the area under the curve the same.