The Wallis' integrals are the terms of the sequence                     (                  W                      n                                    )                                  n                        ∈                                      N                                                           defined by:
                              W                      n                          =                  ∫                      0                                              π              2                                                sin                      n                                  (        x        )                d        x        ,                or equivalently (through a substitution:                     x        =                              π            2                          −        t                ):
                              W                      n                          =                  ∫                      0                                              π              2                                                cos                      n                                  (        x        )                d        x                In particular, the first few terms of this sequence are:
The sequence                              (                  W                      n                          )                 is decreasing and has strictly positive terms. In fact, for all                     n        ∈                          N                         :
                                       W                      n                          >        0                , because it is an integral of a non-negative continuous function which is not all zero in the integration interval                              W                      n                          −                  W                      n            +            1                          =                  ∫                      0                                              π              2                                                sin                      n                                  (        x        )                d        x        −                  ∫                      0                                              π              2                                                sin                      n            +            1                                  (        x        )                d        x        =                  ∫                      0                                              π              2                                                sin                      n                                  (        x        )                [        1        −        sin                (        x        )        ]                d        x        ⩾        0                (by the linearity of integration and because the last integral is an integral of a non-negative function within the integration interval)
Note: Since the sequence                              (                  W                      n                          )                 is decreasing and bounded below by 0, it converges to a non-negative limit. Indeed, the limit is zero (see below).
By means of integration by parts, an interesting recurrence relation can be obtained:
Noting that for all real 
                    x                , 
                                      sin                      2                                  (        x        )        =        1        −                  cos                      2                                  (        x        )                , we have, for all natural numbers 
                    n        ⩾        2                ,
                              ∫                      0                                              π              2                                                sin                      n                                  (        x        )                d        x        =                  ∫                      0                                              π              2                                                sin                      n            −            2                                  (        x        )                  [          1          −                      cos                          2                                          (          x          )          ]                        d        x                                              ∫                      0                                              π              2                                                sin                      n                                  (        x        )                d        x        =                  ∫                      0                                              π              2                                                sin                      n            −            2                                  (        x        )                d        x        −                  ∫                      0                                              π              2                                                sin                      n            −            2                                  (        x        )                  cos                      2                                  (        x        )                d        x                 (equation 
                              (          1          )                        )
Integrating the second integral by parts, with:
                              u          ′                (        x        )        =        cos                (        x        )                  sin                      n            −            2                                  (        x        )                , whose anti-derivative is                     u        (        x        )        =                              1                          n              −              1                                                sin                      n            −            1                                  (        x        )                                    v        (        x        )        =        cos                (        x        )                , whose derivative is                               v          ′                (        x        )        =        −        sin                (        x        )                we have:
                              ∫                      0                                              π              2                                                sin                      n            −            2                                  (        x        )                  cos                      2                                  (        x        )                d        x        =                              [                                          1                                  n                  −                  1                                                                    sin                              n                −                1                                                  (            x            )            cos                        (            x            )            ]                                0                                              π              2                                      +                  ∫                      0                                              π              2                                                                     1                          n              −              1                                                sin                      n            −            1                                  (        x        )        sin                (        x        )                d        x        =        0        +                              1                          n              −              1                                                        W                      n                                  Substituting this result into                               (          1          )                         gives:
                              W                      n                          =                  W                      n            −            2                          −                              1                          n              −              1                                                        W                      n                                  and thus
                                      (          1          +                                    1                              n                −                1                                              )                          W                      n                          =                  W                      n            −            2                                   (equation 
                              (          2          )                        )
This gives the well-known identity:
                    n                          W                      n                          =        (        n        −        1        )                          W                      n            −            2                                                  , valid for all 
                    n        ⩾        2                                .
