fbpx
Wikipedia

Incomplete gamma function

In mathematics, the upper and lower incomplete gamma functions are types of special functions which arise as solutions to various mathematical problems such as certain integrals.

The upper incomplete gamma function for some values of s: 0 (blue), 1 (red), 2 (green), 3 (orange), 4 (purple).
Plot of the regularized incomplete gamma function Q(2,z) in the complex plane from -2-2i to 2+2i with colors created with Mathematica 13.1 function ComplexPlot3D

Their respective names stem from their integral definitions, which are defined similarly to the gamma 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.

Definition edit

The upper incomplete gamma function is defined as:

 

whereas the lower incomplete gamma function is defined as:

 

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

Properties edit

By integration by parts we find the recurrence relations

 
and
 

Since the ordinary gamma function is defined as

 

we have

 
and
 

Continuation to complex values edit

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 edit

Holomorphic extension edit

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

 

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ß,[3] the limiting function, sometimes denoted as  ,[4]

 

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

 [1]

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   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.

Multi-valuedness edit

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 C of multi-valued functions by a suitable manifold in C × C called Riemann surface. While this removes multi-valuedness, one has to know the theory behind it;[6]
  • 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 edit

Sectors in C 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 C, 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.

Branches edit

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 C×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 analogues on the positive real axis. Note: In many applications and texts, formulas hold only for principal branches.

Relation between branches edit

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 of  ,[1] for k a suitable integer.

Behavior near branch point edit

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.

Algebraic relations edit

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 [2] and ∂γ(s, z)/∂z = zs−1 ez [2] are preserved on corresponding branches.

Integral representation edit

The last relation tells us, that, for fixed s, γ is a primitive or antiderivative of the holomorphic function zs−1 ez. Consequently, for any complex u, v ≠ 0,

 

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 γ[1]

 

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 → +∞ edit
Real values edit

Given the integral representation of a principal branch of γ, the following equation holds for all positive real s, x:[7]

 
s complex edit

This result extends to complex s. Assume first 1 ≤ Re(s) ≤ 2 and 1 < a < b. Then

 
where[8]
 
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,[3] 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 ex and noting, that lim xn ex = 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.

Sectorwise convergence edit

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 is a constant independent of u or R. Again referring to the behavior of xn ex 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.

Overview edit

  is:

  • entire in z for fixed, positive integer 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 edit

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

 
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 is useful. When replacing   by its power series in the integral definition of  , one obtains (assume x,s positive reals for now):

 

or[4]

 

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:[9]

 
(  is the Euler–Mascheroni constant here), hence,
 
is the limiting function to the upper incomplete gamma function as s → 0, also known as the exponential integral  .[10]

By way of the recurrence relation, values of   for positive integers n can be derived from this result,[11]

 

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.

  is:

  • 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;
  • equal to   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.

Special values edit

  •   if s is a positive integer,
  •   if s is a positive integer,[12]
  •  ,
  •  ,
  •  ,
  •   for  ,
  •  ,
  •  ,
  •  .

Here,   is the exponential integral,   is the generalized exponential integral,   is the error function, and   is the complementary error function,  .

Asymptotic behavior edit

  •   as  ,
  •   as   and   (for real s, the error of Γ(s, x) ~ −xs / s is on the order of O(xmin{s + 1, 0}) if s ≠ −1 and O(ln(x)) if s = −1),
  •   as an asymptotic series where   and  .[13]
  •   as an asymptotic series where   and  , where  , where   is the Euler-Mascheroni constant.[13]
  •   as  ,
  •   as  ,
  •   as an asymptotic series where   and  .[14]

Evaluation formulae edit

The lower gamma function can be evaluated using the power series expansion:[15]

 
where  is the Pochhammer symbol.

An alternative expansion is

 
where M is Kummer's confluent hypergeometric function.

Connection with Kummer's confluent hypergeometric function edit

When the real part of z is positive,

 
where
 
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[16]

 
and[citation needed]
 

Multiplication theorem edit

The following multiplication theorem holds true:

 

Software implementation edit

The incomplete gamma functions are available in various of the computer algebra systems.

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:   = EXP(GAMMALN(s))*GAMMA.DIST(x,s,1,TRUE).
  • The upper incomplete function:   = EXP(GAMMALN(s))*(1-GAMMA.DIST(x,s,1,TRUE)).

These follow from the definition of the gamma distribution's cumulative distribution function.

In Python, the Scipy library provides implementations of incomplete gamma functions under scipy.special, however, it does not support negative values for the first argument. The function gammainc from the mpmath library supports all complex arguments.

Regularized gamma functions and Poisson random variables edit

Two related functions are the regularized gamma functions:

 
 

  is the cumulative distribution function for gamma random variables with shape parameter   and scale parameter 1.

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.

In the context of the stable count distribution, the   parameter can be regarded as inverse of Lévy's stability parameter  :

 
where   is a standard stable count distribution of shape  .

  and   are implemented as gammainc[17] and gammaincc[18] in scipy.

Derivatives edit

Using the integral representation above, the derivative of the upper incomplete gamma function   with respect to x is

 
The derivative with respect to its first argument   is given by[19]
 
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,
 
where   is the permutation defined by the Pochhammer symbol:
 
All such derivatives can be generated in succession from:
 
and
 
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.[20][21] 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 edit

The following indefinite integrals are readily obtained using integration by parts (with the constant of integration omitted in both cases):

 
 

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

 

This follows, for example, by suitable specialization of (Gradshteyn et al. 2015, §7.642).

