TOPICS
Search

Log Gamma Function


LogGamma
LogGammaReIm
LogGammaContours

The log gamma function is the analytic branch of the logarithm of the gamma function on the complex plane cut along the nonpositive real axis, chosen to be real for positive real numbers. It is denoted lnGamma(z) here and implemented in the Wolfram Language as LogGamma[z]. Its values are plotted above.

LogOfGammaReIm
LogOfGammaContours

The principal natural logarithm of Gamma(z), plotted above, has additional branch cuts wherever Gamma(z) crosses the negative real axis. The two functions have identical real parts, but their imaginary parts can differ by integer multiples of 2pi. They are branches of the same analytic multivalued function. The log gamma branch allows concise formulation of many identities involving the Riemann zeta function zeta(z).

The log gamma function can be defined as

 lnGamma(z)=-gammaz-lnz+sum_(k=1)^infty[z/k-ln(1+z/k)]
(1)

for z off the nonpositive real axis, with the principal branch of each logarithm on the right (Boros and Moll 2004, p. 204). Another sum is given by

 lnGamma(z)=(z-1/2)lnz-z+1/2ln(2pi)+1/2sum_(n=2)^infty((n-1))/(n(n+1))zeta(n,z+1)
(2)

for Re[z]>0 (Whittaker and Watson 1990, p. 261), where zeta(s,a) is a Hurwitz zeta function.

The second of Binet's log gamma formulas is

 lnGamma(a)=(a-1/2)lna-a+1/2ln(2pi)+2int_0^infty(tan^(-1)(z/a))/(e^(2piz)-1)dz
(3)

for Re[a]>0 (Whittaker and Watson 1990, p. 251). Another formula for lnGamma(z) is given by Malmstén's formula.

Integrals of lnGamma(x) include

int_0^1lnGamma(x)dx=1/2ln(2pi)
(4)
=-zeta^'(0)
(5)
=0.91893...
(6)

(OEIS A075700; Bailey et al. 2007, p. 179), which was known to Euler, and

 int_0^1[lnGamma(x)]^2dx=1/(12)gamma^2+1/(48)pi^2+1/6gammaln(2pi)+1/3[ln(2pi)]^2
 -[gamma+ln(2pi)](zeta^'(2))/(pi^2)+(zeta^('')(2))/(2pi^2),
(7)

(OEIS A102887; Espinosa and Moll 2002, 2004; Boros and Moll 2004, p. 203; Bailey et al. 2007, p. 179), where gamma is the Euler-Mascheroni constant and zeta^'(z) is the derivative of the Riemann zeta function.

int_0^1[lnGamma(x)]^3dx is considered by Espinosa and Moll (2006) who, however, were not able to establish a closed form (Bailey et al. 2007, p. 181).

Another integral is given by

 int_0^(1/2)ln[Gamma(x+1)]dx=-1/2-7/(24)ln2+1/4lnpi+3/2lnA,
(8)

where A is the Glaisher-Kinkelin constant (Glaisher 1878).

An infinite series representation in terms of the upper incomplete gamma function is

 lnGamma(a+1/2)=alna-a+1/2ln(2pi)+i/(2pi)sum_(n=1)^infty((-1)^n)/n×[e^(2piian)Gamma(0,2piian)-e^(-2piian)Gamma(0,-2piian)],
(9)

where a>0 and Gamma(u,z) is the upper incomplete gamma function on its principal branch (Reynolds and Stauffer 2021). This follows by differentiating their Hurwitz zeta function representation with respect to its first argument at zero.


See also

Barnes G-Function, Binet's Log Gamma Formulas, Digamma Function, Gamma Function, Hurwitz Zeta Function, Incomplete Gamma Function, Log Sine Function, Logarithm, Malmstén's Formula, Stirling's Approximation, Stirling's Series

Related Wolfram sites

https://functions.wolfram.com/GammaBetaErf/LogGamma/

Explore with Wolfram|Alpha

References

Bailey, D. H.; Borwein, J. M.; Calkin, N. J.; Girgensohn, R.; Luke, D. R.; and Moll, V. H. Experimental Mathematics in Action. Wellesley, MA: A K Peters, 2007.Boros, G. and Moll, V. "The Expansion of the Loggamma Function." §10.6 in Irresistible Integrals: Symbolics, Analysis and Experiments in the Evaluation of Integrals. Cambridge, England: Cambridge University Press, pp. 201-203, 2004.Espinosa, O. and Moll, V. "On Some Definite Integrals Involving the Hurwitz Zeta Function. Part I." Ramanujan J. 6, 159-188, 2002.Espinosa, O. and Moll, V. "A Generalized Polygamma Function." Integral Transforms Spec. Funct. 15, 101-115, 2004.Espinosa, O. and Moll, V. "The Evaluation of Tornheim Double Sums. I." J. Number Th. 116, 200-229, 2006.Glaisher, J. W. L. "On the Product 1^1.2^2.3^3...n^n." Messenger Math. 7, 43-47, 1878.Reynolds, R. and Stauffer, A. "Infinite Sum of the Incomplete Gamma Function Expressed in Terms of the Hurwitz Zeta Function." Mathematics 9, 1952, 2021. https://doi.org/10.3390/math9161952.Sloane, N. J. A. Sequences A075700 and A102887 in "The On-Line Encyclopedia of Integer Sequences."Whittaker, E. T. and Watson, G. N. A Course in Modern Analysis, 4th ed. Cambridge, England: Cambridge University Press, 1990.

Referenced on Wolfram|Alpha

Log Gamma Function

Cite this as:

Weisstein, Eric W. "Log Gamma Function." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/LogGammaFunction.html

Subject classifications