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 (ie 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:
![{\displaystyle \Gamma (a,x)=\int _{x}^{\infty }t^{a-1}\,e^{-t}\,dt.\,\!}](https://wikimedia.org/api/rest_v1/media/math/render/svg/2774422db6247b2e3b479f18af011597f521e7c4)
The lower incomplete gamma function is defined as:
![{\displaystyle \gamma (a,x)=\int _{0}^{x}t^{a-1}\,e^{-t}\,dt.\,\!}](https://wikimedia.org/api/rest_v1/media/math/render/svg/e4b77fd9816d66af9315086f8d5d77f622f600cf)
Properties
In both cases a is a complex parameter, such that the real part of a is positive.
By integration by parts we can find that
![{\displaystyle \Gamma (a+1,x)=a\Gamma (a,x)+x^{a}e^{-x}\,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/63e8deda24b67e0c66506ab5f8aa0510c9337594)
![{\displaystyle \gamma (a+1,x)=a\gamma (a,x)-x^{a}e^{-x}.\,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/b9f2dcd44cd0c96356b5b318bf466321de2e59df)
Since the ordinary gamma function is defined as
![{\displaystyle \Gamma (a)=\int _{0}^{\infty }t^{a-1}\,e^{-t}\,dt\,\!}](https://wikimedia.org/api/rest_v1/media/math/render/svg/cc5cce5c56f738f0549848dbc77fac3ef587b342)
we have
![{\displaystyle \gamma (a,x)+\Gamma (a,x)=\Gamma (a).\,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/311ce4b131a211f5bb9f7c0ccf6e027cb33e38a3)
Some selected properties of incomplete gamma function:
![{\displaystyle \Gamma (a)=(a-1)!\,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/7f1c1d2d4fa8529ddf516d7f9c82a6b6ef414251)
if a is an integer;[1]
![{\displaystyle \Gamma (a,0)=\Gamma (a),\,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/b1868d39a7bb6f225ee78337575ea3b111ea9ec4)
![{\displaystyle \Gamma (1,x)=e^{-x},\,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/71df46c3a9f9377e064dfa2fc16d5e8064c7dbfb)
![{\displaystyle \gamma (1,x)=1-e^{-x},\,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/63c2486f7d3c2b00440e59fa292a6ed822f9e61d)
![{\displaystyle \Gamma (0,x)=-{\mbox{Ei}}(-x){\mbox{ for }}x>0,\,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/86858c98ae20b7d047cbc752ecce26f734a4ce1f)
![{\displaystyle \Gamma \left({1 \over 2},x\right)={\sqrt {\pi }}\,{\mbox{erfc}}\left({\sqrt {x}}\right),\,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/7f18eef314f5a1f897266a5572b933dba0c47a4e)
![{\displaystyle \gamma \left({1 \over 2},x\right)={\sqrt {\pi }}\,{\mbox{erf}}\left({\sqrt {x}}\right),\,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/3b94f1dc42e5df70476ded0a92247251d14812a8)
![{\displaystyle {\frac {\gamma (a,x)}{x^{a}}}\rightarrow a^{-1}\quad \mathrm {as\ } x\rightarrow 0,\,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/c30051a0963dd76233d5f5718a61d727824279f5)
![{\displaystyle \gamma (a,x)\rightarrow \Gamma (a)\quad \mathrm {as\ } x\rightarrow \infty ,\,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/bfaaec0fb059fb50d047862ac76d8a9f769cc053)
![{\displaystyle {\frac {\Gamma (a,x)}{x^{a-1}e^{-x}}}\rightarrow 1\quad \mathrm {as\ } x\rightarrow \infty ,\,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/3bcf424d0304ea30928b2de7a00a97e672567cb4)
![{\displaystyle \int _{0}^{\infty }{\frac {x^{a-1}e^{-x}}{\Gamma (a)}}{\frac {\Gamma (a,x)}{\Gamma (a)}}dx={\frac {1}{2}},}](https://wikimedia.org/api/rest_v1/media/math/render/svg/b168952c2925e0bd9c1ae0d3df21806a03e1d86e)
where Ei is the exponential integral, erf is the error function, and erfc is the complementary error function, erfc(x) = 1 − erf(x).
The lower gamma function has the straight forward expansion
![{\displaystyle \gamma (a,z)=\sum _{k=0}^{\infty }{\frac {(-1)^{k}}{k!}}{\frac {z^{a+k}}{a+k}}={\frac {z^{a}}{a}}M(a,a+1,-z),}](https://wikimedia.org/api/rest_v1/media/math/render/svg/666f201c8d95180b9136245607270d396d0cb7c6)
where M is Kummer's confluent hypergeometric function.
Connection with Kummer's confluent hypergeometric function
It is easily shown that, when the real part of z is positive,
![{\displaystyle \gamma (a,z)=\int _{0}^{z}e^{-t}t^{a-1}dt=a^{-1}z^{a}e^{-z}M(1,a+1,z),}](https://wikimedia.org/api/rest_v1/media/math/render/svg/e576cbfbf6e08add512c5665ddbf496c9af52390)
. Since the series
![{\displaystyle M(1,a+1,z)=1+{\frac {1}{(a+1)}}z+{\frac {1}{(a+1)(a+2)}}z^{2}+{\frac {1}{(a+1)(a+2)(a+3)}}z^{3}+\cdots }](https://wikimedia.org/api/rest_v1/media/math/render/svg/d4d596ad69d1e5c7efa785771b30d7e4fcab52ca)
has an infinite radius of convergence, we may take
![{\displaystyle \gamma (a,z)=a^{-1}z^{a}e^{-z}M(1,a+1,z)\,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/f62aafc4e500b338562bd2c95718f2493c715976)
as the definition of γ(a, z) for all complex z. In this light, the lower incomplete gamma function γ(a, z) is an entire function of the complex variable z. Since the gamma function Γ(z) is a meromorphic function with simple poles at {0, −1, −2, …}, we may define the meromorphic upper incomplete gamma function as
![{\displaystyle \Gamma (a,z)=\Gamma (a)-\gamma (a,z).\,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/636fa1a8315101bde444def1d1a875f1b4d05981)
For the actual computation of numerical values, the continued fraction of Gauss provides a useful expansion:
![{\displaystyle {\frac {e^{z}}{z^{a}}}\gamma (a,z)={\cfrac {1}{a-{\cfrac {az}{a+1+{\cfrac {z}{a+2-{\cfrac {(a+1)z}{a+3+{\cfrac {2z}{a+4-{\cfrac {(a+2)z}{a+5+{\cfrac {3z}{a+6-\ddots }}}}}}}}}}}}}}.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/3c3477c321480d526cb0f39684f2728bcdb93e59)
This continued fraction converges for all complex z, provided only that a is not a negative integer.
The upper gamma function has the continued fraction
[2].
Connection with Laguerre Polynomials
The incomplete Gamma function has a series representation in terms of Laguerre polynomials, as
![{\displaystyle \gamma (a;z)=\left({\frac {z}{1+t}}\right)^{a}\cdot \sum _{k=0}^{\infty }{\frac {L_{k}^{(a)}\left({\frac {z}{t}}\right)}{k+a}}\left({\frac {t}{1+t}}\right)^{k}.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/865290f0b09315d56f2075d6994cb6eb9edcec73)
Regularized Gamma functions
Two related functions are the regularized Gamma functions:
,
![{\displaystyle Q(a,x)={\frac {\Gamma (a,x)}{\Gamma (a)}}=1-P(a,x).}](https://wikimedia.org/api/rest_v1/media/math/render/svg/be4c48cdebdc5568937dca15553cbd643c9b6ff3)
Derivatives
The derivative of the upper incomplete gamma function
with respect to x is well known. It is simply given by the integrand of its integral definition:
![{\displaystyle {\frac {\partial \Gamma (a,x)}{\partial x}}=-x^{a-1}e^{-x}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/f2a27e0bbf0d8bf0e5f6dcb6c770ef224f22cb62)
The derivative with respect to its first argument "a" is given by [3]
![{\displaystyle {\frac {\partial \Gamma (a,x)}{\partial a}}=\ln(x)\Gamma (a,x)+x~T(3,a,x)}](https://wikimedia.org/api/rest_v1/media/math/render/svg/cabdd31bce65e5dcfe18c1259c81a50f4cc81c65)
and the second derivative is:
![{\displaystyle {\frac {\partial ^{2}\Gamma (a,x)}{\partial a^{2}}}=\ln ^{2}(x)\Gamma (a,x)+2x~(\ln(x)~T(3,a,x)+T(4,a,x))}](https://wikimedia.org/api/rest_v1/media/math/render/svg/06c3b531c881c0efa4eaaf239f9d4586b0921dcf)
where the function "T(m,a,x)" is a special case of the Meijer G-function
![{\displaystyle T(m,a,z)=G_{m-1,m}^{~m,~0}\left(x\left|{\begin{array}{c}0,0,\ldots 0\\-1,-1,\ldots ,a-1,-1\end{array}}\right.\right)~.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/bf6df652d72d797cb4b5bdf6cf72e82751cc9a63)
This particular special case has internal closure properties of its own because it can be used to express all successive derivatives. In general,
![{\displaystyle {\frac {\partial ^{m}\Gamma (a,x)}{\partial a^{m}}}=\ln ^{m}(x)\Gamma (a,x)+mx~\sum _{i=0}^{m-1}P_{i}^{m-1}\ln ^{m-i-1}(x)~T(3+i,a,x)}](https://wikimedia.org/api/rest_v1/media/math/render/svg/f4a709b2b158d1c8178f8334f0c65596ea771e18)
where
![{\displaystyle P_{j}^{i}=\left({\begin{array}{l}i\\j\end{array}}\right)j!={\frac {i!}{(i-j)!}}~.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/1abf3f451f0871a5396c352b952ba0a395e2fb14)
All such derivatives can be generated in succession from:
![{\displaystyle {\frac {\partial T(m,a,x)}{\partial a}}=\ln(x)~T(m,a,x)+(m-1)T(m+1,a,x)}](https://wikimedia.org/api/rest_v1/media/math/render/svg/12dad8cc247d657e55003a597dd6eb2d355fd4a5)
and
![{\displaystyle {\frac {\partial T(m,a,x)}{\partial x}}=-{\frac {1}{x}}(T(m-1,a,x)+T(m,a,x))}](https://wikimedia.org/api/rest_v1/media/math/render/svg/50210afb7177f9d413d70332e26668f2917edcb4)
This function T(m,a,x) can be computed from its series representation valid for :
,
![{\displaystyle T(m,a,z)=-{\frac {(-1)^{m-1}}{(m-2)!}}{\frac {d^{m-2}}{dt^{m-2}}}\left.(\Gamma (a-t)z^{t-1})\right]_{t=0}+\sum _{i=0}^{\infty }{\frac {(-1)^{i}z^{a-1+i}}{i!(-a-i)^{m-1}}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/c5d1364446967ae75fdd2a3a70d4309185a57c47)
with the understanding that a is not a negative integer or zero. In such a case, one must use a limit. Results for
can be obtained by analytic continuation. Some special cases of this function can be simplified. For example,
![{\displaystyle T(2,a,x)={\frac {\Gamma (a,x)}{x}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/df2ff7d263160227080797c95c0d4802448cea4b)
![{\displaystyle x~T(3,1,x)=E_{1}(x)}](https://wikimedia.org/api/rest_v1/media/math/render/svg/2f7667efa3c323a73f7bf837b5112aacf85e7871)
where
is the Exponential integral. These derivatives and the function T(m,a,x) provides exact solutions to a number of integrals by repeated differentiation of the integral definition of the upper incomplete gamma function. For example,
![{\displaystyle \int _{x}^{\infty }t^{a-1}\ln ^{m}(t)~e^{-t}={\frac {\partial ^{m}}{\partial a^{m}}}\int _{x}^{\infty }t^{a-1}e^{-t}={\frac {\partial ^{m}}{\partial a^{m}}}\Gamma (a,x)}](https://wikimedia.org/api/rest_v1/media/math/render/svg/b18f76d214c1478882809e5543e12d3219a2d674)
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. This method was pioneered by developers of the Maple_(software) system[4] then later emulated by Mathematica, MuPAD and other systems. The function T(m,a,x) became known within the Maple group as the Scott-G function.
Notes
- ^ Weisstein, Eric W. "Incomplete Gamma Function". MathWorld. (equation 2)
- ^ Abramowitz and Stegunp. 263, 6.5.31
- ^ 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, [1]
- ^ K.O. Geddes and T.C. Scott, Recipes for Classes of Definite Integrals Involving Exponentials and Logarithms, Proceedings of the 1989 Computers and Mathematics conference, (held at MIT June 12, 1989), edited by E. Kaltofen and S.M. Watt, Springer-Verlag, New York, (1989), pp. 192-201. [2]
References
- M. Abramowitz and I. A. Stegun, eds. Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables. New York: Dover, 1972. (See section §6.5.)
- G. Arfken and H. Weber. Mathematical Methods for Physicists. Harcourt/Academic Press, 2000. (See Chapter 10.)
- Armido R. DiDonato, Alfred H. Morris, Jr., Computation of the incomplete gamma function ratios and their inverse, ACM Transactions on Mathematical Software (TOMS), v.12 n.4, p.377-393, Dec. 1986.
- Armido R. DiDonato, Alfred H. Morris, Jr., ALGORITHM 654: FORTRAN subroutines for computing the incomplete gamma function ratios and their inverse, ACM Transactions on Mathematical Software (TOMS), v.13 n.3, p.318-319, Sept. 1987. (See also Fortran 90 subroutines for ALGORITHM 654.)
- W. H. Press, B. P. Flannery, S. A. Teukolsky, and W. T. Vetterling. Numerical Recipes in C. Cambridge, UK: Cambridge University Press, 1988. (See Section 6.2.)
Miscellaneous utilities