# 双伽玛函数

双伽玛函数写作 \(\psi(z)\)，是伽玛函数的对数导数，对不等于 0、−1、−2、… 的复 \(z\) 定义为

\[ \psi(z) = \frac{\Gamma'(z)}{\Gamma(z)} = \frac{d}{dz}\ln \Gamma(z). \]

它也称为 psi 函数，是 \(\ln \Gamma(z)\) 的各阶导数——多伽玛函数——中的第一个。<sup>[1](https://dlmf.nist.gov/5.2)</sup><sup> • </sup><sup>[2](https://mathworld.wolfram.com/DigammaFunction.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | \( \psi(z) = \Gamma'(z)/\Gamma(z) \)，即伽玛函数的对数导数<sup>[1](https://dlmf.nist.gov/5.2)</sup> |
| 奇点 | 亚纯，在 \( z = -n \)（\( n = 0, 1, 2, \dots \)）处有留数为 −1 的单极点<sup>[1](https://dlmf.nist.gov/5.2)</sup> |
| 递推公式 | \( \psi(z+1) = \psi(z) + 1/z \)<sup>[3](https://dlmf.nist.gov/5.5)</sup> |
| 反射公式 | \( \psi(z) - \psi(1-z) = -\pi/\tan(\pi z) \)<sup>[3](https://dlmf.nist.gov/5.5)</sup> |
| 与调和数的关系 | \( \psi(n+1) = H_n - \gamma \)，其中 \( H_n \) 是第 n 个调和数，\( \gamma \approx 0.5772156649 \) 是欧拉常数<sup>[4](https://math.colgate.edu/~integers/x92/x92.pdf)</sup><sup> • </sup><sup>[1](https://dlmf.nist.gov/5.2)</sup> |
| 实轴上的零点 | 一个正零点在 1.4616321449683623，一个负零点在 −0.504083008264455409，如 SciPy 的复双伽玛实现所编码<sup>[5](https://github.com/scipy/xsf/blob/main/include/xsf/digamma.h)</sup> |
| 高阶导数 | 第 n 阶导数 \( \psi^{(n)}(z) \) 是多伽玛函数 \( \psi_n(z) \)；双伽玛函数本身是 \( \psi_0(z) \)<sup>[2](https://mathworld.wolfram.com/DigammaFunction.html)</sup> |

## 定义与解析结构

伽玛函数对 \( \Re z > 0 \) 由欧拉积分 \( \Gamma(z) = \int_0^{\infty} e^{-t} t^{z-1}\,dt \) 定义，并通过解析延拓延拓到其他地方；它是亚纯的，没有零点，在 \( z = -n \) 处有留数为 \( (-1)^n/n! \) 的单极点。<sup>[1](https://dlmf.nist.gov/5.2)</sup> 对 \( \ln \Gamma(z) \) 求导得到双伽玛函数。因为 \( \Gamma \) 在非正整数处有单极点，所以 \( \psi \) 在每个 \( z = -n \) 处有留数为 −1 的单极点。<sup>[1](https://dlmf.nist.gov/5.2)</sup>

文献中并存两个密切相关的定义。除 \( \Psi(z) = d(\ln \Gamma(z))/dz \) 外，有些作者将 \( F(z) = d(\ln z!)/dz \) 定义为阶乘的对数导数；二者由 \( F(z) = \Psi(z+1) \) 联系。<sup>[2](https://mathworld.wolfram.com/DigammaFunction.html)</sup> DLMF 记录了历史上的替代记号：高斯以及扬克和埃姆德（1945）使用的 \( \Psi(z-1) \)，戴维斯（1933）使用的 \( \Psi(z) \)，以及佩尔曼（1919）使用的 \( F(z-1) \)。<sup>[6](https://dlmf.nist.gov/5.1)</sup> 由 K. S. 克尔比希（K. S. Kölbig）——一位以在欧洲核子研究中心（CERN）从事计算机代数和特殊函数工作而闻名的物理学家——撰写的一份 CERN 手册综述同样将该函数介绍为“伽玛函数的对数导数，有时称为双伽玛函数或 psi 函数”。<sup>[7](https://cds.cern.ch/record/318598/files/Kolbig.pdf?version=1)</sup>

## 函数方程

双伽玛函数通过求导从伽玛函数继承函数方程。递推公式

\[ \psi(z+1) = \psi(z) + \frac{1}{z} \]

来自 \( \Gamma(z+1) = z\,\Gamma(z) \)，而反射公式

\[ \psi(z) - \psi(1-z) = -\frac{\pi}{\tan(\pi z)} \]

来自 \( \Gamma(z)\Gamma(1-z) = \pi/\sin(\pi z) \)。<sup>[3](https://dlmf.nist.gov/5.5)</sup> 二者分别作为阿布拉莫维茨和斯特根《数学函数手册》中的方程 6.3.5 和 6.3.7 出现。<sup>[3](https://dlmf.nist.gov/5.5)</sup>

乘法公式也沿用。倍元公式为

\[ \psi(2z) = \tfrac{1}{2}\left(\psi(z) + \psi\left(z + \tfrac{1}{2}\right)\right) + \ln 2, \]

而高斯乘法公式给出，对正整数 \( n \)，

\[ \psi(nz) = \frac{1}{n}\sum_{k=0}^{n-1} \psi\left(z + \frac{k}{n}\right) + \ln n. \]<sup>[3](https://dlmf.nist.gov/5.5)</sup>

## 调和数与特殊值

递推公式 \( \psi(z+1) = \psi(z) + 1/z \) 连同 \( \psi(1) = -\gamma \)，将双伽玛函数直接与调和数 \( H_n = 1 + 1/2 + \cdots + 1/n \) 联系起来：对正整数，\( \psi(n+1) = H_n - \gamma \)。数论文献直白地陈述了这一联系：“Hn 可以用双伽玛函数 \( \psi = \Gamma'/\Gamma \) 表示。”<sup>[4](https://math.colgate.edu/~integers/x92/x92.pdf)</sup> 在这个意义上，双伽玛函数是调和数到非整数自变量的解析延拓，并平移了欧拉常数。

欧拉常数本身定义为

\[ \gamma = \lim_{n \to \infty}\left(1 + \tfrac{1}{2} + \tfrac{1}{3} + \cdots + \tfrac{1}{n} - \ln n\right) = 0.57721\,56649\,01532\,86060\ldots \]<sup>[1](https://dlmf.nist.gov/5.2)</sup>

因此对大的正 \( z \)，双伽玛函数像 \( \ln z \) 一样增长，在其围绕调和和的展开中常数项为 \( -\gamma \)。

实零点并不位于简单的闭式位置。SciPy 的复双伽玛 C++ 实现硬编码了正根 \( 1.4616321449683623 \) 和负根 \( -0.504083008264455409 \)，其值使用 mpmath 计算到机器精度，并通过平移的赫尔维茨ζ值的泰勒级数在每个根附近计算该函数。<sup>[5](https://github.com/scipy/xsf/blob/main/include/xsf/digamma.h)</sup>

## 多伽玛函数与级数

\( \psi(z) \) 的第 n 阶导数称为多伽玛函数，记作 \( \psi_n(z) \)，因此双伽玛函数本身是 \( \psi_0(z) \)。<sup>[2](https://mathworld.wolfram.com/DigammaFunction.html)</sup> 在 Wolfram 语言中，双伽玛函数由 `PolyGamma[z]` 或 `PolyGamma[0, z]` 返回。<sup>[2](https://mathworld.wolfram.com/DigammaFunction.html)</sup> 双伽玛函数与多伽玛函数的和在应用中经常出现，以至于人们专门为此编纂了它们的二次阶和公式集。<sup>[8](https://arxiv.org/abs/math/0406338)</sup>

双伽玛函数也出现在交错级数和有理自变量级数的闭式中。MathWorld 列出了诸如

\[ \sum_{k=0}^{\infty} \frac{(-1)^k}{zk+1} = \frac{1}{2z}\left[\psi_0\left(\frac{z+1}{2z}\right) - \psi_0\left(\frac{1}{2z}\right)\right], \]

的恒等式，作为该函数在计算简单无穷和中作用的例子。<sup>[2](https://mathworld.wolfram.com/DigammaFunction.html)</sup> 研究文献已发展出涉及双伽玛函数和调和数的组合级数恒等式族，包括带负系数的级数。<sup>[9](https://dspace.library.uvic.ca/items/551581e8-42a6-43e8-895a-2bcb41d520a2)</sup>

## 渐近行为

对大的 \( z \)，双伽玛函数有按 \( z \) 的负幂展开的庞加莱型渐近展开，其系数由伯努利数 \( B_{2k} \) 构成，对应于阿布拉莫维茨和斯特根的方程 6.3.18。<sup>[10](https://dlmf.nist.gov/5.11)</sup> 当对实正 \( z \) 将展开截断到 \( k = n-1 \) 时，其余项的绝对值以第一个被忽略的项的绝对值为上界，且与该项同号，这使该展开在数值工作中很实用。<sup>[10](https://dlmf.nist.gov/5.11)</sup> 主导行为是 \( \psi(z) \sim \ln z \)，与上面的调和数联系一致。

## 计算与软件

双伽玛函数是科学软件中的标准特殊函数。用于任意精度算术的 mpmath 库实现了伽玛函数、多伽玛函数和赫尔维茨ζ函数，它们构成高精度计算双伽玛函数的基础。<sup>[11](https://www.mpmath.org/doc/current/functions/index.html)</sup> SciPy 针对复自变量的实现由 SciPy 开发者在 2024 年从 Cython 转译为 C++，它引用 NIST 数学函数数字图书馆和 mpmath 0.19 版作为来源，并将以根为锚点的泰勒级数与 Cephes 库的实双伽玛例程结合起来。<sup>[5](https://github.com/scipy/xsf/blob/main/include/xsf/digamma.h)</sup> 伽玛函数、双伽玛函数和三伽玛函数的数值方法已在数值分析文献中研究，包括与兰乔斯伽玛近似形式相同的近似。<sup>[12](https://epubs.siam.org/doi/10.1137/0731050)</sup>

## 应用

除了调和数恒等式之外，双伽玛函数还出现在数学和统计学的各个领域。《皇家统计学会杂志，C辑》1976 年的一则短文将 psi（双伽玛）函数介绍给应用统计学读者，反映了它在似然和估计问题中的用途。<sup>[13](https://academic.oup.com/jrsssc/article/25/3/315/6953548)</sup> 在数论中，含双伽玛函数的积分在肯普纳和理论中表示对某一进制下缺少指定数字的整数求和的修正。<sup>[14](https://arxiv.org/abs/2403.03912)</sup> 已发现具有最佳常数的不等式来界定 \( \psi \) 和调和数；2017 年，阿尔泽和詹姆森证明，当 \( z > 0 \) 时，\( \psi(z) \) 与 \( \psi(1/z) \) 的调和平均总是至少为 \( -\gamma \)。<sup>[15](https://arxiv.org/abs/0902.2524)</sup><sup> • </sup><sup>[16](https://arxiv.org/abs/2304.12081)</sup>

## References

1. [DLMF §5.2 Definitions, NIST Digital Library of Mathematical Functions](https://dlmf.nist.gov/5.2)
2. [Digamma Function, Wolfram MathWorld](https://mathworld.wolfram.com/DigammaFunction.html)
3. [DLMF §5.5 Functional Relations, NIST Digital Library of Mathematical Functions](https://dlmf.nist.gov/5.5)
4. [Harmonic Numbers: Combinat, Integers (Colgate University)](https://math.colgate.edu/~integers/x92/x92.pdf)
5. [xsf/include/xsf/digamma.h, SciPy xsf repository, GitHub](https://github.com/scipy/xsf/blob/main/include/xsf/digamma.h)
6. [DLMF §5.1 Special Notation, NIST Digital Library of Mathematical Functions](https://dlmf.nist.gov/5.1)
7. [K. S. Kölbig, The logarithmic derivative of Γ(z), CERN Document Server](https://cds.cern.ch/record/318598/files/Kolbig.pdf?version=1)
8. [On Some Sums of Digamma and Polygamma Functions, arXiv:math/0406338](https://arxiv.org/abs/math/0406338)
9. [Some combinatorial series identities associated with the Digamma function and harmonic numbers, University of Victoria repository](https://dspace.library.uvic.ca/items/551581e8-42a6-43e8-895a-2bcb41d520a2)
10. [DLMF §5.11 Asymptotic Expansions, NIST Digital Library of Mathematical Functions](https://dlmf.nist.gov/5.11)
11. [Mathematical functions, mpmath 1.3.0 documentation](https://www.mpmath.org/doc/current/functions/index.html)
12. [Computation of the Gamma, Digamma, and Trigamma Functions, SIAM Journal on Numerical Analysis](https://epubs.siam.org/doi/10.1137/0731050)
13. [Psi (Digamma) Function, Journal of the Royal Statistical Society Series C, 25(3), 315–317](https://academic.oup.com/jrsssc/article/25/3/315/6953548)
14. [Digamma function and general Fischer series in the theory of Kempner sums, arXiv:2403.03912](https://arxiv.org/abs/2403.03912)
15. [Sharp inequalities for the psi function and harmonic numbers, arXiv:0902.2524](https://arxiv.org/abs/0902.2524)
16. [On Some Properties of the Trigamma Function, arXiv:2304.12081](https://arxiv.org/abs/2304.12081)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Number theory › Analytic number theory › Zeta and L-functions › Gamma, polygamma, and related special functions

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/digamma-function

English original: https://www.edgepedia.org/digamma-function
