Analysis · Lecture 4

Gaussian integrals and their relatives

From e−x2 to Stirling’s formula

1The basic integral

The function f(x)=e−x2 has no elementary antiderivative, yet its integral over the whole line can be found exactly. The trick, due to Poisson, is to square the integral and pass to polar coordinates.

Theorem 1

The Gaussian integral has the value

∫−∞∞e−x2dx=π.(1)

Proof. Write I for the integral. Then I2 is a double integral over the plane, and in polar coordinates (r,θ) the factor r from the Jacobian makes the radial integral elementary:

I2=∫−∞∞∫−∞∞e−(x2+y2)dxdy=∫02π∫0∞e−r2rdrdθ=2π·12=π.(2)

Since the integrand is positive, I=π.

∎

2Completing the square

With a scale a>0 and a shift b, completing the square in the exponent reduces the general case to (1):

∫−∞∞e−ax2+bxdx=πaeb24a.(3)

Differentiating (3) with respect to b at b=0 gives all the even moments. With a=12σ2 one obtains the normal density, whose normalisation is exactly Theorem 1:

φ(x)=1σ2πe−(x−μ)22σ2.(4)

3The Gamma function

Definition

For z>0 the Gamma function is Γ(z)=∫0∞tz−1e−tdt.

Integration by parts gives Γ(z+1)=zΓ(z), so Γ(n+1)=n!. Substituting t=x2 in (1) shows the surprising value at one half, and the growth of n! is described by Stirling’s formula:

Γ(12)=π,n!∼2πn(ne)n(n→∞).(5)
nn!Stirlingrelative error
110.92217.8 %
5120118.021.7 %
103 628 8003 598 6960.83 %
Normal densities for sigma 0.5, 1 and 2 on the interval from minus four to four, with the area within one standard deviation shaded
Figure 1. The density (4) of Section 2 with μ=0 for three widths. The shaded area under σ=1 is the probability of lying within one standard deviation, about 68.3 %.

4Sums

The same circle of ideas produces some famous series. Parseval’s identity applied to the Fourier series of x on (−π,π) gives the Basel sum, and Euler found its product form:

∑n=1∞1n2=π26=∏p(1−1p2)−1.(6)

5A matrix example

For the symmetric matrix A below, the Gaussian integral over R2 generalises (1) to π2/2/detA:

A=(2113),detA=5,∫R2e−xTAxd2x=π5.(7)

6The Fourier transform

Finally, the Gaussian is its own Fourier transform, up to scale. With the convention below, the function g(x)=e−πx2 is a fixed point of the transform, which is why it minimises the product of the widths of a function and of its spectrum:

g^(ξ)=∫−∞∞g(x)e−2πixξdx=e−πξ2.(8)

The proof is a single application of (3) with a=π and b=−2πiξ: the exponent b2/4a equals −πξ2, and the prefactor π/a is 1.

The formulas in these notes are plain MathML elements inside the HTML source. Umbruch lays them out with the font’s OpenType MATH table; the text of every formula can be selected and copied from the PDF.