10.3: C- Clinic on the Gamma Function
( \newcommand{\kernel}{\mathrm{null}\,}\)
The gamma function Γ(s) is defined, for s > 0, by
Γ(s)=∫∞0xs−1e−xdx.
Upon seeing any integral, your first thought is to evaluate it. Stay calm. . . first make sure that the integral exists. A quick check shows that the integral above converges when s > 0.
There is no simple formula for the gamma function for arbitrary s. But for s = 1,
Γ(1)=∫∞0e−xdx=−e−x|∞0=1.
For s > 1 we may integrate by parts,
∫∞0xs−1e−xdx=−xs−1e−x|∞0+(s−1)∫∞0xs−2e−xdx,
giving
Γ(s)=(s−1)Γ(s−1) for s>1.
Apply equation (C.4) repeatedly for n a positive integer,
Γ(n)=(n−1)Γ(n−1)=(n−1)(n−2)Γ(n−2)=(n−1)(n−2)⋯2⋅1⋅Γ(1)=(n−1)!,
to find a relation between the gamma function and the factorial function. Thus the gamma function generalizes the factorial function to non-integer values, and can be used to define the factorial function through
x!=Γ(x+1) for any x>−1.
In particular,
0!=Γ(1)=1.
(It is a deep and non-obvious result that the gamma function is in fact the simplest generalization of the factorial function.)
The gamma function can be simplified for half-integral arguments. For example
Γ(12)=∫∞0x−1/2e−xdx=∫∞0y−1e−y2(2ydy)=∫∞−∞e−y2dy=√π
where we used the substitution y=√x. Thus
Γ(32)=12Γ(12)=√π2=(12)!,
Γ(52)=32Γ(32)=34√π,
and so forth.