Incomplete gamma function
In mathematics, the upper incomplete gamma function and lower incomplete gamma function are types of special functions, which arise as solutions to various mathematical problems such as certain integrals.
Their respective names stem from their integral definitions, which are defined similarly to the gamma function, another type of special function, but with different or "incomplete" integral limits. The gamma function is defined as an integral from zero to infinity. This contrasts with the lower incomplete gamma function, which is defined as an integral from zero to a variable upper limit. Similarly, the upper incomplete gamma function is defined as an integral from a variable lower limit to infinity.
- 1 Definition
- 2 Properties
- 2.1 Continuation to complex values
- 2.1.1 Lower incomplete Gamma function
- 220.127.116.11 Holomorphic extension
- 18.104.22.168 Multi-valuedness
- 22.214.171.124 Behavior near branch point
- 126.96.36.199 Algebraic relations
- 188.8.131.52 Integral representation
- 184.108.40.206 Limit for z → +∞
- 220.127.116.11 Overview
- 2.1.2 Upper incomplete Gamma function
- 2.1.1 Lower incomplete Gamma function
- 2.2 Special values
- 2.3 Asymptotic behavior
- 2.1 Continuation to complex values
- 3 Evaluation formulae
- 4 Regularized Gamma functions and Poisson random variables
- 5 Derivatives
- 6 Indefinite and definite integrals
- 7 Notes
- 8 References
- 9 Miscellaneous utilities
The upper incomplete function is defined as:
whereas the lower incomplete function is defined as:
In both cases s is a complex parameter, such that the real part of s is positive.
Since the ordinary gamma function is defined as
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. Complex analysis shows how properties of the real incomplete gamma functions extend to their holomorphic counterparts.
Lower incomplete Gamma function
Given the rapid growth in absolute value of Γ(z + k) when k → ∞, and the fact that the reciprocal of Γ(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ß, the limiting function, sometimes denoted as ,
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 zs and the Γ-function, that the first two factors capture the singularities of γ (at z = 0 or s a non-positive integer), whereas the last factor contributes to its zeros.
The complex logarithm log z = log |z| + i arg z is determined up to a multiple of 2πi only, which renders it multi-valued. Functions involving the complex logarithm typically inherit this property. Among these are the complex power, and, since zs appears in its decomposition, the γ-function, too.
The indeterminacy of multi-valued functions introduces complications, since it must be stated how to select a value. Strategies to handle this are:
- (the most general way) replace the domain ℂ of multi-valued functions by a suitable manifold in ℂ×ℂ called Riemann surface. While this removes multi-valuedness, one has to know the theory behind it ;
- restrict the domain such that a multi-valued function decomposes into separate single-valued branches, which can be handled individually.
The following set of rules can be used to interpret formulas in this section correctly. If not mentioned otherwise, the following is assumed:
Sectors in ℂ having their vertex at z = 0 often prove to be appropriate domains for complex expressions. A sector D consists of all complex z fulfilling z ≠ 0 and α − δ < arg z < α + δ with some α and 0 < δ ≤ π. Often, α can be arbitrarily chosen and is not specified then. If δ is not given, it is assumed to be π, and the sector is in fact the whole plane ℂ, with the exception of a half-line originating at z = 0 and pointing into the direction of −α, usually serving as a branch cut. Note: In many applications and texts, α is silently taken to be 0, which centers the sector around the positive real axis.
In particular, a single-valued and holomorphic logarithm exists on any such sector D having its imaginary part bound to the range (α − δ, α + δ). Based on such a restricted logarithm, zs and the incomplete gamma functions in turn collapse to single-valued, holomorphic functions on D (or ℂ×D), called branches of their multi-valued counterparts on D. Adding a multiple of 2π to α yields a different set of correlated branches on the same set D. However, in any given context here, α is assumed fixed and all branches involved are associated to it. If |α| < δ, the branches are called principal, because they equal their real analogons on the positive real axis. Note: In many applications and texts, formulas hold only for principal branches.
The exponential function es
The expression es shall always denote the exponential function, which is the restriction of a principal branch of zs to z = e.
Relation between branches
The values of different branches of both the complex power function and the lower incomplete gamma function can be derived from each other by multiplication by , k a suitable integer.
Behavior near branch point
The decomposition above further shows, that γ behaves near z = 0 asymptotically like:
For positive real x, y and s, xy/y → 0, when (x, y) → (0, s. This seems to justify setting γ(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 uv are taken from just a finite set of branches, they are guaranteed to converge to zero as (u, v) → (0, s), and so does γ(u, v). On a single branch of γ(b) is naturally fulfilled, so there γ(s, 0) = 0 for s with positive real part is a continuous limit. Also note that such a continuation is by no means an analytic one.
All algebraic relations and differential equations observed by the real γ(s, z) hold for its holomorphic counterpart as well. This is a consequence of the identity theorem , stating that equations between holomorphic functions valid on a real interval, hold everywhere. In particular, the recurrence relation  and ∂γ(s,z)/∂z = zs−1 e−z  are preserved on corresponding branches.
holds, as long as the path of integration is entirely contained in the domain of a branch of the integrand. If, additionally, the real part of s is positive, then the limit γ(s, u) → 0 for u → 0 applies, finally arriving at the complex integral definition of γ
Any path of integration containing 0 only at its beginning, otherwise restricted to the domain of a branch of the integrand, is valid here, for example, the straight line connecting 0 and z.
Limit for z → +∞
Given the integral representation of a principal branch of γ, the following equation holds for all positive real s, x:
This result extends to complex s. Assume first 1 ≤ Re(s) ≤ 2 and 1 < a < b. Then
has been used in the middle. Since the final integral becomes arbitrarily small if only a is large enough, γ(s, x) converges uniformly for x → ∞ on the strip 1 ≤ Re(s) ≤ 2 towards a holomorphic function, which must be Γ(s) because of the identity theorem . Taking the limit in the recurrence relation γ(s,x) = (s − 1)γ(s − 1,x) − xs −1 e−x and noting, that lim xn e−x = 0 for x → ∞ and all n, shows, that γ(s,x) converges outside the strip, too, towards a function obeying the recurrence relation of the Γ-function. It follows
for all complex s not a non-positive integer, x real and γ principal.
Now let u be from the sector |arg z| < δ < π/2 with some fixed δ (α = 0), γ be the principal branch on this sector, and look at
As shown above, the first difference can be made arbitrarily small, if |u| is sufficiently large. The second difference allows for following estimation:
where we made use of the integral representation of γ and the formula about |zs| above. If we integrate along the arc with radius R = |u| around 0 connecting u and |u|, then the last integral is
where M = δ(cos δ)−Re s eIm sδ is a constant independent of u or R. Again referring to the behavior of xn e−x for large x, we see that the last expression approaches 0 as R increases towards ∞. In total we now have:
if s is not a non-negative integer, 0 < ε < π/2 is arbitrarily small, but fixed, and γ denotes the principal branch on this domain.
- entire in z for fixed, positive integral s;
- multi-valued holomorphic in z for fixed s not an integer, with a branch point at z = 0;
- on each branch meromorphic in s for fixed z ≠ 0, with simple poles at non-positive integers s.
Upper incomplete Gamma function
As for the upper incomplete gamma function, a holomorphic extension, with respect to z or s, is given by
at points (s, z), where the right hand side exists. Since is multi-valued, the same holds for , but a restriction to principal values only yields the single-valued principal branch of .
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 proves to be bounded in a neighbourhood of that limit for a fixed z.
To determine the limit, the power series of at z = 0 turns out useful. When replacing by its power series in the integral definition of , one obtains (assume x,s positive reals for now):
which, as a series representation of the entire 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:
When s → 0:
( is the Euler–Mascheroni constant here), hence,
is the limiting function to the upper incomplete gamma function as s → 0, also known as .
By way of the recurrence relation, values of 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.
- entire in z for fixed, positive integral s;
- multi-valued holomorphic in z for fixed s non zero and not a positive integer, with a branch point at z = 0;
- = for s with positive real part and z = 0 (the limit when ), but this is a continuous extension, not an analytic one (does not hold for real s<0!);
- on each branch entire in s for fixed z ≠ 0.
- if s is a positive integer,
- as and
The lower gamma function has the straight forward expansion
where M is Kummer's confluent hypergeometric function.
Connection with Kummer's confluent hypergeometric function
When the real part of z is positive,
has an infinite radius of convergence.
Again with confluent hypergeometric functions and employing Kummer's identity,
For the actual computation of numerical values, Gauss's continued fraction provides a useful expansion:
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
The following multiplication theorem holds true:
Even if unavailable directly, however, incomplete function values can be calculated using functions commonly included in spreadsheets (and computer algebra packages). In Excel, for example, these can be calculated using the Gamma function combined with the Gamma distribution function.
- The lower incomplete function: = GAMMA(s)*GAMMA.DIST(x,s,1,TRUE)
- The upper incomplete function: = GAMMA(s)*(1-GAMMA.DIST(x,s,1,TRUE)).
These follow from the definition of the Gamma distribution's Cumulative distribution function.
Regularized Gamma functions and Poisson random variables
Two related functions are the regularized Gamma functions:
When is an integer, is the cumulative distribution function for Poisson random variables: If is a random variable then
This formula can be derived by repeated integration by parts.
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:
The derivative with respect to its first argument is given by
and the second derivative by
where the function is a special case of the Meijer G-function
This particular special case has internal closure properties of its own because it can be used to express all successive derivatives. In general,
All such derivatives can be generated in succession from:
This function can be computed from its series representation valid for ,
with the understanding that s 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, , , where is the Exponential integral. These derivatives and the function provide exact solutions to a number of integrals by repeated differentiation of the integral definition of the upper incomplete gamma function. For example,
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:
The lower and the upper incomplete Gamma function are connected via the Fourier transform:
This follows, for example, by suitable specialization of (Gradshteyn & Ryzhik 1980, § 7.642).
- DLMF, Incomplete Gamma functions, analytic continuation
-  Theorem 3.9 on p.56
-  Theorem 3.9 on p.56
- see last eq.
- Weisstein, Eric W., "Incomplete Gamma Function", MathWorld. (equation 2)
- DLMF, Incomplete Gamma functions, 8.11(i)
- Abramowitz and Stegun p. 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, 
- Milgram, M. S. Milgram (1985). "The generalized integro-exponential function". Math. Comp. 44 (170): 443–458. doi:10.1090/S0025-5718-1985-0777276-4. MR 0777276.
- 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
- Abramowitz, Milton; Stegun, Irene A., eds. (1965), "Chapter 6.5", Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables, New York: Dover, ISBN 978-0486612720, MR 0167642. "Incomplete Gamma function". §6.5.
- Allasia, Giampietro; Besenghi, Renata (1986). "Numerical calculation of incomplete gamma functions by the trapezoidal rule". Numer. Math. 50 (4): 419–428. doi:10.1007/BF0139666.
- Amore, Paolo (2005). "Asymptotic and exact series representations for the incomplete Gamma function". Europhys. Lett. 71 (1): 1–7. doi:10.1209/epl/i2005-10066-6. MR 2170316.
- G. Arfken and H. Weber. Mathematical Methods for Physicists. Harcourt/Academic Press, 2000. (See Chapter 10.)
- DiDonato, Armido R.; Morris, Jr., Alfred H. (Dec 1986). "Computation of the incomplete gamma function ratios and their inverse". ACM Transactions on Mathematical Software (TOMS) 12 (4): 377–393. doi:10.1145/22721.23109.
- Barakat, Richard (1961). "Evaluation of the Incomplete Gamma Function of Imaginary Argument by Chebyshev Polynomials". Math. Comp. 15 (73): 7–11. doi:10.1090/s0025-5718-1961-0128058-1. MR 0128058.
- Carsky, Martin; Polasek (1998). "Incomplete Gamma F_m(x) functions for real and complex arguments". J. Comput. Phys. 143 (1): 259–265. doi:10.1006/jcph.1998.5975. MR 1624704.
- Chaudhry, M. Aslam; Zubair, S. M. (1995). "On the decomposition of generalized incomplete Gamma functions with applications to Fourier transforms". J. Comput. Appl. Math. 59 (101): 253–284. doi:10.1016/0377-0427(94)00026-w. MR 1346414.
- DiDonato, Armido R.; Morris, Jr., Alfred H. (Sep 1987). "ALGORITHM 654: FORTRAN subroutines for computing the incomplete gamma function ratios and their inverse". ACM Transactions on Mathematical Software (TOMS) 13 (3): 318–319. doi:10.1145/29380.214348. (See also www.netlib.org/toms/654).
- Früchtl, H.; Otto, P. (1994). "A new algorithm for the evaluation of the incomplete Gamma Function on vector computers". ACM Trans. Math. Softw. 20 (4): 436–446. doi:10.1145/198429.198432.
- Gautschi, Walter (1998). "The incomplete gamma function since Tricomi". Atti Convegni Lincei 147: 203–237. MR 1737497.
- Gautschi, Walter (1999). "A Note on the recursive calculation of Incomplete Gamma Functions". ACM Trans. Math. Softw. 25 (1): 101–107. doi:10.1145/305658.305717. MR 1697463.
- Gradshteyn, I.S.; Ryzhik, I.M. (1980). Tables of Integrals, Series, and Products (4th ed.). New York: Academic Press. ISBN 0-12-294760-6. (See Chapter 8.35.)
- Jones, William B.; Thron, W. J. (1985). "On the computation of incomplete gamma functions in the complex domain". J. Comp. Appl. Math. 12-13: 401–417. doi:10.1016/0377-0427(85)90034-2. MR 0793971.
- Hazewinkel, Michiel, ed. (2001), "Incomplete gamma-function", Encyclopedia of Mathematics, Springer, ISBN 978-1-55608-010-4
- Mathar, Richard J. (2004). "Numerical representation of the incomplete gamma function of complex-valued argument". Numerical Algorithms 36 (3): 247–264. doi:10.1023/B:NUMA.0000040063.91709.5. MR 2091195.
- Miller, Allen R.; Moskowitz, Ira S. (1998). "On certain Generalized incomplete Gamma functions". J. Comput. Appl. Math 91 (2): 179–190. doi:10.1016/s0377-0427(98)00031-4.
- Paris, R. B. (2010), "Incomplete gamma function", in Olver, Frank W. J.; Lozier, Daniel M.; Boisvert, Ronald F.; Clark, Charles W., NIST Handbook of Mathematical Functions, Cambridge University Press, ISBN 978-0521192255, MR 2723248
- Paris, R. B. (2002). "A uniform asymptotic expansion for the incomplete gamma function". J. Comput. Appl. Math. 148 (2): 323–339. doi:10.1016/S0377-0427(02)00553-8. MR 1936142.
- Press, WH; Teukolsky, SA; Vetterling, WT; Flannery, BP (2007). "Section 6.2. Incomplete Gamma Function and Error Function". Numerical Recipes: The Art of Scientific Computing (3rd ed.). New York: Cambridge University Press. ISBN 978-0-521-88068-8
- Takenaga, Roy (1966). "On the Evaluation of the Incomplete Gamma Function". Math. Comp. 20 (96): 606–610. doi:10.1090/S0025-5718-1966-0203911-3. MR 0203911.
- Temme, Nico (1975). "Uniform Asymptotic Expansions of the Incomplete Gamma Functions and the Incomplete Beta Function". Math. Comp. 29 (132): 1109–1114. doi:10.1090/S0025-5718-1975-0387674-2. MR 0387674.
- Terras, Riho (1979). "The determination of incomplete Gamma Functions through analytic integration". J. Comp. Phys. 31: 146–151. doi:10.1016/0021-9991(79)90066-4. MR 0531128.
- Tricomi, Francesco G. (1950). "Sulla funzione gamma incompleta". Ann. Mat. Pura Applic. 31: 263–279. doi:10.1007/BF02428264. MR 0047834.
- Tricomi, F. G. (1950). "Asymptotische Eigenschaften der unvollst. Gammafunktion". Math. Zeitsch. 53 (2): 136–148. doi:10.1007/bf01162409. MR 0045253.
- van Deun, Joris; Cools, Ronald (2006). "A stable recurrence for the incomplete gamma function with imaginary second argument". Numer. Math. 104: 445–456. doi:10.1007/s00211-006-0026-1. MR 2249673.
- Winitzki, Serge (2003). "Computing the incomplete gamma function to arbitrary precision". Lect. Not. Comp. Sci. 2667: 790–798. doi:10.1007/3-540-44839-x_83. MR 2110953.
- Weisstein, Eric W., "Incomplete Gamma Function", MathWorld.
- — Incomplete Gamma Function Calculator
- — Incomplete Gamma Function Calculator – Complemented
- — Incomplete Gamma Function Calculator – Lower Limit of Integration
- — Incomplete Gamma Function Calculator – Upper Limit of Integration
- formulas and identities of the Incomplete Gamma Function functions.wolfram.com