Mathwords logoMathwords

Meijer G-Function — Definition, Formula & Example

The Meijer G-function is a single, very general special function defined by a contour integral of Gamma functions. By choosing its parameters, you can make it equal to many familiar functions, from e−ze^{-z} and ln⁡(1+z)\ln(1+z) to Bessel functions.

For integers 0≤m≤q0 \le m \le q and 0≤n≤p0 \le n \le p, the Meijer G-function is the Mellin–Barnes integral below. The contour LL runs from −i∞-i\infty to +i∞+i\infty and separates the poles of Γ(bj−s)\Gamma(b_j - s), j=1,…,mj = 1,\dots,m, from the poles of Γ(1−aj+s)\Gamma(1 - a_j + s), j=1,…,nj = 1,\dots,n. Outside the region where the integral converges, the function is defined by analytic continuation.

Key Formula

Gp,qm,n ⁣(a1,…,apb1,…,bq | z)=12πi∫L∏j=1mΓ(bj−s) ∏j=1nΓ(1−aj+s)∏j=m+1qΓ(1−bj+s) ∏j=n+1pΓ(aj−s) zs dsG^{m,n}_{p,q}\!\left(\begin{matrix} a_1,\dots,a_p \\ b_1,\dots,b_q \end{matrix}\,\middle|\, z\right) = \frac{1}{2\pi i}\int_L \frac{\prod_{j=1}^{m}\Gamma(b_j - s)\,\prod_{j=1}^{n}\Gamma(1 - a_j + s)}{\prod_{j=m+1}^{q}\Gamma(1 - b_j + s)\,\prod_{j=n+1}^{p}\Gamma(a_j - s)}\, z^{s}\,ds
Where:
  • m,n,p,qm, n, p, q = Integers that set how many Gamma factors appear in the numerator and the denominator
  • a1,…,apa_1, \dots, a_p = Upper parameters (complex numbers)
  • b1,…,bqb_1, \dots, b_q = Lower parameters (complex numbers)
  • zz = The complex argument
  • LL = Integration contour in the complex ss-plane
  • Γ\Gamma = The Gamma function

Worked Example

Problem: Find a closed form for G1,11,1 ⁣(00 | z)G^{1,1}_{1,1}\!\left(\begin{matrix} 0 \\ 0 \end{matrix}\,\middle|\, z\right), then evaluate it at z=14z = \tfrac{1}{4}.
Step 1: Here m=n=p=q=1m = n = p = q = 1, a1=0a_1 = 0, and b1=0b_1 = 0. The denominator is empty, so the integrand has only two Gamma factors.
G1,11,1 ⁣(00 | z)=12πi∫LΓ(−s) Γ(1+s) zs dsG^{1,1}_{1,1}\!\left(\begin{matrix} 0 \\ 0 \end{matrix}\,\middle|\, z\right) = \frac{1}{2\pi i}\int_L \Gamma(-s)\,\Gamma(1+s)\,z^{s}\,ds
Step 2: For ∣z∣<1|z| < 1, close the contour to the right. It then encloses the poles of Γ(−s)\Gamma(-s) at s=k=0,1,2,…s = k = 0, 1, 2, \dots. The residue of Γ(−s)\Gamma(-s) at s=ks = k is −(−1)k/k!-(-1)^k/k!. The clockwise orientation cancels that minus sign, so each pole contributes the term below. It simplifies because Γ(1+k)=k!\Gamma(1+k) = k!.
(−1)kk! Γ(1+k) zk=(−1)kzk\frac{(-1)^k}{k!}\,\Gamma(1+k)\,z^k = (-1)^k z^k
Step 3: Add the contributions. You get a geometric series. Then substitute z=14z = \tfrac{1}{4}.
∑k=0∞(−z)k=11+z,11+14=45\sum_{k=0}^{\infty} (-z)^k = \frac{1}{1+z}, \qquad \frac{1}{1 + \tfrac{1}{4}} = \frac{4}{5}
Answer: G1,11,1 ⁣(00 | z)=11+zG^{1,1}_{1,1}\!\left(\begin{matrix} 0 \\ 0 \end{matrix}\,\middle|\, z\right) = \dfrac{1}{1+z}, so its value at z=14z = \tfrac{1}{4} is 45\dfrac{4}{5}. Analytic continuation extends the formula 11+z\dfrac{1}{1+z} beyond ∣z∣<1|z| < 1.

Why It Matters

Computer algebra systems such as Mathematica and SymPy (its meijerint module) evaluate many definite integrals by rewriting the integrand in terms of G-functions. They rely on a classical theorem: under convergence conditions, an integral of the specific form ∫0∞G(ηx) G(ωx) dx\int_0^\infty G(\eta x)\,G(\omega x)\,dx is again a G-function. That holds even though the product of two G-functions usually is not one. In advanced statistics, densities of products and quotients of independent random variables often come out as G-functions for the same reason.

Common Mistakes

Mistake: Putting every lower parameter bjb_j into a numerator factor Γ(bj−s)\Gamma(b_j - s).
Correction: Only b1,…,bmb_1, \dots, b_m go in the numerator. The remaining bm+1,…,bqb_{m+1}, \dots, b_q appear in the denominator as Γ(1−bj+s)\Gamma(1 - b_j + s). The upper parameters split the same way at nn. Always read off mm and nn before you write the integrand.

Related Terms