HOME

TheInfoList



OR:

In mathematics, the gamma function (represented by , the capital letter gamma 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 w ...
) is one commonly used extension of the factorial function 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 fo ...
s. The gamma function is defined for all complex numbers except the non-positive integers. For every positive integer , \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 In mathematical analysis, an improper integral is the limit of a definite integral as an endpoint of the interval(s) of integration approaches either a specified real number or positive or negative infinity; or in some instances as both endpoin ...
: \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 In the mathematical field of complex analysis, a meromorphic function on an open subset ''D'' of the complex plane is a function that is holomorphic on all of ''D'' ''except'' for a set of isolated points, which are poles of the function. The ...
that is
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 derivati ...
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 C ...
. The gamma function has no zeroes, so the reciprocal gamma function 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 fin ...
. In fact, the gamma function corresponds to the
Mellin transform In mathematics, the Mellin transform is an integral transform that may be regarded as the multiplicative version of the two-sided Laplace transform. This integral transform is closely connected to the theory of Dirichlet series, and is often used ...
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 is to occur, or how likely it is that a proposition is true. The probability of an event is a number between 0 and 1, where, roughly speakin ...
and statistics, as well as combinatorics.


Motivation

The gamma function can be seen as a solution to the following interpolation problem: : "Find a
smooth curve In mathematics, a curve (also called a curved line in older texts) is an object similar to a line, but that does not have to be straight. Intuitively, a curve may be thought of as the trace left by a moving point. This is the definition that ...
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 wit ...
s and
limits Limit or Limits may refer to: Arts and media * ''Limit'' (manga), a manga by Keiko Suenobu * ''Limit'' (film), a South Korean film * Limit (music), a way to characterize harmony * "Limit" (song), a 2016 single by Luna Sea * "Limits", a 2019 ...
from
calculus Calculus, originally called infinitesimal calculus or "the calculus of infinitesimals", is the mathematical study of continuous change, in the same way that geometry is the study of shape, and algebra is the study of generalizations of arithm ...
. 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 Jacques Salomon Hadamard (; 8 December 1865 – 17 October 1963) was a French mathematician who made major contributions in number theory, complex analysis, differential geometry and partial differential equations. Biography The son of a teac ...
function. A more restrictive property than satisfying the above interpolation is to satisfy the
recurrence relation 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 ...
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 In mathematical analysis, the Bohr–Mollerup theorem is a theorem proved by the Danish mathematicians Harald Bohr and Johannes Mollerup. The theorem characterizes the gamma function, defined for by :\Gamma(x)=\int_0^\infty t^ e^\,dt as the '' ...
. It states that when the condition that be logarithmically convex (or "super-convex," meaning that \ln \circ f is
convex Convex or convexity may refer to: Science and technology * Convex lens, in optics Mathematics * Convex set, containing the whole line segment that joins points ** Convex polygon, a polygon which encloses a convex set of points ** Convex polytop ...
) 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 wit ...
: \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 said ...
, and is known as the Euler integral of the second kind. (Euler's integral of the first kind is the
beta function In mathematics, the beta function, also called the Euler integral of the first kind, is a special function that is closely related to the gamma function and to binomial coefficients. It is defined by the integral : \Beta(z_1,z_2) = \int_0^1 t^( ...
.) 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 Mathematical induction is a method for proving that a statement ''P''(''n'') is true for every natural number ''n'', that is, that the infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), ...  all hold. Informal metaphors help ...
. 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 In the mathematical field of complex analysis, a meromorphic function on an open subset ''D'' of the complex plane is a function that is holomorphic on all of ''D'' ''except'' for a set of isolated points, which are poles of the function. The ...
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 In mathematics, for a sequence of complex numbers ''a''1, ''a''2, ''a''3, ... the infinite product : \prod_^ a_n = a_1 a_2 a_3 \cdots is defined to be the limit of the partial products ''a''1''a''2...''a'n'' as ''n'' increases without bound. ...
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 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 Karl Theodor Wilhelm Weierstrass (german: link=no, Weierstraß ; 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 ...
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 Euler's constant (sometimes also called the Euler–Mascheroni constant) is a mathematical constant usually denoted by the lowercase Greek letter gamma (). It is defined as the limiting difference between the harmonic series and the natural l ...
. 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 (see this identity, for instance). See also the Weierstrass factorization theorem.


Properties


General

Other important functional equations for the gamma function are
Euler's reflection formula In mathematics, a reflection formula or reflection relation for a function ''f'' is a relationship between ''f''(''a'' âˆ’ ''x'') and ''f''(''x''). It is a special case of a functional equation, and it is very common in the literature ...
:\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 In mathematics, the beta function, also called the Euler integral of the first kind, is a special function that is closely related to the gamma function and to binomial coefficients. It is defined by the integral : \Beta(z_1,z_2) = \int_0^1 t^( ...
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 In mathematics, the beta function, also called the Euler integral of the first kind, is a special function that is closely related to the gamma function and to binomial coefficients. It is defined by the integral : \Beta(z_1,z_2) = \int_0^1 t^( ...
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 The Gaussian integral, also known as the Euler–Poisson integral, is the integral of the Gaussian function f(x) = e^ over the entire real line. Named after the German mathematician Carl Friedrich Gauss, the integral is \int_^\infty e^\,dx = \s ...
. 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 (2n-1)!! = (2n-1)(2n-3)\cdots(3)(1). See
Particular values of the gamma function The gamma function is an important special function in mathematics. Its particular values can be expressed in closed form for integer and half-integer arguments, but no simple expressions are known for the values at rational points in general. Othe ...
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, it is possible to do so for the closely related
digamma function 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 ...
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 In abstract algebra, a subset S of a field L is algebraically independent over a subfield K if the elements of S do not satisfy any non-trivial polynomial equation with coefficients in K. In particular, a one element set \ is algebraically in ...
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 In mathematics, the polygamma function of order is a meromorphic function on the complex numbers \mathbb defined as the th derivative of the logarithm of the gamma function: :\psi^(z) := \frac \psi(z) = \frac \ln\Gamma(z). Thus :\psi^(z) ...
, : :\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 Euler's constant (sometimes also called the Euler–Mascheroni constant) is a mathematical constant usually denoted by the lowercase Greek letter gamma (). It is defined as the limiting difference between the harmonic series and the natural l ...
. 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 In calculus, the Leibniz integral rule for differentiation under the integral sign, named after Gottfried Leibniz, states that for an integral of the form \int_^ f(x,t)\,dt, where -\infty < a(x), b(x) < \infty and the integral are
.) 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, and \pi is a partition of n given by :\pi=\underbrace_ + \cdots + \underbrace_, we have in particular the Laurent series 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. 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 The comma is a punctuation mark that appears in several variants in different languages. It has the same shape as an apostrophe or single closing quotation mark () in many typefaces, but it differs from them in being placed on the baseline o ...
/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 In mathematics, the polygamma function of order is a meromorphic function on the complex numbers \mathbb defined as the th derivative of the logarithm of the gamma function: :\psi^(z) := \frac \psi(z) = \frac \ln\Gamma(z). Thus :\psi^(z) ...
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 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, 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 In mathematics, division by zero is division where the divisor (denominator) is zero. Such a division can be formally expressed as \tfrac, where is the dividend (numerator). In ordinary arithmetic, the expression has no meaning, as there is ...
; it is a
meromorphic function In the mathematical field of complex analysis, a meromorphic function on an open subset ''D'' of the complex plane is a function that is holomorphic on all of ''D'' ''except'' for a set of isolated points, which are poles of the function. The ...
with simple poles at the non-positive integers. For a function f of a complex variable z, at a simple pole c, the
residue Residue may refer to: Chemistry and biology * An amino acid, within a peptide chain * Crop residue, materials left after agricultural processes * Pesticide residue, refers to the pesticides that may remain on or in food after they are applied ...
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 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 fin ...
, 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 In mathematics, a Hankel contour is a path in the complex plane which extends from (+∞,δ), around the origin counter clockwise and back to (+∞,−δ), where δ is an arbitrarily small positive number. The contour thus remains arbitraril ...
, 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 In mathematics, the winding number or winding index of a closed curve in the plane around a given point is an integer representing the total number of times that curve travels counterclockwise around the point, i.e., the curve's number of t ...
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 In mathematics, a continued fraction is an expression obtained through an iterative process of representing a number as the sum of its integer part and the reciprocal of another number, then writing this other number as the sum of its integer ...
: :\Gamma (z)=\cfrac+\cfrac where z\in\mathbb.


Fourier series expansion

The logarithm of the gamma function has the following Fourier series 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 A mathematician is someone who uses an extensive knowledge of mathematics in their work, typically to solve mathematical problems. Mathematicians are concerned ...
, who derived it in 1847. However, Iaroslav Blagouchine discovered that Carl Johan Malmsten first derived this series in 1842.


Raabe's formula

In 1840 Joseph Ludwig Raabe 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 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 refer ...
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, 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 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 fin ...
, 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 functions 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 In mathematics, the beta function, also called the Euler integral of the first kind, is a special function that is closely related to the gamma function and to binomial coefficients. It is defined by the integral : \Beta(z_1,z_2) = \int_0^1 t^( ...
by the formula \Beta(z_1,z_2) = \int_0^1 t^(1-t)^\,dt = \frac. * The
logarithmic derivative In mathematics, specifically in calculus and complex analysis, the logarithmic derivative of a function ''f'' is defined by the formula \frac where f' is the derivative of ''f''. Intuitively, this is the infinitesimal relative change in ''f'' ...
of the gamma function is called the
digamma function 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 ...
; higher derivatives are the
polygamma function In mathematics, the polygamma function of order is a meromorphic function on the complex numbers \mathbb defined as the th derivative of the logarithm of the gamma function: :\psi^(z) := \frac \psi(z) = \frac \ln\Gamma(z). Thus :\psi^(z) ...
s. * The analog of the gamma function over a finite field or a
finite ring In mathematics, more specifically abstract algebra, a finite ring is a ring that has a finite number of elements. Every finite field is an example of a finite ring, and the additive part of every finite ring is an example of an abelian finite grou ...
is the Gaussian sums, a type of
exponential sum In mathematics, an exponential sum may be a finite Fourier series (i.e. a trigonometric polynomial), or other finite sum formed using the exponential function, usually expressed by means of the function :e(x) = \exp(2\pi ix).\, Therefore, a typic ...
. * The reciprocal gamma function 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 fin ...
and has been studied as a specific topic. * The gamma function also shows up in an important relation with the Riemann zeta function, \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 In mathematics, the Hurwitz zeta function is one of the many zeta functions. It is formally defined for complex variables with and by :\zeta(s,a) = \sum_^\infty \frac. This series is absolutely convergent for the given values of and and c ...
, \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. 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 On-Line Encyclopedia of Integer Sequences (OEIS) is an online database of integer sequences. It was created and maintained by Neil Sloane while researching at AT&T Labs. He transferred the intellectual property and hosting of the OEIS to the ...
.) 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 In mathematics, a well-defined expression or unambiguous expression is an expression whose definition assigns it a unique interpretation or value. Otherwise, the expression is said to be ''not well defined'', ill defined or ''ambiguous''. A func ...
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 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 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 ...
, 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 refer ...
, 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 The On-Line Encyclopedia of Integer Sequences (OEIS) is an online database of integer sequences. It was created and maintained by Neil Sloane while researching at AT&T Labs. He transferred the intellectual property and hosting of the OEIS to the ...
.) 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 On-Line Encyclopedia of Integer Sequences (OEIS) is an online database of integer sequences. It was created and maintained by Neil Sloane while researching at AT&T Labs. He transferred the intellectual property and hosting of the OEIS to the ...
.) The coefficients of the terms with of in the last expansion are simply :\frac where the are the
Bernoulli numbers In mathematics, the Bernoulli numbers are a sequence of rational numbers which occur frequently in analysis. The Bernoulli numbers appear in (and can be defined by) the Taylor series expansions of the tangent and hyperbolic tangent functions, ...
. 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 In mathematical analysis, the Bohr–Mollerup theorem is a theorem proved by the Danish mathematicians Harald Bohr and Johannes Mollerup. The theorem characterizes the gamma function, defined for by :\Gamma(x)=\int_0^\infty t^ e^\,dt as the '' ...
states that among all functions extending the factorial functions to the positive real numbers, only the gamma function is log-convex, that is, its natural logarithm is
convex Convex or convexity may refer to: Science and technology * Convex lens, in optics Mathematics * Convex set, containing the whole line segment that joins points ** Convex polygon, a polygon which encloses a convex set of points ** Convex polytop ...
on the positive real axis. Another characterisation is given by the
Wielandt theorem In mathematics, the Wielandt theorem characterizes the gamma function, defined for all complex numbers z for which \mathrm\,z > 0 by :\Gamma(z)=\int_0^ t^ \mathrm e^\,\mathrm dt, as the only function f defined on the half-plane H := \ such that: * ...
. 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 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 In mathematics, the Hurwitz zeta function is one of the many zeta functions. It is formally defined for complex variables with and by :\zeta(s,a) = \sum_^\infty \frac. This series is absolutely convergent for the given values of and and c ...
: :\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 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 The gamma function is an important special function in mathematics. Its particular values can be expressed in closed form for integer and half-integer arguments, but no simple expressions are known for the values at rational points in general. Othe ...
).


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, astrophysics and fluid dynamics. The gamma distribution, which is formulated in terms of the gamma function, is used in statistics 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. (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 function In mathematics, a Gaussian function, often simply referred to as a Gaussian, is a function of the base form f(x) = \exp (-x^2) and with parametric extension f(x) = a \exp\left( -\frac \right) for arbitrary real constants , and non-zero . It is ...
s :ae^ and integrals thereof, such as the error function. 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. 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 lengths of ellipses and of the lemniscate, which are curves defined by algebraic equations, are given by
elliptic integral In integral calculus, an elliptic integral is one of a number of related functions defined as the value of certain integrals, which were first studied by Giulio Fagnano and Leonhard Euler (). Their name originates from their originally arising in ...
s 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
hypersphere In mathematics, an -sphere or a hypersphere is a topological space that is homeomorphic to a ''standard'' -''sphere'', which is the set of points in -dimensional Euclidean space that are situated at a constant distance from a fixed point, call ...
s.


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 ...
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 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, 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 integral In the mathematical field of complex analysis, contour integration is a method of evaluating certain integrals along paths in the complex plane. Contour integration is closely related to the calculus of residues, a method of complex analysis. ...
s of products and quotients of the gamma function, called Mellin–Barnes integrals.


Analytic number theory

An application of the gamma function is the study of the Riemann zeta function. A fundamental property of the Riemann zeta function is its
functional equation In mathematics, a functional equation is, in the broadest meaning, an equation in which one or several functions appear as unknowns. So, differential equations and integral equations are functional equations. However, a more restricted meaning ...
: :\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 ways ...
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, 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 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 In mathematics, for a sequence of complex numbers ''a''1, ''a''2, ''a''3, ... the infinite product : \prod_^ a_n = a_1 a_2 a_3 \cdots is defined to be the limit of the partial products ''a''1''a''2...''a'n'' as ''n'' increases without bound. ...
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 Jacques Philippe Marie Binet (; 2 February 1786 – 12 May 1856) was a French mathematician, physicist and astronomer born in Rennes; he died in Paris, France, in 1856. He made significant contributions to number theory, and the mathematical founda ...
.


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 refer ...
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 integral In integral calculus, an elliptic integral is one of a number of related functions defined as the value of certain integrals, which were first studied by Giulio Fagnano and Leonhard Euler (). Their name originates from their originally arising in ...
s.
Karl Weierstrass Karl Theodor Wilhelm Weierstrass (german: link=no, Weierstraß ; 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 ...
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 Euler's constant (sometimes also called the Euler–Mascheroni constant) is a mathematical constant usually denoted by the lowercase Greek letter gamma (). It is defined as the limiting difference between the harmonic series and the natural l ...
. 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—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 fundamental theorem of algebra, also known as d'Alembert's theorem, or the d'Alembert–Gauss theorem, states that every non- constant single-variable polynomial with complex coefficients has at least one complex root. This includes polynomia ...
. The name gamma function and the symbol were introduced by
Adrien-Marie Legendre Adrien-Marie Legendre (; ; 18 September 1752 – 9 January 1833) was a French mathematician who made numerous contributions to mathematics. Well-known and important concepts such as the Legendre polynomials and Legendre transformation are name ...
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 against the multiplicative character with respect to the Haar measure \frac on the Lie group . Thus this normalization makes it clearer that the gamma function is a continuous analogue of a
Gauss sum In algebraic number theory, a Gauss sum or Gaussian sum is a particular kind of finite sum of roots of unity, typically :G(\chi) := G(\chi, \psi)= \sum \chi(r)\cdot \psi(r) where the sum is over elements of some finite commutative ring , is a ...
.


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 In mathematics, a differential equation is an equation that relates one or more unknown functions and their derivatives. In applications, the functions generally represent physical quantities, the derivatives represent their rates of change, an ...
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 A hypertranscendental function or transcendentally transcendental function is a transcendental analytic function which is not the solution of an algebraic differential equation with coefficients in Z (the integers) and with algebraic initial cond ...
. This result is known as Hölder's theorem. A definite and generally applicable characterization of the gamma function was not given until 1922.
Harald Bohr Harald August Bohr (22 April 1887 – 22 January 1951) was a Danish mathematician and footballer. After receiving his doctorate in 1910, Bohr became an eminent mathematician, founding the field of almost periodic functions. His brother was the ...
and Johannes Mollerup then proved what is known as the ''
Bohr–Mollerup theorem In mathematical analysis, the Bohr–Mollerup theorem is a theorem proved by the Danish mathematicians Harald Bohr and Johannes Mollerup. The theorem characterizes the gamma function, defined for by :\Gamma(x)=\int_0^\infty t^ e^\,dt as the '' ...
'': that the gamma function is the unique solution to the factorial recurrence relation that is positive and '' logarithmically convex'' 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 In mathematics, the Wielandt theorem characterizes the gamma function, defined for all complex numbers z for which \mathrm\,z > 0 by :\Gamma(z)=\int_0^ t^ \mathrm e^\,\mathrm dt, as the only function f defined on the half-plane H := \ such that: * ...
. 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'' 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 The National Institute of Standards and Technology (NIST) is an agency of the United States Department of Commerce whose mission is to promote American innovation and industrial competitiveness. NIST's activities are organized into physical sci ...
. 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 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 * Elliptic gamma function * Gauss's constant *
Hadamard's gamma function In mathematics, Hadamard's gamma function, named after Jacques Hadamard, is an extension of the factorial function, different from the classical gamma function. This function, with its argument shifted down by 1, interpolates the factorial and e ...
* Lanczos approximation * Multiple gamma function * Multivariate gamma function * -adic gamma function * Pochhammer -symbol * -gamma function * Ramanujan's master theorem * 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