# Gamma function

From: http://en.wikipedia.org/wiki/Gamma_function

http://upload.wikimedia.org/wikipedia/en/thumb/5/52/Gamma_plot.svg/325px-Gamma_plot.svg.png

In mathematics, the **Gamma function** extends the factorial function to complex and non natural numbers (where it is defined). The factorial function of an integer *n* is written *n*! and is equal to the product *n*! = 1 × 2 × 3 × ... × *n*. The Gamma function "fills in" the factorial function for fractional values of *n* and for complex values of *n*. If *z* is a complex variable, then for integer values only, we have

but for fractional and complex values of *z*, the above equation does not apply, since the factorial function is not defined.

## Contents

## Definition

The notation Γ(*z*) is due to Adrien-Marie Legendre. If the real part of the complex number *z* is positive, then the integral

converges absolutely. Using integration by parts, one can show that

Because Γ(1) = 1, this relation implies that

for all natural numbers *n*. It can further be used to extend Γ(*z*) to a meromorphic function defined for all complex numbers *z* except *z* = 0, −1, −2, −3, ... by analytic continuation.

It is this extended version that is commonly referred to as the Gamma function.

## Alternative definitions

The following infinite product definitions for the Gamma function, due to Euler and Weierstrass respectively, are valid for all complex numbers *z* which are not non-positive integers:

where γ is the Euler-Mascheroni constant.

## Properties

Other important functional equations for the Gamma function are **Euler's reflection formula**

and the **duplication formula**

The duplication formula is a special case of the **multiplication theorem**

Perhaps the most well-known value of the Gamma function at a non-integer argument is

which can be found by setting *z*=1/2 in the reflection formula or by noticing the beta function for (1/2, 1/2), which is .

The derivatives of the Gamma function are described in terms of the polygamma function. For example:

The Gamma function has a pole of order 1 at *z* = −*n* for every natural number *n*; the residue there is given by

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 is convex.

An alternative notation which was originally introduced by Gauss and which is sometimes used is the **Pi function**, which in terms of the Gamma function is

so that

Using the Pi function the reflection formula takes on the form

where sinc_{N} is the normalized Sinc function, while the multiplication theorem takes on the form

We also sometimes find

which is an entire function, defined for every complex number. That π(*z*) is entire entails it has no poles, so Γ(*z*) has no zeros.

## Relation to other functions

In the first integral above, which defines the Gamma function, the limits of integration are fixed. The incomplete Gamma function is the function obtained by allowing either the upper or lower limit of integration to be variable.

The Gamma function is related to the Beta function by the formula

The derivative of the logarithm of the Gamma function is called the digamma function; higher derivatives are the polygamma functions.

## Plots

- Gamma real.png
Real part of Γ(z)

- Gamma imag.png
Imaginary part of Γ(z)

- Gamma absolute.png
Absolute value of Γ(z)

- Log gamma real.png
Real part of log Γ(z)

- Log gamma imag.png
Imaginary part of log Γ(z)

- Log gamma absolute.png
Absolute value of log Γ(z)

## Particular values

(undefined) = (undefined) = (undefined) = = = = = = = = = = = =

## Approximations

Complex values of the Gamma function can be computed numerically with arbitrary precision using Stirling's approximation or the Lanczos approximation.

As an alternative that can be implemented easily on most calculators, Toth (2004) suggests the approximation

which is good to more than 8 decimal digits for *z* with a real part greater than 8, and may be combined with the reflection formula for negative *z*. The optional term in square brackets increases the accuracy slightly.

## See also

- Beta function
- Bohr-Mollerup theorem
- Digamma function
- Gamma distribution
- Gauss's constant
- Multivariate Gamma function
- Polygamma function
- Stirling's approximation
- Trigamma function
- Elliptic gamma function

## References

- Milton Abramowitz and Irene A. Stegun, eds.
*Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables.*New York: Dover, 1972.*(See Chapter 6)*

- G. Arfken and H. Weber.
*Mathematical Methods for Physicists*. Harcourt/Academic Press, 2000.*(See Chapter 10.)*

- Harry Hochstadt.
*The Functions of Mathematical Physics*. New York: Dover, 1986*(See Chapter 3.)*

- W.H. Press, B.P. Flannery, S.A. Teukolsky, and W.T. Vetterling.
*Numerical Recipes in C*. Cambridge, UK: Cambridge University Press, 1988.*(See Section 6.1.)*

- Toth, V.T.
*Programmable Calculators: Calculators and the Gamma Function*. http://www.rskey.org/gamma.htm

## External links

- Examples of problems involving the Gamma function can be found at Exampleproblems.com.

- P. Sebah, X. Gourdon.
*Introduction to the Gamma Function*. In PostScript and HTML formats.