Proof of Stirling’s Formula

less than 1 minute read

Stirling’s formula is very useful in all kinds of asymptotic analysis. Here we present one of many proofs.

First, Stirling’s formula says that

We start from the fact that . Then do the substitution . We get the representation

We denote . Then we only need to show that the integral equals . This comes from the fact that

So we want to show that

Assuming that , we compare the natural log of two sides. By the Taylor series of , we have

Note that the sequence of functions is always bounded by the following integrable function,

The left part is easy to check by the Taylor series. The right part can be verified calculating the derivative of the difference . Then, by the dominant convergence theorem, we have