The Gaussian integral, also called the probability integral and closely related to the erf function, is
the integral of the one-dimensional Gaussian
function over .
It can be computed using the trick of combining two one-dimensional Gaussians
|
(1)
| |||
|
(2)
| |||
|
(3)
|
Here, use has been made of the fact that the variable in the integral is a dummy
variable that is integrated out in the end and hence can be renamed from to
. Switching to polar coordinates
then gives
|
(4)
| |||
|
(5)
| |||
|
(6)
|
There also exists a simple proof of this identity that does not require transformation to polar coordinates (Nicholas and Yates 1950).
The integral from 0 to a finite upper limit can be given by the continued
fraction
|
(7)
| |||
|
(8)
|
where
is the erf (error) function, as first stated by Laplace,
proved by Jacobi, and rediscovered by Ramanujan (Watson 1928; Hardy 1999, pp. 8-9).
The general class of integrals of the form
|
(9)
|
for real and nonnegative integer
can be solved analytically by setting
|
(10)
| |||
|
(11)
| |||
|
(12)
|
Then
|
(13)
| |||
|
(14)
|
For ,
this is just the usual Gaussian integral, so
|
(15)
|
For ,
the integrand is integrable
by quadrature,
|
(16)
|
To compute
for
,
use the identity
|
(17)
| |||
|
(18)
| |||
|
(19)
| |||
|
(20)
|
For even ,
|
(21)
| |||
|
(22)
| |||
|
(23)
| |||
|
(24)
| |||
|
(25)
|
so, including the directly evaluated cases and
,
|
(26)
| |||
|
(27)
|
where
is a double factorial and
is a nonnegative integer.
If
is odd, then
|
(28)
| |||
|
(29)
| |||
|
(30)
| |||
|
(31)
| |||
|
(32)
|
so, including the directly evaluated cases and
,
|
(33)
|
For every nonnegative integer , the solution is therefore
|
(34)
|
The first few values are therefore
|
(35)
| |||
|
(36)
| |||
|
(37)
| |||
|
(38)
| |||
|
(39)
| |||
|
(40)
| |||
|
(41)
|
A related, often useful integral is
|
(42)
|
which is simply given by
|
(43)
|
The more general integral of has the following closed
forms,
|
(44)
| |||
|
(45)
| |||
|
(46)
|
for nonnegative integer (F. Pilolli, pers. comm.). The expression involving
applies for real
and real
, with the value of
on the negative real axis
taken from above. The two finite sums hold for
with
, using the principal square
root and the convention
. Here,
is the sign function,
uses the floor function,
is a confluent hypergeometric
function of the second kind and
is a binomial coefficient.