
The digamma function is a special function which is given by the logarithmic derivative of the gamma function (or, depending on the definition, the logarithmic derivative of the factorial).
Because of this ambiguity, two different notations are sometimes (but not always) used, with
(1) |
defined as the logarithmic derivative of the gamma function , and
(2) |
defined as the logarithmic derivative of the factorial function. The two are connected by the relationship
(3) |
The th derivative of
is called the polygamma function, denoted
. The notation
(4) |
is therefore frequently used for the digamma function itself, and Erdélyi et al. (1981) use the notation for
. The digamma function
is returned by the function PolyGamma[z] or PolyGamma[0, z] in the Wolfram Language, and typeset using the notation
.
The digamma function arises in simple sums such as
(5) | |||
(6) |
where is a Lerch transcendent.
Special cases are given by
(7) | |||
(8) | |||
(9) | |||
(10) |
Gauss's digamma theorem states that
(11) |
(Allouche 1992, Knuth 1997, p. 94).
An asymptotic series for the digamma function is given by
(12) | |||
(13) | |||
(14) | |||
(15) | |||
(16) |
where is the Euler-Mascheroni constant and
are Bernoulli numbers.
The digamma function satisfies
(17) |
For integer ,
(18) |
where is the Euler-Mascheroni constant and
is a harmonic number.
Other identities include
(19) |
(20) |
(21) |
(22) |
Special values are
(23) | |||
(24) |
At integer values,
(25) | |||
(26) |
(Derbyshire 2004, p. 58), and at half-integral values,
(27) | |||
(28) |
where is a harmonic number.
It is given by the unit square integral
(29) |
for (Guillera and Sondow 2005). Plugging in
gives a special case involving the Euler-Mascheroni constant.
The series for is given by
(30) |
A logarithmic series is given by
(31) |
(Guillera and Sondow 2005).
A surprising identity that arises from the FoxTrot series is given by
(32) |