Incomplete gamma function

In mathematics, the gamma function is defined by a definite integral. The incomplete gamma function is defined as an integral function of the same integrand. There are two varieties of the incomplete gamma function: the upper incomplete gamma function is for the case that the lower limit of integration is variable (i.e. where the "upper" limit is fixed), and the lower incomplete gamma function can vary the upper limit of integration.

The upper incomplete gamma function is defined as:

 \Gamma(s,x) = \int_x^{\infty} t^{s-1}\,e^{-t}\,{\rm d}t .\,\!

The lower incomplete gamma function is defined as:

 \gamma(s,x) = \int_0^x t^{s-1}\,e^{-t}\,{\rm d}t .\,\!

Contents

Properties

In both cases s is a complex parameter, such that the real part of s is positive.

By integration by parts we find the recurrence relations

\Gamma(s,x)= (s-1)\Gamma(s-1,x) %2B x^{s-1} e^{-x}

and conversely

 \gamma(s,x) =(s-1)\gamma(s-1,x) - x^{s-1} e^{-x}

Since the ordinary gamma function is defined as

 \Gamma(s) = \int_0^{\infty} t^{s-1}\,e^{-t}\,{\rm d}t

we have

 \gamma(s,x) %2B \Gamma(s,x) = \Gamma(s).

Continuation to complex values

The lower incomplete gamma and the upper incomplete gamma function, as defined above for real positive s and x, can be developed into holomorphic functions, with respect both to x and s, defined for almost all combinations of complex x and s.[1]. Complex analysis shows how properties of the real incomplete gamma functions extend to their holomorphic counterparts.

Lower Incomplete Gamma Function

Holomorphic Extension

Repeated application of the recurrence relation for the lower incomplete gamma function leads to the power series expansion: [3]

\gamma(s, x) = \sum_{k=0}^\infty \frac{x^s e^{-x} x^k}{s(s%2B1)...(s%2Bk)} = x^s \, \Gamma(s) \, e^{-x}\sum_{k=0}^\infty\frac{x^k}{\Gamma(s%2Bk%2B1)}

Given the rapid growth in absolute value of \Gamma(z%2Bk) when k → ∞, and the fact that the reciprocal of \Gamma(z) is an entire function, the coefficients in the rightmost sum are well-defined, and locally the sum converges uniformly for all complex s and x. By a theorem of Weierstraß,[2] the limiting function, sometimes denoted as \gamma^*,

\gamma^*(s, z)�:= e^{-z}\sum_{k=0}^\infty\frac{z^k}{\Gamma(s%2Bk%2B1)} [4]

is entire with respect to both z (for fixed s) and s (for fixed z) [5], and, thus, holomorphic on ℂ×ℂ by Hartog's theorem[6]. Hence, the following decomposition

\gamma(s,z) = z^s \, \Gamma(s) \, \gamma^*(s,z) [7],

extends the real lower incomplete gamma function as a holomorphic function, both jointly and separately in z and s. It follows from the properties of z^s and the \Gamma-function, that the first two factors capture the singularities of \gamma (z = 0 and s a non-positive integer), whereas the last factor contributes to its zeros.

Branches

In particular, the factor z^s causes \gamma to be multi-valued for s not an integer. This complication is often overcome by cutting the image of \gamma, for fixed s, (usually) along the negative real axis into separate, single-valued branches, and then restricting oneself to the principal branch corresponding to that of z^s. Values from other branches can be derived by multiplication by e^{s*2k\pi i}[8], k an integer. (For another view on these phenomena see Riemann surfaces).

Behavior near Branch Point

The decomposition above further shows, that \gamma behaves near z = 0 asymptotically like:

\gamma(s, z) \asymp z^s \, \Gamma(s) \, \gamma^*(s, 0) = z^s \, \Gamma(s)/\Gamma(s%2B1) = z^s/s

For positive real x, y and s, x^y/y \rightarrow 0, when (x, y) → (0, s). This seems to justify setting \gamma(s, 0) = 0 for real s > 0. However, matters are somewhat different in the complex realm. Only if (a) the real part of s is positive, and (b) values from just a finite set of branches of u^v are taken, then u^v is guaranteed to converge to zero as (u, v) → (0, s), and so does \gamma(u, v). A single branch of \gamma naturally fulfills (b), so \gamma(s, 0) = 0 for s with positive real part is a continuous limit there. Also note that such a continuation is by no means an analytic one.

Algebraic Relations

All algebraic relations and differential equations observed by the real \gamma(s, z) hold for its holomorphic counterpart as well. This is a consequence of the identity theorem [9], stating that equations between holomorphic functions valid on a real interval, hold everywhere. In particular, the recurrence relation [10] and \partial\gamma(s,z) / \partial z = z^{s-1}\,e^{-z} [11] are preserved on corresponding branches.

