The gamma function extends the factorial from the integers to the real (and even complex) numbers. For it is defined by the integral
Relation to the factorial Integration by parts yields the recurrence , and for a positive integer one has . Indeed , , , and reproduce the factorials.
Domain The recurrence extends the function to , but at its value blows up. The domain is therefore all real numbers except these points.
Asymptotes and limits There is a vertical asymptote at each of . As the function grows explosively like the factorial, and as it diverges to . On the negative side it forms narrow spikes shooting to , alternating sign between consecutive integers.
Monotonicity and extremum For the gamma function is convex (in fact logarithmically convex) and attains a minimum at . It decreases to the left of that point and increases to the right, and the valley lies between the two points .
Special values and identities At half-integers it takes the elegant value , tied to the Gaussian integral. The reflection formula holds, and substituting recovers that value.
Applications and history Euler introduced it in the 18th century as an interpolation of the factorial, and the notation is due to Legendre. It plays a fundamental role in probability (the gamma and beta distributions), complex analysis, combinatorics, and physics, making it one of the more advanced yet essential special functions.