# 朗伯W函数

**朗伯W函数**（Lambert W function）是多值函数，定义为方程 \( W e^{W} = z \) 的解；换言之，它是函数 \( w \mapsto w e^{w} \) 的反函数<sup>[1](https://dlmf.nist.gov/4.13)</sup>。由于 \( w e^{w} \) 并非一一对应，W 有无穷多个分支，以整数 \( k \) 标记，其中有两个分支在实轴的某些区段上取实值<sup>[2](https://cache-docs.scipy.org/doc/scipy/reference/generated/scipy.special.lambertw.html)</sup>。它能解出指数（或对数）与多项式项混合的方程，这是任何初等函数的组合都做不到的；如今它已成为数学物理、工程学和组合数学中的标准特殊函数<sup>[3](https://www.nature.com/nature-index/topics/l4/analytical-applications-of-lambert-w-function-in-mathematical-physics)</sup><sup> • </sup><sup>[4](https://cs.uwaterloo.ca/research/tr/1993/03/W.pdf)</sup>。

| 关键事实 | 详情 |
|---|---|
| 定义 | \( W(z) e^{W(z)} = z \)；W 是 \( w e^{w} \) 的反函数<sup>[1](https://dlmf.nist.gov/4.13)</sup> |
| 分支 | 无穷多个，以 \( k \in \mathbb{Z} \) 标记；除 \( k = 0 \) 外，所有分支在 \( z = 0 \) 处都有对数型奇点<sup>[2](https://cache-docs.scipy.org/doc/scipy/reference/generated/scipy.special.lambertw.html)</sup> |
| 实分支 | \( W_0 \) 在 \( z \ge -1/\mathrm{e} \) 时为实值；\( W_{-1} \) 在 \( -1/\mathrm{e} \le z < 0 \) 时为实值；两者在分支点 \( W(-1/\mathrm{e}) = -1 \) 处相接<sup>[1](https://dlmf.nist.gov/4.13)</sup><sup> • </sup><sup>[2](https://cache-docs.scipy.org/doc/scipy/reference/generated/scipy.special.lambertw.html)</sup> |
| 幂级数 | 当 \( |z| < \mathrm{e}^{-1} \) 时，\( W_0(z) = \sum_{n=1}^{\infty} \frac{(-n)^{n-1}}{n!} z^{n} \)<sup>[1](https://dlmf.nist.gov/4.13)</sup> |
| 导数 | \( \dfrac{dW}{dz} = \dfrac{\mathrm{e}^{-W}}{1+W} = \dfrac{W}{z(1+W)} \)<sup>[1](https://dlmf.nist.gov/4.13)</sup> |
| 示例值 | \( W(1) \approx 0.56714329040978384 \)，即欧米伽常数<sup>[2](https://cache-docs.scipy.org/doc/scipy/reference/generated/scipy.special.lambertw.html)</sup> |
| 现代处理 | 由科利斯、戈内、黑尔、杰弗里和克努特在《计算数学进展》5 (1996) 329–359 中在复分析框架下加以形式化<sup>[4](https://cs.uwaterloo.ca/research/tr/1993/03/W.pdf)</sup> |

## 实分支与分支点

在区间 \( [0, \infty) \) 上，方程 \( W e^{W} = z \) 有一个实解，非负且递增。在 \( (-\mathrm{e}^{-1}, 0) \) 上，它有两个实解，一个递增，一个递减。递增解满足 \( W(z) \ge W(-\mathrm{e}^{-1}) = -1 \)，称为主分支，记作 \( W_0(z) \)<sup>[1](https://dlmf.nist.gov/4.13)</sup>。递减解是 \( k = -1 \) 分支，仅在 \( [-1/\mathrm{e}, 0) \) 上为实值<sup>[2](https://cache-docs.scipy.org/doc/scipy/reference/generated/scipy.special.lambertw.html)</sup>。点 \( z = -1/\mathrm{e} \) 处两分支以平方根型相切的方式相接，该点是函数的分支点，在非常接近它时数值计算会变得不准确<sup>[2](https://cache-docs.scipy.org/doc/scipy/reference/generated/scipy.special.lambertw.html)</sup>。

主分支在原点附近有收敛的幂级数，

\[ W_0(z) = \sum_{n=1}^{\infty} \frac{(-n)^{n-1}}{n!} z^{n}, \qquad |z| < \mathrm{e}^{-1}, \]

其收敛半径由分支点决定<sup>[1](https://dlmf.nist.gov/4.13)</sup>。在分支点附近，另一种以 \( t \) 的幂展开的级数（其中 \( t^2 = 2(W + \ln W + 1) \)，符号约定可能不同）可给出准确的初值<sup>[1](https://dlmf.nist.gov/4.13)</sup>。

## 历史

该函数背后的方程由约翰·海因里希·兰伯特（Johann Heinrich Lambert）于1758年提出，莱昂哈德·欧拉（Leonhard Euler）于1779年在一篇关于超越方程的论文中进行了研究，欧拉在文中将这一成果归功于兰伯特<sup>[5](https://archive.lib.msu.edu/crcmath/math/math/l/l058.htm)</sup>。兰伯特将方程 \( x^{m} + px = q \) 展开为无穷级数的工作，由欧拉和约瑟夫·路易·拉格朗日（Joseph Louis Lagrange）加以推广<sup>[6](https://en.wikisource.org/wiki/1911_Encyclop%C3%A6dia_Britannica/Lambert%2C_Johann_Heinrich)</sup>。尽管有这些18世纪的根源，该函数直到20世纪90年代才获得现代的名称、记号与系统的分支结构，当时滑铁卢大学的唐·科利斯（Don Corless）及其同事在《计算数学进展》（1996）上发表了《论朗伯W函数》<sup>[4](https://cs.uwaterloo.ca/research/tr/1993/03/W.pdf)</sup>。该论文的定义和分支约定是 SciPy 的 `lambertw` 等实现的基础<sup>[2](https://cache-docs.scipy.org/doc/scipy/reference/generated/scipy.special.lambertw.html)</sup>。

## 计算

W 无法用初等函数表示，因此软件以数值方法求值<sup>[7](https://www.mdpi.com/1996-1073/12/3/358)</sup>。对于 \( x \in [-1/\mathrm{e}, \infty) \)，主分支可通过牛顿法则求解 \( W \mathrm{e}^{W} = x \) 来计算：当 \( x \) 接近 \( -1/\mathrm{e} \) 时用幂级数作初始近似，当 \( x \) 较大时用渐近展开，其他值则用微分方程 \( dW/dz = \mathrm{e}^{-W}/(1+W) \) 的数值积分<sup>[8](https://dlmf.nist.gov/4.45)</sup>。同一套机制可覆盖 \( [-1/\mathrm{e}, 0) \) 上的 \( W_{-1} \)<sup>[8](https://dlmf.nist.gov/4.45)</sup>。SciPy 的实现则使用哈雷迭代（牛顿法的三阶推广）来反演 \( w \,\mathrm{e}^{w} \)，从 \( O(\log w) \) 或 \( O(w) \) 阶的一阶渐近近似出发<sup>[2](https://cache-docs.scipy.org/doc/scipy/reference/generated/scipy.special.lambertw.html)</sup>。专门的 Fortran 和 C 实现，包括 Barry 等人（1995）和 Lawrence 等人（2012）的工作，收录于 NIST 数学函数数字图书馆<sup>[9](https://dlmf.nist.gov/4.48)</sup>。

## 应用

**求解超越方程。** 该函数的核心用途是为混合了 \( x \)、\( e^x \) 和 \( \ln x \) 的方程给出闭式解。兰伯特最初的超越方程 \( x = \mathrm{e}^{-\alpha x} \) 型关系，用现代记号其解为 \( x = \exp[-W(-\beta v)/\beta] \)<sup>[5](https://archive.lib.msu.edu/crcmath/math/math/l/l058.htm)</sup>。在物理学中，这种反演指数并吸收对数依赖关系的能力，可给出量子阱中的精确能级、显式的反应动力学表达式、非线性光学中的阈值条件，以及引力坍缩中的稳定性分析<sup>[3](https://www.nature.com/nature-index/topics/l4/analytical-applications-of-lambert-w-function-in-mathematical-physics)</sup>。

**太阳能电池。** 光伏电池的单二极管和双二极管模型导出隐式的电流–电压关系，W 能以闭式求解，从而精确表示 I–V 曲线并直接提取参数<sup>[10](https://www.sciencedirect.com/science/article/pii/S019689041630783X)</sup>。在一项对六种电流–电压特性提取方法的比较中，朗伯W函数法在精度、适用性和收敛性方面被评为最佳综合方法，尽管计算速度慢于所比较的其他四种方法<sup>[11](https://www.sciencedirect.com/science/article/abs/pii/S0038092X12004203)</sup>。

**时滞系统。** 具有单个已知时滞的线性时不变系统，其特征方程的根可通过 W 表示，因此自由解与受迫解、稳定性、可观测性、可控性以及通过特征值配置的控制器设计都可在同一框架内处理；该方法通过矩阵朗伯W函数推广到高阶系统，并在开源 Matlab LambertW_DDE 工具箱中实现<sup>[12](https://www.sciencedirect.com/science/article/pii/S147466701534708X)</sup>。相关工作将 W 应用于经济学和金融学中的时滞微分方程模型<sup>[13](https://pubmed.ncbi.nlm.nih.gov/41410562/)</sup>，以及具有时间延迟光反馈的激光动力学<sup>[14](https://arxiv.org/abs/1801.03111)</sup>。

**组合数学。** 树函数 \( T(x) \) 由 \( T \mathrm{e}^{-T} = x \) 定义（符号可能不同），本质上就是 \( -W(-x) \)；\( T(x) \) 是有根树的指数生成函数，而 \( \mathrm{e}^{T(x)} = T(x)/x \) 是有根树森林的指数生成函数，这使得 W 成为枚举组合学的基本对象，尽管组合学家常以树函数记号陈述结果<sup>[15](https://doi.org/10.1016/j.jcta.2016.06.018)</sup>。

## 相关函数与推广

赖特欧米伽函数（Wright omega function）也可在 SciPy 中与 `lambertw` 一同使用，它是 W 的单值近亲，能求解一个相关方程而无分支歧义<sup>[2](https://cache-docs.scipy.org/doc/scipy/reference/generated/scipy.special.lambertw.html)</sup>。由特殊多项式构造的推广将 W 扩展到理论物理中出现的更广泛的超越方程类<sup>[16](https://arxiv.org/abs/1408.3999)</sup>，而高阶近似结合仔细的分支选择，已降低了太阳能电池参数提取、拉曼光纤激光器设计和地球物理振子等应用中的计算开销<sup>[3](https://www.nature.com/nature-index/topics/l4/analytical-applications-of-lambert-w-function-in-mathematical-physics)</sup>。

## References

1. [DLMF §4.13, Lambert W-Function, NIST Digital Library of Mathematical Functions](https://dlmf.nist.gov/4.13)
2. [scipy.special.lambertw, SciPy v1.18.0 Manual](https://cache-docs.scipy.org/doc/scipy/reference/generated/scipy.special.lambertw.html)
3. [Analytical Applications of Lambert W Function in Mathematical Physics, Nature Index](https://www.nature.com/nature-index/topics/l4/analytical-applications-of-lambert-w-function-in-mathematical-physics)
4. [Corless, R. M., Gonnet, G. H., Hare, D. E. G., Jeffrey, D. J., Knuth, D. E. (1996). On the Lambert W function. Advances in Computational Mathematics 5, 329–359](https://cs.uwaterloo.ca/research/tr/1993/03/W.pdf)
5. [Lambert's Transcendental Equation, MathWorld archive](https://archive.lib.msu.edu/crcmath/math/math/l/l058.htm)
6. [Lambert, Johann Heinrich, 1911 Encyclopædia Britannica, Wikisource](https://en.wikisource.org/wiki/1911_Encyclop%C3%A6dia_Britannica/Lambert%2C_Johann_Heinrich)
7. [Non-Iterative Methods for the Extraction of the Single-Diode Model Parameters of Photovoltaic Modules, Energies 12(3), 358 (2019)](https://www.mdpi.com/1996-1073/12/3/358)
8. [DLMF §4.45, Methods of Computation, NIST Digital Library of Mathematical Functions](https://dlmf.nist.gov/4.45)
9. [DLMF §4.48, Software, NIST Digital Library of Mathematical Functions](https://dlmf.nist.gov/4.48)
10. [Lambert W-function based exact representation for double diode model of solar cells, Energy Conversion and Management (2017)](https://www.sciencedirect.com/science/article/pii/S019689041630783X)
11. [Evaluation of methods to extract parameters from current–voltage characteristics of solar cells, Solar Energy (2013)](https://www.sciencedirect.com/science/article/abs/pii/S0038092X12004203)
12. [The Lambert W Function Approach to Time Delay Systems and the LambertW_DDE Toolbox, IFAC Proceedings Volumes 45(14), 114–119 (2012)](https://www.sciencedirect.com/science/article/pii/S147466701534708X)
13. [Lambert W Function in Solving Delay Differential Equations for Modeling in Economics and Finance, PubMed](https://pubmed.ncbi.nlm.nih.gov/41410562/)
14. [Lambert function methods for laser dynamics with time-delayed feedback, arXiv:1801.03111](https://arxiv.org/abs/1801.03111)
15. [Lagrange inversion, Journal of Combinatorial Theory A (2016)](https://doi.org/10.1016/j.jcta.2016.06.018)
16. [On the generalization of the Lambert W function with applications in theoretical physics, arXiv:1408.3999](https://arxiv.org/abs/1408.3999)

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

Topic: 物质世界与数学 › 数学与统计学 › 数学分析与数学模型 › Analysis overview and reference

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/lambert-w-function

English original: https://www.edgepedia.org/lambert-w-function
