The factorial n! is defined for nonnegative integers. Extending it to noninteger arguments leads to the Gamma function. Another special function, the Beta function, arises naturally when evaluating integrals involving ta−1(1−t)b−1.
Although their defining integrals cover an infinite interval and a finite interval, respectively, the two functions are closely related:
B(a,b)=Γ(a+b)Γ(a)Γ(b),a,b>0.
This identity reduces many integrals to evaluations of the Gamma function. In probability, it also gives the normalizing constant and moments of the Beta distribution. We will derive it from the integral definitions. Throughout, we consider real parameters and state the convergence conditions for each integral representation.
The Gamma function
Definition and convergence
For x>0, define
Γ(x)=∫0∞tx−1e−tdt.
This is an improper integral, so we must examine both endpoints. As t→0+, we have e−t→1, and the integrand is asymptotic to tx−1. Moreover,
∫01tx−1dt=x1,x>0.
As t→∞, the exponential factor e−t decays faster than any fixed power can grow, ensuring convergence at infinity. For real parameters, the defining integral converges exactly when x>0, and Γ(x)>0. This is Euler’s integral definition.
Recurrence and factorials
Integrating Γ(x+1) by parts with u=tx and dv=e−tdt gives
Since x>0, the boundary term vanishes as both t→0+ and t→∞. Therefore,
Γ(x+1)=xΓ(x),x>0.
Also,
Γ(1)=∫0∞e−tdt=1,
so
Γ(2)=1,Γ(3)=2,Γ(4)=6,Γ(5)=24.
Repeated application of the recurrence gives, for every positive integer n,
Γ(n)=(n−1)!.
Equivalently, Γ(n+1)=n!, including n=0. Keep this shift in the argument in mind: n! corresponds to Γ(n+1).
Values at half-integers
A useful starting point for evaluating the Gamma function at noninteger arguments is x=1/2:
Γ(21)=∫0∞t−1/2e−tdt.
Let t=u2, so that dt=2udu. Then
Γ(21)=2∫0∞e−u2du=∫−∞∞e−u2du.
The last step uses the fact that e−u2 is even. This Gaussian integrand has no elementary antiderivative, but we can evaluate the integral by squaring it and switching to polar coordinates.
Write
I=∫−∞∞e−u2du.
Since the integrand is nonnegative, Tonelli’s theorem allows us to express the product of two integrals as a double integral over the plane:
For n≥1, this comes from multiplying n−21,n−23,…,21 and then multiplying by π. The formula also holds for n=0.
The Beta function
Definition and convergence
For a>0 and b>0, define
B(a,b)=∫01ta−1(1−t)b−1dt.
As t→0+, the integrand is asymptotic to ta−1; as t→1−, it is asymptotic to (1−t)b−1. For real parameters, the integral therefore converges exactly when a,b>0.
If 0<a<1 or 0<b<1, the integrand diverges at the corresponding endpoint, but the integral still converges. For example, when a=b=1/2, both endpoints have integrable singularities.
Symmetry
Substituting u=1−t gives
B(a,b)=∫01(1−u)a−1ub−1du=B(b,a).
Thus, interchanging the two parameters leaves the value unchanged:
B(a,b)=B(b,a).
The Beta–Gamma relation
Start with the product of two Gamma functions:
Γ(a)Γ(b)=∫0∞∫0∞ua−1vb−1e−(u+v)dudv.
Again, nonnegativity allows us to write the product as a double integral. We now replace u,v with their sum and proportion:
s=u+v,t=u+vu.
Conversely,
u=st,v=s(1−t).
The first quadrant u,v>0 corresponds to s>0 and 0<t<1. The absolute value of the Jacobian determinant is
∂(s,t)∂(u,v)=t1−ts−s=s.
Hence the area element is dudv=sdsdt. Substituting into the integral,
The substitution works by separating u,v into a total s and a proportion t, allowing the integral to factor into two independent parts. The result is Euler’s Beta integral formula.
Properties of the Beta function
Throughout this section, assume a,b>0.
Recurrence relations
Using the Beta–Gamma relation and the Gamma recurrence,
B(a+1,b)=Γ(a+b+1)Γ(a+1)Γ(b)=a+baB(a,b).
By symmetry, we also have the corresponding recurrence in the second parameter:
B(a+1,b)B(a,b+1)=a+baB(a,b),=a+bbB(a,b).
Adding these identities gives
B(a+1,b)+B(a,b+1)=B(a,b).
This addition identity also follows directly from the definition: adding the two integrands on the left produces a common factor of t+(1−t)=1.
Special values
When one parameter equals one,
B(a,1)=∫01ta−1dt=a1,B(1,b)=b1.
For positive integers m,n,
B(m,n)=(m+n−1)!(m−1)!(n−1)!.
For example,
∫01t2(1−t)3dt=B(3,4)=6!2!3!=601.
For half-integer parameters, using Γ(1/2)=π gives
B(21,21)=π,B(21,23)=2π,B(23,23)=8π.
In particular, the first identity evaluates an integral that converges despite having singularities at both endpoints:
∫01t(1−t)dt=π.
Positivity and monotonicity
The defining integrand is positive on (0,1), so B(a,b)>0.
Fix b>0 and let a2>a1>0. Because 0<t<1, we have ta2−1<ta1−1. Multiplying both sides by the positive factor (1−t)b−1 and integrating gives
B(a2,b)<B(a1,b).
Thus, with either positive parameter fixed, the Beta function is strictly decreasing in the other parameter. The result for the second parameter follows by symmetry.
Other integral representations of the Beta function
Trigonometric integrals
In the definition, substitute t=sin2θ, so that dt=2sinθcosθdθ. This gives
For example, taking x=n+1/2, where n is a nonnegative integer, recovers the formula for the Gamma function at half-integers derived earlier.
Application to the Beta distribution
In probability, a direct use of the Beta function is to normalize a positive function into a probability density. If a random variable X has a Beta distribution with parameters a,b>0, written X∼Beta(a,b), its density is
fX(t)=B(a,b)ta−1(1−t)b−1,0<t<1,
and zero outside this interval. The denominator is exactly the integral of the numerator, so the total probability is one.
We can reuse the Beta function to calculate moments. For any nonnegative integer k,
For example, when a=b=1, we have B(1,1)=1, and the density is constant at one on (0,1). This Beta distribution is the uniform distribution on that interval, with mean 1/2 and variance 1/12.
This calculation illustrates a useful role of the Beta function: multiplying the density by tk simply increases one parameter by k, turning the moment integral into a ratio of two Beta functions.