The areas / V19. Complex and harmonic analysis
Mathlib.Analysis.SpecialFunctions.Gamma.Digamma
12 declarations. Mathlib docs · Source
def Complex.digamma E1 #
ℂ → ℂ
The digamma function, defined as the logarithmic derivative of the Gamma function.
theorem Complex.digamma_def E0 #
Complex.digamma = logDeriv Complex.Gamma
theorem Complex.digamma_zero E0 #
Complex.digamma 0 = 0
theorem Complex.digamma_one E1 #
Complex.digamma 1 = -↑Real.eulerMascheroniConstant
theorem Complex.digamma_one_half E1 #
(1 / 2).digamma = -2 * Complex.log 2 - ↑Real.eulerMascheroniConstant
theorem Complex.digamma_apply_add_one E1 #
∀ (s : ℂ), (∀ (m : ℕ), s ≠ -↑m) → (s + 1).digamma = s.digamma + s⁻¹
theorem Complex.digamma_apply_add_nat E1 #
∀ {s : ℂ}, (∀ (m : ℕ), s ≠ -↑m) → ∀ (n : ℕ), (s + ↑n).digamma = s.digamma + ∑ k ∈ Finset.range n, (s + ↑k)⁻¹
The iterated digamma recurrence ψ(s + n) = ψ(s) + ∑_{k < n} 1 / (s + k), for
s ∉ {0, -1, -2, …}. Proved by induction from digamma_apply_add_one.
theorem Complex.digamma_nat_add_one E1 #
∀ (n : ℕ), (↑n + 1).digamma = ↑(harmonic n) - ↑Real.eulerMascheroniConstant
The digamma function at a positive integer, in terms of harmonic numbers.
theorem Complex.digamma_one_sub E1 #
∀ {s : ℂ}, (∀ (n : ℤ), s ≠ ↑n) → (1 - s).digamma = s.digamma + ↑Real.pi * Complex.cot (↑Real.pi * s)
Euler's reflection formula for the digamma function:
ψ (1 - s) = ψ s + π * cot (π * s) for s not an integer.
theorem Complex.meromorphic_digamma E1 #
Meromorphic Complex.digamma
theorem HasDerivAt.logDeriv_Gamma E1 #
∀ {g : ℂ → ℂ} {a s : ℂ},
HasDerivAt g a s → (∀ (m : ℕ), g s ≠ -↑m) → logDeriv (fun z ↦ Complex.Gamma (g z)) s = a * (g s).digamma
If g has derivative a at s, then the logarithmic derivative of Gamma ∘ g at s is
a * digamma (g s).
theorem Complex.digamma_two_mul E1 #
∀ {s : ℂ}, (∀ (m : ℕ), 2 * s ≠ -↑m) → (2 * s).digamma = 1 / 2 * (s.digamma + (s + 1 / 2).digamma) + Complex.log 2
The digamma duplication formula ψ(2s) = ½(ψ(s) + ψ(s + ½)) + log 2, for
2s ∉ {0, -1, -2, …}, which is equivalent to s and s + ½ both avoiding the poles of ψ.
Proved from Legendre's doubling Complex.Gamma_mul_Gamma_add_half by taking logarithmic
derivatives.