Skip to content
Oakfield Operator Calculus Function Reference Site

Polygamma Functions

The polygamma functions are defined as the successive derivatives of the digamma function, or equivalently as higher logarithmic derivatives of the Gamma function.

For integers n0n \ge 0, the nn-th polygamma function is defined by

ψ(n)(z)=dn+1dzn+1logΓ(z)\psi^{(n)}(z) = \frac{d^{\,n+1}}{dz^{\,n+1}} \log \Gamma(z)

Special cases include:

  • n=0n = 0: digamma function ψ(z)\psi(z),
  • n=1n = 1: trigamma function ψ(z)\psi'(z),
  • n=2n = 2: tetragamma function ψ(z)\psi''(z).

For z{0,1,2,}z \notin \{0,-1,-2,\dots\} and integers n1n \ge 1, the polygamma functions admit the convergent series representation

ψ(n)(z)=(1)n+1n!k=01(k+z)n+1\psi^{(n)}(z) = (-1)^{n+1} n! \sum_{k=0}^{\infty} \frac{1}{(k+z)^{n+1}}

This representation highlights their close connection to generalized harmonic sums.


The polygamma functions are directly related to the Hurwitz zeta function:

ψ(n)(z)=(1)n+1n!ζ(n+1,z)\psi^{(n)}(z) = (-1)^{n+1} n!\, \zeta(n+1, z)

This identity places polygamma functions at the intersection of special functions and analytic number theory.


The recurrence relation generalizing that of the digamma function is

ψ(n)(z+1)=ψ(n)(z)+(1)nn!zn+1\psi^{(n)}(z+1) = \psi^{(n)}(z) + (-1)^n \frac{n!}{z^{n+1}}

This identity is useful for numerical evaluation and analytic continuation.


Each ψ(n)(z)\psi^{(n)}(z) has poles of order n+1n+1 at

z=0,1,2,z = 0, -1, -2, \dots

Near a pole z=mz = -m, the leading singular behavior is

ψ(n)(z)(1)n+1n!(z+m)n+1\psi^{(n)}(z) \sim (-1)^{n+1} \frac{n!}{(z+m)^{n+1}}

As z|z| \to \infty with argz<π|\arg z| < \pi, the polygamma functions satisfy

ψ(n)(z)(1)n1(n1)!zn(1+n2z+O(z2))\psi^{(n)}(z) \sim (-1)^{n-1} \frac{(n-1)!}{z^n} \left( 1 + \frac{n}{2z} + \mathcal{O}(z^{-2}) \right)

Higher-order terms involve Bernoulli numbers.


The trigamma function is the first derivative of the digamma function:

ψ(z)=d2dz2logΓ(z)\psi'(z) = \frac{d^2}{dz^2} \log \Gamma(z)

It has the series representation

ψ(z)=k=01(k+z)2\psi'(z) = \sum_{k=0}^{\infty} \frac{1}{(k+z)^2}

For real x>0x > 0, the trigamma function is strictly positive and monotonically decreasing, reflecting the convexity of logΓ(x)\log \Gamma(x).

The trigamma function ψ(z)\psi'(z) has several important closed-form values.

zzψ(z)\psi'(z) (exact)Approximate value
11π26\tfrac{\pi^2}{6}1.64493406681.6449340668
22π261\tfrac{\pi^2}{6} - 10.64493406680.6449340668
33π2654\tfrac{\pi^2}{6} - \tfrac{5}{4}0.39493406680.3949340668
12\tfrac12π22\tfrac{\pi^2}{2}4.93480220054.9348022005
nNn \in \mathbb{N}ζ(2)k=1n11k2\zeta(2) - \sum_{k=1}^{n-1} \tfrac{1}{k^2}

The tetragamma function is the second derivative of the digamma function:

ψ(z)=d3dz3logΓ(z)\psi''(z) = \frac{d^3}{dz^3} \log \Gamma(z)

It admits the representation

ψ(z)=2k=01(k+z)3\psi''(z) = -2 \sum_{k=0}^{\infty} \frac{1}{(k+z)^3}

For real x>0x > 0, ψ(x)\psi''(x) is strictly negative.

The tetragamma function ψ(z)\psi''(z) admits the following special values:

zzψ(z)\psi''(z) (exact)Approximate value
112ζ(3)-2\zeta(3)2.4041138063-2.4041138063
222ζ(3)+2-2\zeta(3) + 20.4041138063-0.4041138063
12\tfrac1214ζ(3)-14\zeta(3)16.8287966442-16.8287966442
nNn \in \mathbb{N}2 ⁣(ζ(3)k=1n11k3)-2\!\left(\zeta(3) - \sum_{k=1}^{n-1} \tfrac{1}{k^3}\right)

For integers m1m \ge 1 and nNn \in \mathbb{N},

ψ(m)(n)=(1)m+1m!(ζ(m+1)k=1n11km+1)\psi^{(m)}(n) = (-1)^{m+1} m! \left( \zeta(m+1) - \sum_{k=1}^{n-1} \frac{1}{k^{m+1}} \right)

These formulas are frequently used in exact and high-precision computation.




  1. 📜 Early Development

    Euler introduced logarithmic derivatives of the Gamma function in his work on harmonic series. Gauss and later analysts systematized their higher derivatives within complex analysis.

  2. 🔬 Modern Usage

    Polygamma functions are now standard tools in statistics, probability theory, and computational mathematics, particularly in variance, curvature, and optimization problems.


  • NIST Digital Library of Mathematical Functions (DLMF), §5.15
  • Abramowitz & Stegun, Handbook of Mathematical Functions
  • Olver et al., NIST Handbook of Mathematical Functions