154 Complex Analysis II
Exercise 5.4 (Stirling formula) Using the Euler Γ function defined on t he complex half-
plane Re(z) > 0 by the integral representation
Γ(z)
def
=
Z
+∞
0
e
−x
x
z−1
dx,
and using th e fact that Γ(n +1) = n! for all n ∈ N, show, by the complex saddle point method,
that
Γ(n + 1) = n! ∼ n
n
e
−n
p
2πn.
This formula, established by Abraham de Moivre, is called the Stirling formula.
SOLUTIONS
Solution of exercise 5 .3. Denote by Ω the domain defined by the cavity; Ω is simply con-
nected. The electrosatic potential satisfies ϕ(z) = 0 at any point z ∈ ∂Ω. This potential i s also
a harmonic function, hence achieves its minimum and its maximum on the boundary ∂Ω.
Consequently, we have ϕ(z) = 0 for any z ∈ Ω.
Solution of exercise 5 .4. The first thing to do is to find a suitable contour. To start with,
write
Γ(α + 1) =
Z
+∞
0
e
−x−α log x
dx,
then look for th e points where d f
α
/dz = 0, w ith f
α
(z) = z − α log z. We find z
α
= α, and
d
2
f
α
/dz
2
|
z
α
= 1/α, which i s a positive real number. The two lines for which, locally, the
imaginar y part of f
α
is constant are the real axis and the line with equation z = α + i y. It is
the first which corresponds to a local minimum of f at z
α
= α; therefore the real axis is the
most suitable contour.
Hence we evaluate the integral according to the formula (5.8), which gives
Γ(α + 1) ≈ e
−α−α logα
p
2πα [α → ∞].
One can check explicitly that th e non-gaussian contributions (those given by the terms of order
larger than 2 in the expansion of f
α
) are inverse powers of α. Hence
Γ(α + 1) = α
α
e
−α
p
2πα
1 + O (1/α)
,
and i n particular, for integral values of α,
Γ(n + 1) = n! ∼ n
n
e
−n
p
2πn.
Notice that this approximation is very quickly quite precise; for n = 5, the exact value is
5! = 120 and the Stirling formula gives approximately 118, which is an error of about 2%.
Even more impressive, the relative error from applying the Stirling formula for n = 100 is
about 0, 08%. . . (note that this error is neverth eless very large in absolute value: it is roughly of
size 10
155
, whereas 100! is about 10
158
).
Remark 5.29 If one seeks the asymptotic behavior of Γ(z) for large z not necessarily real, the
computation is more or less the same, except that the path γ is not the real axis any more.
However, th e result of the computation is identical (the result is valid uniformly in any region
where the argument θ ∈ ]−π, π] of z satisfies −π + ǫ < θ < π −ǫ for some ǫ > 0).