MathLabs

Analysis

Special functions

Gamma, Beta, zeta and Bessel functions that extend elementary functions and appear throughout mathematics and physics.

IntuitionBeyond the factorial: filling in the gaps between whole numbers

The factorial n!=1⋅2⋯nn! = 1\cdot 2 \cdots n only makes sense for whole numbers, yet it grows so smoothly — 1,2,6,24,120,…1, 2, 6, 24, 120, \dots — that it seems to beg for a curve passing through every one of those dots, defined at every real or even complex input. Special functions are exactly this: a small family of functions, born from natural integrals or infinite sums, that interpolate and generalize the patterns of elementary arithmetic (factorials, powers, sums) into a smooth, universal machinery shared by probability, number theory, and physics.

Colored complex-plane plot showing a sequence of poles arranged along the negative real axis.
Domain-coloring plot in the region containing the negative real axis, where the Gamma function develops a ladder of simple poles at every non-positive integer.

UndergraduateThe Gamma, Beta and zeta functions

Definition: The Gamma function

For Re⁡(z)>0\operatorname{Re}(z) > 0, define Γ(z)=∫0∞tz−1e−t dt\Gamma(z)=\displaystyle\int_0^\infty t^{z-1}e^{-t}\,dt. Integrating by parts shows Γ(z+1)=z Γ(z)\Gamma(z+1) = z\,\Gamma(z), and since Γ(1)=∫0∞e−t dt=1\Gamma(1) = \int_0^\infty e^{-t}\,dt = 1, induction gives Γ(n+1)=n!\Gamma(n+1)=n! for every non-negative integer nn: the Gamma function interpolates the factorial. The recurrence also extends Γ\Gamma by meromorphic continuation to all of zz except z=0,−1,−2,…z = 0, -1, -2, \dots, where it has simple poles.

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

The Beta function B(x,y)=∫01tx−1(1−t)y−1 dtB(x,y) = \displaystyle\int_0^1 t^{x-1}(1-t)^{y-1}\,dt packages a ratio of Gammas, B(x,y)=Γ(x)Γ(y)Γ(x+y)B(x,y) = \dfrac{\Gamma(x)\Gamma(y)}{\Gamma(x+y)}, and is the natural normalizing constant behind the Beta probability distribution. A deeper identity connects the two symmetrically: Euler's reflection formula Γ(z)Γ(1−z)=πsin⁡(πz)\Gamma(z)\Gamma(1-z) = \dfrac{\pi}{\sin(\pi z)}, valid for every non-integer zz, ties the poles of Γ(z)\Gamma(z) to the zeros of sin⁡(πz)\sin(\pi z).

Γ(z)Γ(1−z)=πsin⁡(πz)\Gamma(z)\Gamma(1-z) = \dfrac{\pi}{\sin(\pi z)}

Definition: The Riemann zeta function and its analytic continuation

For Re⁡(s)>1\operatorname{Re}(s) > 1, define ζ(s)=∑n=1∞1ns\zeta(s) = \displaystyle\sum_{n=1}^{\infty} \dfrac{1}{n^s}. This series diverges elsewhere, but ζ(s)\zeta(s) extends to a meromorphic function on all of C\mathbb{C} with a single simple pole at s=1s=1, via the functional equation ζ(s)=2sπs−1sin⁡ ⁣(πs2)Γ(1−s) ζ(1−s)\zeta(s) = 2^s \pi^{s-1} \sin\!\left(\dfrac{\pi s}{2}\right) \Gamma(1-s)\, \zeta(1-s), which expresses ζ(s)\zeta(s) in terms of ζ(1−s)\zeta(1-s) and a Gamma factor. This is what lets one make rigorous sense of values like ζ(−1)=−112\zeta(-1) = -\dfrac{1}{12}, which has nothing to do with literally summing 1+2+3+⋯1+2+3+\cdots.

