B Math

B.4 The Gamma function

(September 1, 2023)

The gamma function is a useful special function that extends the domain of the factorial function to non-integer values. It is defined by the integral22 2 I like to write Γ(z) like this Γ(z)=0xze-xdxx (B.16) since the measure dx/x is invariant under a rescaling x=λx, i.e. dx/x=dx/x. This is one reason why clever math folk defined Γ(z) with the power z-1 in Eq. (B.17) instead of just z.

Γ(z)=0xz-1e-xdx (B.17)

and has the familiar recursive relationship

Γ(z+1)=zΓ(z) (B.18)

starting from Γ(1)=1. We have

Γ(n)=(n-1)! (B.19)

While the gamma function is defined for all complex numbers except the non-positive integers, analytical expressions are only known where n is an integer or half-integer. In particular,

Γ(12)=π. (B.20)

So for instance, using the recursion, Γ(3/2)=12Γ(12)=π/2.

In statistical mechanics, the gamma function occurs frequently in integrals involving the Maxwell–Boltzmann distribution. In addition, the area of a sphere in d dimensions is

Ad=2πd/2Γ(d/2)rd-1. (B.21)

which comes up a lot later in the course.