Integral Representation

The last relation tells us, that, for fixed s, \gamma is a primitive or antiderivative of the holomorphic function z^{s-1}\,e^{-z}. Consequently [12], for any complex u, v ≠ 0,

\int_u^v t^{s-1}\,e^{-t}\,{\rm d}t = \gamma(s,v) - \gamma(s,u)

holds, as long as the path of integration does not wind around the singular branch point 0. If the image of the path is entirely contained in the interior of a single branch of the integrand, and the real part of s is positive, then the limit \gamma(s, u) → 0 for u → 0 applies, finally arriving at the complex integral definition of \gamma

\gamma(s, z) = \int_0^z t^{s-1}\,e^{-t}\,{\rm d}t, \, \Re(s) > 0. [13]

Any path of integration containing 0 only at its beginning, and never crossing or touching the negative real line, is valid here, for example, the straight line connecting 0 and z. If z is a negative real, some technical adjustments are required to guarantee the result is from the correct branch.

Overview

\gamma(s, z) is:

Upper Incomplete Gamma Function

As for the upper incomplete gamma function, a holomorphic extension, with respect to z or s, is given by

\Gamma(s,z) = \Gamma(s) - \gamma(s, z) [14]

at points (s, z), where the right hand side exists. Since \gamma is multi-valued, the same holds for \Gamma, but a restriction to principal values only yields the single-valued principal branch of \Gamma.

When s is a non-positive integer in the above equation, neither part of the difference is defined, and a limiting process, here developed for s → 0, fills in the missing values. Complex analysis guarantees holomorphicity, because \Gamma(s,z) proves to be bounded in a neighbourhood of that limit for a fixed z[15].

To determine the limit, the power series of \gamma^* at z = 0 turns out useful. When replacing e^{-x} by its power series in the integral definition of \gamma, one obtains (assume x,s positive reals for now):

\gamma(s, x) = \int_0^x t^{s-1} e^{-t} \operatorname{d}t = \int_0^x \sum_{k=0}^\infty (-1)^k\,\frac{t^{s%2Bk-1}}{k!}\operatorname{d}t = \sum_{k=0}^\infty (-1)^k\,\frac{x^{s%2Bk}}{k!(s%2Bk)} = x^s\,\sum_{k=0}^\infty (-1)^k\,\frac{x^k}{k!(s%2Bk)}

or

\gamma^*(s,x) = \sum_{k=0}^\infty (-1)^k\,\frac{x^k}{k!\,\Gamma(s)(s%2Bk)}. [16]

which, as a series representation of the entire \gamma^* function, converges for all complex x (and all complex s not a non-positive integer).

With its restriction to real values lifted, the series allows the expansion:

\gamma(s, z) - \frac{1}{s} = -\frac{1}{s} %2B z^s\,\sum_{k=0}^\infty (-1)^k\,\frac{z^k}{k!(s%2Bk)} = \frac{z^s-1}{s} %2B z^s\,\sum_{k=1}^\infty (-1)^k\,\frac{z^k}{k!(s%2Bk)},\quad \Re(s) > -1, \,s \ne 0

When s → 0:

\frac{z^s-1}{s} \rightarrow \ln(z),\quad \Gamma(s) - \frac{1}{s} = \frac{1}{s} - \gamma %2B O(s) - \frac{1}{s} \rightarrow-\gamma,[3]

(\gamma is the Euler-Mascheroni constant here), hence,

\Gamma(0,z) = \lim_{s\rightarrow 0}\left(\Gamma(s) - \tfrac{1}{s} - (\gamma(s, z) - \tfrac{1}{s})\right) = -\gamma-\ln(z) - \sum_{k=1}^\infty (-1)^k\,\frac{z^k}{k\,(k!)}

is the limiting function to the upper incomplete gamma function as s → 0, also known as E_1(z).[4]

By way of the recurrence relation, values of \Gamma(-n, z) for positive integers n can be derived from this result, so the upper incomplete gamma function proves to exist and be holomorphic, with respect both to z and s, for all s and z ≠ 0.

\Gamma(s, z) is:

Special values

Here, Ei is the exponential integral, erf is the error function, and erfc is the complementary error function, erfc(x) = 1 − erf(x).

Asymptotic behavior

Evaluation formulae

The lower gamma function has the straight forward expansion

\gamma(s,z)= \sum_{k=0}^\infty \frac{(-1)^k}{k!} \frac{z^{s%2Bk}}{s%2Bk}= \frac{z^s}{s} M(s, s%2B1,-z),

where M is Kummer's confluent hypergeometric function.