ζ(s)=2sπs−1sin⁡ ⁣(πs2)Γ(1−s) ζ(1−s)\zeta(s) = 2^s \pi^{s-1} \sin\!\left(\dfrac{\pi s}{2}\right) \Gamma(1-s)\, \zeta(1-s)
Four special functions at a glance
FunctionDefining formulaKey property
Gamma, Γ(z)\Gamma(z)Γ(z)=∫0∞tz−1e−t dt\Gamma(z)=\displaystyle\int_0^\infty t^{z-1}e^{-t}\,dtInterpolates n!n!; simple poles at 0,−1,−2,…0,-1,-2,\dots
Beta, B(x,y)B(x,y)B(x,y)=∫01tx−1(1−t)y−1 dtB(x,y) = \displaystyle\int_0^1 t^{x-1}(1-t)^{y-1}\,dtB(x,y)=Γ(x)Γ(y)Γ(x+y)B(x,y) = \dfrac{\Gamma(x)\Gamma(y)}{\Gamma(x+y)}
Zeta, ζ(s)\zeta(s)ζ(s)=∑n=1∞1ns\zeta(s) = \displaystyle\sum_{n=1}^{\infty} \dfrac{1}{n^s}Meromorphic continuation; single pole at s=1s=1
Bessel, Jν(x)J_\nu(x)Jν(x)=∑k=0∞(−1)kk! Γ(k+ν+1)(x2)2k+νJ_\nu(x) = \displaystyle\sum_{k=0}^{\infty} \dfrac{(-1)^k}{k!\,\Gamma(k+\nu+1)} \left(\dfrac{x}{2}\right)^{2k+\nu}Solves x2y′′+xy′+(x2−ν2)y=0x^2y''+xy'+(x^2-\nu^2)y=0

AdvancedKey theorems

For every non-negative integer nn, Γ(n+1)=n!\Gamma(n+1)=n!, where Γ\Gamma is defined by Γ(z)=∫0∞tz−1e−t dt\Gamma(z)=\displaystyle\int_0^\infty t^{z-1}e^{-t}\,dt for Re⁡(z)>0\operatorname{Re}(z) > 0.

Why is it true?

It shows the Gamma integral is not an arbitrary generalization but the unique smooth continuation that reproduces the multiplicative structure of factorials, which is why it is the right object to plug non-integers into.

Proof

Step 1 (Base case). Γ(1)=∫0∞t0e−t dt=∫0∞e−t dt=[−e−t]0∞=0−(−1)=1=0!\Gamma(1) = \int_0^\infty t^0 e^{-t}\,dt = \int_0^\infty e^{-t}\,dt = \big[-e^{-t}\big]_0^\infty = 0-(-1) = 1 = 0!, so the formula holds for n=0n=0.

Step 2 (Recurrence by integration by parts). For Re⁡(z)>0\operatorname{Re}(z) > 0, integrate Γ(z)=∫0∞tz−1e−t dt\Gamma(z)=\displaystyle\int_0^\infty t^{z-1}e^{-t}\,dt by parts with u=tzu=t^z, dv=e−t dtdv=e^{-t}\,dt: Γ(z+1)=∫0∞tze−t dt=[−tze−t]0∞+z∫0∞tz−1e−t dt=0+z Γ(z)\Gamma(z+1) = \int_0^\infty t^z e^{-t}\,dt = \big[-t^z e^{-t}\big]_0^\infty + z\int_0^\infty t^{z-1}e^{-t}\,dt = 0 + z\,\Gamma(z), using that the boundary term vanishes at both ends. This proves Γ(z+1)=z Γ(z)\Gamma(z+1) = z\,\Gamma(z).

Step 3 (Induction). Assume Γ(k+1)=k!\Gamma(k+1) = k! for some non-negative integer kk. By Step 2 with z=k+1z=k+1, Γ(k+2)=(k+1) Γ(k+1)=(k+1)⋅k!=(k+1)!\Gamma(k+2) = (k+1)\,\Gamma(k+1) = (k+1)\cdot k! = (k+1)!.

Step 4 (Conclude). Since the base case n=0n=0 holds (Step 1) and the inductive step carries the identity from n=kn=k to n=k+1n=k+1 (Step 3), Γ(n+1)=n!\Gamma(n+1)=n! holds for every non-negative integer nn by mathematical induction.

For every zz with 0<Re⁡(z)<10 < \operatorname{Re}(z) < 1, Γ(z)Γ(1−z)=πsin⁡(πz)\Gamma(z)\Gamma(1-z) = \dfrac{\pi}{\sin(\pi z)}.