This is a recurrence relation giving                               W                      n                                   in terms of                               W                      n            −            2                                  . This, together with the values of                               W                      0                                   and                               W                      1                                  , give us two sets of formulae for the terms in the sequence                              (                  W                      n                          )                , depending on whether                     n                 is odd or even.
for                             n        =        2                p                ,                                       W                      2                        p                          =                                            2                            p              −              1                                      2                            p                                      ×                                            2                            p              −              3                                      2                            p              −              2                                      ×        ⋯        ×                              1            2                                            W                      0                          =                                            2                            p                                      2                            p                                      ×                                            2                            p              −              1                                      2                            p                                      ×                                            2                            p              −              2                                      2                            p              −              2                                      ×                                            2                            p              −              3                                      2                            p              −              2                                      ×        ⋯        ×                              2            2                          ×                              1            2                                            W                      0                          =                                            (              2                            p              )              !                                                      2                                  2                                    p                                                          (              p              !                              )                                  2                                                                                          π            2                                  for                             n        =        2                p        +        1                ,                                       W                      2                        p            +            1                          =                                            2                            p                                      2                            p              +              1                                                                                  2                            p              −              2                                      2                            p              −              1                                      ⋯                              2            3                                            W                      1                          =                                                            2                                  2                                    p                                                          (              p              !                              )                                  2                                                                    (              2                            p              +              1              )              !                                                       Note that all the even terms are irrational, whereas the odd terms are all rational.
Wallis's integrals can be evaluated by using Euler integral :
- Euler integral of the first kind: the Beta function:                              B                (        x        ,        y        )        =                  ∫                      0                                1                                    t                      x            −            1                          (        1        −        t                  )                      y            −            1                                  d        t        =                                            Γ              (              x              )              Γ              (              y              )                                      Γ              (              x              +              y              )                                              
- Euler integral of the second kind: the Gamma function:                    Γ        (        z        )        =                  ∫                      0                                ∞                                    t                      z            −            1                                            e                      −            t                                  d        t                
If we make the following substitution inside the Beta function:                                       {                                                                      t                  =                                      sin                                          2                                                                          (                  u                  )                                                                              1                  −                  t                  =                                      cos                                          2                                                                          (                  u                  )                                                                              d                  t                  =                  2                  sin                                    (                  u                  )                  cos                                    (                  u                  )                                    d                  u                                                                                      
We obtain :
                              B                (        a        ,        b        )        =        2                  ∫                      0                                              π              2                                                sin                      2            a            −            1                                  (        u        )                  cos                      2            b            −            1                                  (        u        )                d        u                We know that                     Γ        (                                            1              2                                      )        =                              π                                  , so this gives us the following relation to evaluate the Wallis'integrals:
                              W                      n                          =                              1            2                                    B                (                                            n              +              1                        2                          ,                              1            2                          )        =                                            π                        2                                                              Γ              (                                                                                          n                      +                      1                                        2                                                              )                                      Γ              (                                                                    n                    2                                                              +              1              )                                      .                From the recurrence formula above                               (          2          )                        , we can deduce that                                       W                      n            +            1                          ∼                  W                      n                                   (equivalence of two sequences).Indeed, for all 
                    n        ∈                          N                         :
                                       W                      n            +            2                          ⩽                  W                      n            +            1                          ⩽                  W                      n                                   (since the sequence is decreasing)
                                                        W                              n                +                2                                                    W                              n                                                    ⩽                                            W                              n                +                1                                                    W                              n                                                    ⩽        1                 (since 
                                       W                      n                          >        0                )
                                                        n              +              1                                      n              +              2                                      ⩽                                            W                              n                +                1                                                    W                              n                                                    ⩽        1                 (by equation 
                              (          2          )                        ).By the sandwich theorem, we conclude that 
                                                        W                              n                +                1                                                    W                              n                                                    →        1                , and hence 
                                       W                      n            +            1                          ∼                  W                      n                                  .
By examining                               W                      n                                    W                      n            +            1                                  , one obtains the following equivalence:                              W                      n                          ∼                                            π                              2                                n                                                                     ( and consequently 
                                      lim                      n            →            ∞                                                n                                            W                      n                          =                              π                          /                        2                                           ).
Suppose that we have the following equivalence (known as Stirling's formula)
                             n                !        ∼        C                                      n                                                (                                          n                                  e                                                      )                                n                                  , where 
                             C        ∈                              R                                ∗                                  .
We now want to determine the value of this constant                              C                 using the formula for                               W                      2                        p                                  .
From above, we know that:                              W                      2                        p                          ∼                                            π                              4                                p                                                    =                                            π                        2                                                        1                          p                                               (equation 
                              (          3          )                        )
Expanding                               W                      2                        p                                   and using the formula above for the factorials, we get:                              W                      2                        p                          =                                            (              2                            p              )              !                                                      2                                  2                                    p                                                          (              p                            !                              )                                  2                                                                                                  π            2                          ∼                                            C                                                              (                                                                                    2                                                p                                                                    e                                                                              )                                                  2                  p                                                                                            2                                    p                                                                                    2                                  2                  p                                                                          C                                  2                                                                                            (                                                            p                                              e                                                                              )                                                  2                  p                                                                                            (                                                            p                                                        )                                                  2                                                                                                  π            2                                   and hence:
                              W                      2                        p                          ∼                              π                          C                                                              2                                                                                                  1                          p                                               (equation 
                              (          4          )                        )From 
                              (          3          )                         and 
                              (          4          )                        , we obtain, by transitivity,
                                          π                          C                                                              2                                                                                                  1                          p                                      ∼                                            π                        2                                                        1                          p                                              , which gives :
                                          π                          C                                                              2                                                                    =                                            π                        2                                  , and hence 
                    C        =                              2                        π                                  .We have thus proved Stirling's formula:
                             n                !        ∼                              2                        π                        n                                                        (                                          n                                  e                                                      )                                n                                  .
The Gaussian integral can be evaluated through the use of Wallis' integrals.
We first prove the following inequalities:
                    ∀        n        ∈                              N                                ∗                                  ∀        u        ∈                              R                                +                                  u        ⩽        n                ⇒                (        1        −        u                  /                n                  )                      n                          ⩽                  e                      −            u                                                      ∀        n        ∈                              N                                ∗                                  ∀        u        ∈                              R                                +                                            e                      −            u                          ⩽        (        1        +        u                  /                n                  )                      −            n                                  In fact, letting                             u                  /                n        =        t                , the first inequality (in which                     t        ∈        [        0        ,        1        ]                ) is equivalent to                     1        −        t        ⩽                  e                      −            t                                  ; whereas the second inequality reduces to                               e                      −            t                          ⩽        (        1        +        t                  )                      −            1                                  , which becomes                               e                      t                          ⩾        1        +        t                . These 2 latter inequalities follow from the convexity of the exponential function (or from an analysis of the function                     t        ↦                  e                      t                          −        1        −        t                ).
Letting                     u        =                  x                      2                                   and making use of the basic properties of improper integrals (the convergence of the integrals is obvious), we obtain the inequalities:
                              ∫                      0                                              n                                      (        1        −                  x                      2                                    /                n                  )                      n                          d        x        ⩽                  ∫                      0                                              n                                                e                      −                          x                              2                                                    d        x        ⩽                  ∫                      0                                +            ∞                                    e                      −                          x                              2                                                    d        x        ⩽                  ∫                      0                                +            ∞                          (        1        +                  x                      2                                    /                n                  )                      −            n                          d        x                 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        =                              n                                  sin                t                 (t varying from 0 to                     π                  /                2                ). Then, the integral becomes                                           n                                            W                      2            n            +            1                                  . For the last integral, let                     x        =                              n                                  tan                t                 (t varying from                     0                 to                     π                  /                2                ). Then, it becomes                                           n                                            W                      2            n            −            2                                  .
As we have shown before,                               lim                      n            →            +            ∞                                                n                                            W                      n                          =                              π                          /                        2                                  . So, it follows that                               ∫                      0                                +            ∞                                    e                      −                          x                              2                                                    d        x        =                              π                                    /                2                .
Remark: There are other methods of evaluating the Gaussian integral. Some of them are more direct.
Relation with the Beta and Gamma functions
One of the definitions of the Beta function reads:
                              B                (        x        ,        y        )        =        2                  ∫                      0                                π                          /                        2                          (        sin                θ                  )                      2            x            −            1                          (        cos                θ                  )                      2            y            −            1                                  d        θ        ,                          R          e                (        x        )        >        0        ,                           R          e                (        y        )        >        0                        Putting                     x        =                                            n              +              1                        2                                  ,                     y        =                              1            2                                   into this equation gives us an expression of the Wallis' integrals in terms of the Beta function:
                              B                          (                                                    n                +                1                            2                                ,                                    1              2                                )                =        2                  ∫                      0                                π                          /                        2                          (        sin                θ                  )                      n                          (        cos                θ                  )                      0                                  d        θ        =        2                  ∫                      0                                π                          /                        2                          (        sin                θ                  )                      n                                  d        θ        =        2                  W                      n                                  or equivalently,
                              W                      n                          =                              1            2                                    B                          (                                                    n                +                1                            2                                ,                                    1              2                                )                        .
Exploiting the identity relating the Beta function to Gamma function:
                              B                (        x        ,        y        )        =                                                            Γ                (                x                )                                Γ                (                y                )                                            Γ                (                x                +                y                )                                                            We can rewrite the above in terms of the Gamma function:
                              W                      n                          =                              1            2                                                              Γ                              (                                                                            n                      +                      1                                        2                                                  )                            Γ                              (                                                      1                    2                                                  )                                                    Γ                              (                                                                            n                      +                      1                                        2                                                  +                                                      1                    2                                                  )                                                    =                                            Γ                              (                                                                            n                      +                      1                                        2                                                  )                            Γ                              (                                                      1                    2                                                  )                                                    2                            Γ                              (                                                                            n                      +                      2                                        2                                                  )                                                            So, for odd                     n                , writing                     n        =        2        p        +        1                , we have:
                              W                      2            p            +            1                          =                                            Γ                              (                p                +                1                )                            Γ                              (                                                      1                    2                                                  )                                                    2                            Γ                              (                p                +                1                +                                                      1                    2                                                  )                                                    =                                            p              !              Γ                              (                                                      1                    2                                                  )                                                    (              2              p              +              1              )                            Γ                              (                p                +                                                      1                    2                                                  )                                                    =                                                            2                                  p                                                          p              !                                      (              2              p              +              1              )              !              !                                      =                                                            2                                  2                                    p                                                          (              p              !                              )                                  2                                                                    (              2              p              +              1              )              !                                              whereas for even                     n                , writing                     n        =        2        p                , we get:
                              W                      2            p                          =                                            Γ                              (                p                +                                                      1                    2                                                  )                            Γ                              (                                                      1                    2                                                  )                                                    2                            Γ                              (                p                +                1                )                                                    =                                            (              2              p              −              1              )              !              !                            π                                                      2                                  p                  +                  1                                                          p              !                                      =                                            (              2              p              )              !                                                      2                                  2                                    p                                                          (              p              !                              )                                  2                                                                    ⋅                              π            2                                  The same properties lead to Wallis product, which expresses                                           π            2                                           (see                     π                ) in the form of an infinite product.