HOME

TheInfoList



OR:

In
mathematics Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, the gamma function (represented by Γ, capital Greek letter
gamma Gamma (; uppercase , lowercase ; ) 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 normally repr ...
) is the most common 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 for ...
s. Derived by
Daniel Bernoulli Daniel Bernoulli ( ; ; – 27 March 1782) was a Swiss people, Swiss-France, French mathematician and physicist and was one of the many prominent mathematicians in the Bernoulli family from Basel. He is particularly remembered for his applicati ...
, the gamma function \Gamma(z) is defined for all complex numbers z except non-positive integers, and for every
positive integer In mathematics, the natural numbers are the numbers 0, 1, 2, 3, and so on, possibly excluding 0. Some start counting with 0, defining the natural numbers as the non-negative integers , while others start with 1, defining them as the positiv ...
z=n, \Gamma(n) = (n-1)!\,.The gamma function can be defined via a convergent improper integral for complex numbers with positive real part: \Gamma(z) = \int_0^\infty t^ e^\textt, \ \qquad \Re(z) > 0\,.The gamma function then is defined in the complex plane as the
analytic continuation In complex analysis, a branch of mathematics, analytic continuation is a technique to extend the domain of definition of a given analytic function. Analytic continuation often succeeds in defining further values of a function, for example in a ne ...
of this integral function: it is a meromorphic function which is holomorphic except at zero and the negative integers, where it has simple
poles Pole or poles may refer to: People *Poles (people), another term for Polish people, from the country of Poland * Pole (surname), including a list of people with the name * Pole (musician) (Stefan Betke, born 1967), German electronic music artist ...
. The gamma function has no zeros, 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 appears as a factor in various probability-distribution functions and other formulas in the fields of
probability Probability is a branch of mathematics and statistics concerning events and numerical descriptions of how likely they are to occur. The probability of an event is a number between 0 and 1; the larger the probability, the more likely an e ...
,
statistics Statistics (from German language, German: ', "description of a State (polity), state, a country") is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of data. In applying statistics to a s ...
,
analytic number theory In mathematics, analytic number theory is a branch of number theory that uses methods from mathematical analysis to solve problems about the integers. It is often said to have begun with Peter Gustav Lejeune Dirichlet's 1837 introduction of Dir ...
, and
combinatorics Combinatorics is an area of mathematics primarily concerned with counting, both as a means and as an end to obtaining results, and certain properties of finite structures. It is closely related to many other areas of mathematics and has many ...
.


Motivation

The gamma function can be seen as a solution to the
interpolation In the mathematics, 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 ...
problem of finding a smooth curve y=f(x) that connects the points of the factorial sequence: (x,y) = (n, n!) for all positive integer values of n. The simple formula for the factorial, is only valid when is a positive integer, and no
elementary function In mathematics, an elementary function is a function of a single variable (typically real or complex) that is defined as taking sums, products, roots and compositions of finitely many polynomial, rational, trigonometric, hyperbolic, a ...
has this property, but a good solution is the gamma function f(x) = \Gamma(x+1) . The gamma function is not only smooth but analytic (except at the non-positive integers), and it can be defined in several explicit ways. However, it is not the only analytic function that extends the factorial, as one may add any analytic function that is zero on the positive integers, such as k\sin(m\pi x) for an integer m. Such a function is known as a pseudogamma function, the most famous being the Hadamard function. A more restrictive requirement is the functional equation which interpolates the shifted factorial f(n) = (n1)! : f(x+1) = x f(x)\ \text x>0, \qquad f(1) = 1. But this still does not give a unique solution, since it allows for multiplication by any periodic function g(x) with g(x) = g(x+1) and g(0)=1, such as g(x) = e^. One way to resolve the ambiguity is the Bohr–Mollerup theorem, which shows that f(x) = \Gamma(x) is the unique interpolating function for the factorial, defined over the positive reals, which is logarithmically convex, meaning that y = \log f(x) is convex.


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 is the continuous analog of a Summation, sum, which is used to calculate area, areas, volume, volumes, and their generalizations. Integration, the process of computing an integral, is one of the two fundamental oper ...
\Gamma(z) = \int_0^\infty t^ e^\, dt converges absolutely, 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 In calculus, and more generally in mathematical analysis, integration by parts or partial integration is a process that finds the integral of a product of functions in terms of the integral of the product of their derivative and antiderivati ...
, 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 Then can be calculated as: \begin \Gamma(1) & = \int_0^\infty t^ e^\,dt \\ & = \int_0^\infty e^ \, dt \\ & = 1. \end Thus we can show that \Gamma(n) = (n-1)! for any positive integer by induction. Specifically, the base case is that \Gamma(1) = 1 = 0!, and the induction step is that \Gamma(n+1) = n\Gamma(n) = n(n-1)! = n!. The identity \Gamma(z) = \frac can be used (or, yielding the same result,
analytic continuation In complex analysis, a branch of mathematics, analytic continuation is a technique to extend the domain of definition of a given analytic function. Analytic continuation often succeeds in defining further values of a function, for example in a ne ...
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

There are many equivalent definitions.


Euler's definition as an infinite product

For a fixed integer m, as the integer n increases, we have that \lim_ \frac = 1\,. If m is not an integer, then this equation is meaningless, since in this section the factorial of a non-integer has not been defined yet. However, let us assume that this equation continues to hold when m is replaced by an arbitrary complex number z, in order to define the Gamma function for non-integers: \lim_ \frac = 1\,. Multiplying both sides by (z-1)! gives \begin (z-1)! &= \frac \lim_ n!\frac (n+1)^z \\ pt &= \frac \lim_ (1 \cdot2\cdots n)\frac \left(\frac \cdot \frac \cdots \frac\right)^z \\ pt &= \frac \prod_^\infty \left \frac \left(1 + \frac\right)^z \right \endThis infinite product, which is due to Euler, converges for all complex numbers z except the non-positive integers, which fail because of a division by zero. In fact, the above assumption produces a unique definition of \Gamma(z) as . Intuitively, this formula indicates that \Gamma(z) is approximately the result of computing \Gamma(n+1)=n! for some large integer n, multiplying by (n+1)^z to approximate \Gamma(n+z+1), and then using the relationship \Gamma(x+1) = x \Gamma(x) backwards n+1 times to get an approximation for \Gamma(z); and furthermore that this approximation becomes exact as n increases to infinity. The infinite product for the reciprocal \frac = z \prod_^\infty \left \left(1+\frac\right) / \right/math> is an entire function, converging for every complex number .


Weierstrass's definition

The definition for the gamma function due to Weierstrass is also valid for all complex numbers z except 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. Equivalence of the integral definition and Weierstrass definition By the integral definition, the relation \Gamma (z+1)=z\Gamma (z) and Hadamard factorization theorem, \begine^ &=\prod_^\infty e^\left(1+\frac\right)\\ &=\exp\left(\lim_\sum_^N \left(\log\left(1+\frac\right)-\frac\right)\right)\\ &=\exp\left(\lim_\left(\log (N+1)-\sum_^N \frac\right)\right).\end where c_1=\gamma+2\pi i k for some integer k. Since \Gamma (z)\in\mathbb for z\in\mathbb\setminus\mathbb_0^-, we have k=0 and \begin\Gamma (z)&=\frac\prod_^\left(1+\frac\right)^e^\\ &=\frac1z\lim_e^\frac\\ &=\frac1z\lim_\frace^\\ &=\lim_\frac,\quad z\in\mathbb\setminus\mathbb_0^-\end


Properties


General

Besides the fundamental property discussed above: \Gamma(z+1) = z\ \Gamma(z) 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). Proof 1 With Euler's infinite product \Gamma(z) = \frac1z \prod_^ \frac compute \frac = \frac = z \prod_^ \frac = z \prod_^ \left(1 - \frac\right) = \frac\,, where the last equality is a known result. A similar derivation begins with Weierstrass's definition. Proof 2 First prove that I=\int_^\infty \frac\, dx=\int_0^\infty \frac\, dv=\frac,\quad a\in (0,1). Consider the positively oriented rectangular contour C_R with vertices at R, -R, R+2\pi i and -R+2\pi i where R\in\mathbb^+. Then by the residue theorem, \int_\frac\, dz=-2\pi ie^. Let I_R=\int_^R \frac\, dx and let I_R' be the analogous integral over the top side of the rectangle. Then I_R\to I as R\to\infty and I_R'=-e^I_R. If A_R denotes the right vertical side of the rectangle, then \left, \int_ \frac\, dz\\le \int_0^\left, \frac\\, dt\le Ce^ for some constant C and since a<1, the integral tends to 0 as R\to\infty. Analogously, the integral over the left vertical side of the rectangle tends to 0 as R\to\infty. Therefore I-e^I=-2\pi ie^, from which I=\frac,\quad a\in (0,1). Then \Gamma (1-z)=\int_0^\infty e^u^\, du=t\int_0^\infty e^(vt)^\, dv,\quad t>0 and \begin\Gamma (z)\Gamma (1-z)&=\int_0^\infty\int_0^\infty e^v^\, dv\, dt\\ &=\int_0^\infty \frac\, dv\\&=\frac\\&=\frac,\quad z\in (0,1).\end Proving the reflection formula for all z\in (0,1) proves it for all z\in\mathbb\setminus\mathbb by analytic continuation. 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: \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 \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 \\ ex\left, \Gamma\left(\tfrac+bi\right)\^2 & = \frac \\ ex\left, \Gamma\left(1+bi\right)\^2 & = \frac \\ ex\left, \Gamma\left(1+n+bi\right)\^2 & = \frac \prod_^n \left(k^2 + b^2 \right), \quad n \in \N \\ ex\left, \Gamma\left(-n+bi\right)\^2 & = \frac \prod_^n \left(k^2 + b^2 \right)^, \quad n \in \N \\ ex\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 \\ 1ex \end First, consider the reflection formula applied to z=bi. \Gamma(bi)\Gamma(1-bi)=\frac Applying the recurrence relation to the second term: -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 formula, by using the relation to the beta function given below with z_1 = z_2 = \frac, or simply by making the substitution t = u^2 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 In mathematics, the double factorial of a number , denoted by , is the product of all the positive integers up to that have the same Parity (mathematics), parity (odd or even) as . That is, n!! = \prod_^ (n-2k) = n (n-2) (n-4) \cdots. Restated ...
(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, 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 In mathematics, the -th harmonic number is the sum of the reciprocals of the first natural numbers: H_n= 1+\frac+\frac+\cdots+\frac =\sum_^n \frac. Starting from , the sequence of harmonic numbers begins: 1, \frac, \frac, \frac, \frac, \dot ...
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^ (\log 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 B_n(\gamma, 1! \zeta(2), \ldots, (n-1)! \zeta(n)) where \zeta(z) is the Riemann zeta function, and B_n is the n-th Bell polynomial, 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 expansio ...
expansion of the gamma function \Gamma(z) = \frac1z - \gamma + \frac12\left(\gamma^2 + \frac6\right)z - \frac16\left(\gamma^3 + \frac2 + 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/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 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. When writing the error term as an infinite product, Stirling's formula can be used to define the gamma function: \Gamma(x) = \sqrt \left(\frac\right)^x \prod_^ \left frac\left(1+\frac\right)^ \right/math>


Extension to negative, non-integer values

Although the main definition of the gamma function—the Euler integral of the second kind—is only valid (on the real axis) for positive arguments, its domain can be extended with
analytic continuation In complex analysis, a branch of mathematics, analytic continuation is a technique to extend the domain of definition of a given analytic function. Analytic continuation often succeeds in defining further values of a function, for example in a ne ...
to negative arguments by shifting the negative argument to positive values by using either the Euler's reflection formula, \Gamma(-x) = \frac\frac, or the fundamental property, \Gamma(-x):=\frac1\Gamma(-x+1) , when x\not\in\mathbb. For example, \Gamma\left(-\frac12\right)=-2\Gamma\left(\frac12\right) .


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 In complex analysis, a branch of mathematics, analytic continuation is a technique to extend the domain of definition of a given analytic function. Analytic continuation often succeeds in defining further values of a function, for example in a ne ...
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, division (mathematics), division where the divisor (denominator) is 0, zero, is a unique and problematic special case. Using fraction notation, the general example can be written as \tfrac a0, where a is the di ...
; it is a meromorphic function with simple poles at the non-positive integers. For a function f of a complex variable z, at a simple pole c, the residue of f is given by: \operatorname(f,c)=\lim_(z-c)f(z). For the simple pole z = -n, the recurrence formula can be rewritten 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 summation, sum to the larger of the two quantities. Expressed algebraically, for quantities and with , is in a golden ratio to if \fr ...
, 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 values at the local extrema of the gamma function along the real axis 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_^\infty e^\, dt and \Gamma(z) = \int_0^1 \left(\log \frac\right)^\,dt, \Gamma(z) = 2c^z\int_^t^e^\,dt \,,\; c>0 where the three integrals respectively follow from the substitutions t=e^, t=-\log x and t=cx^2 in Euler's second integral. The last integral in particular makes clear the connection between the gamma function at half integer arguments and the
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 ...
: if z=1/2,\; c=1 we get \Gamma(1/2)=2\int_^e^\,dt=\sqrt \;. Binet's first integral formula for the gamma function states that, when the real part of is positive, then: \operatorname(z) = \left(z - \frac\right)\log z - z + \frac\log (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 In mathematics, the Laplace transform, named after Pierre-Simon Laplace (), is an integral transform that converts a Function (mathematics), function of a Real number, real Variable (mathematics), variable (usually t, in the ''time domain'') to a f ...
. 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: \operatorname(z) = \left(z - \frac\right)\log z - z + \frac\log(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 In mathematics, the winding number or winding index of a closed curve in the plane (mathematics), plane around a given point (mathematics), point is an integer representing the total number of times that the curve travels counterclockwise aroun ...
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: \begin \Gamma (z) &= \cfrac \\ &+\ \cfrac \end where z\in\mathbb.


Fourier series expansion

The logarithm of the gamma function has the following
Fourier series A Fourier series () is an Series expansion, expansion of a periodic function into a sum of trigonometric functions. The Fourier series is an example of a trigonometric series. By expressing a function as a sum of sines and cosines, many problems ...
expansion for 0 < z < 1: \operatorname(z) = \left(\frac - z\right)(\gamma + \log 2) + (1 - z)\log\pi - \frac\log\sin(\pi z) + \frac\sum_^\infty \frac \sin (2\pi n z), which was for a long time attributed to Ernst Kummer, 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^\log\Gamma(z)\, dz = \tfrac12\log2\pi + a\log a - a,\quad a>0. In particular, if a = 0 then \int_0^1\log\Gamma(z)\, dz = \tfrac12\log2\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 introduced by
Gauss Johann Carl Friedrich Gauss (; ; ; 30 April 177723 February 1855) was a German mathematician, astronomer, Geodesy, geodesist, and physicist, who contributed to many fields in mathematics and science. He was director of the Göttingen Observat ...
is the \Pi-function, a shifted version of the gamma function: \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 is: \Pi(z) \Pi(-z) = \frac = \frac using the normalized sinc function; while the multiplication theorem becomes: \Pi\left(\frac\right) \, \Pi\left(\frac\right) \cdots \Pi\left(\frac\right) = (2 \pi)^ m^ \Pi(z)\ . The shifted reciprocal gamma function is sometimes denoted \pi(z) = \frac\ , an entire function. 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 defining the gamma function, the limits of integration are fixed. The upper
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 ...
is obtained by allowing the lower limit of integration to vary:\Gamma(z,x) = \int_x^\infty t^ e^ dt.There is a similar lower incomplete gamma function. * The gamma function is related to Euler's 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 In mathematics, a finite field or Galois field (so-named in honor of Évariste Galois) is a field (mathematics), field that contains a finite number of Element (mathematics), elements. As with any field, a finite field is a Set (mathematics), s ...
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, \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: \operatorname(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. For instance, the moments of that function are \langle\tau^n\rangle \equiv \int_0^\infty t^\, e^ \, \mathrmt = \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 (These numbers can be found in the OEIS. The values presented here are truncated rather than rounded.) 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.


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 a logarithm, base of the e (mathematical constant), mathematical constant , which is an Irrational number, irrational and Transcendental number, transcendental number approxima ...
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 logarithmic values instead of multiplying and dividing very large values. It is often defined as \operatorname(z) = - \gamma z - \log z + \sum_^\infty \left \frac z k - \log \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 \operatorname(z) = \operatorname(z+1) - \log 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 (; ; ; 30 April 177723 February 1855) was a German mathematician, astronomer, geodesist, and physicist, who contributed to many fields in mathematics and science. He was director of the Göttingen Observatory and ...
, Rocktaeschel (1922) proposed for an approximation for large : \operatorname(z) \approx (z - \tfrac) \log z - z + \tfrac\log(2\pi). This can be used to accurately approximate for with a smaller via (P.E.Böhmer, 1939) \operatorname(z-m) = \operatorname(z) - \sum_^m \log(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: \operatorname(z) = z \log z - z - \tfrac12 \log z + \tfrac12 \log 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 \operatorname(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, that is, its
natural logarithm The natural logarithm of a number is its logarithm to the base of a logarithm, base of the e (mathematical constant), mathematical constant , which is an Irrational number, irrational and Transcendental number, transcendental number approxima ...
is convex on the positive real axis. Another characterisation is given by the Wielandt theorem. 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, # for integer , \lim_ \frac = 1 for all complex numbers z. In a certain sense, the log-gamma 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: \operatorname(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 an integral representation for the log-gamma function is: \operatorname(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: \operatorname(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 \operatorname \left(\frac\right) = & \frac + \frac\left\ + \frac\!\sum_^\frac\cdot\sin\frac \\ & - \frac\sin\frac\cdot\!\int_0^\infty \!\!\frac\,x. \end This formula is sometimes used for numerical computation, since the integrand decreases very quickly.


Integration over log-gamma

The integral \int_0^z \operatorname (x) \, dx can be expressed in terms of the Barnes -function (see Barnes -function for a proof): \int_0^z \operatorname(x) \, dx = \frac \log (2 \pi) + \frac + z \operatorname(z) - \log G(z+1) where . It can also be written in terms of the Hurwitz zeta function: \int_0^z \operatorname(x) \, dx = \frac \log(2 \pi) + \frac - \zeta'(-1) + \zeta'(-1,z) . When z=1 it follows that \int_0^1 \operatorname(x) \, dx = \frac 1 2 \log(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 \operatorname: \int_^ \log ^ \Gamma(x) d x=\frac+\frac+\frac \gamma L_+\frac L_^-\left(\gamma+2 L_\right) \frac+\frac, where L_1 is \frac12\log(2\pi). D. H. Bailey and his co-authors gave an evaluation for L_n:=\int_0^1 \log^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 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 In calculus, and more generally in mathematical analysis, integration by parts or partial integration is a process that finds the integral of a product of functions in terms of the integral of the product of their derivative and antiderivati ...
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).


Practical implementations

Unlike many other functions, such as a
Normal Distribution In probability theory and 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 ...
, no obvious fast, accurate implementation that is easy to implement for the Gamma Function \Gamma(z) is easily found. Therefore, it is worth investigating potential solutions. For the case that speed is more important than accuracy, published tables for \Gamma(z) are easily found in an Internet search, such as the Online Wiley Library. Such tables may be used with
linear interpolation In mathematics, linear interpolation is a method of curve fitting using linear polynomials to construct new data points within the range of a discrete set of known data points. Linear interpolation between two known points If the two known po ...
. Greater accuracy is obtainable with the use of cubic interpolation at the cost of more computational overhead. Since \Gamma(z) tables are usually published for argument values between 1 and 2, the property \Gamma(z+1) = z\ \Gamma(z) may be used to quickly and easily translate all real values z <1 and z>2 into the range 1\leq z \leq 2, such that only tabulated values of z between 1 and 2 need be used. If interpolation tables are not desirable, then the Lanczos approximation mentioned above works well for 1 to 2 digits of accuracy for small, commonly used values of z. If the Lanczos approximation is not sufficiently accurate, the Stirling's formula for the Gamma Function may be used.


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 the fundamental physical Scientific theory, theory that describes the behavior of matter and of light; its unusual characteristics typically occur at and below the scale of atoms. Reprinted, Addison-Wesley, 1989, It is ...
, astrophysics and
fluid dynamics In physics, physical chemistry and engineering, fluid dynamics is a subdiscipline of fluid mechanics that describes the flow of fluids – liquids and gases. It has several subdisciplines, including (the study of air and other gases in motion ...
. The gamma distribution, which is formulated in terms of the gamma function, is used in
statistics Statistics (from German language, German: ', "description of a State (polity), state, a country") is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of data. In applying statistics to a s ...
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 u:=a\cdot t 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 function In mathematics, a Gaussian function, often simply referred to as a Gaussian, is a function (mathematics), function of the base form f(x) = \exp (-x^2) and with parametric extension f(x) = a \exp\left( -\frac \right) for arbitrary real number, rea ...
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 In probability theory and 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 ...
. The integrals discussed so far involve transcendental functions, but the gamma function also arises from integrals of purely algebraic functions. In particular, the
arc length Arc length is the distance between two points along a section of a curve. Development of a formulation of arc length suitable for applications to mathematics and the sciences is a problem in vector calculus and in differential geometry. In the ...
s of
ellipse In mathematics, an ellipse is a plane curve surrounding two focus (geometry), 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 ty ...
s 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 i ...
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 hyperspheres.


Calculating products

The gamma function's ability to generalize factorial products immediately leads to applications in many areas of mathematics; in
combinatorics Combinatorics is an area of mathematics primarily concerned with counting, both as a means and as an end to obtaining results, and certain properties of finite structures. It is closely related to many other areas of mathematics and has many ...
, and by extension in areas such as
probability theory Probability theory or probability calculus 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 expre ...
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 In mathematics, the binomial coefficients are the positive integers that occur as coefficients in the binomial theorem. Commonly, a binomial coefficient is indexed by a pair of integers and is written \tbinom. It is the coefficient of the t ...
. For example, for any complex numbers and , with , we can write (1 + z)^n = \sum_^\infty \frac z^k, which closely resembles the binomial coefficient when is a non-negative integer, (1 + z)^n = \sum_^n \frac z^k = \sum_^n \binom z^k. 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 ...
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 very simple 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 Zero of a function, zeroes. The theorem m ...
, 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 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: \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 In complex analysis, a branch of mathematics, analytic continuation is a technique to extend the domain of definition of a given analytic function. Analytic continuation often succeeds in defining further values of a function, for example in a ne ...
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 Georg Friedrich Bernhard Riemann (; ; 17September 182620July 1866) was a German mathematician who made profound contributions to analysis, number theory, and differential geometry. In the field of real analysis, he is mostly known for the f ...
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 In mathematics, analytic number theory is a branch of number theory that uses methods from mathematical analysis to solve problems about the integers. It is often said to have begun with Peter Gustav Lejeune Dirichlet's 1837 introduction of Dir ...
—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 (mathematics), 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 ...
s using the tools of mathematical analysis.


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 Daniel Bernoulli ( ; ; – 27 March 1782) was a Swiss people, Swiss-France, French mathematician and physicist and was one of the many prominent mathematicians in the Bernoulli family from Basel. He is particularly remembered for his applicati ...
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.
Leonhard Euler Leonhard Euler ( ; ; ; 15 April 170718 September 1783) was a Swiss polymath who was active as a mathematician, physicist, astronomer, logician, geographer, and engineer. He founded the studies of graph theory and topology and made influential ...
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 (-\log 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 (; ; ; 30 April 177723 February 1855) was a German mathematician, astronomer, geodesist, and physicist, who contributed to many fields in mathematics and science. He was director of the Göttingen Observatory and ...
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 i ...
s.
Karl Weierstrass Karl Theodor Wilhelm Weierstrass (; ; 31 October 1815 – 19 February 1897) was a German mathematician often cited as the " father of modern analysis". Despite leaving university without a degree, he studied mathematics and trained as a school t ...
further established the role of the gamma function in
complex analysis Complex analysis, traditionally known as the theory of functions of a complex variable, is the branch of mathematical analysis that investigates functions of complex numbers. It is helpful in many branches of mathematics, including algebraic ...
, 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 Zero of a function, zeroes. The theorem m ...
—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 is not 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 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 (mathematics), measure was introduced by Alfr� ...
\frac on the
Lie group In mathematics, a Lie group (pronounced ) is a group (mathematics), group that is also a differentiable manifold, such that group multiplication and taking inverses are both differentiable. A manifold is a space that locally resembles Eucli ...
. 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 equivalence 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. 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'' 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'' 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 GNU Scientific Library (or GSL) is a software library for numerical computations in applied mathematics and science. The GSL is written in C (programming language), C; wrappers are available for other programming languages. The GSL is part of ...
. The gamma function was also added to the C standard library ( math.h). Arbitrary-precision implementations are available in most
computer algebra system A computer algebra system (CAS) or symbolic algebra system (SAS) is any mathematical software with the ability to manipulate mathematical expressions in a way similar to the traditional manual computations of mathematicians and scientists. The de ...
s, such as Mathematica and Maple. PARI/GP,
MPFR The GNU Multiple Precision Floating-Point Reliable Library (GNU MPFR) is a GNU portable C (programming language), C Library (computing), library for Arbitrary-precision arithmetic, arbitrary-precision binary Floating-point arithmetic, floating-po ...
and MPFUN contain free arbitrary-precision implementations. In some software calculators, e.g. Windows Calculator and GNOME Calculator, the factorial function returns Γ(''x'' + 1) when the input ''x'' is a non-integer value.


See also

* Ascending factorial * Cahen–Mellin integral * Elliptic gamma function * Lemniscate constant * Pseudogamma function * Hadamard's gamma function * Inverse gamma function * 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


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