On this page
If you have met the gamma function, the digamma function is the next thing worth knowing. It turns awkward infinite sums into a short calculation, and it explains where Euler's constant γ keeps turning up. Every formula below comes from NIST's Digital Library of Mathematical Functions (DLMF), chapter 5, a standard reference work for special functions.
What is the digamma function?
The digamma function is ψ(x) = Γ′(x)/Γ(x), the derivative of ln Γ(x) (DLMF 5.2.2). Γ extends the factorial beyond whole numbers (our explainer on what the gamma function is covers that), so ψ measures how fast ln Γ grows.
ψ has simple poles at x = 0, −1, −2, …, each with residue −1 (DLMF 5.2). Between neighbouring poles it rises from −∞ to +∞, which you can see in the graph above. For positive x it crosses zero once, at x ≈ 1.46163, which is where Γ(x) reaches its minimum on the positive axis (DLMF Table 5.4.1).
The constant that appears everywhere is Euler's constant: γ = lim (1 + 1/2 + … + 1/n − ln n) = 0.5772156649… (DLMF 5.2.3).
Why does ψ(x+1) = ψ(x) + 1/x?
Start from the gamma recurrence Γ(x+1) = xΓ(x) (DLMF 5.5.1). Take logs: ln Γ(x+1) = ln x + ln Γ(x). Differentiate both sides and you get the digamma recurrence, ψ(x+1) = ψ(x) + 1/x (DLMF 5.5.2).
Apply it n times and the steps add up:
ψ(x+n) = ψ(x) + 1/x + 1/(x+1) + … + 1/(x+n−1)
This lets you move any argument into a range where you already know the value.
What are ψ(1) and ψ(1/2)?
Two values anchor almost every calculation.
ψ(1) = −γ, because Γ′(1) = −γ and Γ(1) = 1 (DLMF 5.4.11 and 5.4.12).
ψ(1/2) = −γ − 2 ln 2 ≈ −1.9635 (DLMF 5.4.13).
Now run the recurrence from x = 1. Each step adds 1, then 1/2, then 1/3, so ψ(n+1) = −γ + 1 + 1/2 + … + 1/n (DLMF 5.4.14). In other words, the harmonic numbers are H_n = ψ(n+1) + γ. Check it at n = 4: ψ(5) + γ = 1 + 1/2 + 1/3 + 1/4 = 25/12.
The Euler–Maclaurin formula explains why such a sum stays close to ln n + γ.
From x = 1/2 the same steps give ψ(3/2) = ψ(1/2) + 2 = 2 − γ − 2 ln 2 ≈ 0.0365. You will need that in a moment.
That link is worth following: our post on why the sum of 1/n² is π²/6 tells Euler's side of the story.
How do you use the digamma function to evaluate sums?
The key is a series for ψ: ψ(z) + γ = Σ from k = 0 to ∞ of (1/(k+1) − 1/(k+z)) (DLMF 5.7.6). Subtract this for z = a from the same series for z = b and the 1/(k+1) terms cancel. That gives a general rule for b ≠ a:
Σ from k = 0 to ∞ of 1/((k+a)(k+b)) = (ψ(b) − ψ(a))/(b − a)
Here is the recipe we suggest:
Write the term as a product of two linear factors in k.
Shift the index so the sum starts at k = 0, and read off a and b.
Apply the rule, then use the recurrence and ψ(1), ψ(1/2) to get numbers.
Add the first three terms by hand to check the size of the answer.
How do you sum 1/(n(n+a)) with the digamma function?
Put n = k + 1. The sum from n = 1 becomes Σ from k = 0 of 1/((k+1)(k+1+a)), so the rule's a becomes 1 and its b becomes 1 + a. The rule gives:
Σ from n = 1 to ∞ of 1/(n(n+a)) = (ψ(a+1) − ψ(1))/a = (ψ(a+1) + γ)/a
For a whole number a = m, that is H_m/m. At m = 3 the answer is (11/6)/3 = 11/18, which you can confirm by ordinary telescoping.
For a = 1/2 telescoping fails, but ψ does not: (ψ(3/2) + γ)/(1/2) = 2(2 − 2 ln 2) = 4 − 4 ln 2 ≈ 1.2274. Check step 4: the first three terms are 2/3 + 1/5 + 2/21 ≈ 0.962, and the slowly shrinking tail makes up the rest.
Where to practise this next
The recipe is really three skills: partial fractions, index shifts and the gamma function. If any of these feels shaky, look up each idea in the Fermi Concept Library, which covers every concept in physics, chemistry, biology, mathematics and computing. Then try a sum of your own with a = 1/4 or a = 3/2. If your answer disagrees with the numerical check, the Fermi Problem Library has worked problems with a step-by-step solver that explains the reasoning, so you can find the line where your working went wrong.