Why is it true?

It links a purely algebraic-looking object (a ratio of two Gamma values) to trigonometry, and it is exactly the identity that makes the poles of Γ\Gamma at non-positive integers line up with the zeros of sin⁡(πz)\sin(\pi z) at all integers — the residue calculus from contour integration is what produces the sine on the right-hand side.

Proof

Step 1 (Reduce to the Beta function). Using B(x,y)=Γ(x)Γ(y)Γ(x+y)B(x,y) = \dfrac{\Gamma(x)\Gamma(y)}{\Gamma(x+y)} with y=1−zy=1-z, Γ(z)Γ(1−z)=B(z,1−z)=∫01tz−1(1−t)−z dt\Gamma(z)\Gamma(1-z) = B(z,1-z) = \int_0^1 t^{z-1}(1-t)^{-z}\,dt. Substituting u=t/(1−t)u = t/(1-t) turns this into ∫0∞uz−11+u du\displaystyle\int_0^\infty \dfrac{u^{z-1}}{1+u}\,du for 0<Re⁡(z)<10<\operatorname{Re}(z)<1.

Step 2 (Set up a keyhole contour). To evaluate I=∫0∞uz−11+u duI=\int_0^\infty \dfrac{u^{z-1}}{1+u}\,du, use the branch of wz−1w^{z-1} cut along the positive real axis and integrate wz−11+w\dfrac{w^{z-1}}{1+w} around a keyhole contour: outward just above the cut, a large circle of radius RR, back just below the cut, and a small circle of radius ε\varepsilon around 00.

Step 3 (Residue at the only pole). The only singularity of wz−11+w\dfrac{w^{z-1}}{1+w} inside the contour is the simple pole at w=−1w=-1, where (using the branch with argument π\pi there) Res=(−1)z−1=eiπ(z−1)\mathrm{Res} = (-1)^{z-1} = e^{i\pi(z-1)}, so the residue theorem gives the keyhole integral as 2πi eiπ(z−1)2\pi i\, e^{i\pi(z-1)}.

Step 4 (Compare the two sides of the cut and let R→∞R\to\infty, ε→0\varepsilon\to 0). The large and small circles vanish for 0<Re⁡(z)<10<\operatorname{Re}(z)<1, and the two straight segments differ by the phase picked up by wz−1w^{z-1} crossing the cut, giving I(1−e2πi(z−1))=2πi eiπ(z−1)I\big(1 - e^{2\pi i(z-1)}\big) = 2\pi i\, e^{i\pi(z-1)}. Solving for II and simplifying the exponentials using sin⁡θ=eiθ−e−iθ2i\sin\theta = \frac{e^{i\theta}-e^{-i\theta}}{2i} gives I=πsin⁡(πz)I = \dfrac{\pi}{\sin(\pi z)}, so combining with Step 1, Γ(z)Γ(1−z)=πsin⁡(πz)\Gamma(z)\Gamma(1-z) = \dfrac{\pi}{\sin(\pi z)}.

AdvancedReal-World Applications and Worked Examples

