Wallis' integrals explained

In mathematics, and more precisely in analysis, the Wallis integrals constitute a family of integrals introduced by John Wallis.

Definition, basic properties

The Wallis integrals are the terms of the sequence

(Wn)n

defined by

Wn=

\pi
2
\int
0

\sinnxdx,

or equivalently,

Wn=

\pi
2
\int
0

\cosnxdx.

The first few terms of this sequence are:
-

W0

W1

W2

W3

W4

W5

W6

W7

W8

...

Wn

-
\pi
2

1

\pi
4
2
3
3\pi
16
8
15
5\pi
32
16
35
35\pi
256
...
n-1
n

Wn-2

The sequence

(Wn)

is decreasing and has positive terms. In fact, for all

n\geq0:

Wn>0,

because it is an integral of a non-negative continuous function which is not identically zero;

Wn-Wn+1=

\pi
2
\int
0

\sinnxdx-

\pi
2
\int
0

\sinn+1xdx=

\pi
2
\int
0

(\sinnx)(1-\sinx)dx>0,

again because the last integral is of a non-negative continuous function.Since the sequence

(Wn)

is decreasing and bounded below by 0, it converges to a non-negative limit. Indeed, the limit is zero (see below).

Recurrence relation

By means of integration by parts, a reduction formula can be obtained. Using the identity

\sin2x=1-\cos2x

, we have for all

n\geq2

,

\begin{align}

\pi
2
\int
0

\sinnxdx&=

\pi
2
\int
0

(\sinn-2x)(1-\cos2x)dx\\ &=

\pi
2
\int
0

\sinn-2xdx-

\pi
2
\int
0

\sinn-2x\cos2xdx.    Equation(1) \end{align}

Integrating the second integral by parts, with:

v'(x)=\cos(x)\sinn-2(x)

, whose anti-derivative is

v(x)=

1
n-1

\sinn-1(x)

u(x)=\cos(x)

, whose derivative is

u'(x)=-\sin(x),

we have:
\pi
2
\int
0

\sinn-2x\cos2xdx=\left[

\sinn-1x
n-1

\cosx

\pi
2
\right]
0

+

1
n-1
\pi
2
\int
0

\sinn-1x\sinxdx=0+

1
n-1

Wn.

Substituting this result into equation (1) gives

Wn=Wn-2-

1
n-1

Wn,

and thus

Wn=

n-1
n

Wn-2,    Equation(2)

for all

n\geq2.

This is a recurrence relation giving

Wn

in terms of

Wn-2

. This, together with the values of

W0

and

W1,

give us two sets of formulae for the terms in the sequence

(Wn)

, depending on whether

n

is odd or even:

W2p=

2p-1
2p

2p-3
2p-2

1
2

W0=

(2p-1)!!
(2p)!!

\pi
2

=

(2p)!
22p(p!)2

\pi
2

,

W2p+1=

2p
2p+1

2p-2
2p-1

2
3

W1=

(2p)!!
(2p+1)!!

=

22p(p!)2
(2p+1)!

.

Another relation to evaluate the Wallis' integrals

Wallis's integrals can be evaluated by using Euler integrals:

  1. Euler integral of the first kind: the Beta function:

\Beta(x,y)=

1
\int
0

tx-1(1-t)y-1dt=

\Gamma(x)\Gamma(y)
\Gamma(x+y)
for
  1. Euler integral of the second kind: the Gamma function:

\Gamma(z)=

infty
\int
0

tz-1e-tdt

for .If we make the following substitution inside the Beta function:

