Wallis' Formula

Page content

Proposition

The following equality holds:

n=14n24n21=π2

Alternative Forms

This expression can also be written in the following ways.

Factoring the left-hand side gives:

n=12n2n+12n2n1=π2

Using double factorials:

limn(2n)!!(2n+1)!!(2n)!!(2n1)!!=π2

Taking the reciprocal:

n=1(11(2n)2)=2π

Rewriting in terms of double factorials:

limn((2n)!!(2n+1)!!)2(2n+1)=π2

Taking the square root of both sides:

limn(2n)!!(2n+1)!!2n+1=π2

Multiplying both sides by (2n)!!:

limn{(2n)!!}2(2n+1)!2n+1=limn{(2n)!!}22n+1(2n)!=limn(2nn!)22n+1(2n)!=π2

Since 2n+12n1,

limn22n(n!)2n(2n)!=π

This form is also commonly used.

Moreover, (2n)!(n!)2 represents the number of combinations (2nn), so for sufficiently large n,

(2nn)22nnπ

can also be interpreted as an asymptotic approximation.

Proof Using the Factorization of the Sine Function

As seen in the Basel Problem, the sine function can be formally factored as follows:

sinx=x(1x2π2)(1x222π2)(1x2n2π2)

Substituting x=π2:

sinπ2=π2(1(π2)2π2)(1(π2)222π2)(1(π2)2n2π2)

1=π2(1122)(112222)(1122n2)

Multiplying both sides by 2π:

n=1(11(2n)2)=2π

Proof Using Wallis’ Integral

There is also an interesting proof using the following integral, known as Wallis’ integral:

Im=0π2sinmxdx

The graph of the integrand sinmx looks like this:

As m increases, the part near π2 becomes sharper, and the part near 0 becomes gentler.

Wallis’ integral can be thought of as the area of the region enclosed by the graph of sinmx and the x-axis over the interval [0,π2].

As m increases, the shape of the peak becomes steeper, so the area converges to 0.

Later, we will see that when deriving Wallis’ formula from Wallis’ integral, the ratio of Im to Im+1 is of interest rather than the area itself.

The graph of cosmx looks like this:

Since [0,π2] is the right half of the same peak, Wallis’ integral can also be defined as:

Im=0π2cosmxdx

Now, by using integration by parts:

Im=0π2sin(m1)xsinxdx

Im=[sin(m1)x(cosx)]0π20π2(m1)sin(m2)xcosx(cosx)dx

Im=(m1)0π2sin(m2)xcos2xdx

Im=(m1)0π2sin(m2)x(1sin2x)dx

Im=(m1)0π2sin(m2)xdx(m1)0π2sinmxdx

Im=(m1)Im2(m1)Im

mIm=(m1)Im2

Im=m1mIm2

We obtain this recurrence relation.

Note that:

I0=π2

I1=1

Applying the recurrence relation repeatedly for even and odd m, we get:

I2n=(2n1)!!2n!!I0=(2n1)!!(2n)!!π2

I2n+1=(2n)!!(2n+1)!!I1=(2n)!!(2n+1)!!

On the other hand, since Im is a monotonically decreasing sequence,

0<I2n+1<I2n<I2n1

Dividing each side by I2n+1:

1=I2n+1I2n+1<I2nI2n+1<I2n1I2n+1=2n+12n

Thus,

limnI2n+1I2n=1

That is, the ratio of consecutive terms converges to 1.

I2n+1I2n=(2n)!!(2n+1)!!(2n1)!!(2n)!!π2=2π(2n)!!(2n)!!(2n+1)!!(2n1)!!

Therefore,

limn2π(2n)!!(2n)!!(2n+1)!!(2n1)!!=1

limn(2n)!!(2n)!!(2n+1)!!(2n1)!!=π2

Thus, Wallis’ formula is obtained.

Asymptotics of Wallis’ Integral

Now, let’s examine Wallis’ integral further. Consider the product of consecutive terms.

Using the recurrence relation:

Im=m1mIm2

we have:

(m+1)Im+1Im=(m+1)mm+1Im1Im=mImIm1

Repeating this process, we get:

(m+1)Im+1Im=1I1I0=π2

From the earlier result, Im+1Im, and since m+1m, we have mIm2π2.

That is,

limmmIm=π2

and

Imπ2m

This can be seen by graphing Wallis’ integrals:

Additional Notes

Wallis’ formula implies that the coefficient of xn in (1+x)2n is approximately 4n/nπ.

It is sometimes used in the proof of Stirling’s formula, which approximates factorials (or the gamma function).

It is also used to compute the Gaussian integral and has various other applications.