The Gamma function normalizes probability distributions used to model waiting times and Bayesian priors (Gamma, Beta, chi-squared, Student's t); Bessel functions are the natural solutions to wave and heat equations in cylindrical geometry, so they show up in acoustics of drumheads, optical diffraction patterns, and antenna radiation patterns; and the zeta function anchors analytic number theory (the distribution of primes) while also appearing in physics through zeta-function regularization, used to assign finite values to divergent sums in the Casimir effect and string theory.

Example: Normalizing a chi-squared distribution

A statistician models the sum of squares of k=5k=5 independent standard normal variables with a chi-squared density f(x)=C xk/2−1e−x/2f(x) = C\, x^{k/2-1}e^{-x/2} for x>0x>0. Find the normalizing constant CC so that ∫0∞f(x) dx=1\int_0^\infty f(x)\,dx = 1.

Solution

Step 1 (Substitute to match the Gamma integral). Let t=x/2t = x/2, so x=2tx=2t, dx=2 dtdx = 2\,dt: ∫0∞xk/2−1e−x/2 dx=∫0∞(2t)k/2−1e−t 2 dt=2k/2∫0∞tk/2−1e−t dt\int_0^\infty x^{k/2-1}e^{-x/2}\,dx = \int_0^\infty (2t)^{k/2-1}e^{-t}\, 2\,dt = 2^{k/2}\int_0^\infty t^{k/2-1}e^{-t}\,dt.

Step 2 (Recognize the Gamma function). The remaining integral is exactly Γ(k/2)\Gamma(k/2) by definition, so ∫0∞xk/2−1e−x/2 dx=2k/2 Γ(k/2)\int_0^\infty x^{k/2-1}e^{-x/2}\,dx = 2^{k/2}\,\Gamma(k/2).

Step 3 (Plug in k=5k=5). Here k/2=5/2k/2 = 5/2, and the recurrence gives Γ(5/2)=(3/2)(1/2)Γ(1/2)=34π\Gamma(5/2) = (3/2)(1/2)\Gamma(1/2) = \dfrac{3}{4}\sqrt{\pi}; since 25/2=422^{5/2}=4\sqrt{2}, the integral equals 42⋅34π=32π4\sqrt{2}\cdot\frac{3}{4}\sqrt{\pi}=3\sqrt{2\pi}.

Step 4 (Solve for CC). Since C⋅32π=1C \cdot 3\sqrt{2\pi} = 1, the normalizing constant is C=132πC = \dfrac{1}{3\sqrt{2\pi}}, matching the general chi-squared formula C=12k/2Γ(k/2)C = \dfrac{1}{2^{k/2}\Gamma(k/2)}.

Example: Fundamental frequency of a circular drumhead

A circular drum of radius aa has a radially symmetric vibration mode u(r,t)=J0(kr)cos⁡(ωt)u(r,t) = J_0(kr)\cos(\omega t) that must vanish at the rigid rim, u(a,t)=0u(a,t)=0 for all tt. Given that the first positive zero of J0J_0 is j0,1≈2.405j_{0,1}\approx 2.405, express the fundamental angular frequency ω1\omega_1 in terms of aa and the wave speed cc (with ω=ck\omega = ck).

Solution

Step 1 (Apply the boundary condition). Since u(a,t)=J0(ka)cos⁡(ωt)u(a,t)=J_0(ka)\cos(\omega t) must vanish for all tt, we need J0(ka)=0J_0(ka) = 0, so kaka must be a zero of the Bessel function J0J_0.

Step 2 (Pick the fundamental mode). The fundamental mode corresponds to the smallest positive kk, hence the smallest positive zero j0,1≈2.405j_{0,1}\approx 2.405 of J0J_0; thus k1a=j0,1k_1 a = j_{0,1}, so k1=j0,1/ak_1 = j_{0,1}/a.

Step 3 (Convert to angular frequency). Using the dispersion relation ω=ck\omega = ck for the membrane wave equation, ω1=ck1=c j0,1a\omega_1 = c k_1 = \dfrac{c\, j_{0,1}}{a}.

Step 4 (Interpret). Substituting the numerical value gives ω1≈2.405 ca\omega_1 \approx \dfrac{2.405\,c}{a}: doubling the radius aa halves the fundamental frequency, exactly as expected physically for a larger drum producing a deeper tone.

What is Γ(6)\Gamma(6)?

What is Γ ⁣(12)\Gamma\!\left(\dfrac{1}{2}\right)?

Where does the meromorphic continuation of ζ(s)\zeta(s) have its only pole, and what type is it?

An acoustic engineer designs a circular drumhead and needs the mode shapes that stay finite at the center and vanish at the rigid rim. Which special function family gives these radial mode shapes?

References

  1. Frank W. J. Olver, Ronald F. Boisvert, Daniel W. Lozier, Charles W. Clark (eds.) (2023). NIST Digital Library of Mathematical Functions, Chapter 5: Gamma Function
  2. Frank W. J. Olver, Ronald F. Boisvert, Daniel W. Lozier, Charles W. Clark (eds.) (2023). NIST Digital Library of Mathematical Functions, Chapter 25: Zeta and Related Functions
  3. David J. Platt, Timothy S. Trudgian (2021). The Riemann Hypothesis Is True Up to 3×10^12 · arXiv:2004.09765