The gamma function, denoted by , is a function that extends the factorial through the identity for nonnegative integers . It is defined by an integral when the argument has positive real part and extended to almost all complex numbers by analytic continuation. Its integral representation, functional identities, and asymptotic behavior make it a central function in mathematical analysis and probability. (dlmf.nist.gov)
Integral definition and the factorial relation
For , Euler’s integral defines the gamma function:
Here , with the ordinary real logarithm because . The condition on ensures integrability at zero; exponential decay ensures convergence at infinity. For positive real numbers , the integrand is positive, so . (dlmf.nist.gov)
Integration by parts gives the recurrence relation
Since , induction yields
The shift is important: , not , for positive integers . When factorial notation is extended to noninteger arguments, it conventionally means . (dlmf.nist.gov)
Analytic continuation and singularities
The recurrence extends the function beyond the region where Euler’s integral converges. For an integer chosen so that ,
provided the denominator is nonzero. This agrees with the original integral on their common domain and supplies its analytic continuation. (dlmf.nist.gov)
The resulting function is meromorphic: it is analytic except for simple poles at
At , the residue is
The gamma function has no zeros. Its reciprocal , with the singularities removed, is analytic throughout the complex plane and has simple zeros at precisely the nonpositive integers. Thus analytic continuation does not assign finite gamma values at those poles. (dlmf.nist.gov)
Special values and functional identities
The principal noninteger special value is
Indeed, substituting into Euler’s integral gives
using the Gaussian integral. Repeated application of the recurrence then gives
For example, and . (dlmf.nist.gov)
Euler’s reflection formula relates complementary arguments:
Legendre’s duplication formula is
More generally, Gauss’s multiplication formula, for a positive integer , states
The multiplication identities hold wherever the displayed values are finite, and as identities of meromorphic functions. (dlmf.nist.gov)
Why this extension of factorials is distinguished
Factorial interpolation and the recurrence alone do not determine a unique function. For example, multiplying by a positive period-one function satisfying preserves both the recurrence and the positive-integer values. An additional condition is therefore necessary. (arxiv.org)
The Bohr–Mollerup theorem provides that condition. A positive function on equals if
- ;
- ;
- is a convex function.
This logarithmic convexity distinguishes the gamma function from other factorial interpolations. (dlmf.nist.gov)
Logarithmic convexity can also be seen through the second derivative:
It is therefore strict on the positive real axis. The gamma function has a unique positive-real minimum at approximately , where its value is approximately ; it decreases before this point and increases afterward. (visiblecement.nist.gov)
Product representations
An alternative to the integral definition is Euler’s limit:
The Weierstrass product expresses the reciprocal:
where is the Euler–Mascheroni constant, not the gamma function itself. The product displays the reciprocal’s zeros at zero and the negative integers. The exponential factors compensate for the first-order terms of the individual factors, allowing the infinite product to converge. (dlmf.nist.gov)
Asymptotic behavior
For large positive , Stirling’s approximation gives
Here means that the ratio of the two sides tends to one. A more precise asymptotic expansion is
Equivalently,
These are asymptotic, generally divergent expansions rather than convergent series at a fixed argument. Truncation is essential to their numerical use. Complex versions hold in sectors bounded away from the negative real axis, with appropriate logarithm conventions. (dlmf.nist.gov)
Ratios have a particularly simple leading behavior. For fixed and ,
as in such sectors. This converts many expressions involving gamma functions into power-law estimates. (dlmf.nist.gov)
Related functions
Beta function
The mathematical beta function is defined, for and , by
Its relation to the gamma function is
This identity connects integrals over a finite interval with Euler’s integral over the positive half-line. (dlmf.nist.gov)
Digamma and polygamma functions
The digamma function is the logarithmic derivative
Its successive derivatives are the polygamma functions. In particular, is called the trigamma function. They encode derivatives of expressions containing gamma functions, including the curvature of . (dlmf.nist.gov)
Incomplete gamma functions
For real and , the lower and upper incomplete gamma functions divide Euler’s integral at :
They satisfy
Their normalized forms,
satisfy . The two-argument notation denotes the upper incomplete function, not the ordinary gamma function. (dlmf.nist.gov)
Applications
Probability and statistics
The gamma distribution has probability density
where is the shape and the scale. The denominator normalizes the density. Substitution reduces its total integral to . Its cumulative distribution function is . The chi-squared distribution with degrees of freedom is the case , . (itl.nist.gov)
Geometry and integral representations
In -dimensional Euclidean space, the volume of a ball of radius is
and its boundary has surface measure
Integer and half-integer gamma values place the formulas for both even and odd dimensions in a single expression. (dlmf.nist.gov)
Gamma functions also form the building blocks of Mellin–Barnes integrals, contour representations of many special functions. Moving the integration contour and evaluating residues can produce expansions for small or large arguments, together with integral representations of the error. (dlmf.nist.gov)
Numerical evaluation and limitations
Methods in numerical analysis combine recurrence, series expansions, asymptotic expansions, and reflection. One approach shifts the argument to a region where an asymptotic expansion is accurate and then applies the recurrence backward. Reflection can transfer evaluation from the left half-plane to the right half-plane. Numerical integration provides another approach. (dlmf.nist.gov)
Because grows rapidly, computing can avoid overflow in floating-point arithmetic. Gamma ratios and products can often be evaluated through sums and differences of logarithms rather than through separately computed large values. For complex arguments, an analytic logarithm of requires branch conventions and need not equal the principal logarithm of a computed gamma value. Near poles, formulas must account for the singular behavior rather than treat the function as finite. (dlmf.nist.gov)
Historical development
The gamma function originated in Leonhard Euler’s study of factorial interpolation in the eighteenth century. Euler developed integral and product descriptions and discovered the reflection formula. Legendre derived the duplication formula, while later work supplied global analytic representations and uniqueness characterizations. The development of these properties transformed factorial interpolation into a broader theory linking analysis, geometry, and statistics. (nist.gov)
References
- DLMF: §5.2 Definitionsdlmf.nist.gov
- DLMF: §5.4 Special Values and Extremadlmf.nist.gov
- DLMF: §5.5 Functional Relationsdlmf.nist.gov
- DLMF: §5.8 Infinite Productsdlmf.nist.gov
- DLMF: §5.11 Asymptotic Expansionsdlmf.nist.gov
- DLMF: §5.12 Beta Functiondlmf.nist.gov
- DLMF: §5.15 Polygamma Functionsdlmf.nist.gov
- DLMF: §5.19 Mathematical Applicationsdlmf.nist.gov
- DLMF: §5.21 Methods of Computationdlmf.nist.gov
- DLMF: §8.2 Definitions and Basic Propertiesdlmf.nist.gov
- 1.6.5. Gammaitl.nist.gov
- Gamma and Factorial in the Monthlyarxiv.org