HOME

TheInfoList



OR:

In
mathematics Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented in modern mathematics ...
, the gamma function (represented by , the capital letter
gamma Gamma (uppercase , lowercase ; ''gámma'') is the third letter of the Greek alphabet. In the system of Greek numerals it has a value of 3. In Ancient Greek, the letter gamma represented a voiced velar stop . In Modern Greek, this letter re ...
from the
Greek alphabet The Greek alphabet has been used to write the Greek language since the late 9th or early 8th century BCE. It is derived from the earlier Phoenician alphabet, and was the earliest known alphabetic script to have distinct letters for vowels as ...
) is one commonly used extension of the
factorial function In mathematics, the factorial of a non-negative denoted is the product of all positive integers less than or equal The factorial also equals the product of n with the next smaller factorial: \begin n! &= n \times (n-1) \times (n-2) \t ...
to
complex number In mathematics, a complex number is an element of a number system that extends the real numbers with a specific element denoted , called the imaginary unit and satisfying the equation i^= -1; every complex number can be expressed in the for ...
s. The gamma function is defined for all complex numbers except the non-positive integers. For every
positive integer In mathematics, the natural numbers are those numbers used for counting (as in "there are ''six'' coins on the table") and ordering (as in "this is the ''third'' largest city in the country"). Numbers used for counting are called ''cardinal n ...
, \Gamma(n) = (n-1)!\,. Derived by Daniel Bernoulli, for complex numbers with a positive real part, the gamma function is defined via a convergent improper integral: \Gamma(z) = \int_0^\infty t^ e^\,dt, \ \qquad \Re(z) > 0\,. The gamma function then is defined as the analytic continuation of this integral function to a meromorphic function that is holomorphic in the whole complex plane except zero and the negative integers, where the function has simple
poles Poles,, ; singular masculine: ''Polak'', singular feminine: ''Polka'' or Polish people, are a West Slavic nation and ethnic group, who share a common history, culture, the Polish language and are identified with the country of Poland in Cen ...
. The gamma function has no zeroes, so the reciprocal gamma function is an entire function. In fact, the gamma function corresponds to the Mellin transform of the negative exponential function: \Gamma(z) = \mathcal M \ (z)\,. Other extensions of the factorial function do exist, but the gamma function is the most popular and useful. It is a component in various probability-distribution functions, and as such it is applicable in the fields of
probability Probability is the branch of mathematics concerning numerical descriptions of how likely an Event (probability theory), event is to occur, or how likely it is that a proposition is true. The probability of an event is a number between 0 and ...
and
statistics Statistics (from German language, German: ''wikt:Statistik#German, Statistik'', "description of a State (polity), state, a country") is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of ...
, as well as combinatorics.


Motivation

The gamma function can be seen as a solution to the following
interpolation In the mathematical field of numerical analysis, interpolation is a type of estimation, a method of constructing (finding) new data points based on the range of a discrete set of known data points. In engineering and science, one often has a n ...
problem: : "Find a smooth curve that connects the points  given by at the positive integer values for ." A plot of the first few factorials makes clear that such a curve can be drawn, but it would be preferable to have a formula that precisely describes the curve, in which the number of operations does not depend on the size of . The simple formula for the factorial, , cannot be used directly for non-integer values of since it is only valid when is a
natural number In mathematics, the natural numbers are those numbers used for counting (as in "there are ''six'' coins on the table") and ordering (as in "this is the ''third'' largest city in the country"). Numbers used for counting are called '' cardinal ...
(or positive integer). There are, relatively speaking, no such simple solutions for factorials; no finite combination of sums, products, powers, exponential functions, or
logarithm In mathematics, the logarithm is the inverse function to exponentiation. That means the logarithm of a number  to the base  is the exponent to which must be raised, to produce . For example, since , the ''logarithm base'' 10 of ...
s will suffice to express ; but it is possible to find a general formula for factorials using tools such as
integral In mathematics, an integral assigns numbers to functions in a way that describes displacement, area, volume, and other concepts that arise by combining infinitesimal data. The process of finding integrals is called integration. Along with ...
s and limits from
calculus Calculus, originally called infinitesimal calculus or "the calculus of infinitesimals", is the mathematics, mathematical study of continuous change, in the same way that geometry is the study of shape, and algebra is the study of generalizati ...
. A good solution to this is the gamma function. There are infinitely many continuous extensions of the factorial to non-integers: infinitely many curves can be drawn through any set of isolated points. The gamma function is the most useful solution in practice, being analytic (except at the non-positive integers), and it can be defined in several equivalent ways. However, it is not the only analytic function which extends the factorial, as adding to it any analytic function which is zero on the positive integers, such as for an integer , will give another function with that property. Such a function is known as a pseudogamma function, the most famous being the Hadamard function. A more restrictive property than satisfying the above interpolation is to satisfy the recurrence relation defining a translated version of the factorial function, :f(1) = 1, :f(x+1) = x f(x), for any positive real number . But this would allow for multiplication by any function satisfying both for all real numbers and , such as the function . One of several ways to resolve the ambiguity comes from the Bohr–Mollerup theorem. It states that when the condition that be
logarithmically convex In mathematics, a function ''f'' is logarithmically convex or superconvex if \circ f, the composition of the logarithm with ''f'', is itself a convex function. Definition Let be a convex subset of a real vector space, and let be a function tak ...
(or "super-convex," meaning that \ln \circ f is convex) is added, it uniquely determines for positive, real inputs. From there, the gamma function can be extended to all real and complex values (except the negative integers and zero) by using the unique analytic continuation of .


Definition


Main definition

The notation \Gamma (z) is due to Legendre. If the real part of the complex number  is strictly positive (\Re (z) > 0), then the
integral In mathematics, an integral assigns numbers to functions in a way that describes displacement, area, volume, and other concepts that arise by combining infinitesimal data. The process of finding integrals is called integration. Along with ...
: \Gamma(z) = \int_0^\infty t^ e^\, dt
converges absolutely In mathematics, an infinite series of numbers is said to converge absolutely (or to be absolutely convergent) if the sum of the absolute values of the summands is finite. More precisely, a real or complex series \textstyle\sum_^\infty a_n is s ...
, and is known as the Euler integral of the second kind. (Euler's integral of the first kind is the beta function.) Using integration by parts, one sees that: :\begin \Gamma(z+1) & = \int_0^\infty t^ e^ \, dt \\ &= \Bigl t^z e^\Bigr0^\infty + \int_0^\infty z t^ e^\, dt \\ &= \lim_\left(-t^z e^\right) - \left(-0^z e^\right) + z\int_0^\infty t^ e^\, dt. \end Recognizing that -t^z e^\to 0 as t\to \infty, :\begin \Gamma(z+1) & = z\int_0^\infty t^ e^\, dt \\ &= z\Gamma(z). \end We can calculate :\begin \Gamma(1) & = \int_0^\infty t^ e^\,dt \\ & = \int_0^\infty e^ \, dt \\ &= \Big e^\Big0^\infty \\ & = \lim_ \left(-e^\right) - \left(-e^\right) \\ & = 0 - (-1) \\ & = 1. \end Given that \Gamma(1) = 1 and \Gamma(n+1) = n\Gamma(n), :\Gamma(n) = 1 \cdot 2 \cdot 3 \cdots (n-1) = (n-1)! for all positive integers . This can be seen as an example of proof by induction. The identity \Gamma(z) = \frac can be used (or, yielding the same result, analytic continuation can be used) to uniquely extend the integral formulation for \Gamma (z) to a meromorphic function defined for all complex numbers , except integers less than or equal to zero. It is this extended version that is commonly referred to as the gamma function.


Alternative definitions


Euler's definition as an infinite product

When seeking to approximate z! for a complex number z, it is effective to first compute n! for some large integer n. Use that to approximate a value for (n+z)!, and then use the recursion relation m! = m(m-1)! backwards n times, to unwind it to an approximation for z!. Furthermore, this approximation is exact in the limit as n goes to infinity. Specifically, for a fixed integer m, it is the case that :\lim_ \frac = 1\,. If m is not an integer then it is not possible to say whether this equation is true because we have not yet (in this section) defined the factorial function for non-integers. However, we do get a unique extension of the factorial function to the non-integers by insisting that this equation continue to hold when the arbitrary integer m is replaced by an arbitrary complex number z. :\lim_ \frac = 1\,. Multiplying both sides by z! gives :\begin z! &= \lim_ n!\frac (n+1)^z \\ pt &= \lim_ (1 \cdots n)\frac \left(\frac \cdot \frac \cdots \frac\right)^z \\ pt &= \prod_^\infty \left \frac \left(1 + \frac\right)^z \right \end This infinite product converges for all complex numbers z except the negative integers, which fail because trying to use the recursion relation m! = m(m - 1)! backwards through the value m=0 involves a division by zero. Similarly for the gamma function, the definition as an infinite product due to
Euler Leonhard Euler ( , ; 15 April 170718 September 1783) was a Swiss mathematician, physicist, astronomer, geographer, logician and engineer who founded the studies of graph theory and topology and made pioneering and influential discoveries in ma ...
is valid for all complex numbers z except the non-positive integers: :\Gamma(z) = \frac \prod_^ \frac \,. By this construction, the gamma function is the unique function that simultaneously satisfies \Gamma(1) = 1, \Gamma(z+1) = z \Gamma(z) for all complex numbers z except the non-positive integers, and \lim_ \frac = 1 for all complex numbers z.


Weierstrass's definition

The definition for the gamma function due to Weierstrass is also valid for all complex numbers  except the non-positive integers: :\Gamma(z) = \frac z \prod_^\infty \left(1 + \frac z n \right)^ e^, where \gamma \approx 0.577216 is the Euler–Mascheroni constant. This is the Hadamard product of 1/\Gamma(z) in a rewritten form. Indeed, since 1/\Gamma(z) is entire of genus 1 with a simple zero at z=0, we have the product representation :\frac = z e^ \prod_ \left(1-\frac \right)e^, where the product is over the zeros \rho\neq0 of 1/\Gamma(z). Since \Gamma(z) has simple poles at the non-positive integers, it follows 1/\Gamma(z) has simple zeros at the nonpositive integers, and so the equation above becomes Weierstrass's formula with -Az-B in place of -\gamma z. The derivation of the constants A=\gamma and B=0 is somewhat technical, but can be accomplished by using some identities involving the
Riemann zeta function The Riemann zeta function or Euler–Riemann zeta function, denoted by the Greek letter (zeta), is a mathematical function of a complex variable defined as \zeta(s) = \sum_^\infty \frac = \frac + \frac + \frac + \cdots for \operatorname(s) > ...
(see this identity, for instance). See also the
Weierstrass factorization theorem In mathematics, and particularly in the field of complex analysis, the Weierstrass factorization theorem asserts that every entire function can be represented as a (possibly infinite) product involving its zeroes. The theorem may be viewed as an e ...
.


Properties


General

Other important functional equations for the gamma function are Euler's reflection formula :\Gamma(1-z) \Gamma(z) = \frac, \qquad z \not\in \Z which implies :\Gamma(z - n) = (-1)^ \; \frac, \qquad n \in \Z and the Legendre duplication formula :\Gamma(z) \Gamma\left(z + \tfrac12\right) = 2^ \; \sqrt \; \Gamma(2z). Since e^=\lim_ \left(1-\frac\right)^n, the gamma function can be represented as : \Gamma (z)=\lim_\int_0^n t^\left(1-\frac\right)^n \, dt. Integrating by parts n times yields : \Gamma (z)=\lim_ \frac \cdot \frac \cdot \frac \cdots \frac \int_0^n t^ \, dt, which is equal to : \Gamma (z)=\lim_\frac\left(\prod_^n (z+k)^\right) n^. This can be rewritten as : \Gamma (z)=\lim_ \frac\prod_^n \frac=\lim_ \frac \prod_^n \frac. We can use this to evaluate the left-hand side of the reflection formula: : \Gamma (1-z)\Gamma (z)=-z\Gamma (-z)\Gamma (z)=\lim_\frac\prod_^n \frac. It can be proved that : \sin \pi z=\pi z\prod_^\infty \left(1-\frac\right). Then : \frac=\lim_ \frac \prod_^n \frac. Euler's reflection formula follows: : \Gamma (1-z)\Gamma (z)=\frac,\qquad z \not \in \mathbb Z. The beta function can be represented as : \Beta (z_1,z_2)=\frac=\int_0^1 t^(1-t)^ \, dt. Setting z_1=z_2=z yields : \frac=\int_0^1 t^(1-t)^ \, dt. After the substitution t=\frac we get : \frac=\frac\int_^1 \left(1-u^\right)^ \, du. The function (1-u^2)^ is even, hence : 2^\Gamma^2(z)=2\Gamma (2z)\int_0^1 (1-u^2)^ \, du. Now assume : \Beta \left(\frac,z\right)=\int_0^1 t^(1-t)^ \, dt, \quad t=s^2. Then : \Beta \left(\frac,z\right)=2\int_0^1 (1-s^2)^ \, ds = 2\int_0^1 (1-u^2)^ \, du. This implies : 2^\Gamma^2(z)=\Gamma (2z)\Beta \left(\frac,z\right). Since : \Beta \left(\frac,z\right)=\frac, \quad \Gamma \left(\frac\right)=\sqrt, the Legendre duplication formula follows: : \Gamma (z)\Gamma \left(z+\frac\right)=2^\sqrt \; \Gamma (2z). The duplication formula is a special case of the multiplication theorem (See, Eq. 5.5.6) :\prod_^\Gamma\left(z + \frac\right) = (2 \pi)^ \; m^ \; \Gamma(mz). A simple but useful property, which can be seen from the limit definition, is: :\overline = \Gamma(\overline) \; \Rightarrow \; \Gamma(z)\Gamma(\overline) \in \mathbb . In particular, with , this product is :, \Gamma(a+bi), ^2 = , \Gamma(a), ^2 \prod_^\infty \frac If the real part is an integer or a half-integer, this can be finitely expressed in closed form: : \begin , \Gamma(bi), ^2 & = \frac \\ pt\left, \Gamma\left(\tfrac+bi\right)\^2 & = \frac \\ \left, \Gamma\left(1+bi\right)\^2 & = \frac \\ \left, \Gamma\left(1+n+bi\right)\^2 & = \frac \prod_^n \left(k^2 + b^2 \right), \quad n \in \N \\ \left, \Gamma\left(-n+bi\right)\^2 & = \frac \prod_^n \left(k^2 + b^2 \right)^, \quad n \in \N \\ \left, \Gamma\left(\tfrac \pm n+bi\right)\^2 & = \frac \prod_^n \left(\left( k-\tfrac\right)^2 + b^2 \right)^, \quad n \in \N \end First, consider the reflection formula applied to z=bi. :\Gamma(bi)\Gamma(1-bi)=\frac Applying the recurrence relation to the second term, we have :-bi \cdot \Gamma(bi)\Gamma(-bi)=\frac which with simple rearrangement gives :\Gamma(bi)\Gamma(-bi)=\frac=\frac Second, consider the reflection formula applied to z=\tfrac+bi. :\Gamma(\tfrac+bi)\Gamma\left(1-(\tfrac+bi)\right)=\Gamma(\tfrac+bi)\Gamma(\tfrac-bi)=\frac=\frac=\frac Formulas for other values of z for which the real part is integer or half-integer quickly follow by induction using the recurrence relation in the positive and negative directions. Perhaps the best-known value of the gamma function at a non-integer argument is :\Gamma\left(\tfrac12\right)=\sqrt, which can be found by setting z = \frac in the reflection or duplication formulas, by using the relation to the beta function given below with z_1 = z_2 = \frac, or simply by making the substitution u = \sqrt in the integral definition of the gamma function, resulting in a Gaussian integral. In general, for non-negative integer values of n we have: :\begin \Gamma\left(\tfrac 1 2 + n\right) &= \sqrt = \frac \sqrt = \binom n! \sqrt \\ pt\Gamma\left(\tfrac 1 2 - n\right) &= \sqrt = \frac \sqrt = \frac \end where the
double factorial In mathematics, the double factorial or semifactorial of a number , denoted by , is the product of all the integers from 1 up to that have the same parity (odd or even) as . That is, :n!! = \prod_^ (n-2k) = n (n-2) (n-4) \cdots. For even , the ...
(2n-1)!! = (2n-1)(2n-3)\cdots(3)(1). See Particular values of the gamma function for calculated values. It might be tempting to generalize the result that \Gamma \left( \frac \right) = \sqrt\pi by looking for a formula for other individual values \Gamma(r) where r is rational, especially because according to
Gauss's digamma theorem In mathematics, the digamma function is defined as the logarithmic derivative of the gamma function: :\psi(x)=\frac\ln\big(\Gamma(x)\big)=\frac\sim\ln-\frac. It is the first of the polygamma functions. It is strictly increasing and strict ...
, it is possible to do so for the closely related digamma function at every rational value. However, these numbers \Gamma(r) are not known to be expressible by themselves in terms of elementary functions. It has been proved that \Gamma (n + r) is a transcendental number and algebraically independent of \pi for any integer n and each of the fractions r = \frac, \frac, \frac, \frac, \frac, \frac. In general, when computing values of the gamma function, we must settle for numerical approximations. The derivatives of the gamma function are described in terms of the polygamma function, : :\Gamma'(z)=\Gamma(z)\psi^(z). For a positive integer  the derivative of the gamma function can be calculated as follows: :\Gamma'(m+1) = m! \left( - \gamma + \sum_^m\frac \right)= m! \left( - \gamma + H(m) \right)\,, where H(m) is the mth harmonic number and is the Euler–Mascheroni constant. For \Re(z) > 0 the nth derivative of the gamma function is: :\frac\Gamma(z) = \int_0^\infty t^ e^ (\ln t)^n \, dt. (This can be derived by differentiating the integral form of the gamma function with respect to z, and using the technique of differentiation under the integral sign.) Using the identity :\Gamma^(1)=(-1)^n n!\sum\limits_\,\prod_^r\frac \qquad \zeta^*(x):=\begin\zeta(x)&x\ne1\\ \gamma&x=1\end where \zeta(z) is the
Riemann zeta function The Riemann zeta function or Euler–Riemann zeta function, denoted by the Greek letter (zeta), is a mathematical function of a complex variable defined as \zeta(s) = \sum_^\infty \frac = \frac + \frac + \frac + \cdots for \operatorname(s) > ...
, and \pi is a partition of n given by :\pi=\underbrace_ + \cdots + \underbrace_, we have in particular the
Laurent series In mathematics, the Laurent series of a complex function f(z) is a representation of that function as a power series which includes terms of negative degree. It may be used to express complex functions in cases where a Taylor series expansion c ...
expansion of the gamma function :\Gamma(z) = \frac1z - \gamma + \tfrac12\left(\gamma^2 + \frac 6\right)z - \tfrac16\left(\gamma^3 + \frac 2 + 2 \zeta(3)\right)z^2 + O(z^3).


Inequalities

When restricted to the positive real numbers, the gamma function is a strictly
logarithmically convex function In mathematics, a function (mathematics), function ''f'' is logarithmically convex or superconvex if \circ f, the function composition, composition of the logarithm with ''f'', is itself a convex function. Definition Let be a convex set, convex su ...
. This property may be stated in any of the following three equivalent ways: * For any two positive real numbers x_1 and x_2, and for any t \in , 1/math>, \Gamma(tx_1 + (1 - t)x_2) \le \Gamma(x_1)^t\Gamma(x_2)^. * For any two positive real numbers x_1 and x_2, and x_2 > x_1 \left(\frac\right)^ > \exp\left(\frac\right). * For any positive real number x, \Gamma''(x) \Gamma(x) > \Gamma'(x)^2. The last of these statements is, essentially by definition, the same as the statement that \psi^(x) > 0, where \psi^ is the polygamma function of order 1. To prove the logarithmic convexity of the gamma function, it therefore suffices to observe that \psi^ has a series representation which, for positive real , consists of only positive terms. Logarithmic convexity and
Jensen's inequality In mathematics, Jensen's inequality, named after the Danish mathematician Johan Jensen, relates the value of a convex function of an integral to the integral of the convex function. It was proved by Jensen in 1906, building on an earlier pr ...
together imply, for any positive real numbers x_1, \ldots, x_n and a_1, \ldots, a_n, \Gamma\left(\frac\right) \le \bigl(\Gamma(x_1)^ \cdots \Gamma(x_n)^\bigr)^. There are also bounds on ratios of gamma functions. The best-known is
Gautschi's inequality In real analysis, a branch of mathematics, Gautschi's inequality is an inequality for ratios of gamma functions. It is named after Walter Gautschi. Statement Let be a positive real number, and let . Then :x^ < \frac < (x + 1)^.


, which says that for any positive real number and any , x^ < \frac < \left(x + 1\right)^.


Stirling's formula

The behavior of \Gamma(x) for an increasing positive real variable is given by Stirling's formula :\Gamma(x+1)\sim\sqrt\left(\frac\right)^x, where the symbol \sim means asymptotic convergence; the ratio of the two sides converges to 1 in the limit This growth is faster than exponential, \exp(\beta x), for any fixed value of \beta. Another useful limit for asymptotic approximations for x \to + \infty is: : \sim, \qquad \alpha \in \Complex.


Residues

The behavior for non-positive z is more intricate. Euler's integral does not converge for but the function it defines in the positive complex half-plane has a unique analytic continuation to the negative half-plane. One way to find that analytic continuation is to use Euler's integral for positive arguments and extend the domain to negative numbers by repeated application of the recurrence formula, :\Gamma(z)=\frac, choosing n such that z + n is positive. The product in the denominator is zero when z equals any of the integers 0, -1, -2, \ldots. Thus, the gamma function must be undefined at those points to avoid division by zero; it is a meromorphic function with
simple pole In complex analysis (a branch of mathematics), a pole is a certain type of singularity of a complex-valued function of a complex variable. In some sense, it is the simplest type of singularity. Technically, a point is a pole of a function if i ...
s at the non-positive integers. For a function f of a complex variable z, at a
simple pole In complex analysis (a branch of mathematics), a pole is a certain type of singularity of a complex-valued function of a complex variable. In some sense, it is the simplest type of singularity. Technically, a point is a pole of a function if i ...
c, the residue of f is given by: :\operatorname(f,c)=\lim_(z-c)f(z). For the simple pole z = -n, we rewrite recurrence formula as: :(z+n) \Gamma(z)=\frac. The numerator at z = -n, is :\Gamma(z+n+1) = \Gamma(1) = 1 and the denominator :z(z+1)\cdots(z+n-1) = -n(1-n)\cdots(n-1-n) = (-1)^n n!. So the residues of the gamma function at those points are: :\operatorname(\Gamma,-n)=\frac. The gamma function is non-zero everywhere along the real line, although it comes arbitrarily close to zero as . There is in fact no complex number z for which \Gamma (z) = 0, and hence the reciprocal gamma function \frac is an entire function, with zeros at z = 0, -1, -2, \ldots.


Minima and maxima

On the real line, the gamma function has a local minimum at where it attains the value . The gamma function rises to either side of this minimum. The solution to is and the common value is . The positive solution to is , the
golden ratio In mathematics, two quantities are in the golden ratio if their ratio is the same as the ratio of their sum to the larger of the two quantities. Expressed algebraically, for quantities a and b with a > b > 0, where the Greek letter phi ( ...
, and the common value is . The gamma function must alternate sign between its poles at the non-positive integers because the product in the forward recurrence contains an odd number of negative factors if the number of poles between z and z + n is odd, and an even number if the number of poles is even. The extrema values of the Gamma function between the non-positive integers are , , , , , etc.


Integral representations

There are many formulas, besides the Euler integral of the second kind, that express the gamma function as an integral. For instance, when the real part of is positive, :\Gamma(z) = \int_0^1 \left(\log \frac\right)^\,dt. where \log denotes the complex logarithm. Binet's first integral formula for the gamma function states that, when the real part of is positive, then: :\log \Gamma(z) = \left(z - \frac\right)\log z - z + \frac\ln(2\pi) + \int_0^\infty \left(\frac - \frac + \frac\right)\frac\,dt. The integral on the right-hand side may be interpreted as a Laplace transform. That is, :\log\left(\Gamma(z)\left(\frac\right)^z\sqrt\right) = \mathcal\left(\frac - \frac + \frac\right)(z). Binet's second integral formula states that, again when the real part of is positive, then: :\log \Gamma(z) = \left(z - \frac\right)\log z - z + \frac\ln(2\pi) + 2\int_0^\infty \frac\,dt. Let be a Hankel contour, meaning a path that begins and ends at the point on the Riemann sphere, whose unit tangent vector converges to at the start of the path and to at the end, which has winding number 1 around , and which does not cross . Fix a branch of \log(-t) by taking a branch cut along and by taking \log(-t) to be real when is on the negative real axis. Assume is not an integer. Then Hankel's formula for the gamma function is: :\Gamma(z) = -\frac\int_C (-t)^e^\,dt, where (-t)^ is interpreted as \exp((z-1)\log(-t)). The reflection formula leads to the closely related expression :\frac = \frac\int_C (-t)^e^\,dt, again valid whenever is not an integer.


Continued fraction representation

The gamma function can also be represented by a sum of two continued fractions: :\Gamma (z)=\cfrac+\cfrac where z\in\mathbb.


Fourier series expansion

The logarithm of the gamma function has the following
Fourier series A Fourier series () is a summation of harmonically related sinusoidal functions, also known as components or harmonics. The result of the summation is a periodic function whose functional form is determined by the choices of cycle length (or ''p ...
expansion for 0 < z < 1: :\ln\Gamma(z) = \left(\frac - z\right)(\gamma + \ln 2) + (1 - z)\ln\pi - \frac\ln\sin(\pi z) + \frac\sum_^\infty \frac \sin (2\pi n z), which was for a long time attributed to
Ernst Kummer Ernst Eduard Kummer (29 January 1810 – 14 May 1893) was a German mathematician. Skilled in applied mathematics, Kummer trained German army officers in ballistics; afterwards, he taught for 10 years in a '' gymnasium'', the German equivalent of ...
, who derived it in 1847. However,
Iaroslav Blagouchine Yaroslav () is a Slavic peoples, Slavic given name. Its variant spelling is Jaroslav and Iaroslav, and its feminine form is Yaroslava. The surname derived from the name is Yaroslavsky (disambiguation), Yaroslavsky and its variants. All may refer to: ...
discovered that
Carl Johan Malmsten Carl Johan Malmsten (April 9, 1814 in Uddetorp, Skara County, Sweden – February 11, 1886 in Uppsala, Sweden) was a Swedish mathematician and politician. He is notable for early research into the theory of functions of a complex variable, for ...
first derived this series in 1842.


Raabe's formula

In 1840
Joseph Ludwig Raabe Joseph Ludwig Raabe (15 May 1801 in Brody, Galicia – 22 January 1859 in Zürich, Switzerland) was a Swiss mathematician. Life As his parents were quite poor, Raabe was forced to earn his living from a very early age by giving private lesson ...
proved that :\int_a^\ln\Gamma(z)\, dz = \tfrac12\ln2\pi + a\ln a - a,\quad a>0. In particular, if a = 0 then :\int_0^1\ln\Gamma(z)\, dz = \tfrac12\ln2\pi. The latter can be derived taking the logarithm in the above multiplication formula, which gives an expression for the Riemann sum of the integrand. Taking the limit for a \to \infty gives the formula.


Pi function

An alternative notation that was originally introduced by Gauss is the \Pi-function, which, in terms of the gamma function, is :\Pi(z) = \Gamma(z+1) = z \Gamma(z) = \int_0^\infty e^ t^z\, dt, so that \Pi(n) = n! for every non-negative integer n. Using the pi function the reflection formula takes on the form :\Pi(z) \Pi(-z) = \frac = \frac where is the normalized
sinc function In mathematics, physics and engineering, the sinc function, denoted by , has two forms, normalized and unnormalized.. In mathematics, the historical unnormalized sinc function is defined for by \operatornamex = \frac. Alternatively, the u ...
, while the multiplication theorem takes on the form :\Pi\left(\frac\right) \, \Pi\left(\frac\right) \cdots \Pi\left(\frac\right) = (2 \pi)^ m^ \Pi(z)\ . We also sometimes find :\pi(z) = \frac\ , which is an entire function, defined for every complex number, just like the reciprocal gamma function. That \pi(z) is entire entails it has no poles, so \Pi\left(z\right), like \Gamma\left(z\right), has no zeros. The volume of an -ellipsoid with radii can be expressed as :V_n(r_1,\dotsc,r_n)=\frac \prod_^n r_k.


Relation to other functions

* In the first integral above, which defines the gamma function, the limits of integration are fixed. The upper and lower
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. Their respective names stem from their integral definitions, whic ...
s are the functions obtained by allowing the lower or upper (respectively) limit of integration to vary. * The gamma function is related to the beta function by the formula \Beta(z_1,z_2) = \int_0^1 t^(1-t)^\,dt = \frac. * The logarithmic derivative of the gamma function is called the digamma function; higher derivatives are the polygamma functions. * The analog of the gamma function over a finite field or a finite ring is the Gaussian sums, a type of exponential sum. * The reciprocal gamma function is an entire function and has been studied as a specific topic. * The gamma function also shows up in an important relation with the
Riemann zeta function The Riemann zeta function or Euler–Riemann zeta function, denoted by the Greek letter (zeta), is a mathematical function of a complex variable defined as \zeta(s) = \sum_^\infty \frac = \frac + \frac + \frac + \cdots for \operatorname(s) > ...
, \zeta (z). \pi^ \; \Gamma\left(\frac\right) \zeta(z) = \pi^ \; \Gamma\left(\frac\right) \; \zeta(1-z). It also appears in the following formula: \zeta(z) \Gamma(z) = \int_0^\infty \frac \, \frac, which is valid only for \Re (z) > 1. The logarithm of the gamma function satisfies the following formula due to Lerch: \log\Gamma(z) = \zeta_H'(0,z) - \zeta'(0), where \zeta_H is the Hurwitz zeta function, \zeta is the Riemann zeta function and the prime () denotes differentiation in the first variable. * The gamma function is related to the
stretched exponential function The stretched exponential function f_\beta (t) = e^ is obtained by inserting a fractional power law into the exponential function. In most applications, it is meaningful only for arguments between 0 and +∞. With , the usual exponential functio ...
. For instance, the moments of that function are \langle\tau^n\rangle \equiv \int_0^\infty dt\, t^\, e^ = \frac\Gamma \left(\right).


Particular values

Including up to the first 20 digits after the decimal point, some particular values of the gamma function are: :\begin \Gamma\left(-\tfrac\right) &=& \tfrac &\approx& +2.36327\,18012\,07354\,70306 \\ \Gamma\left(-\tfrac\right) &=& -2\sqrt &\approx& -3.54490\,77018\,11032\,05459 \\ \Gamma\left(\tfrac\right) &=& \sqrt &\approx& +1.77245\,38509\,05516\,02729 \\ \Gamma(1) &=& 0! &=& +1 \\ \Gamma\left(\tfrac\right) &=& \tfrac &\approx& +0.88622\,69254\,52758\,01364 \\ \Gamma(2) &=& 1! &=& +1 \\ \Gamma\left(\tfrac\right) &=& \tfrac &\approx& +1.32934\,03881\,79137\,02047 \\ \Gamma(3) &=& 2! &=& +2 \\ \Gamma\left(\tfrac\right) &=& \tfrac &\approx& +3.32335\,09704\,47842\,55118 \\ \Gamma(4) &=& 3! &=& +6 \end (See sequences , , , , , and in the OEIS.) The complex-valued gamma function is undefined for non-positive integers, but in these cases the value can be defined in the Riemann sphere as . The reciprocal gamma function is well defined and analytic at these values (and in the entire complex plane): :\frac = \frac = \frac = \frac = 0.


The log-gamma function

Because the gamma and factorial functions grow so rapidly for moderately large arguments, many computing environments include a function that returns the
natural logarithm The natural logarithm of a number is its logarithm to the base of the mathematical constant , which is an irrational and transcendental number approximately equal to . The natural logarithm of is generally written as , , or sometimes, if ...
of the gamma function (often given the name lgamma or lngamma in programming environments or gammaln in spreadsheets); this grows much more slowly, and for combinatorial calculations allows adding and subtracting logs instead of multiplying and dividing very large values. It is often defined as :\ln\Gamma(z) = - \gamma z - \ln z + \sum_^\infty \left \frac z k - \ln \left( 1 + \frac z k \right) \right The digamma function, which is the derivative of this function, is also commonly seen. In the context of technical and physical applications, e.g. with wave propagation, the functional equation : \ln \Gamma(z) = \ln \Gamma(z+1) - \ln z is often used since it allows one to determine function values in one strip of width 1 in from the neighbouring strip. In particular, starting with a good approximation for a  with large real part one may go step by step down to the desired . Following an indication of
Carl Friedrich Gauss Johann Carl Friedrich Gauss (; german: Gauß ; la, Carolus Fridericus Gauss; 30 April 177723 February 1855) was a German mathematician and physicist who made significant contributions to many fields in mathematics and science. Sometimes refe ...
, Rocktaeschel (1922) proposed for \ln ( \Gamma (z)) an approximation for large : : \ln \Gamma(z) \approx (z - \tfrac) \ln z - z + \tfrac\ln(2\pi). This can be used to accurately approximate for with a smaller via (P.E.Böhmer, 1939) : \ln\Gamma(z-m) = \ln\Gamma(z) - \sum_^m \ln(z-k). A more accurate approximation can be obtained by using more terms from the asymptotic expansions of and , which are based on Stirling's approximation. :\Gamma(z)\sim z^ e^ \sqrt \left( 1 + \frac + \frac - \frac - \frac \right) :as at constant . (See sequences and in the OEIS.) In a more "natural" presentation: :\ln \Gamma(z) = z \ln z - z - \tfrac12 \ln z + \tfrac12 \ln 2\pi + \frac - \frac +\frac +o\left(\frac1\right) :as at constant . (See sequences and in the OEIS.) The coefficients of the terms with of in the last expansion are simply :\frac where the are the Bernoulli numbers. The Gamma function also has Stirling Series (derived by Charles Hermite in 1900) equal to :\log\Gamma(1+x)=\frac \log(2)+\frac (\log(3)-2\log(2))+\cdots,\quad\Re (x)> 0.


Properties

The Bohr–Mollerup theorem states that among all functions extending the factorial functions to the positive real numbers, only the gamma function is
log-convex In mathematics, a function ''f'' is logarithmically convex or superconvex if \circ f, the composition of the logarithm with ''f'', is itself a convex function. Definition Let be a convex subset of a real vector space, and let be a function taking ...
, that is, its
natural logarithm The natural logarithm of a number is its logarithm to the base of the mathematical constant , which is an irrational and transcendental number approximately equal to . The natural logarithm of is generally written as , , or sometimes, if ...
is convex on the positive real axis. Another characterisation is given by the Wielandt theorem. In a certain sense, the function is the more natural form; it makes some intrinsic attributes of the function clearer. A striking example is the Taylor series of around 1: :\ln \Gamma(z+1)= -\gamma z +\sum_^\infty \frac \, (-z)^k \qquad \forall\; , z, < 1 with denoting the
Riemann zeta function The Riemann zeta function or Euler–Riemann zeta function, denoted by the Greek letter (zeta), is a mathematical function of a complex variable defined as \zeta(s) = \sum_^\infty \frac = \frac + \frac + \frac + \cdots for \operatorname(s) > ...
at . So, using the following property: :\zeta(s) \Gamma(s) = \int_0^\infty \frac \, \frac we can find an integral representation for the function: :\ln \Gamma(z+1)= -\gamma z + \int_0^\infty \frac \, dt or, setting to obtain an integral for , we can replace the term with its integral and incorporate that into the above formula, to get: :\ln \Gamma(z+1)= \int_0^\infty \frac \, dt\,. There also exist special formulas for the logarithm of the gamma function for rational . For instance, if k and n are integers with k and k\neq n/2 \,, then : \begin \ln\Gamma \left(\frac\right) = & \frac + \frac\left\ + \frac\!\sum_^\frac\cdot\sin\frac \\ & - \frac\sin\frac\cdot\!\int_0^\infty \!\!\frac\,x \end see. This formula is sometimes used for numerical computation, since the integrand decreases very quickly.


Integration over log-gamma

The integral : \int_0^z \ln \Gamma (x) \, dx can be expressed in terms of the Barnes -function (see Barnes -function for a proof): :\int_0^z \ln \Gamma(x) \, dx = \frac \ln (2 \pi) + \frac + z \ln \Gamma(z) - \ln G(z+1) where . It can also be written in terms of the Hurwitz zeta function: :\int_0^z \ln \Gamma(x) \, dx = \frac \ln(2 \pi) + \frac - \zeta'(-1) + \zeta'(-1,z) . When z=1 it follows that : \int_0^1 \ln \Gamma(x) \, dx = \frac 1 2 \ln(2\pi), and this is a consequence of
Raabe's formula In mathematics, the gamma function (represented by , the capital letter gamma from the Greek alphabet) is one commonly used extension of the factorial function to complex numbers. The gamma function is defined for all complex numbers except th ...
as well. O. Espinosa and V. Moll derived a similar formula for the integral of the square of \ln\Gamma: :\int_^ \ln ^ \Gamma(x) d x=\frac+\frac+\frac \gamma L_+\frac L_^-\left(\gamma+2 L_\right) \frac+\frac, where L_1 is \frac12\ln(2\pi). D. H. Bailey and his co-authors gave an evaluation for :L_n:=\int_0^1 \ln^n \Gamma(x) \, dx when n=1,2 in terms of the Tornheim–Witten zeta function and its derivatives. In addition, it is also known that : \lim_ \frac=1.


Approximations

Complex values of the gamma function can be approximated using
Stirling's approximation In mathematics, Stirling's approximation (or Stirling's formula) is an approximation for factorials. It is a good approximation, leading to accurate results even for small values of n. It is named after James Stirling, though a related but less p ...
or the Lanczos approximation, :\Gamma(z) \sim \sqrtz^e^\quad\hboxz\to\infty\hbox \left, \arg(z)\<\pi. This is precise in the sense that the ratio of the approximation to the true value approaches 1 in the limit as goes to infinity. The gamma function can be computed to fixed precision for \operatorname (z) \in , 2/math> by applying integration by parts to Euler's integral. For any positive number  the gamma function can be written :\begin \Gamma(z) &= \int_0^x e^ t^z \, \frac + \int_x^\infty e^ t^z\, \frac \\ &= x^z e^ \sum_^\infty \frac + \int_x^\infty e^ t^z \, \frac. \end When and x \geq 1, the absolute value of the last integral is smaller than (x + 1)e^. By choosing a large enough x, this last expression can be made smaller than 2^ for any desired value N. Thus, the gamma function can be evaluated to N bits of precision with the above series. A fast algorithm for calculation of the Euler gamma function for any algebraic argument (including rational) was constructed by E.A. Karatsuba. For arguments that are integer multiples of , the gamma function can also be evaluated quickly using arithmetic–geometric mean iterations (see particular values of the gamma function).


Applications

One author describes the gamma function as "Arguably, the most common special function, or the least 'special' of them. The other transcendental functions ��are called 'special' because you could conceivably avoid some of them by staying away from many specialized mathematical topics. On the other hand, the gamma function is most difficult to avoid."


Integration problems

The gamma function finds application in such diverse areas as
quantum physics Quantum mechanics is a fundamental theory in physics that provides a description of the physical properties of nature at the scale of atoms and subatomic particles. It is the foundation of all quantum physics including quantum chemistry, qua ...
, astrophysics and
fluid dynamics In physics and engineering, fluid dynamics is a subdiscipline of fluid mechanics that describes the flow of fluids— liquids and gases. It has several subdisciplines, including ''aerodynamics'' (the study of air and other gases in motion) an ...
. The
gamma distribution In probability theory and statistics, the gamma distribution is a two- parameter family of continuous probability distributions. The exponential distribution, Erlang distribution, and chi-square distribution are special cases of the gamma dis ...
, which is formulated in terms of the gamma function, is used in
statistics Statistics (from German language, German: ''wikt:Statistik#German, Statistik'', "description of a State (polity), state, a country") is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of ...
to model a wide range of processes; for example, the time between occurrences of earthquakes. The primary reason for the gamma function's usefulness in such contexts is the prevalence of expressions of the type f(t)e^ which describe processes that decay exponentially in time or space. Integrals of such expressions can occasionally be solved in terms of the gamma function when no elementary solution exists. For example, if is a power function and is a linear function, a simple change of variables gives the evaluation :\int_0^\infty t^b e^ \,dt = \frac \int_0^\infty u^b e^ d\left(\frac\right) = \frac. The fact that the integration is performed along the entire positive real line might signify that the gamma function describes the cumulation of a time-dependent process that continues indefinitely, or the value might be the total of a distribution in an infinite space. It is of course frequently useful to take limits of integration other than 0 and to describe the cumulation of a finite process, in which case the ordinary gamma function is no longer a solution; the solution is then called an
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. Their respective names stem from their integral definitions, whic ...
. (The ordinary gamma function, obtained by integrating across the entire positive real line, is sometimes called the ''complete gamma function'' for contrast.) An important category of exponentially decaying functions is that of Gaussian functions :ae^ and integrals thereof, such as the
error function In mathematics, the error function (also called the Gauss error function), often denoted by , is a complex function of a complex variable defined as: :\operatorname z = \frac\int_0^z e^\,\mathrm dt. This integral is a special (non-elementary ...
. There are many interrelations between these functions and the gamma function; notably, the factor \sqrt obtained by evaluating \Gamma \left( \frac \right) is the "same" as that found in the normalizing factor of the error function and the
normal distribution In statistics, a normal distribution or Gaussian distribution is a type of continuous probability distribution for a real-valued random variable. The general form of its probability density function is : f(x) = \frac e^ The parameter \mu i ...
. The integrals we have discussed so far involve transcendental functions, but the gamma function also arises from integrals of purely algebraic functions. In particular, the
arc length ARC may refer to: Business * Aircraft Radio Corporation, a major avionics manufacturer from the 1920s to the '50s * Airlines Reporting Corporation, an airline-owned company that provides ticket distribution, reporting, and settlement services ...
s of
ellipse In mathematics, an ellipse is a plane curve surrounding two focal points, such that for all points on the curve, the sum of the two distances to the focal points is a constant. It generalizes a circle, which is the special type of ellipse i ...
s and of the lemniscate, which are curves defined by algebraic equations, are given by elliptic integrals that in special cases can be evaluated in terms of the gamma function. The gamma function can also be used to calculate "volume" and "area" of -dimensional hyperspheres.


Calculating products

The gamma function's ability to generalize factorial products immediately leads to applications in many areas of mathematics; in combinatorics, and by extension in areas such as
probability theory Probability theory is the branch of mathematics concerned with probability. Although there are several different probability interpretations, probability theory treats the concept in a rigorous mathematical manner by expressing it through a set o ...
and the calculation of power series. Many expressions involving products of successive integers can be written as some combination of factorials, the most important example perhaps being that of the binomial coefficient : \binom n k = \frac. The example of binomial coefficients motivates why the properties of the gamma function when extended to negative numbers are natural. A binomial coefficient gives the number of ways to choose elements from a set of elements; if , there are of course no ways. If , is the factorial of a negative integer and hence infinite if we use the gamma function definition of factorials—dividing by infinity gives the expected value of 0. We can replace the factorial by a gamma function to extend any such formula to the complex numbers. Generally, this works for any product wherein each factor is a
rational function In mathematics, a rational function is any function that can be defined by a rational fraction, which is an algebraic fraction such that both the numerator and the denominator are polynomials. The coefficients of the polynomials need not be rat ...
of the index variable, by factoring the rational function into linear expressions. If and are monic polynomials of degree and with respective roots and , we have :\prod_^b \frac = \left( \prod_^m \frac \right) \left( \prod_^n \frac \right). If we have a way to calculate the gamma function numerically, it is a breeze to calculate numerical values of such products. The number of gamma functions in the right-hand side depends only on the degree of the polynomials, so it does not matter whether equals 5 or 105. By taking the appropriate limits, the equation can also be made to hold even when the left-hand product contains zeros or poles. By taking limits, certain rational products with infinitely many factors can be evaluated in terms of the gamma function as well. Due to the
Weierstrass factorization theorem In mathematics, and particularly in the field of complex analysis, the Weierstrass factorization theorem asserts that every entire function can be represented as a (possibly infinite) product involving its zeroes. The theorem may be viewed as an e ...
, analytic functions can be written as infinite products, and these can sometimes be represented as finite products or quotients of the gamma function. We have already seen one striking example: the reflection formula essentially represents the sine function as the product of two gamma functions. Starting from this formula, the exponential function as well as all the trigonometric and hyperbolic functions can be expressed in terms of the gamma function. More functions yet, including the hypergeometric function and special cases thereof, can be represented by means of complex contour integrals of products and quotients of the gamma function, called
Mellin–Barnes integral In mathematics, a Barnes integral or Mellin–Barnes integral is a contour integral involving a product of gamma functions. They were introduced by . They are closely related to generalized hypergeometric series. The integral is usually taken a ...
s.


Analytic number theory

An application of the gamma function is the study of the
Riemann zeta function The Riemann zeta function or Euler–Riemann zeta function, denoted by the Greek letter (zeta), is a mathematical function of a complex variable defined as \zeta(s) = \sum_^\infty \frac = \frac + \frac + \frac + \cdots for \operatorname(s) > ...
. A fundamental property of the Riemann zeta function is its functional equation: :\Gamma\left(\frac\right)\zeta(s)\pi^ = \Gamma\left(\frac\right)\zeta(1-s)\pi^. Among other things, this provides an explicit form for the analytic continuation of the zeta function to a meromorphic function in the complex plane and leads to an immediate proof that the zeta function has infinitely many so-called "trivial" zeros on the real line. Borwein ''et al.'' call this formula "one of the most beautiful findings in mathematics". Another contender for that title might be :\zeta(s) \; \Gamma(s) = \int_0^\infty \frac \, \frac. Both formulas were derived by Bernhard Riemann in his seminal 1859 paper "'' Ueber die Anzahl der Primzahlen unter einer gegebenen Größe''" ("On the Number of Primes Less Than a Given Magnitude"), one of the milestones in the development of analytic number theory—the branch of mathematics that studies
prime number A prime number (or a prime) is a natural number greater than 1 that is not a product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime because the only way ...
s using the tools of mathematical analysis. Factorial numbers, considered as discrete objects, are an important concept in classical number theory because they contain many prime factors, but Riemann found a use for their continuous extension that arguably turned out to be even more important.


History

The gamma function has caught the interest of some of the most prominent mathematicians of all time. Its history, notably documented by Philip J. Davis in an article that won him the 1963
Chauvenet Prize The Chauvenet Prize is the highest award for mathematical expository writing. It consists of a prize of $1,000 and a certificate, and is awarded yearly by the Mathematical Association of America in recognition of an outstanding expository article ...
, reflects many of the major developments within mathematics since the 18th century. In the words of Davis, "each generation has found something of interest to say about the gamma function. Perhaps the next generation will also."


18th century: Euler and Stirling

The problem of extending the factorial to non-integer arguments was apparently first considered by Daniel Bernoulli and
Christian Goldbach Christian Goldbach (; ; 18 March 1690 – 20 November 1764) was a German mathematician connected with some important research mainly in number theory; he also studied law and took an interest in and a role in the Russian court. After traveling ...
in the 1720s. In particular, in a letter from Bernoulli to Goldbach dated 6 October 1729 Bernoulli introduced the product representation x!=\lim_\left(n+1+\frac\right)^\prod_^\frac which is well defined for real values of other than the negative integers. Leonard Euler later gave two different definitions: the first was not his integral but an infinite product that is well defined for all complex numbers other than the negative integers, :n! = \prod_^\infty \frac\,, of which he informed Goldbach in a letter dated 13 October 1729. He wrote to Goldbach again on 8 January 1730, to announce his discovery of the integral representation :n!=\int_0^1 (-\ln s)^n\, ds\,, which is valid when the real part of the complex number is strictly greater than (i.e., \Re (n) > -1). By the change of variables , this becomes the familiar Euler integral. Euler published his results in the paper "De progressionibus transcendentibus seu quarum termini generales algebraice dari nequeunt" ("On transcendental progressions, that is, those whose general terms cannot be given algebraically"), submitted to the St. Petersburg Academy on 28 November 1729. Euler further discovered some of the gamma function's important functional properties, including the reflection formula. James Stirling, a contemporary of Euler, also attempted to find a continuous expression for the factorial and came up with what is now known as Stirling's formula. Although Stirling's formula gives a good estimate of , also for non-integers, it does not provide the exact value. Extensions of his formula that correct the error were given by Stirling himself and by Jacques Philippe Marie Binet.


19th century: Gauss, Weierstrass and Legendre

Carl Friedrich Gauss Johann Carl Friedrich Gauss (; german: Gauß ; la, Carolus Fridericus Gauss; 30 April 177723 February 1855) was a German mathematician and physicist who made significant contributions to many fields in mathematics and science. Sometimes refe ...
rewrote Euler's product as :\Gamma(z) = \lim_\frac and used this formula to discover new properties of the gamma function. Although Euler was a pioneer in the theory of complex variables, he does not appear to have considered the factorial of a complex number, as instead Gauss first did. Gauss also proved the multiplication theorem of the gamma function and investigated the connection between the gamma function and elliptic integrals. Karl Weierstrass further established the role of the gamma function in complex analysis, starting from yet another product representation, :\Gamma(z) = \frac \prod_^\infty \left(1 + \frac\right)^ e^\frac, where is the Euler–Mascheroni constant. Weierstrass originally wrote his product as one for , in which case it is taken over the function's zeros rather than its poles. Inspired by this result, he proved what is known as the
Weierstrass factorization theorem In mathematics, and particularly in the field of complex analysis, the Weierstrass factorization theorem asserts that every entire function can be represented as a (possibly infinite) product involving its zeroes. The theorem may be viewed as an e ...
—that any entire function can be written as a product over its zeros in the complex plane; a generalization of the fundamental theorem of algebra. The name gamma function and the symbol were introduced by Adrien-Marie Legendre around 1811; Legendre also rewrote Euler's integral definition in its modern form. Although the symbol is an upper-case Greek gamma, there is no accepted standard for whether the function name should be written "gamma function" or "Gamma function" (some authors simply write "-function"). The alternative "pi function" notation due to Gauss is sometimes encountered in older literature, but Legendre's notation is dominant in modern works. It is justified to ask why we distinguish between the "ordinary factorial" and the gamma function by using distinct symbols, and particularly why the gamma function should be normalized to instead of simply using "". Consider that the notation for exponents, , has been generalized from integers to complex numbers without any change. Legendre's motivation for the normalization does not appear to be known, and has been criticized as cumbersome by some (the 20th-century mathematician Cornelius Lanczos, for example, called it "void of any rationality" and would instead use ). Legendre's normalization does simplify some formulae, but complicates others. From a modern point of view, the Legendre normalization of the Gamma function is the integral of the additive
character Character or Characters may refer to: Arts, entertainment, and media Literature * ''Character'' (novel), a 1936 Dutch novel by Ferdinand Bordewijk * ''Characters'' (Theophrastus), a classical Greek set of character sketches attributed to The ...
against the multiplicative character with respect to the
Haar measure In mathematical analysis, the Haar measure assigns an "invariant volume" to subsets of locally compact topological groups, consequently defining an integral for functions on those groups. This measure was introduced by Alfréd Haar in 1933, th ...
\frac on the
Lie group In mathematics, a Lie group (pronounced ) is a group that is also a differentiable manifold. A manifold is a space that locally resembles Euclidean space, whereas groups define the abstract concept of a binary operation along with the additio ...
. Thus this normalization makes it clearer that the gamma function is a continuous analogue of a Gauss sum.


19th–20th centuries: characterizing the gamma function

It is somewhat problematic that a large number of definitions have been given for the gamma function. Although they describe the same function, it is not entirely straightforward to prove the equivalence. Stirling never proved that his extended formula corresponds exactly to Euler's gamma function; a proof was first given by Charles Hermite in 1900. Instead of finding a specialized proof for each formula, it would be desirable to have a general method of identifying the gamma function. One way to prove would be to find a differential equation that characterizes the gamma function. Most special functions in applied mathematics arise as solutions to differential equations, whose solutions are unique. However, the gamma function does not appear to satisfy any simple differential equation. Otto Hölder proved in 1887 that the gamma function at least does not satisfy any ''algebraic'' differential equation by showing that a solution to such an equation could not satisfy the gamma function's recurrence formula, making it a transcendentally transcendental function. This result is known as
Hölder's theorem In mathematics, Hölder's theorem states that the gamma function does not satisfy any algebraic differential equation whose coefficients are rational functions. This result was first proved by Otto Hölder in 1887; several alternative proofs have su ...
. A definite and generally applicable characterization of the gamma function was not given until 1922. Harald Bohr and Johannes Mollerup then proved what is known as the '' Bohr–Mollerup theorem'': that the gamma function is the unique solution to the factorial recurrence relation that is positive and ''
logarithmically convex In mathematics, a function ''f'' is logarithmically convex or superconvex if \circ f, the composition of the logarithm with ''f'', is itself a convex function. Definition Let be a convex subset of a real vector space, and let be a function tak ...
'' for positive and whose value at 1 is 1 (a function is logarithmically convex if its logarithm is convex). Another characterisation is given by the Wielandt theorem. The Bohr–Mollerup theorem is useful because it is relatively easy to prove logarithmic convexity for any of the different formulas used to define the gamma function. Taking things further, instead of defining the gamma function by any particular formula, we can choose the conditions of the Bohr–Mollerup theorem as the definition, and then pick any formula we like that satisfies the conditions as a starting point for studying the gamma function. This approach was used by the Bourbaki group. Borwein & Corless review three centuries of work on the gamma function.


Reference tables and software

Although the gamma function can be calculated virtually as easily as any mathematically simpler function with a modern computer—even with a programmable pocket calculator—this was of course not always the case. Until the mid-20th century, mathematicians relied on hand-made tables; in the case of the gamma function, notably a table computed by Gauss in 1813 and one computed by Legendre in 1825. Tables of complex values of the gamma function, as well as hand-drawn graphs, were given in ''
Tables of Functions With Formulas and Curves Paul Rudolf Eugen Jahnke (born November 30, 1861 in Berlin, died October 18, 1921 in Berlin) was a German mathematician. Jahnke studied mathematics and physics at the Humboldt University of Berlin, where he graduated in 1886. In 1889 he received ...
'' by Jahnke and , first published in Germany in 1909. According to Michael Berry, "the publication in J&E of a three-dimensional graph showing the poles of the gamma function in the complex plane acquired an almost iconic status." There was in fact little practical need for anything but real values of the gamma function until the 1930s, when applications for the complex gamma function were discovered in theoretical physics. As electronic computers became available for the production of tables in the 1950s, several extensive tables for the complex gamma function were published to meet the demand, including a table accurate to 12 decimal places from the U.S. National Bureau of Standards. Double-precision floating-point implementations of the gamma function and its logarithm are now available in most scientific computing software and special functions libraries, for example TK Solver, Matlab, GNU Octave, and the GNU Scientific Library. The gamma function was also added to the C standard library ( math.h). Arbitrary-precision implementations are available in most computer algebra systems, such as
Mathematica Wolfram Mathematica is a software system with built-in libraries for several areas of technical computing that allow machine learning, statistics, symbolic computation, data manipulation, network analysis, time series analysis, NLP, optimizat ...
and Maple. PARI/GP, MPFR and MPFUN contain free arbitrary-precision implementations. The Windows Calculator factorial function returns Γ(x+1) when the input x is a non-integer value.


See also

* Ascending factorial *
Cahen–Mellin integral In mathematics, the Mellin transform is an integral transform that may be regarded as the multiplicative group, multiplicative version of the two-sided Laplace transform. This integral transform is closely connected to the theory of Dirichlet series ...
* Elliptic gamma function *
Gauss's constant In mathematics, the lemniscate constant p. 199 is a transcendental mathematical constant that is the ratio of the perimeter of Bernoulli's lemniscate to its diameter, analogous to the definition of for the circle. Equivalently, the perimete ...
* Hadamard's gamma function * Lanczos approximation * Multiple gamma function *
Multivariate gamma function In mathematics, the multivariate gamma function Γ''p'' is a generalization of the gamma function. It is useful in multivariate statistics, appearing in the probability density function of the Wishart and inverse Wishart distributions, and the mat ...
* -adic gamma function * Pochhammer -symbol * -gamma function *
Ramanujan's master theorem In mathematics, Ramanujan's Master Theorem, named after Srinivasa Ramanujan, is a technique that provides an analytic expression for the Mellin transform of an analytic function. The result is stated as follows: If a complex-valued function f(x) ...
* Spouge's approximation *
Stirling's approximation In mathematics, Stirling's approximation (or Stirling's formula) is an approximation for factorials. It is a good approximation, leading to accurate results even for small values of n. It is named after James Stirling, though a related but less p ...


Notes

*


Further reading

* * * * * * * * * * * *


External links


NIST Digital Library of Mathematical Functions:Gamma function
* Pascal Sebah and Xavier Gourdon. ''Introduction to the Gamma Function''. I
PostScript
an

formats.
C++ reference for std::tgamma
* Examples of problems involving the gamma function can be found a
Exampleproblems.com
*
Wolfram gamma function evaluator (arbitrary precision)
*

at MathPages {{Authority control Gamma and related functions Special hypergeometric functions Meromorphic functions