Wallis' integrals

From testwiki
Revision as of 19:42, 7 April 2023 by imported>CopperyMarrow15 (Reverted 3 edits by 2402:8100:22DC:3F8B:3CAB:18E3:EE17:AC1 (talk) to last revision by GhostInTheMachine)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Short description 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)n0 defined by

Wn=0π2sinnxdx,

or equivalently,

Wn=0π2cosnxdx.

The first few terms of this sequence are:

W0 W1 W2 W3 W4 W5 W6 W7 W8 ... Wn
π2 1 π4 23 3π16 815 5π32 1635 35π256 ... n1nWn2

The sequence (Wn) is decreasing and has positive terms. In fact, for all n0:

  • Wn>0, because it is an integral of a non-negative continuous function which is not identically zero;
  • WnWn+1=0π2sinnxdx0π2sinn+1xdx=0π2(sinnx)(1sinx)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=1cos2x, we have for all n2,

0π2sinnxdx=0π2(sinn2x)(1cos2x)dx=0π2sinn2xdx0π2sinn2xcos2xdx.Equation (1)

Integrating the second integral by parts, with:

  • v(x)=cos(x)sinn2(x), whose anti-derivative is v(x)=1n1sinn1(x)
  • u(x)=cos(x), whose derivative is u(x)=sin(x),

we have:

0π2sinn2xcos2xdx=[sinn1xn1cosx]0π2+1n10π2sinn1xsinxdx=0+1n1Wn.

Substituting this result into equation (1) gives

Wn=Wn21n1Wn,

and thus

Wn=n1nWn2,Equation (2)

for all n2.

This is a recurrence relation giving Wn in terms of Wn2. 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=2p12p2p32p212W0=(2p1)!!(2p)!!π2=(2p)!22p(p!)2π2,
  • W2p+1=2p2p+12p22p123W1=(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:
    B(x,y)=01tx1(1t)y1dt=Γ(x)Γ(y)Γ(x+y) for Template:Math
  2. Euler integral of the second kind: the Gamma function:
    Γ(z)=0tz1etdt for Template:Math.

If we make the following substitution inside the Beta function: {t=sin2u1t=cos2udt=2sinucosudu,
we obtain:

B(a,b)=20π2sin2a1ucos2b1udu,

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

Wn=12B(n+12,12)=Γ(n+12)Γ(12)2Γ(n2+1).

So, for odd n, writing n=2p+1, we have:

W2p+1=Γ(p+1)Γ(12)2Γ(p+1+12)=p!Γ(12)(2p+1)Γ(p+12)=2pp!(2p+1)!!=22p(p!)2(2p+1)!,

whereas for even n, writing n=2p and knowing that Γ(12)=π, we get :

W2p=Γ(p+12)Γ(12)2Γ(p+1)=(2p1)!!π2p+1p!=(2p)!22p(p!)2π2.

Equivalence

  • From the recurrence formula above (𝟐), we can deduce that
 Wn+1Wn (equivalence of two sequences).
Indeed, for all n :
 Wn+2Wn+1Wn (since the sequence is decreasing)
Wn+2WnWn+1Wn1 (since  Wn>0)
n+1n+2Wn+1Wn1 (by equation (𝟐)).
By the sandwich theorem, we conclude that Wn+1Wn1, and hence  Wn+1Wn.
  • By examining WnWn+1, one obtains the following equivalence:
Wnπ2n (and consequently limnnWn=π/2 ).

Template:Hidden


Deducing Stirling's formula

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

n!Cn(ne)n,

for some constant C that we wish to determine. From above, we have

W2pπ4p=π2p (equation (3))

Expanding W2p and using the formula above for the factorials, we get

W2p=(2p)!22p(p!)2π2C(2pe)2p2p22pC2(pe)2p(p)2π2=πC2p. (equation (4))

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

πC2pπ2p.

Solving for C gives C=2π. In other words,

n!2πn(ne)n.

Deducing the Double Factorial Ratio

Similarly, from above, we have:

W2pπ4p=12πp.

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

W2p=(2p1)!!(2p)!!π212πp.

Simplifying, we obtain:

(2p1)!!(2p)!!1πp,

or

(2p)!!(2p1)!!πp.

Evaluating the Gaussian Integral

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

We first prove the following inequalities:

  • n*u+un(1u/n)neu
  • n*u+eu(1+u/n)n

In fact, letting u/n=t, the first inequality (in which t[0,1]) is equivalent to 1tet; whereas the second inequality reduces to et(1+t)1, which becomes et1+t. These 2 latter inequalities follow from the convexity of the exponential function (or from an analysis of the function tet1t).

Letting u=x2 and making use of the basic properties of improper integrals (the convergence of the integrals is obvious), we obtain the inequalities:

0n(1x2/n)ndx0nex2dx0+ex2dx0+(1+x2/n)ndx for use with the sandwich theorem (as n).

The first and last integrals can be evaluated easily using Wallis' integrals. For the first one, let x=nsint (t varying from 0 to π/2). Then, the integral becomes nW2n+1. For the last integral, let x=ntant (t varying from 0 to π/2). Then, it becomes nW2n2.

As we have shown before, limn+nWn=π/2. So, it follows that 0+ex2dx=π/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 π2 (see π) in the form of an infinite product.

  • Pascal Sebah and Xavier Gourdon. Introduction to the Gamma Function. In PostScript and HTML formats.

Template:Analysis-footer