Appendix C. Gaussian Integrals
The Main Results¶
The most common Gaussian integral encountered in practice is
where is real and . The integral does not exist (it diverges) if .
Another common form is when the exponent is purely imaginary. In this case we have
where is real and , and where . The integral does not exist (it diverges) if . Notice that (2) is a special case of (1) if is allowed to be complex, if we set , and if is interpreted according to
If we allow in (1) to be an arbitrary complex number, then the integral converges exponentially if . If then the integrand diverges exponentially and the integral is not defined. The case is the marginal case. If and , then the integrand oscillates with a sequence of positive and negative lobes with decreasing area as increases, so the integral converges. Finally, if and (that is, ), then the integral does not converge. In summary, the integral converges everywhere to the right of the imaginary axis in the complex -plane, and on the imaginary axis except at .
If is a complex number such that the integral (1) converges, then the answer is still given by (1), as long as is interpreted in the following sense. We write
where , and we define
This means that of the two square roots of , we take the one with the positive real part.
Another common form is one with a linear term in the exponent,
The existence of this integral depends on the value of in the same way as the simpler integral (1), because for large the quadratic term in the exponent dominates. That is, can be any complex number to the right of the imaginary axis, or on the imaginary axis, except for . The convergence of the integral is independent of , which can be any complex number. The quantity on the right hand side of (6) is interpreted as in (5).
The Proof¶
This is the standard proof, see, for example, E. B. Wilson, Advanced Calculus.
First take the case where is real and . By a change of variable the answer can be expressed in terms of
where we have dropped the prime on in the first integral. Squaring this we have
where we have switched to polar coordinates in the second integral. This integral is easily done, yielding . Taking the square root and transforming back to the original variable of integration reproduces (1). The method is a special trick that is worth knowing because the result is so important.
To prove (1) in the case that is complex (but in the allowed region described in \secrgaussint-1) we do a change of variable,
where is defined in (5). The contour of integration in the original integral runs along the real axis in the complex -plane, so after the change of variable the contour is , in the complex -plane. However this contour can be deformed to run along the real -axis, whereupon the integral is reduced to the form of (1) with . This is really an example of the method of steepest descent, an approximation method for integrals which however in this case is exact.
To prove the integral (6) we complete the square and shift origin to reproduce the form (1).
Multidimensional Gaussian Integrals¶
A common form of a multidimensional Gaussian integral is
where is a a real -vector and the range of integration is all of , where is a real, symmetric, positive definite matrix, where is an -vector, where means transpose, where and are seen as column vectors and and as row vectors, and where the dot indicates contractions or matrix multiplication. The vector is allowed to be complex.
The case where the matrix in (10) is purely imaginary is also common. In this case we have
Here is a real, symmetric matrix with ; is an integer,
where is the number of positive or negative eigenvalues of ; and otherwise the notation is as in (10).
The case where in (10) is a complex symmetric matrix is more complicated but encountered less frequently, so we shall not consider it.
(10) is proved by performing an orthogonal transformation,
where is another real -vector and is an orthogonal matrix such that
where is diagonal. Then , and the new integral breaks up into the product of one-dimensional integrals of the form (1). (11) is proved similarly, except the resulting one-dimensional integrals have the form (2).
Moment Integrals¶
We present some one-dimensional integrals giving moments of Gaussian. The integral for the first moment is
while the second moment is
These may be obtained by differentiating (6) with respect to or .