Oct 18, 2026 · science · 5min read

Definitions and Properties of the Gamma and Beta Functions

The factorial n!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−1t^{a-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.\mathrm{B}(a,b)=\frac{\Gamma(a)\Gamma(b)}{\Gamma(a+b)}, \qquad 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>0x>0, define

Γ(x)=∫0∞tx−1e−t dt.\boxed{\Gamma(x)=\int_0^\infty t^{x-1}e^{-t}\,\mathrm{d}t.}

This is an improper integral, so we must examine both endpoints. As t→0+t\to0^+, we have e−t→1e^{-t}\to1, and the integrand is asymptotic to tx−1t^{x-1}. Moreover,

∫01tx−1 dt=1x,x>0.\int_0^1 t^{x-1}\,\mathrm{d}t=\frac1x, \qquad x>0.

As t→∞t\to\infty, the exponential factor e−te^{-t} decays faster than any fixed power can grow, ensuring convergence at infinity. For real parameters, the defining integral converges exactly when x>0x>0, and Γ(x)>0\Gamma(x)>0. This is Euler’s integral definition.

Recurrence and factorials

Integrating Γ(x+1)\Gamma(x+1) by parts with u=txu=t^x and dv=e−tdt\mathrm{d}v=e^{-t}\mathrm{d}t gives

Γ(x+1)=∫0∞txe−t dt=[−txe−t]0∞+x∫0∞tx−1e−t dt=xΓ(x).\begin{aligned} \Gamma(x+1) &=\int_0^\infty t^xe^{-t}\,\mathrm{d}t\\ &=\left[-t^xe^{-t}\right]_0^\infty +x\int_0^\infty t^{x-1}e^{-t}\,\mathrm{d}t\\ &=x\Gamma(x). \end{aligned}

Since x>0x>0, the boundary term vanishes as both t→0+t\to0^+ and t→∞t\to\infty. Therefore,

Γ(x+1)=xΓ(x),x>0.\boxed{\Gamma(x+1)=x\Gamma(x),\qquad x>0.}

Also,

Γ(1)=∫0∞e−t dt=1,\Gamma(1)=\int_0^\infty e^{-t}\,\mathrm{d}t=1,

so

Γ(2)=1,Γ(3)=2,Γ(4)=6,Γ(5)=24.\Gamma(2)=1,\quad \Gamma(3)=2,\quad \Gamma(4)=6,\quad \Gamma(5)=24.

Repeated application of the recurrence gives, for every positive integer nn,

Γ(n)=(n−1)!.\boxed{\Gamma(n)=(n-1)!.}

Equivalently, Γ(n+1)=n!\Gamma(n+1)=n!, including n=0n=0. Keep this shift in the argument in mind: n!n! corresponds to Γ(n+1)\Gamma(n+1).

Values at half-integers

A useful starting point for evaluating the Gamma function at noninteger arguments is x=1/2x=1/2:

Γ(12)=∫0∞t−1/2e−t dt.\Gamma\left(\frac12\right) =\int_0^\infty t^{-1/2}e^{-t}\,\mathrm{d}t.

Let t=u2t=u^2, so that dt=2u du\mathrm{d}t=2u\,\mathrm{d}u. Then

Γ(12)=2∫0∞e−u2 du=∫−∞∞e−u2 du.\begin{aligned} \Gamma\left(\frac12\right) &=2\int_0^\infty e^{-u^2}\,\mathrm{d}u\\ &=\int_{-\infty}^\infty e^{-u^2}\,\mathrm{d}u. \end{aligned}

The last step uses the fact that e−u2e^{-u^2} 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−u2 du.I=\int_{-\infty}^\infty e^{-u^2}\,\mathrm{d}u.

Since the integrand is nonnegative, Tonelli’s theorem allows us to express the product of two integrals as a double integral over the plane:

I2=(∫−∞∞e−x2 dx)(∫−∞∞e−y2 dy)=∬R2e−(x2+y2) dx dy.\begin{aligned} I^2 &=\left(\int_{-\infty}^\infty e^{-x^2}\,\mathrm{d}x\right) \left(\int_{-\infty}^\infty e^{-y^2}\,\mathrm{d}y\right)\\ &=\iint_{\mathbb{R}^2}e^{-(x^2+y^2)}\,\mathrm{d}x\,\mathrm{d}y. \end{aligned}

Set x=rcos⁡θx=r\cos\theta and y=rsin⁡θy=r\sin\theta. The area element becomes dx dy=r dr dθ\mathrm{d}x\,\mathrm{d}y=r\,\mathrm{d}r\,\mathrm{d}\theta, giving

I2=∫02π∫0∞e−r2r dr dθ=2π∫0∞re−r2 dr=−π[e−r2]0∞=π.\begin{aligned} I^2 &=\int_0^{2\pi}\int_0^\infty e^{-r^2}r\,\mathrm{d}r\,\mathrm{d}\theta\\ &=2\pi\int_0^\infty re^{-r^2}\,\mathrm{d}r\\ &=-\pi\left[e^{-r^2}\right]_0^\infty\\ &=\pi. \end{aligned}

Because I>0I>0, we obtain

Γ(12)=π.\boxed{\Gamma\left(\frac12\right)=\sqrt\pi.}

Applying the recurrence then gives

Γ(32)=π2,Γ(52)=3π4,Γ(72)=15π8.\Gamma\left(\frac32\right)=\frac{\sqrt\pi}{2},\qquad \Gamma\left(\frac52\right)=\frac{3\sqrt\pi}{4},\qquad \Gamma\left(\frac72\right)=\frac{15\sqrt\pi}{8}.

More generally, for every nonnegative integer nn,

Γ(n+12)=(2n)!4nn!π.\boxed{ \Gamma\left(n+\frac12\right) =\frac{(2n)!}{4^n n!}\sqrt\pi. }

For n≥1n\geq1, this comes from multiplying n−12,n−32,…,12n-\tfrac12,n-\tfrac32,\ldots,\tfrac12 and then multiplying by π\sqrt\pi. The formula also holds for n=0n=0.

The Beta function

Definition and convergence

For a>0a>0 and b>0b>0, define

B(a,b)=∫01ta−1(1−t)b−1 dt.\boxed{ \mathrm{B}(a,b)=\int_0^1 t^{a-1}(1-t)^{b-1}\,\mathrm{d}t. }

As t→0+t\to0^+, the integrand is asymptotic to ta−1t^{a-1}; as t→1−t\to1^-, it is asymptotic to (1−t)b−1(1-t)^{b-1}. For real parameters, the integral therefore converges exactly when a,b>0a,b>0.

If 0<a<10<a<1 or 0<b<10<b<1, the integrand diverges at the corresponding endpoint, but the integral still converges. For example, when a=b=1/2a=b=1/2, both endpoints have integrable singularities.

Symmetry

Substituting u=1−tu=1-t gives

B(a,b)=∫01(1−u)a−1ub−1 du=B(b,a).\begin{aligned} \mathrm{B}(a,b) &=\int_0^1(1-u)^{a-1}u^{b-1}\,\mathrm{d}u\\ &=\mathrm{B}(b,a). \end{aligned}

Thus, interchanging the two parameters leaves the value unchanged:

B(a,b)=B(b,a).\boxed{\mathrm{B}(a,b)=\mathrm{B}(b,a).}

The Beta–Gamma relation

Start with the product of two Gamma functions:

Γ(a)Γ(b)=∫0∞∫0∞ua−1vb−1e−(u+v) du dv.\Gamma(a)\Gamma(b) =\int_0^\infty\int_0^\infty u^{a-1}v^{b-1}e^{-(u+v)}\,\mathrm{d}u\,\mathrm{d}v.

Again, nonnegativity allows us to write the product as a double integral. We now replace u,vu,v with their sum and proportion:

s=u+v,t=uu+v.s=u+v,\qquad t=\frac{u}{u+v}.

Conversely,

u=st,v=s(1−t).u=st,\qquad v=s(1-t).

The first quadrant u,v>0u,v>0 corresponds to s>0s>0 and 0<t<10<t<1. The absolute value of the Jacobian determinant is

∣∂(u,v)∂(s,t)∣=∣∣ts1−t−s∣∣=s.\left|\frac{\partial(u,v)}{\partial(s,t)}\right| =\left|\begin{vmatrix}t&s\\1-t&-s\end{vmatrix}\right| =s.

Hence the area element is du dv=s ds dt\mathrm{d}u\,\mathrm{d}v=s\,\mathrm{d}s\,\mathrm{d}t. Substituting into the integral,

Γ(a)Γ(b)=∫0∞∫01(st)a−1[s(1−t)]b−1e−ss dt ds=(∫0∞sa+b−1e−s ds)(∫01ta−1(1−t)b−1 dt)=Γ(a+b)B(a,b).\begin{aligned} \Gamma(a)\Gamma(b) &=\int_0^\infty\int_0^1 (st)^{a-1}[s(1-t)]^{b-1}e^{-s}s\,\mathrm{d}t\,\mathrm{d}s\\ &=\left(\int_0^\infty s^{a+b-1}e^{-s}\,\mathrm{d}s\right) \left(\int_0^1 t^{a-1}(1-t)^{b-1}\,\mathrm{d}t\right)\\ &=\Gamma(a+b)\mathrm{B}(a,b). \end{aligned}

Since Γ(a+b)>0\Gamma(a+b)>0, we obtain

B(a,b)=Γ(a)Γ(b)Γ(a+b),a,b>0.\boxed{ \mathrm{B}(a,b)=\frac{\Gamma(a)\Gamma(b)}{\Gamma(a+b)}, \qquad a,b>0. }

The substitution works by separating u,vu,v into a total ss and a proportion tt, 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>0a,b>0.

Recurrence relations

Using the Beta–Gamma relation and the Gamma recurrence,

B(a+1,b)=Γ(a+1)Γ(b)Γ(a+b+1)=aa+bB(a,b).\begin{aligned} \mathrm{B}(a+1,b) &=\frac{\Gamma(a+1)\Gamma(b)}{\Gamma(a+b+1)}\\ &=\frac{a}{a+b}\mathrm{B}(a,b). \end{aligned}

By symmetry, we also have the corresponding recurrence in the second parameter:

B(a+1,b)=aa+bB(a,b),B(a,b+1)=ba+bB(a,b).\boxed{ \begin{aligned} \mathrm{B}(a+1,b)&=\frac{a}{a+b}\mathrm{B}(a,b),\\ \mathrm{B}(a,b+1)&=\frac{b}{a+b}\mathrm{B}(a,b). \end{aligned} }

Adding these identities gives

B(a+1,b)+B(a,b+1)=B(a,b).\boxed{\mathrm{B}(a+1,b)+\mathrm{B}(a,b+1)=\mathrm{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)=1t+(1-t)=1.

Special values

When one parameter equals one,

B(a,1)=∫01ta−1 dt=1a,B(1,b)=1b.\mathrm{B}(a,1)=\int_0^1t^{a-1}\,\mathrm{d}t=\frac1a, \qquad \mathrm{B}(1,b)=\frac1b.

For positive integers m,nm,n,

B(m,n)=(m−1)!(n−1)!(m+n−1)!.\boxed{ \mathrm{B}(m,n)=\frac{(m-1)!(n-1)!}{(m+n-1)!}. }

For example,

∫01t2(1−t)3 dt=B(3,4)=2! 3!6!=160.\int_0^1t^2(1-t)^3\,\mathrm{d}t =\mathrm{B}(3,4) =\frac{2!\,3!}{6!} =\frac1{60}.

For half-integer parameters, using Γ(1/2)=π\Gamma(1/2)=\sqrt\pi gives

B(12,12)=π,B(12,32)=π2,B(32,32)=π8.\mathrm{B}\left(\frac12,\frac12\right)=\pi, \qquad \mathrm{B}\left(\frac12,\frac32\right)=\frac\pi2, \qquad \mathrm{B}\left(\frac32,\frac32\right)=\frac\pi8.

In particular, the first identity evaluates an integral that converges despite having singularities at both endpoints:

∫01dtt(1−t)=π.\int_0^1\frac{\mathrm{d}t}{\sqrt{t(1-t)}}=\pi.

Positivity and monotonicity

The defining integrand is positive on (0,1)(0,1), so B(a,b)>0\mathrm{B}(a,b)>0.

Fix b>0b>0 and let a2>a1>0a_2>a_1>0. Because 0<t<10<t<1, we have ta2−1<ta1−1t^{a_2-1}<t^{a_1-1}. Multiplying both sides by the positive factor (1−t)b−1(1-t)^{b-1} and integrating gives

B(a2,b)<B(a1,b).\mathrm{B}(a_2,b)<\mathrm{B}(a_1,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=sin⁡2θt=\sin^2\theta, so that dt=2sin⁡θcos⁡θ dθ\mathrm{d}t=2\sin\theta\cos\theta\,\mathrm{d}\theta. This gives

B(a,b)=2∫0π/2sin⁡2a−1θcos⁡2b−1θ dθ.\mathrm{B}(a,b) =2\int_0^{\pi/2} \sin^{2a-1}\theta\cos^{2b-1}\theta\,\mathrm{d}\theta.

Therefore, for m,n>−1m,n>-1,

∫0π/2sin⁡mθcos⁡nθ dθ=12B(m+12,n+12).\boxed{ \int_0^{\pi/2}\sin^m\theta\cos^n\theta\,\mathrm{d}\theta =\frac12\mathrm{B}\left(\frac{m+1}{2},\frac{n+1}{2}\right). }

The conditions m,n>−1m,n>-1 ensure integrability at the two endpoints. This is the trigonometric form of the Beta integral. For example,

∫0π/2sin⁡4θcos⁡2θ dθ=12B(52,32)=Γ(5/2)Γ(3/2)2Γ(4)=π32.\begin{aligned} \int_0^{\pi/2}\sin^4\theta\cos^2\theta\,\mathrm{d}\theta &=\frac12\mathrm{B}\left(\frac52,\frac32\right)\\ &=\frac{\Gamma(5/2)\Gamma(3/2)}{2\Gamma(4)}\\ &=\frac\pi{32}. \end{aligned}

Integrals over an infinite interval

In the definition, set

t=u1+u,1−t=11+u,dt=du(1+u)2,t=\frac{u}{1+u},\qquad 1-t=\frac1{1+u},\qquad \mathrm{d}t=\frac{\mathrm{d}u}{(1+u)^2},

to obtain the Beta integral over an infinite interval:

B(a,b)=∫0∞ua−1(1+u)a+b du,a,b>0.\boxed{ \mathrm{B}(a,b) =\int_0^\infty\frac{u^{a-1}}{(1+u)^{a+b}}\,\mathrm{d}u, \qquad a,b>0. }

In practice, an integral of the form

∫0∞up−1(1+u)q du\int_0^\infty\frac{u^{p-1}}{(1+u)^q}\,\mathrm{d}u

can be evaluated by setting a=pa=p and b=q−pb=q-p. The convergence condition is q>p>0q>p>0, and the result is

Γ(p)Γ(q−p)Γ(q).\frac{\Gamma(p)\Gamma(q-p)}{\Gamma(q)}.

For example,

∫0∞u(1+u)3 du=B(32,32)=π8.\int_0^\infty\frac{\sqrt u}{(1+u)^3}\,\mathrm{d}u =\mathrm{B}\left(\frac32,\frac32\right) =\frac\pi8.

Deriving the Gamma duplication formula using the Beta function

The Gamma function helps us evaluate the Beta function, and the Beta function can in turn help us derive identities for the Gamma function.

Let x>0x>0. In the integral for B(x,x)\mathrm{B}(x,x), substitute t=(1+u)/2t=(1+u)/2 to obtain

B(x,x)=21−2x∫−11(1−u2)x−1 du=22−2x∫01(1−u2)x−1 du.\begin{aligned} \mathrm{B}(x,x) &=2^{1-2x}\int_{-1}^1(1-u^2)^{x-1}\,\mathrm{d}u\\ &=2^{2-2x}\int_0^1(1-u^2)^{x-1}\,\mathrm{d}u. \end{aligned}

The second step uses the symmetry of the even integrand. Next, let v=u2v=u^2, giving

B(x,x)=21−2x∫01v−1/2(1−v)x−1 dv=21−2xB(12,x).\mathrm{B}(x,x) =2^{1-2x}\int_0^1v^{-1/2}(1-v)^{x-1}\,\mathrm{d}v =2^{1-2x}\mathrm{B}\left(\frac12,x\right).

Expressing both sides in terms of Gamma functions gives

Γ(x)2Γ(2x)=21−2xπ Γ(x)Γ(x+1/2).\frac{\Gamma(x)^2}{\Gamma(2x)} =2^{1-2x}\frac{\sqrt\pi\,\Gamma(x)}{\Gamma(x+1/2)}.

Canceling the positive factor Γ(x)\Gamma(x) and rearranging yields Legendre’s duplication formula:

Γ(x)Γ(x+12)=21−2xπ Γ(2x),x>0.\boxed{ \Gamma(x)\Gamma\left(x+\frac12\right) =2^{1-2x}\sqrt\pi\,\Gamma(2x),\qquad x>0. }

For example, taking x=n+1/2x=n+1/2, where nn 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 XX has a Beta distribution with parameters a,b>0a,b>0, written X∼Beta⁡(a,b)X\sim\operatorname{Beta}(a,b), its density is

fX(t)=ta−1(1−t)b−1B(a,b),0<t<1,f_X(t)=\frac{t^{a-1}(1-t)^{b-1}}{\mathrm{B}(a,b)}, \qquad 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 kk,

E[Xk]=1B(a,b)∫01ta+k−1(1−t)b−1 dt=B(a+k,b)B(a,b).\begin{aligned} \mathbb{E}[X^k] &=\frac1{\mathrm{B}(a,b)}\int_0^1t^{a+k-1}(1-t)^{b-1}\,\mathrm{d}t\\ &=\frac{\mathrm{B}(a+k,b)}{\mathrm{B}(a,b)}. \end{aligned}

Taking k=1k=1 and k=2k=2 and applying the recurrence relations gives

E[X]=aa+b,E[X2]=a(a+1)(a+b)(a+b+1).\mathbb{E}[X]=\frac{a}{a+b}, \qquad \mathbb{E}[X^2]=\frac{a(a+1)}{(a+b)(a+b+1)}.

The variance is therefore

Var⁡(X)=E[X2]−(E[X])2=a(a+1)(a+b)(a+b+1)−a2(a+b)2=ab(a+b)2(a+b+1).\begin{aligned} \operatorname{Var}(X) &=\mathbb{E}[X^2]-\bigl(\mathbb{E}[X]\bigr)^2\\ &=\frac{a(a+1)}{(a+b)(a+b+1)}-\frac{a^2}{(a+b)^2}\\ &=\frac{ab}{(a+b)^2(a+b+1)}. \end{aligned}

For example, when a=b=1a=b=1, we have B(1,1)=1\mathrm{B}(1,1)=1, and the density is constant at one on (0,1)(0,1). This Beta distribution is the uniform distribution on that interval, with mean 1/21/2 and variance 1/121/12.

This calculation illustrates a useful role of the Beta function: multiplying the density by tkt^k simply increases one parameter by kk, turning the moment integral into a ratio of two Beta functions.

Comments

Sign in — Sign in to join the conversation.

  1. …