Notes edit

  1. ^ a b c d e f "DLMF: §8.2 Definitions and Basic Properties ‣ Incomplete Gamma Functions ‣ Chapter 8 Incomplete Gamma and Related Functions". dlmf.nist.gov.
  2. ^ a b c "DLMF: §8.8 Recurrence Relations and Derivatives ‣ Incomplete Gamma Functions ‣ Chapter 8 Incomplete Gamma and Related Functions". dlmf.nist.gov.
  3. ^ a b Donald E. Marshall (Autumn 2009). (PDF). Math 534 (student handout). University of Washington. Theorem 3.9 on p.56. Archived from the original (PDF) on 16 May 2011. Retrieved 23 April 2011.
  4. ^ a b "DLMF: §8.7 Series Expansions ‣ Incomplete Gamma Functions ‣ Chapter 8 Incomplete Gamma and Related Functions". dlmf.nist.gov.
  5. ^ Paul Garrett. "Hartogs' Theorem: separate analyticity implies joint" (PDF). cse.umn.edu. Retrieved 21 December 2023.
  6. ^ C. Teleman. "Riemann Surfaces" (PDF). berkeley.edu. Retrieved 21 December 2023.
  7. ^ "DLMF: §5.2 Definitions ‣ Properties ‣ Chapter 5 Gamma Function". dlmf.nist.gov.
  8. ^ "DLMF: §4.4 Special Values and Limits ‣ Logarithm, Exponential, Powers ‣ Chapter 4 Elementary Functions". dlmf.nist.gov.
  9. ^ see last eq.
  10. ^ "DLMF: §8.4 Special Values ‣ Incomplete Gamma Functions ‣ Chapter 8 Incomplete Gamma and Related Functions". dlmf.nist.gov.
  11. ^ "DLMF: 8.4 Special Values".
  12. ^ Weisstein, Eric W. "Incomplete Gamma Function". MathWorld. (equation 2)
  13. ^ a b Bender & Orszag (1978). Advanced Mathematical Methods for Scientists and Engineers. Springer.
  14. ^ "DLMF: §8.11 Asymptotic Approximations and Expansions ‣ Incomplete Gamma Functions ‣ Chapter 8 Incomplete Gamma and Related Functions". dlmf.nist.gov.
  15. ^ "DLMF: §8.11 Asymptotic Approximations and Expansions ‣ Incomplete Gamma Functions ‣ Chapter 8 Incomplete Gamma and Related Functions". dlmf.nist.gov.
  16. ^ Abramowitz and Stegun p. 263, 6.5.31
  17. ^ "scipy.special.gammainc — SciPy v1.11.4 Manual". docs.scipy.org.
  18. ^ "scipy.special.gammaincc — SciPy v1.11.4 Manual". docs.scipy.org.
  19. ^ 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]
  20. ^ Milgram, M. S. (1985). "The generalized integro-exponential function". Math. Comp. 44 (170): 443–458. doi:10.1090/S0025-5718-1985-0777276-4. MR 0777276.
  21. ^ 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 edit

  • Abramowitz, Milton; Stegun, Irene Ann, eds. (1983) [June 1964]. "Chapter 6.5". Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables. Applied Mathematics Series. Vol. 55 (Ninth reprint with additional corrections of tenth original printing with corrections (December 1972); first ed.). Washington D.C.; New York: United States Department of Commerce, National Bureau of Standards; Dover Publications. ISBN 978-0-486-61272-0. LCCN 64-60036. MR 0167642. LCCN 65-12253. "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/BF01396662. S2CID 121964300.
  • Amore, Paolo (2005). "Asymptotic and exact series representations for the incomplete Gamma function". Europhys. Lett. 71 (1): 1–7. arXiv:math-ph/0501019. Bibcode:2005EL.....71....1A. doi:10.1209/epl/i2005-10066-6. MR 2170316. S2CID 1921569.
  • G. Arfken and H. Weber. Mathematical Methods for Physicists. Harcourt/Academic Press, 2000. (See Chapter 10.)
  • DiDonato, Armido R.; Morris, Jr., Alfred H. (December 1986). "Computation of the incomplete gamma function ratios and their inverse". ACM Transactions on Mathematical Software. 12 (4): 377–393. doi:10.1145/22721.23109. S2CID 14351930.
  • 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, Petr; Polasek, Martin (1998). "Incomplete Gamma F_m(x) functions for real and complex arguments". J. Comput. Phys. 143 (1): 259–265. Bibcode:1998JCoPh.143..259C. 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. (September 1987). "ALGORITHM 654: FORTRAN subroutines for computing the incomplete gamma function ratios and their inverse". ACM Transactions on Mathematical Software. 13 (3): 318–319. doi:10.1145/29380.214348. S2CID 19902932. (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. S2CID 16737306.
  • 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. S2CID 36469885.
  • Gradshteyn, Izrail Solomonovich; Ryzhik, Iosif Moiseevich; Geronimus, Yuri Veniaminovich; Tseytlin, Michail Yulyevich; Jeffrey, Alan (2015) [October 2014]. "8.35.". In Zwillinger, Daniel; Moll, Victor Hugo (eds.). Table of Integrals, Series, and Products. Translated by Scripta Technica, Inc. (8 ed.). Academic Press, Inc. pp. 908–911. ISBN 978-0-12-384933-5. LCCN 2014010276.
  • Jones, William B.; Thron, W. J. (1985). "On the computation of incomplete gamma functions in the complex domain". J. Comput. Appl. Math. 12–13: 401–417. doi:10.1016/0377-0427(85)90034-2. MR 0793971.
  • "Incomplete gamma-function", Encyclopedia of Mathematics, EMS Press, 2001 [1994]
  • Mathar, Richard J. (2004). "Numerical representation of the incomplete gamma function of complex-valued argument". Numerical Algorithms. 36 (3): 247–264. arXiv:math/0306184. Bibcode:2004NuAlg..36..247M. doi:10.1023/B:NUMA.0000040063.91709.58. MR 2091195. S2CID 30860614.
  • 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. (eds.), NIST Handbook of Mathematical Functions, Cambridge University Press, ISBN 978-0-521-19225-5, MR 2723248.
  • Paris, R. B. (2002). "A uniform asymptotic expansion for the incomplete gamma function". J. Comput. Appl. Math. 148 (2): 323–339. Bibcode:2002JCoAM.148..323P. 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. Comput. Phys. 31 (1): 146–151. Bibcode:1979JCoPh..31..146T. doi:10.1016/0021-9991(79)90066-4. MR 0531128.
  • Tricomi, Francesco G. (1950). "Sulla funzione gamma incompleta". Ann. Mat. Pura Appl. 31: 263–279. doi:10.1007/BF02428264. MR 0047834. S2CID 120404791.
  • Tricomi, F. G. (1950). "Asymptotische Eigenschaften der unvollst. Gammafunktion". Math. Z. 53 (2): 136–148. doi:10.1007/bf01162409. MR 0045253. S2CID 121234109.
  • van Deun, Joris; Cools, Ronald (2006). "A stable recurrence for the incomplete gamma function with imaginary second argument". Numer. Math. 104 (4): 445–456. doi:10.1007/s00211-006-0026-1. MR 2249673. S2CID 43780150.
  • Winitzki, Serge (2003). "Computing the Incomplete Gamma Function to Arbitrary Precision". In Vipin Kumar; Marina L. Gavrilova; Chih Jeng Kenneth Tan; Pierre L'Ecuyer (eds.). Computational Science and Its Applications — ICSSA 2003. International Conference on Computational Science and Its Applications, Montreal, Canada, May 18–21, 2003, Proceedings, Part I. Lecture Notes in Computer Science. Vol. 2667. pp. 790–798. doi:10.1007/3-540-44839-x_83. ISBN 978-3-540-40155-1. MR 2110953.
  • Weisstein, Eric W. "Incomplete Gamma Function". MathWorld.

External links edit

  •   — Regularized Lower Incomplete Gamma Function Calculator
  •   — Regularized Upper Incomplete Gamma Function Calculator
  •   — Lower Incomplete Gamma Function Calculator
  •   — Upper Incomplete Gamma Function Calculator
  • formulas and identities of the Incomplete Gamma Function functions.wolfram.com

incomplete, gamma, function, mathematics, upper, lower, incomplete, gamma, functions, types, special, functions, which, arise, solutions, various, mathematical, problems, such, certain, integrals, upper, incomplete, gamma, function, some, values, blue, green, . In mathematics the upper and lower incomplete gamma functions are types of special functions which arise as solutions to various mathematical problems such as certain integrals The upper incomplete gamma function for some values of s 0 blue 1 red 2 green 3 orange 4 purple Plot of the regularized incomplete gamma function Q 2 z in the complex plane from 2 2i to 2 2i with colors created with Mathematica 13 1 function ComplexPlot3D Their respective names stem from their integral definitions which are defined similarly to the gamma 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 Contents 1 Definition 2 Properties 2 1 Continuation to complex values 2 1 1 Lower incomplete gamma function 2 1 1 1 Holomorphic extension 2 1 1 2 Multi valuedness 2 1 1 2 1 Sectors 2 1 1 2 2 Branches 2 1 1 2 3 Relation between branches 2 1 1 3 Behavior near branch point 2 1 1 4 Algebraic relations 2 1 1 5 Integral representation 2 1 1 6 Limit for z 2 1 1 6 1 Real values 2 1 1 6 2 s complex 2 1 1 6 3 Sectorwise convergence 2 1 1 7 Overview 2 1 2 Upper incomplete gamma function 2 2 Special values 2 3 Asymptotic behavior 3 Evaluation formulae 3 1 Connection with Kummer s confluent hypergeometric function 3 2 Multiplication theorem 3 3 Software implementation 4 Regularized gamma functions and Poisson random variables 5 Derivatives 6 Indefinite and definite integrals 7 Notes 8 References 9 External linksDefinition editThe upper incomplete gamma function is defined as G s x x t s 1 e t d t displaystyle Gamma s x int x infty t s 1 e t dt nbsp whereas the lower incomplete gamma function is defined as g s x 0 x t s 1 e t d t displaystyle gamma s x int 0 x t s 1 e t dt nbsp In both cases s is a complex parameter such that the real part of s is positive Properties editBy integration by parts we find the recurrence relationsG s 1 x s G s x x s e x displaystyle Gamma s 1 x s Gamma s x x s e x nbsp and g s 1 x s g s x x s e x displaystyle gamma s 1 x s gamma s x x s e x nbsp Since the ordinary gamma function is defined asG s 0 t s 1 e t d t displaystyle Gamma s int 0 infty t s 1 e t dt nbsp we haveG s G s 0 lim x g s x displaystyle Gamma s Gamma s 0 lim x to infty gamma s x nbsp and g s x G s x G s displaystyle gamma s x Gamma s x Gamma s nbsp Continuation to complex values edit 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 edit Holomorphic extension edit Repeated application of the recurrence relation for the lower incomplete gamma function leads to the power series expansion 2 g s x k 0 x s e x x k s s 1 s k x s G s e x k 0 x k G s k 1 displaystyle gamma s x sum k 0 infty frac x s e x x k s s 1 cdots s k x s Gamma s e x sum k 0 infty frac x k Gamma s k 1 nbsp Given the rapid growth in absolute value of G z k when k and the fact that the reciprocal of G 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 Weierstrass 3 the limiting function sometimes denoted as g displaystyle gamma nbsp 4 g s z e z k 0 z k G s k 1 displaystyle gamma s z e z sum k 0 infty frac z k Gamma s k 1 nbsp is entire with respect to both z for fixed s and s for fixed z 1 and thus holomorphic on C C by Hartog s theorem 5 Hence the following decomposition g s z z s G s g s z displaystyle gamma s z z s Gamma s gamma s z nbsp 1 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 displaystyle z s nbsp and the G function that the first two factors capture the singularities of g s z displaystyle gamma s z nbsp at z 0 or s a non positive integer whereas the last factor contributes to its zeros Multi valuedness edit The complex logarithm log z log z i arg z is determined up to a multiple of 2pi 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 g 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 C of multi valued functions by a suitable manifold in C C called Riemann surface While this removes multi valuedness one has to know the theory behind it 6 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 edit Sectors in C 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 a d lt arg z lt a d with some a and 0 lt d p Often a can be arbitrarily chosen and is not specified then If d is not given it is assumed to be p and the sector is in fact the whole plane C with the exception of a half line originating at z 0 and pointing into the direction of a usually serving as a branch cut Note In many applications and texts a is silently taken to be 0 which centers the sector around the positive real axis Branches edit In particular a single valued and holomorphic logarithm exists on any such sector D having its imaginary part bound to the range a d a d Based on such a restricted logarithm zs and the incomplete gamma functions in turn collapse to single valued holomorphic functions on D or C D called branches of their multi valued counterparts on D Adding a multiple of 2p to a yields a different set of correlated branches on the same set D However in any given context here a is assumed fixed and all branches involved are associated to it If a lt d the branches are called principal because they equal their real analogues on the positive real axis Note In many applications and texts formulas hold only for principal branches Relation between branches edit 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 of e 2 p i k s displaystyle e 2 pi iks nbsp 1 for k a suitable integer Behavior near branch point edit The decomposition above further shows that g behaves near z 0 asymptotically like g s z z s G s g s 0 z s G s G s 1 z s s displaystyle gamma s z asymp z s Gamma s gamma s 0 z s Gamma s Gamma s 1 z s s nbsp For positive real x y and s xy y 0 when x y 0 s This seems to justify setting g s 0 0 for real s gt 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 g u v On a single branch of g b is naturally fulfilled so there g 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 Algebraic relations edit All algebraic relations and differential equations observed by the real g 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 2 and g s z z zs 1 e z 2 are preserved on corresponding branches Integral representation edit The last relation tells us that for fixed s g is a primitive or antiderivative of the holomorphic function zs 1 e z Consequently for any complex u v 0 u v t s 1 e t d t g s v g s u displaystyle int u v t s 1 e t dt gamma s v gamma s u nbsp 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 g s u 0 for u 0 applies finally arriving at the complex integral definition of g 1 g s z 0 z t s 1 e t d t ℜ s gt 0 displaystyle gamma s z int 0 z t s 1 e t dt Re s gt 0 nbsp 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 edit Real values edit Given the integral representation of a principal branch of g the following equation holds for all positive real s x 7 G s 0 t s 1 e t d t lim x g s x displaystyle Gamma s int 0 infty t s 1 e t dt lim x to infty gamma s x nbsp s complex edit This result extends to complex s Assume first 1 Re s 2 and 1 lt a lt b Then g s b g s a a b t s 1 e t d t a b t ℜ s 1 e t d t a b t e t d t displaystyle gamma s b gamma s a leq int a b t s 1 e t dt int a b t Re s 1 e t dt leq int a b te t dt nbsp where 8 z s z ℜ s e ℑ s arg z displaystyle z s z Re s e Im s arg z nbsp has been used in the middle Since the final integral becomes arbitrarily small if only a is large enough g s x converges uniformly for x on the strip 1 Re s 2 towards a holomorphic function 3 which must be G s because of the identity theorem Taking the limit in the recurrence relation g s x s 1 g s 1 x xs 1 e x and noting that lim xn e x 0 for x and all n shows that g s x converges outside the strip too towards a function obeying the recurrence relation of the G function It follows G s lim x g s x displaystyle Gamma s lim x to infty gamma s x nbsp for all complex s not a non positive integer x real and g principal Sectorwise convergence edit Now let u be from the sector arg z lt d lt p 2 with some fixed d a 0 g be the principal branch on this sector and look atG s g s u G s g s u g s u g s u displaystyle Gamma s gamma s u Gamma s gamma s u gamma s u gamma s u nbsp As shown above the first difference can be made arbitrarily small if u is sufficiently large The second difference allows for following estimation g s u g s u u u z s 1 e z d z u u z ℜ s 1 e ℑ s arg z e ℜ z d z displaystyle gamma s u gamma s u leq int u u z s 1 e z dz int u u z Re s 1 e Im s arg z e Re z dz nbsp where we made use of the integral representation of g 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 R arg u R ℜ s 1 e ℑ s arg u e R cos arg u d R ℜ s e ℑ s d e R cos d M R cos d ℜ s e R cos d displaystyle leq R left arg u right R Re s 1 e Im s arg u e R cos arg u leq delta R Re s e Im s delta e R cos delta M R cos delta Re s e R cos delta nbsp where M d cos d Re s eIm sd 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 G s lim z g s z arg z lt p 2 ϵ displaystyle Gamma s lim z to infty gamma s z quad left arg z right lt pi 2 epsilon nbsp if s is not a non negative integer 0 lt e lt p 2 is arbitrarily small but fixed and g denotes the principal branch on this domain Overview edit g s z displaystyle gamma s z nbsp is entire in z for fixed positive integer 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 edit As for the upper incomplete gamma function a holomorphic extension with respect to z or s is given by 1 G s z G s g s z displaystyle Gamma s z Gamma s gamma s z nbsp at points s z where the right hand side exists Since g displaystyle gamma nbsp is multi valued the same holds for G displaystyle Gamma nbsp but a restriction to principal values only yields the single valued principal branch of G displaystyle Gamma nbsp 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 G s z displaystyle Gamma s z nbsp proves to be bounded in a neighbourhood of that limit for a fixed z To determine the limit the power series of g displaystyle gamma nbsp at z 0 is useful When replacing e x displaystyle e x nbsp by its power series in the integral definition of g displaystyle gamma nbsp one obtains assume x s positive reals for now g s x 0 x t s 1 e t d t 0 x k 0 1 k t s k 1 k d t k 0 1 k x s k k s k x s k 0 x k k s k displaystyle gamma s x int 0 x t s 1 e t dt int 0 x sum k 0 infty 1 k frac t s k 1 k dt sum k 0 infty 1 k frac x s k k s k x s sum k 0 infty frac x k k s k nbsp or 4 g s x k 0 x k k G s s k displaystyle gamma s x sum k 0 infty frac x k k Gamma s s k nbsp which as a series representation of the entire g displaystyle gamma nbsp 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 g s z 1 s 1 s z s k 0 z k k s k z s 1 s z s k 1 z k k s k ℜ s gt 1 s 0 displaystyle gamma s z frac 1 s frac 1 s z s sum k 0 infty frac z k k s k frac z s 1 s z s sum k 1 infty frac z k k s k quad Re s gt 1 s neq 0 nbsp When s 0 9 z s 1 s ln z G s 1 s 1 s g O s 1 s g displaystyle frac z s 1 s to ln z quad Gamma s frac 1 s frac 1 s gamma O s frac 1 s to gamma nbsp g displaystyle gamma nbsp is the Euler Mascheroni constant here hence G 0 z lim s 0 G s 1 s g s z 1 s g ln z k 1 z k k k displaystyle Gamma 0 z lim s to 0 left Gamma s tfrac 1 s gamma s z tfrac 1 s right gamma ln z sum k 1 infty frac z k k k nbsp is the limiting function to the upper incomplete gamma function as s 0 also known as the exponential integral E 1 z displaystyle E 1 z nbsp 10 By way of the recurrence relation values of G n z displaystyle Gamma n z nbsp for positive integers n can be derived from this result 11 G n z 1 n e z z n k 0 n 1 1 k n k 1 z k 1 n G 0 z displaystyle Gamma n z frac 1 n left frac e z z n sum k 0 n 1 1 k n k 1 z k 1 n Gamma 0 z right nbsp 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 G s z displaystyle Gamma s z nbsp is 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 equal to G s displaystyle Gamma s nbsp for s with positive real part and z 0 the limit when s i z i s 0 displaystyle s i z i to s 0 nbsp but this is a continuous extension not an analytic one does not hold for real s lt 0 on each branch entire in s for fixed z 0 Special values edit G s 1 1 e s e displaystyle Gamma s 1 1 frac lfloor es rfloor e nbsp if s is a positive integer G s x s 1 e x k 0 s 1 x k k displaystyle Gamma s x s 1 e x sum k 0 s 1 frac x k k nbsp if s is a positive integer 12 G s 0 G s ℜ s gt 0 displaystyle Gamma s 0 Gamma s Re s gt 0 nbsp G 1 x e x displaystyle Gamma 1 x e x nbsp g 1 x 1 e x displaystyle gamma 1 x 1 e x nbsp G 0 x Ei x displaystyle Gamma 0 x operatorname Ei x nbsp for x gt 0 displaystyle x gt 0 nbsp G s x x s E 1 s x displaystyle Gamma s x x s operatorname E 1 s x nbsp G 1 2 x p erfc x displaystyle Gamma left tfrac 1 2 x right sqrt pi operatorname erfc left sqrt x right nbsp g 1 2 x p erf x displaystyle gamma left tfrac 1 2 x right sqrt pi operatorname erf left sqrt x right nbsp Here Ei displaystyle operatorname Ei nbsp is the exponential integral E n displaystyle operatorname E n nbsp is the generalized exponential integral erf displaystyle operatorname erf nbsp is the error function and erfc displaystyle operatorname erfc nbsp is the complementary error function erfc x 1 erf x displaystyle operatorname erfc x 1 operatorname erf x nbsp Asymptotic behavior edit g s x x s 1 s displaystyle frac gamma s x x s to frac 1 s nbsp as x 0 displaystyle x to 0 nbsp G s x x s 1 s displaystyle frac Gamma s x x s to frac 1 s nbsp as x 0 displaystyle x to 0 nbsp and ℜ s lt 0 displaystyle Re s lt 0 nbsp for real s the error of G s x xs s is on the order of O xmin s 1 0 if s 1 and O ln x if s 1 G s x G s n 0 1 n x s n n s n displaystyle Gamma s x sim Gamma s sum n 0 infty 1 n frac x s n n s n nbsp as an asymptotic series where x 0 displaystyle x to 0 nbsp and s 0 1 2 displaystyle s neq 0 1 2 dots nbsp 13 G N x C N 1 N 1 N ln x n 0 n N 1 n x n N n n N displaystyle Gamma N x sim C N frac 1 N 1 N ln x sum n 0 n neq N infty 1 n frac x n N n n N nbsp as an asymptotic series where x 0 displaystyle x to 0 nbsp and N 1 2 displaystyle N 1 2 dots nbsp where C N 1 N 1 N g n 1 N 1 n textstyle C N frac 1 N 1 N left gamma displaystyle sum n 1 N frac 1 n right nbsp where g displaystyle gamma nbsp is the Euler Mascheroni constant 13 g s x G s displaystyle gamma s x to Gamma s nbsp as x displaystyle x to infty nbsp G s x x s 1 e x 1 displaystyle frac Gamma s x x s 1 e x to 1 nbsp as x displaystyle x to infty nbsp G s z z s 1 e z k 0 G s G s k z k displaystyle Gamma s z sim z s 1 e z sum k 0 frac Gamma s Gamma s k z k nbsp as an asymptotic series where z displaystyle z to infty nbsp and arg z lt 3 2 p displaystyle left arg z right lt tfrac 3 2 pi nbsp 14 Evaluation formulae editThe lower gamma function can be evaluated using the power series expansion 15 g s z k 0 z s e z z k s s 1 s k z s e z k 0 z k s k 1 displaystyle gamma s z sum k 0 infty frac z s e z z k s s 1 dots s k z s e z sum k 0 infty dfrac z k s overline k 1 nbsp where s k 1 displaystyle s overline k 1 nbsp is the Pochhammer symbol An alternative expansion isg s z k 0 1 k k z s k s k z s s M s s 1 z displaystyle gamma s z sum k 0 infty frac 1 k k frac z s k s k frac z s s M s s 1 z nbsp where M is Kummer s confluent hypergeometric function Connection with Kummer s confluent hypergeometric function edit When the real part of z is positive g s z s 1 z s e z M 1 s 1 z displaystyle gamma s z s 1 z s e z M 1 s 1 z nbsp where M 1 s 1 z 1 z s 1 z 2 s 1 s 2 z 3 s 1 s 2 s 3 displaystyle M 1 s 1 z 1 frac z s 1 frac z 2 s 1 s 2 frac z 3 s 1 s 2 s 3 cdots nbsp has an infinite radius of convergence Again with confluent hypergeometric functions and employing Kummer s identity G s z e z U 1 s 1 s z z s e z G 1 s 0 e u u s z u d u e z z s U 1 1 s z e z 0 e u z u s 1 d u e z z s 0 e z u 1 u s 1 d u displaystyle begin aligned Gamma s z amp 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 u du amp e z z s U 1 1 s z e z int 0 infty e u z u s 1 du e z z s int 0 infty e zu 1 u s 1 du end aligned nbsp For the actual computation of numerical values Gauss s continued fraction provides a useful expansion g s z z s e z s s z s 1 z s 2 s 1 z s 3 2 z s 4 s 2 z s 5 3 z s 6 displaystyle gamma s z cfrac z s e z s cfrac sz s 1 cfrac z s 2 cfrac s 1 z s 3 cfrac 2z s 4 cfrac s 2 z s 5 cfrac 3z s 6 ddots nbsp 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 16 G s z z s e z z 1 s 1 1 z 2 s 1 2 z 3 s 1 displaystyle Gamma s z cfrac z s e z z cfrac 1 s 1 cfrac 1 z cfrac 2 s 1 cfrac 2 z cfrac 3 s 1 ddots nbsp and citation needed G s z z s e z 1 z s s 1 3 z s 2 s 2 5 z s 3 s 3 7 z s 4 s 4 9 z s displaystyle Gamma s z cfrac z s e z 1 z s cfrac s 1 3 z s cfrac 2 s 2 5 z s cfrac 3 s 3 7 z s cfrac 4 s 4 9 z s ddots nbsp Multiplication theorem edit The following multiplication theorem holds true G s z 1 t s i 0 1 1 t i i G s i t z G s t z t z s e t z i 1 1 t 1 i i L i 1 s i t z displaystyle Gamma s z frac 1 t s sum i 0 infty frac left 1 frac 1 t right i i Gamma s i tz Gamma s tz tz s e tz sum i 1 infty frac left frac 1 t 1 right i i L i 1 s i tz nbsp Software implementation edit The incomplete gamma functions are available in various of the computer algebra systems 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 g s x displaystyle gamma s x nbsp EXP GAMMALN s GAMMA DIST x s 1 TRUE The upper incomplete function G s x displaystyle Gamma s x nbsp EXP GAMMALN s 1 GAMMA DIST x s 1 TRUE These follow from the definition of the gamma distribution s cumulative distribution function In Python the Scipy library provides implementations of incomplete gamma functions under scipy special however it does not support negative values for the first argument The function gammainc from the mpmath library supports all complex arguments Regularized gamma functions and Poisson random variables editTwo related functions are the regularized gamma functions P s x g s x G s displaystyle P s x frac gamma s x Gamma s nbsp Q s x G s x G s 1 P s x displaystyle Q s x frac Gamma s x Gamma s 1 P s x nbsp P s x displaystyle P s x nbsp is the cumulative distribution function for gamma random variables with shape parameter s displaystyle s nbsp and scale parameter 1 When s displaystyle s nbsp is an integer Q s l displaystyle Q s lambda nbsp is the cumulative distribution function for Poisson random variables If X displaystyle X nbsp is a P o i l displaystyle mathrm Poi lambda nbsp random variable thenPr X lt s i lt s e l l i i G s l G s Q s l displaystyle Pr X lt s sum i lt s e lambda frac lambda i i frac Gamma s lambda Gamma s Q s lambda nbsp This formula can be derived by repeated integration by parts In the context of the stable count distribution the s displaystyle s nbsp parameter can be regarded as inverse of Levy s stability parameter a displaystyle alpha nbsp Q s x 0 e x s n N 1 s n d n s gt 1 displaystyle Q s x displaystyle int 0 infty e left x s nu right mathfrak N 1 s left nu right d nu s gt 1 nbsp where N a n displaystyle mathfrak N alpha nu nbsp is a standard stable count distribution of shape a 1 s lt 1 displaystyle alpha 1 s lt 1 nbsp P s x displaystyle P s x nbsp and Q s x displaystyle Q s x nbsp are implemented as gammainc 17 and gammaincc 18 in scipy Derivatives editUsing the integral representation above the derivative of the upper incomplete gamma function G s x displaystyle Gamma s x nbsp with respect to x is G s x x x s 1 e x displaystyle frac partial Gamma s x partial x x s 1 e x nbsp The derivative with respect to its first argument s displaystyle s nbsp is given by 19 G s x s ln x G s x x T 3 s x displaystyle frac partial Gamma s x partial s ln x Gamma s x x T 3 s x nbsp and the second derivative by 2 G s x s 2 ln 2 x G s x 2 x ln x T 3 s x T 4 s x displaystyle frac partial 2 Gamma s x partial s 2 ln 2 x Gamma s x 2x ln x T 3 s x T 4 s x nbsp where the function T m s x displaystyle T m s x nbsp is a special case of the Meijer G function T m s x G m 1 m m 0 0 0 0 s 1 1 1 x displaystyle 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 nbsp This particular special case has internal closure properties of its own because it can be used to express all successive derivatives In general m G s x s m ln m x G s x m x n 0 m 1 P n m 1 ln m n 1 x T 3 n s x displaystyle frac partial m Gamma s x partial s m ln m x Gamma s x mx sum n 0 m 1 P n m 1 ln m n 1 x T 3 n s x nbsp where P j n displaystyle P j n nbsp is the permutation defined by the Pochhammer symbol P j n n j j n n j displaystyle P j n binom n j j frac n n j nbsp All such derivatives can be generated in succession from T m s x s ln x T m s x m 1 T m 1 s x displaystyle frac partial T m s x partial s ln x T m s x m 1 T m 1 s x nbsp and T m s x x 1 x T m 1 s x T m s x displaystyle frac partial T m s x partial x frac 1 x T m 1 s x T m s x nbsp This function T m s x displaystyle T m s x nbsp can be computed from its series representation valid for z lt 1 displaystyle z lt 1 nbsp T m s z 1 m 1 m 2 d m 2 d t m 2 G s t z t 1 t 0 n 0 1 n z s 1 n n s n m 1 displaystyle T m s z frac 1 m 1 m 2 left frac d m 2 dt m 2 left Gamma s t z t 1 right right t 0 sum n 0 infty frac 1 n z s 1 n n s n m 1 nbsp with the understanding that s is not a negative integer or zero In such a case one must use a limit Results for z 1 displaystyle z geq 1 nbsp can be obtained by analytic continuation Some special cases of this function can be simplified For example T 2 s x G s x x displaystyle T 2 s x Gamma s x x nbsp x T 3 1 x E 1 x displaystyle x T 3 1 x mathrm E 1 x nbsp where E 1 x displaystyle mathrm E 1 x nbsp is the Exponential integral These derivatives and the function T m s x displaystyle T m s x nbsp provide exact solutions to a number of integrals by repeated differentiation of the integral definition of the upper incomplete gamma function 20 21 For example x t s 1 ln m t e t d t m s m x t s 1 e t d t m s m G s x displaystyle int x infty frac t s 1 ln m t e t dt frac partial m partial s m int x infty frac t s 1 e t dt frac partial m partial s m Gamma s x nbsp 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 editThe following indefinite integrals are readily obtained using integration by parts with the constant of integration omitted in both cases x b 1 g s x d x 1 b x b g s x g s b x displaystyle int x b 1 gamma s x dx frac 1 b left x b gamma s x gamma s b x right nbsp x b 1 G s x d x 1 b x b G s x G s b x displaystyle int x b 1 Gamma s x dx frac 1 b left x b Gamma s x Gamma s b x right nbsp The lower and the upper incomplete gamma function are connected via the Fourier transform g s 2 z 2 p z 2 p s 2 e 2 p i k z d z G 1 s 2 k 2 p k 2 p 1 s 2 displaystyle int infty infty frac gamma left frac s 2 z 2 pi right z 2 pi frac s 2 e 2 pi ikz dz frac Gamma left frac 1 s 2 k 2 pi right k 2 pi frac 1 s 2 nbsp This follows for example by suitable specialization of Gradshteyn et al 2015 7 642 Notes edit a b c d e f DLMF 8 2 Definitions and Basic Properties Incomplete Gamma Functions Chapter 8 Incomplete Gamma and Related Functions dlmf nist gov a b c DLMF 8 8 Recurrence Relations and Derivatives Incomplete Gamma Functions Chapter 8 Incomplete Gamma and Related Functions dlmf nist gov a b Donald E Marshall Autumn 2009 Complex Analysis PDF Math 534 student handout University of Washington Theorem 3 9 on p 56 Archived from the original PDF on 16 May 2011 Retrieved 23 April 2011 a b DLMF 8 7 Series Expansions Incomplete Gamma Functions Chapter 8 Incomplete Gamma and Related Functions dlmf nist gov Paul Garrett Hartogs Theorem separate analyticity implies joint PDF cse umn edu Retrieved 21 December 2023 C Teleman Riemann Surfaces PDF berkeley edu Retrieved 21 December 2023 DLMF 5 2 Definitions Properties Chapter 5 Gamma Function dlmf nist gov DLMF 4 4 Special Values and Limits Logarithm Exponential Powers Chapter 4 Elementary Functions dlmf nist gov see last eq DLMF 8 4 Special Values Incomplete Gamma Functions Chapter 8 Incomplete Gamma and Related Functions dlmf nist gov DLMF 8 4 Special Values Weisstein Eric W Incomplete Gamma Function MathWorld equation 2 a b Bender amp Orszag 1978 Advanced Mathematical Methods for Scientists and Engineers Springer DLMF 8 11 Asymptotic Approximations and Expansions Incomplete Gamma Functions Chapter 8 Incomplete Gamma and Related Functions dlmf nist gov DLMF 8 11 Asymptotic Approximations and Expansions Incomplete Gamma Functions Chapter 8 Incomplete Gamma and Related Functions dlmf nist gov Abramowitz and Stegun p 263 6 5 31 scipy special gammainc SciPy v1 11 4 Manual docs scipy org scipy special gammaincc SciPy v1 11 4 Manual docs scipy org 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 Milgram M S 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 BReferences editAbramowitz Milton Stegun Irene Ann eds 1983 June 1964 Chapter 6 5 Handbook of Mathematical Functions with Formulas Graphs and Mathematical Tables Applied Mathematics Series Vol 55 Ninth reprint with additional corrections of tenth original printing with corrections December 1972 first ed Washington D C New York United States Department of Commerce National Bureau of Standards Dover Publications ISBN 978 0 486 61272 0 LCCN 64 60036 MR 0167642 LCCN 65 12253 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 BF01396662 S2CID 121964300 Amore Paolo 2005 Asymptotic and exact series representations for the incomplete Gamma function Europhys Lett 71 1 1 7 arXiv math ph 0501019 Bibcode 2005EL 71 1A doi 10 1209 epl i2005 10066 6 MR 2170316 S2CID 1921569 G Arfken and H Weber Mathematical Methods for Physicists Harcourt Academic Press 2000 See Chapter 10 DiDonato Armido R Morris Jr Alfred H December 1986 Computation of the incomplete gamma function ratios and their inverse ACM Transactions on Mathematical Software 12 4 377 393 doi 10 1145 22721 23109 S2CID 14351930 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 Petr Polasek Martin 1998 Incomplete Gamma F m x functions for real and complex arguments J Comput Phys 143 1 259 265 Bibcode 1998JCoPh 143 259C 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 September 1987 ALGORITHM 654 FORTRAN subroutines for computing the incomplete gamma function ratios and their inverse ACM Transactions on Mathematical Software 13 3 318 319 doi 10 1145 29380 214348 S2CID 19902932 See also www netlib org toms 654 Fruchtl 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 S2CID 16737306 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 S2CID 36469885 Gradshteyn Izrail Solomonovich Ryzhik Iosif Moiseevich Geronimus Yuri Veniaminovich Tseytlin Michail Yulyevich Jeffrey Alan 2015 October 2014 8 35 In Zwillinger Daniel Moll Victor Hugo eds Table of Integrals Series and Products Translated by Scripta Technica Inc 8 ed Academic Press Inc pp 908 911 ISBN 978 0 12 384933 5 LCCN 2014010276 Jones William B Thron W J 1985 On the computation of incomplete gamma functions in the complex domain J Comput Appl Math 12 13 401 417 doi 10 1016 0377 0427 85 90034 2 MR 0793971 Incomplete gamma function Encyclopedia of Mathematics EMS Press 2001 1994 Mathar Richard J 2004 Numerical representation of the incomplete gamma function of complex valued argument Numerical Algorithms 36 3 247 264 arXiv math 0306184 Bibcode 2004NuAlg 36 247M doi 10 1023 B NUMA 0000040063 91709 58 MR 2091195 S2CID 30860614 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 eds NIST Handbook of Mathematical Functions Cambridge University Press ISBN 978 0 521 19225 5 MR 2723248 Paris R B 2002 A uniform asymptotic expansion for the incomplete gamma function J Comput Appl Math 148 2 323 339 Bibcode 2002JCoAM 148 323P 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 Comput Phys 31 1 146 151 Bibcode 1979JCoPh 31 146T doi 10 1016 0021 9991 79 90066 4 MR 0531128 Tricomi Francesco G 1950 Sulla funzione gamma incompleta Ann Mat Pura Appl 31 263 279 doi 10 1007 BF02428264 MR 0047834 S2CID 120404791 Tricomi F G 1950 Asymptotische Eigenschaften der unvollst Gammafunktion Math Z 53 2 136 148 doi 10 1007 bf01162409 MR 0045253 S2CID 121234109 van Deun Joris Cools Ronald 2006 A stable recurrence for the incomplete gamma function with imaginary second argument Numer Math 104 4 445 456 doi 10 1007 s00211 006 0026 1 MR 2249673 S2CID 43780150 Winitzki Serge 2003 Computing the Incomplete Gamma Function to Arbitrary Precision In Vipin Kumar Marina L Gavrilova Chih Jeng Kenneth Tan Pierre L Ecuyer eds Computational Science and Its Applications ICSSA 2003 International Conference on Computational Science and Its Applications Montreal Canada May 18 21 2003 Proceedings Part I Lecture Notes in Computer Science Vol 2667 pp 790 798 doi 10 1007 3 540 44839 x 83 ISBN 978 3 540 40155 1 MR 2110953 Weisstein Eric W Incomplete Gamma Function MathWorld External links editP a x displaystyle P a x nbsp Regularized Lower Incomplete Gamma Function Calculator Q a x displaystyle Q a x nbsp Regularized Upper Incomplete Gamma Function Calculator g a x displaystyle gamma a x nbsp Lower Incomplete Gamma Function Calculator G a x displaystyle Gamma a x nbsp Upper Incomplete Gamma Function Calculator formulas and identities of the Incomplete Gamma Function functions wolfram com Retrieved from https en wikipedia org w index php title Incomplete gamma function amp oldid 1213298494, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.