Connection with Kummer's confluent hypergeometric function

When the real part of z is positive,


\gamma(s,z) = \frac{}{} s^{-1} z^s e^{-z} M(1,s%2B1,z)

where


M(1, s%2B1, z) = 1 %2B \frac{z}{(s%2B1)}%2B \frac{z^2}{(s%2B1)(s%2B2)}%2B \frac{z^3}{(s%2B1)(s%2B2)(s%2B3)}%2B \cdots

has an infinite radius of convergence.

Again with confluent hypergeometric functions and employing Kummer's identity,


\begin{align}
\Gamma(s,z) &= e^{-z} U(1-s,1-s,z) = \frac{z^s e^{-z}}{\Gamma(1-s)} \int_0^\infty  \frac{e^{-u}}{u^s (z%2Bu)}{\rm d}u =
\\
  &= e^{-z} z^s U(1,1%2Bs,z) = e^{-z} \int_0^\infty e^{-u} (z%2Bu)^{s-1}{\rm d} u = e^{-z} z^s \int_0^\infty e^{-z u} (1%2Bu)^{s-1}{\rm d} u.
\end{align}

For the actual computation of numerical values, Gauss's continued fraction provides a useful expansion:


\gamma(s, z) = \cfrac{z^s e^{-z}}{s - \cfrac{s z}{s%2B1 %2B \cfrac{z}{s%2B2 - \cfrac{(s%2B1)z}
{s%2B3 %2B \cfrac{2z}{s%2B4 - \cfrac{(s%2B2)z}{s%2B5 %2B \cfrac{3z}{s%2B6 - \ddots}}}}}}}.

This continued fraction converges for all complex z, provided only that s is not a negative integer.

The upper gamma function has the continued fraction


\Gamma(s, z) = \cfrac{z^s e^{-z}}{z%2B\cfrac{1-s}{1 %2B \cfrac{1}{z %2B \cfrac{2-s}
{1 %2B \cfrac{2}{z%2B \cfrac{3-s}{1%2B \ddots}}}}}}
[7]

and


\Gamma(s, z)= \cfrac{z^s e^{-z}}{1%2Bz-s%2B \cfrac{s-1}{3%2Bz-s%2B \cfrac{2(s-2)}{5%2Bz-s%2B \cfrac{3(s-3)} {7%2Bz-s%2B \cfrac{4(s-4)}{9%2Bz-s%2B \ddots}}}}}.

Multiplication theorem

The following multiplication theorem holds true:


\begin{align}
\Gamma(s,z) &= \frac 1 {t^s} \sum_{i=0}^{\infty} \frac{\left(1-\frac 1 t \right)^i}{i!} \Gamma(s%2Bi,t z)
\\
  &= \Gamma(s,t z) -(t z)^s e^{-t z} \sum_{i=1}^{\infty} \frac{\left(\frac 1 t-1 \right)^i}{i} L_{i-1}^{(s-i)}(t z).
\end{align}

Regularized Gamma functions and Poisson random variables

Two related functions are the regularized Gamma functions:

P(s,x)=\frac{\gamma(s,x)}{\Gamma(s)},
Q(s,x)=\frac{\Gamma(s,x)}{\Gamma(s)}=1-P(s,x).

P(s,x) is the cumulative distribution function for Gamma random variables with shape parameter s and scale parameter 1.

When s>0 is an integer, Q(s,\lambda) is the cumulative distribution function for Poisson random variables: If X is a {\rm Poi}(\lambda) random variable then

 Pr(X<s) = \sum_{i<s} e^{-\lambda} \frac{\lambda^i}{i!} = \frac{\Gamma(s,\lambda)}{\Gamma(s)} = Q(s,\lambda).

This formula can be derived by repeated integration by parts.

Derivatives

The derivative of the upper incomplete gamma function  \Gamma (s,x) with respect to x is well known. It is simply given by the integrand of its integral definition:

 
\frac{\partial \Gamma (s,x) }{\partial x} = - \frac{x^{s-1}}{e^x}

The derivative with respect to its first argument s is given by[8]


\frac{\partial \Gamma (s,x) }{\partial s} = \ln x \Gamma (s,x) %2B x\,T(3,s,x)

and the second derivative by


\frac{\partial^2 \Gamma (s,x) }{\partial s^2} = \ln^2 x \Gamma (s,x) %2B 2 x[\ln x\,T(3,s,x) %2B T(4,s,x) ]

where the function T(m,s,x) is a special case of the Meijer G-function


T(m,s,x) = G_{m-1,\,m}^{\,m,\,0} \!\left( \left. \begin{matrix} 0, 0, \dots, 0 \\ s-1, -1, \dots, -1 \end{matrix} \; \right| \, x \right).