\left\{\begin{matrix}t=\sin2u\ 1-t=\cos2u\dt=2\sinu\cosudu\end{matrix}\right.,


we obtain:

\Beta(a,b)=

\pi
2
2\int
0

\sin2a-1u\cos2b-1udu,

so this gives us the following relation to evaluate the Wallis integrals:

Wn=

1\Beta\left(
2
n+1,
2
1\right)=
2
\Gamma\left(\tfrac{n+1
2

\right)\Gamma\left(\tfrac{1}{2}\right)}{2\Gamma\left(\tfrac{n}{2}+1\right)}.

So, for odd

n

, writing

n=2p+1

, we have:

W2p+1=

\Gamma\left(p+1\right) \Gamma\left(
1
2
\right)
2\Gamma\left(p+1+
1
2
\right)

=

p! \Gamma\left(
1
2
\right)
(2p+1)\Gamma\left(p+
1
2
\right)

=

2pp!
(2p+1)!!

=

22p(p!)2
(2p+1)!

,

whereas for even

n

, writing

n=2p

and knowing that

\Gamma\left(\tfrac{1}{2}\right)=\sqrt{\pi}

, we get :

W2p=

\Gamma\left(p+
1
2
\right) \Gamma\left(
1
2
\right)
2\Gamma\left(p+1\right)

=

(2p-1)!!\pi
2p+1p!

=

(2p)!
22p(p!)2

\pi
2

.

Equivalence

(2)

, we can deduce that

Wn\simWn

(equivalence of two sequences).

Indeed, for all

n\inN

:

Wn\leqslantWn\leqslantWn

(since the sequence is decreasing)
Wn
Wn

\leqslant

Wn
Wn

\leqslant1

(since

Wn>0

)
n+1
n+2

\leqslant

Wn
Wn

\leqslant1

(by equation

(2)

).

By the sandwich theorem, we conclude that

Wn
Wn

\to1

, and hence

Wn\simWn

.

WnWn+1

, one obtains the following equivalence:

Wn\sim\sqrt{

\pi
2n
}\quad (and consequently

\limn\sqrtnWn=\sqrt{\pi/2}

).

Deducing Stirling's formula

Suppose that we have the following equivalence (known as Stirling's formula):

n!\simC\sqrt{n}\left(

n
e

\right)n,

for some constant

C

that we wish to determine. From above, we have

W2p\sim\sqrt{

\pi
4p
} = \frac (equation (3))

Expanding

W2p

and using the formula above for the factorials, we get

\begin{align} W2p&=

(2p)!
22p(p!)2
\pi
2

\\ &\sim

C
\left(2p
e
\right)2p\sqrt{2p
}\cdot\frac \\ &= \frac. \text \end

From (3) and (4), we obtain by transitivity:

\pi
C\sqrt{2p
} \sim \frac.Solving for

C

gives

C=\sqrt{2\pi}.

In other words,

n!\sim\sqrt{2\pin}\left(

n
e

\right)n.

Deducing the Double Factorial Ratio

Similarly, from above, we have:

W2p\sim\sqrt{

\pi
4p
} = \frac\sqrt.Expanding

W2p

and using the formula above for double factorials, we get:

W2p=

(2p-1)!!
(2p)!!

\pi
2

\sim

1\sqrt{
2
\pi
p
}.Simplifying, we obtain:
(2p-1)!!
(2p)!!

\sim

1
\sqrt{\pip
},or
(2p)!!
(2p-1)!!

\sim\sqrt{\pip}.

Evaluating the Gaussian Integral

The Gaussian integral can be evaluated through the use of Wallis' integrals.

We first prove the following inequalities:

\foralln\inN*\forallu\inR+u\leqslantn   ⇒   (1-u/n)n\leqslante-u

\foralln\inN*\forallu\inR+    e-u\leqslant(1+u/n)-n

In fact, letting

u/n=t

,the first inequality (in which

t\in[0,1]

) isequivalent to

1-t\leqslante-t

;whereas the second inequality reduces to

e-t\leqslant(1+t)-1

,which becomes

et\geqslant1+t

.These 2 latter inequalities follow from the convexity of theexponential function(or from an analysis of the function

t\mapstoet-1-t

).

Letting

u=x2

andmaking use of the basic properties of improper integrals(the convergence of the integrals is obvious),we obtain the inequalities:
\sqrtn
\int
0

(1-x2/n)ndx\leqslant

\sqrtn
\int
0
-x2
e

dx\leqslant

+infty
\int
0
-x2
e

dx\leqslant

+infty
\int
0

(1+x2/n)-ndx

for use with the sandwich theorem (as

n\toinfty

).

The first and last integrals can be evaluated easily usingWallis' integrals.For the first one, let

x=\sqrtn\sint

(t varying from 0 to

\pi/2

).Then, the integral becomes

\sqrtnW2n+1

.For the last integral, let

x=\sqrtn\tant

(t varying from

0

to

\pi/2

).Then, it becomes

\sqrtnW2n-2

.

As we have shown before,

\limn\sqrtnWn=\sqrt{\pi/2}

. So, it follows that
+infty
\int
0
-x2
e

dx=\sqrt{\pi}/2

.

Remark: There are other methods of evaluating the Gaussian integral.Some of them are more direct.

Note

The same properties lead to Wallis product,which expresses

\pi
2

(see

\pi

)in the form of an infinite product.

External links