
In
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, the upper and lower incomplete gamma functions are types of
special functions
Special functions are particular mathematical functions that have more or less established names and notations due to their importance in mathematical analysis, functional analysis, geometry, physics, or other applications.
The term is defined by ...
which arise as solutions to various mathematical problems such as certain
integral
In mathematics, an integral is the continuous analog of a Summation, sum, which is used to calculate area, areas, volume, volumes, and their generalizations. Integration, the process of computing an integral, is one of the two fundamental oper ...
s.
Their respective names stem from their integral definitions, which are defined similarly to the
gamma function
In mathematics, the gamma function (represented by Γ, capital Greek alphabet, Greek letter gamma) is the most common extension of the factorial function to complex numbers. Derived by Daniel Bernoulli, the gamma function \Gamma(z) is defined ...
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
The upper incomplete gamma function is defined as:
whereas the lower incomplete gamma function is defined as:
In both cases is a complex parameter, such that the real part of is positive.
Properties
By
integration by parts
In calculus, and more generally in mathematical analysis, integration by parts or partial integration is a process that finds the integral of a product of functions in terms of the integral of the product of their derivative and antiderivati ...
we find the
recurrence relations
In mathematics, a recurrence relation is an equation according to which the nth term of a sequence of numbers is equal to some combination of the previous terms. Often, only k previous terms of the sequence appear in the equation, for a parameter ...
and
Since the ordinary gamma function is defined as
we have
and
Continuation to complex values
The lower incomplete gamma and the upper incomplete gamma function, as defined above for real positive and , can be developed into
holomorphic function
In mathematics, a holomorphic function is a complex-valued function of one or more complex variables that is complex differentiable in a neighbourhood of each point in a domain in complex coordinate space . The existence of a complex de ...
s, with respect both to and , defined for almost all combinations of complex and .
Complex analysis shows how properties of the real incomplete gamma functions extend to their holomorphic counterparts.
Lower incomplete gamma function
=Holomorphic extension
=
Repeated application of the recurrence relation for the lower incomplete gamma function leads to the
power series
In mathematics, a power series (in one variable) is an infinite series of the form
\sum_^\infty a_n \left(x - c\right)^n = a_0 + a_1 (x - c) + a_2 (x - c)^2 + \dots
where ''a_n'' represents the coefficient of the ''n''th term and ''c'' is a co ...
expansion:
Given the rapid growth in
absolute value
In mathematics, the absolute value or modulus of a real number x, is the non-negative value without regard to its sign. Namely, , x, =x if x is a positive number, and , x, =-x if x is negative (in which case negating x makes -x positive), ...
of when , and the fact that the
reciprocal of is an
entire function
In complex analysis, an entire function, also called an integral function, is a complex-valued function that is holomorphic on the whole complex plane. Typical examples of entire functions are polynomials and the exponential function, and any ...
, the coefficients in the rightmost sum are well-defined, and locally the sum
converges uniformly for all complex and . By a theorem of
Weierstrass
Karl Theodor Wilhelm Weierstrass (; ; 31 October 1815 – 19 February 1897) was a German mathematician often cited as the " father of modern analysis". Despite leaving university without a degree, he studied mathematics and trained as a school t ...
,
the limiting function, sometimes denoted as
is
entire
Entire may refer to:
* Entire function, a function that is holomorphic on the whole complex plane
* Entire (animal), an indication that an animal is not neutered
* Entire (botany)
This glossary of botanical terms is a list of definitions o ...
with respect to both (for fixed ) and (for fixed ),
and, thus, holomorphic on by
Hartogs' theorem. Hence, the following ''decomposition''
extends the real lower incomplete gamma function as a
holomorphic function
In mathematics, a holomorphic function is a complex-valued function of one or more complex variables that is complex differentiable in a neighbourhood of each point in a domain in complex coordinate space . The existence of a complex de ...
, both jointly and separately in and . It follows from the properties of
and the
Γ-function, that the first two factors capture the
singularities of
(at or a non-positive integer), whereas the last factor contributes to its zeros.
=Multi-valuedness
=
The
complex logarithm
In mathematics, a complex logarithm is a generalization of the natural logarithm to nonzero complex numbers. The term refers to one of the following, which are strongly related:
* A complex logarithm of a nonzero complex number z, defined to be ...
is determined up to a multiple of only, which renders it
multi-valued
In mathematics, a multivalued function, multiple-valued function, many-valued function, or multifunction, is a function that has two or more values in its range for at least one point in its domain. It is a set-valued function with additional p ...
. Functions involving the complex logarithm typically inherit this property. Among these are the
complex power, and, since 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
In mathematics, particularly in complex analysis, a Riemann surface is a connected one-dimensional complex manifold. These surfaces were first studied by and are named after Bernhard Riemann. Riemann surfaces can be thought of as deformed vers ...
. 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
A branch, also called a ramus in botany, is a stem that grows off from another stem, or when structures like veins in leaves are divided into smaller veins.
History and etymology
In Old English, there are numerous words for branch, includi ...
, 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
Sectors in having their vertex at often prove to be appropriate domains for complex expressions. A sector consists of all complex fulfilling and with some and . 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 and pointing into the direction of , usually serving as a
branch cut
In the mathematical field of complex analysis, a branch point of a multivalued function is a point such that if the function is n-valued (has n values) at that point, all of its neighborhoods contain a point that has more than n values. Multi-valu ...
. Note: In many applications and texts, is silently taken to be 0, which centers the sector around the positive real axis.
Branches
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, and the incomplete gamma functions in turn collapse to single-valued, holomorphic functions on (or ), called branches of their multi-valued counterparts on D. Adding a multiple of to yields a different set of correlated branches on the same set . 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
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
,
for a suitable integer.
=Behavior near branch point
=
The decomposition above further shows, that γ behaves near
asymptotic
In analytic geometry, an asymptote () of a curve is a line such that the distance between the curve and the line approaches zero as one or both of the ''x'' or ''y'' coordinates Limit of a function#Limits at infinity, tends to infinity. In pro ...
ally like:
For positive real , and , , when . This seems to justify setting for real . However, matters are somewhat different in the complex realm. Only if (a) the real part of is positive, and (b) values are taken from just a finite set of branches, they are guaranteed to converge to zero as , and so does . On a single
branch
A branch, also called a ramus in botany, is a stem that grows off from another stem, or when structures like veins in leaves are divided into smaller veins.
History and etymology
In Old English, there are numerous words for branch, includ ...
of is naturally fulfilled, so there for with positive real part is a
continuous limit. Also note that such a continuation is by no means an
analytic one.
=Algebraic relations
=
All algebraic relations and differential equations observed by the real 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
are preserved on corresponding branches.
=Integral representation
=
The last relation tells us, that, for fixed , is a
primitive or antiderivative of the holomorphic function . Consequently, for any complex ,
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 is positive, then the limit for 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 and .
=Limit for
=
Real values
Given the integral representation of a principal branch of , the following equation holds for all positive real , :
''s'' complex
This result extends to complex . Assume first and . Then
where
has been used in the middle. Since the final integral becomes arbitrarily small if only is large enough, converges uniformly for on the strip towards a holomorphic function,
which must be Γ(s) because of the identity theorem. Taking the limit in the recurrence relation and noting, that lim for and all , shows, that converges outside the strip, too, towards a function obeying the recurrence relation of the Γ-function. It follows
for all complex not a non-positive integer, real and principal.
Sectorwise convergence
Now let be from the sector with some fixed (), be the principal branch on this sector, and look at
As shown above, the first difference can be made arbitrarily small, if is sufficiently large. The second difference allows for following estimation:
where we made use of the integral representation of and the formula about above. If we integrate along the arc with radius around 0 connecting and , then the last integral is
where is a constant independent of or . Again referring to the behavior of for large , we see that the last expression approaches 0 as increases towards .
In total we now have:
if is not a non-negative integer, is arbitrarily small, but fixed, and denotes the principal branch on this domain.
=Overview
=
is:
*
entire
Entire may refer to:
* Entire function, a function that is holomorphic on the whole complex plane
* Entire (animal), an indication that an animal is not neutered
* Entire (botany)
This glossary of botanical terms is a list of definitions o ...
in for fixed, positive integer ;
* multi-valued
holomorphic
In mathematics, a holomorphic function is a complex-valued function of one or more complex variables that is complex differentiable in a neighbourhood of each point in a domain in complex coordinate space . The existence of a complex deri ...
in for fixed not an integer, with a
branch point
In the mathematical field of complex analysis, a branch point of a multivalued function is a point such that if the function is n-valued (has n values) at that point, all of its neighborhoods contain a point that has more than n values. Multi-valu ...
at ;
* on each branch
meromorphic in for fixed , with simple poles at non-positive integers s.
Upper incomplete gamma function
As for the upper incomplete gamma function, a
holomorphic
In mathematics, a holomorphic function is a complex-valued function of one or more complex variables that is complex differentiable in a neighbourhood of each point in a domain in complex coordinate space . The existence of a complex deri ...
extension, with respect to or , is given by
at points , 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 is a non-positive integer in the above equation, neither part of the difference is defined, and a
limiting process, here developed for , fills in the missing values.
Complex analysis
Complex analysis, traditionally known as the theory of functions of a complex variable, is the branch of mathematical analysis that investigates functions of complex numbers. It is helpful in many branches of mathematics, including algebraic ...
guarantees
holomorphicity, because
proves to be
bounded in a
neighbourhood
A neighbourhood (Commonwealth English) or neighborhood (American English) is a geographically localized community within a larger town, city, suburb or rural area, sometimes consisting of a single street and the buildings lining it. Neighbourh ...
of that limit for a fixed .
To determine the limit, the power series of
at is useful. When replacing
by its power series in the integral definition of
, one obtains (assume , positive reals for now):
or
which, as a series representation of the entire
function, converges for all complex (and all complex not a non-positive integer).
With its restriction to real values lifted, the series allows the expansion:
When :
(
is the
Euler–Mascheroni constant
Euler's constant (sometimes called the Euler–Mascheroni constant) is a mathematical constant, usually denoted by the lowercase Greek letter gamma (), defined as the limiting difference between the harmonic series and the natural logarith ...
here), hence,
is the limiting function to the upper incomplete gamma function as , also known as the
exponential integral
In mathematics, the exponential integral Ei is a special function on the complex plane.
It is defined as one particular definite integral of the ratio between an exponential function and its argument.
Definitions
For real non-zero values of&nb ...
By way of the recurrence relation, values of
for positive integers can be derived from this result,
so the upper incomplete gamma function proves to exist and be holomorphic, with respect both to and , for all and .
is:
*
entire
Entire may refer to:
* Entire function, a function that is holomorphic on the whole complex plane
* Entire (animal), an indication that an animal is not neutered
* Entire (botany)
This glossary of botanical terms is a list of definitions o ...
in for fixed, positive integral ;
* multi-valued
holomorphic
In mathematics, a holomorphic function is a complex-valued function of one or more complex variables that is complex differentiable in a neighbourhood of each point in a domain in complex coordinate space . The existence of a complex deri ...
in for fixed non zero and not a positive integer, with a
branch point
In the mathematical field of complex analysis, a branch point of a multivalued function is a point such that if the function is n-valued (has n values) at that point, all of its neighborhoods contain a point that has more than n values. Multi-valu ...
at ;
* equal to
for with positive real part and (the limit when
), but this is a continuous extension, not an
analytic one (does not hold for real !);
* on each branch
entire
Entire may refer to:
* Entire function, a function that is holomorphic on the whole complex plane
* Entire (animal), an indication that an animal is not neutered
* Entire (botany)
This glossary of botanical terms is a list of definitions o ...
in for fixed .
Special values
*
if is a positive
integer
An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
,
*
if is a positive
integer
An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
,
*
,
*
,
*
,
*
for
,
*
,
*
,
*
.
Here,
is the
exponential integral
In mathematics, the exponential integral Ei is a special function on the complex plane.
It is defined as one particular definite integral of the ratio between an exponential function and its argument.
Definitions
For real non-zero values of&nb ...
,
is the
generalized exponential integral,
is the
error function
In mathematics, the error function (also called the Gauss error function), often denoted by , is a function \mathrm: \mathbb \to \mathbb defined as:
\operatorname z = \frac\int_0^z e^\,\mathrm dt.
The integral here is a complex Contour integrat ...
, and
is the
complementary error function
In mathematics, the error function (also called the Gauss error function), often denoted by , is a function \mathrm: \mathbb \to \mathbb defined as:
\operatorname z = \frac\int_0^z e^\,\mathrm dt.
The integral here is a complex Contour integrat ...
,
.
Asymptotic behavior
*
as
,
*
as
and
(for real , the error of is on the order of if and if ),
*
as an
asymptotic series
In mathematics, an asymptotic expansion, asymptotic series or Poincaré expansion (after Henri Poincaré) is a formal series of functions which has the property that truncating the series after a finite number of terms provides an approximation t ...
where
and
.
*
as an
asymptotic series
In mathematics, an asymptotic expansion, asymptotic series or Poincaré expansion (after Henri Poincaré) is a formal series of functions which has the property that truncating the series after a finite number of terms provides an approximation t ...
where
and
, where
, where
is the
Euler-Mascheroni constant
Euler's constant (sometimes called the Euler–Mascheroni constant) is a mathematical constant, usually denoted by the lowercase Greek letter gamma (), defined as the limiting difference between the harmonic series and the natural logarith ...
.
*
as
,
*
as
,
*
as an
asymptotic series
In mathematics, an asymptotic expansion, asymptotic series or Poincaré expansion (after Henri Poincaré) is a formal series of functions which has the property that truncating the series after a finite number of terms provides an approximation t ...
where
and
.
Evaluation formulae
The lower gamma function can be evaluated using the power series expansion:
where
is the
Pochhammer symbol
In mathematics, the falling factorial (sometimes called the descending factorial, falling sequential product, or lower factorial) is defined as the polynomial
\begin
(x)_n = x^\underline &= \overbrace^ \\
&= \prod_^n(x-k+1) = \prod_^(x-k) .
\end ...
.
An alternative expansion is
where is Kummer's
confluent hypergeometric function
In mathematics, a confluent hypergeometric function is a solution of a confluent hypergeometric equation, which is a degenerate form of a hypergeometric differential equation where two of the three regular singularities merge into an irregular s ...
.
Connection with Kummer's confluent hypergeometric function
When the real part of is positive,
where
has an infinite radius of convergence.
Again with
confluent hypergeometric functions
In mathematics, a confluent hypergeometric function is a solution of a confluent hypergeometric equation, which is a degenerate form of a hypergeometric differential equation where two of the three regular singularities merge into an irregular s ...
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 , provided only that is not a negative integer.
The upper gamma function has the continued fraction
and
Multiplication theorem
The following
multiplication theorem
In mathematics, the multiplication theorem is a certain type of identity obeyed by many special functions related to the gamma function. For the explicit case of the gamma function, the identity is a product of values; thus the name. The various ...
holds true:
Software implementation
The incomplete gamma functions are available in various of the
computer algebra system
A computer algebra system (CAS) or symbolic algebra system (SAS) is any mathematical software with the ability to manipulate mathematical expressions in a way similar to the traditional manual computations of mathematicians and scientists. The de ...
s.
Even if unavailable directly, however, incomplete function values can be calculated using functions commonly included in
spreadsheet
A spreadsheet is a computer application for computation, organization, analysis and storage of data in tabular form. Spreadsheets were developed as computerized analogs of paper accounting worksheets. The program operates on data entered in c ...
s (and computer algebra packages). In
Excel, for example, these can be calculated using the
gamma function
In mathematics, the gamma function (represented by Γ, capital Greek alphabet, Greek letter gamma) is the most common extension of the factorial function to complex numbers. Derived by Daniel Bernoulli, the gamma function \Gamma(z) is defined ...
combined with the
gamma distribution
In probability theory and statistics, the gamma distribution is a versatile two-parameter family of continuous probability distributions. The exponential distribution, Erlang distribution, and chi-squared distribution are special cases of the g ...
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 , however, it does not support negative values for the first argument. The function from the mpmath library supports all complex arguments.
Regularized gamma functions and Poisson random variables
Two related functions are the regularized gamma functions:
is the
cumulative distribution function
In probability theory and statistics, the cumulative distribution function (CDF) of a real-valued random variable X, or just distribution function of X, evaluated at x, is the probability that X will take a value less than or equal to x.
Ever ...
for
gamma random variables with
shape parameter
In probability theory and statistics, a shape parameter (also known as form parameter) is a kind of numerical parameter of a parametric family of probability distributionsEveritt B.S. (2002) Cambridge Dictionary of Statistics. 2nd Edition. CUP.
th ...
and
scale parameter
In probability theory and statistics, a scale parameter is a special kind of numerical parameter of a parametric family of probability distributions. The larger the scale parameter, the more spread out the distribution.
Definition
If a family ...
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
and
gammaincc
in
scipy
SciPy (pronounced "sigh pie") is a free and open-source Python library used for scientific computing and technical computing.
SciPy contains modules for optimization, linear algebra, integration, interpolation, special functions, fast Fourier ...
.
Derivatives
Using the integral representation above, the derivative of the upper incomplete gamma function
with respect to is
The derivative with respect to its first argument
is given by
and the second derivative by