This particular special case has internal closure properties of its own because it can be used to express all successive derivatives. In general,


\frac{\partial^m \Gamma (s,x) }{\partial s^m} = \ln^m x \Gamma (s,x) %2B m x\,\sum_{n=0}^{m-1} P_n^{m-1} \ln^{m-n-1} x\,T(3%2Bn,s,x)

where

 
P_j^n = \left( \begin{array}{l} n \\ j \end{array} \right) j! = \frac{n!}{(n-j)!}.

All such derivatives can be generated in succession from:


\frac{\partial T (m,s,x) }{\partial s} = \ln x ~ T(m,s,x) %2B (m-1) T(m%2B1,s,x)

and


\frac{\partial T (m,s,x) }{\partial x} = -\frac{1}{x} [T(m-1,s,x) %2B T(m,s,x)]

This function T(m,s,x) can be computed from its series representation valid for  |z| < 1 ,


T(m,s,z) = - \frac{(-1)^{m-1} }{(m-2)! } \frac{{\rm d}^{m-2} }{{\rm d}t^{m-2} } \left[\Gamma (s-t) z^{t-1}\right]\Big|_{t=0} %2B \sum_{n=0}^{\infty} \frac{(-1)^n z^{s-1%2Bn}}{n! (-s-n)^{m-1} }

with the understanding that s is not a negative integer or zero. In such a case, one must use a limit. Results for  |z| \ge 1 can be obtained by analytic continuation. Some special cases of this function can be simplified. For example, T(2,s,x)=\Gamma(s,x)/x, x\,T(3,1,x) = {\rm E}_1(x), where {\rm E}_1(x) is the Exponential integral. These derivatives and the function T(m,s,x) provide exact solutions to a number of integrals by repeated differentiation of the integral definition of the upper incomplete gamma function. [9] [10] For example,

 
\int_{x}^{\infty} \frac{t^{s-1} \ln^m t}{e^t} {\rm d}t= \frac{\partial^m}{\partial s^m} \int_{x}^{\infty} \frac{t^{s-1}}{e^t} {\rm d}t= \frac{\partial^m}{\partial s^m} \Gamma (s,x)

This formula can be further inflated or generalized to a huge class of Laplace transforms and Mellin transforms. When combined with a computer algebra system, the exploitation of special functions provides a powerful method for solving definite integrals, in particular those encountered by practical engineering applications (see Symbolic integration for more details).

Indefinite and definite integrals

The following indefinite integrals are readily obtained using integration by parts:


\int x^{b-1} \gamma(s,x) \mathrm d x = \frac{1}{b} \left( x^b \gamma(s,x) %2B \Gamma(s%2Bb,x) \right).

\int x^{b-1} \Gamma(s,x) \mathrm d x = \frac{1}{b} \left( x^b \Gamma(s,x) - \Gamma(s%2Bb,x) \right),

The lower and the upper incomplete Gamma function are connected via the Fourier transform:


\int_{-\infty}^\infty \frac {\gamma\left(\frac s 2, z^2 \pi \right)} {(z^2 \pi)^\frac s 2} e^{-2 \pi i k z} \mathrm d z = \frac {\Gamma\left(\frac {1-s} 2, k^2 \pi \right)} {(k^2 \pi)^\frac {1-s} 2}.

This follows, for example, by suitable specialization of (Gradshteyn & Ryzhik 1980, § 7.642).

Notes

  1. ^ DLMF, Incomplete Gamma functions, analytic continuation
  2. ^ [1] Theorem 3.9 on p.56
  3. ^ see last eq.
  4. ^ http://dlmf.nist.gov/8.4.E4
  5. ^ Weisstein, Eric W., "Incomplete Gamma Function" from MathWorld. (equation 2)
  6. ^ DLMF, Incomplete Gamma functions, 8.11(i)
  7. ^ Abramowitz and Stegun p. 263, 6.5.31
  8. ^ K.O. Geddes, M.L. Glasser, R.A. Moore and T.C. Scott, Evaluation of Classes of Definite Integrals Involving Elementary Functions via Differentiation of Special Functions, AAECC (Applicable Algebra in Engineering, Communication and Computing), vol. 1, (1990), pp. 149-165, [2]
  9. ^ Milgram, M. S. Milgram (1985). "The generalized integro-exponential function". Math. Comp. 44 (170): 443–458. doi:10.1090/S0025-5718-1985-0777276-4. MR0777276. 
  10. ^ Mathar (2009). "Numerical Evaluation of the Oscillatory Integral over exp(i*pi*x)*x^(1/x) between 1 and infinity". arXiv:0912.3844 [math.CA]. , App B

References

Miscellaneous utilities