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
is defined for all complex numbers
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 ...
,
The gamma function can be defined via a convergent
improper integral for complex numbers with positive real part:
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:
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 that connects the points of the factorial sequence:
for all positive integer values of
. 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
.
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
for an integer
.
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
:
But this still does not give a unique solution, since it allows for multiplication by any periodic function
with
and
, such as
.
One way to resolve the ambiguity is the
Bohr–Mollerup theorem, which shows that
is the unique interpolating function for the factorial, defined over the positive reals, which is
logarithmically convex,
meaning that
is
convex.
Definition
Main definition
The notation
is due to
Legendre.
If the real part of the complex number is strictly positive (
), 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 ...
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:
Recognizing that
as
Then can be calculated as:
Thus we can show that
for any positive integer by
induction. Specifically, the base case is that
, and the induction step is that
The identity
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
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
, as the integer
increases, we have that
If
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
is replaced by an arbitrary complex number
, in order to define the Gamma function for non-integers:
Multiplying both sides by
gives
This
infinite product, which is due to Euler, converges for all complex numbers
except the non-positive integers, which fail because of a division by zero. In fact, the above assumption produces a unique definition of
as .
Intuitively, this formula indicates that
is approximately the result of computing
for some large integer
, multiplying by
to approximate
, and then using the relationship
backwards
times to get an approximation for
; and furthermore that this approximation becomes exact as
increases to infinity.
The infinite product for the
reciprocal