Mathwords logoMathwords

Polygamma Function — Definition, Formula & Example

The polygamma function is the family of functions you get by repeatedly differentiating the digamma function, which is itself the derivative of ln⁡Γ(z)\ln \Gamma(z). Each order measures how quickly the previous one changes, so the functions track ever finer details of the gamma function's curvature.

For an integer m≥0m \ge 0 and complex zz not equal to 0,−1,−2,…0, -1, -2, \dots, the polygamma function of order mm is ψ(m)(z)=dmdzmψ(z)=dm+1dzm+1ln⁡Γ(z)\psi^{(m)}(z) = \dfrac{d^{m}}{dz^{m}}\psi(z) = \dfrac{d^{m+1}}{dz^{m+1}}\ln\Gamma(z). Order 00 is the digamma function ψ(z)\psi(z), and order 11 is the trigamma function. For m≥1m \ge 1 it equals the convergent series shown in the formula. It is meromorphic, with poles of order m+1m+1 at the nonpositive integers.

Key Formula

ψ(m)(z)=dm+1dzm+1ln⁡Γ(z)=(−1)m+1 m!∑k=0∞1(z+k)m+1,m≥1\psi^{(m)}(z) = \frac{d^{m+1}}{dz^{m+1}}\ln\Gamma(z) = (-1)^{m+1}\, m! \sum_{k=0}^{\infty} \frac{1}{(z+k)^{m+1}}, \quad m \ge 1
Where:
  • mm = Order of the polygamma function, a nonnegative integer (the series form needs m ≥ 1)
  • zz = Input, any complex number except 0, −1, −2, …
  • Γ(z)\Gamma(z) = The gamma function
  • kk = Summation index, running over 0, 1, 2, …

Worked Example

Problem: Find the exact value of the trigamma function at z=3z = 3, that is, ψ(1)(3)\psi^{(1)}(3), and give a decimal approximation.
Step 1: Set m=1m = 1 in the series. The sign (−1)2=1(-1)^{2} = 1 and the factor 1!=11! = 1 drop out. At z=1z = 1 the sum is the Basel series, whose value is π2/6\pi^2/6.
ψ(1)(z)=∑k=0∞1(z+k)2,ψ(1)(1)=∑n=1∞1n2=π26\psi^{(1)}(z) = \sum_{k=0}^{\infty} \frac{1}{(z+k)^2}, \qquad \psi^{(1)}(1) = \sum_{n=1}^{\infty}\frac{1}{n^2} = \frac{\pi^2}{6}
Step 2: At z=3z = 3 the sum starts at 1/321/3^2. It is the Basel series with its first two terms, 1/121/1^2 and 1/221/2^2, removed.
ψ(1)(3)=∑n=3∞1n2=π26−1−14\psi^{(1)}(3) = \sum_{n=3}^{\infty}\frac{1}{n^2} = \frac{\pi^2}{6} - 1 - \frac{1}{4}
Step 3: Combine the constants and approximate. Use π2/6≈1.64493\pi^2/6 \approx 1.64493.
ψ(1)(3)=π26−54≈1.64493−1.25=0.39493\psi^{(1)}(3) = \frac{\pi^2}{6} - \frac{5}{4} \approx 1.64493 - 1.25 = 0.39493
Answer: ψ(1)(3)=π26−54≈0.3949\psi^{(1)}(3) = \dfrac{\pi^2}{6} - \dfrac{5}{4} \approx 0.3949

Why It Matters

In statistics, the trigamma function gives the variance of ln⁡X\ln X when XX follows a gamma distribution with shape α\alpha: Var⁡(ln⁡X)=ψ(1)(α)\operatorname{Var}(\ln X) = \psi^{(1)}(\alpha). It also appears in the Fisher information and in the Newton's-method steps for maximum likelihood fits of gamma and beta distributions. Physicists use it to sum series of the form ∑1/(n+a)2\sum 1/(n+a)^{2} in closed form.

Common Mistakes

Mistake: Treating ψ(m)\psi^{(m)} as the mmth derivative of ln⁡Γ(z)\ln\Gamma(z), or dropping the sign (−1)m+1(-1)^{m+1}.
Correction: The superscript counts derivatives of the digamma function, so ψ(m)\psi^{(m)} is the (m+1)(m+1)th derivative of ln⁡Γ(z)\ln\Gamma(z). The sign alternates with the order. Trigamma is positive for real z>0z > 0, but ψ(2)(z)\psi^{(2)}(z) is negative there, for example ψ(2)(1)=−2ζ(3)\psi^{(2)}(1) = -2\zeta(3).

Related Terms