# 梯度

标量函数的梯度是由其偏导数构成的向量，记作 \( \nabla f \) 或 grad f；在每一点上，它指向函数增长最快的方向，其大小等于该方向上的增长率。<sup>[1](https://mathworld.wolfram.com/Gradient.html)</sup> 在 \( \mathbb{R}^3 \) 的笛卡尔坐标下，

在笛卡尔坐标下，梯度由下式给出：\[ \nabla f = \hat{x}\,\frac{\partial f}{\partial x} + \hat{y}\,\frac{\partial f}{\partial y} + \hat{z}\,\frac{\partial f}{\partial z}. \]

它是向量微积分三大标准微分运算之一，与散度和旋度并列；从温度场、势场，到优化与机器学习中的梯度下降，诸多实用工具都以它为基础。<sup>[2](https://www.mit.edu/~harlow/combinedlectures.pdf)</sup><sup> • </sup><sup>[3](https://www.osti.gov/servlets/purl/983240)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 在笛卡尔坐标下 \( \nabla f = (\partial f/\partial x,\ \partial f/\partial y,\ \partial f/\partial z) \)；是作用于标量、返回向量的导数<sup>[1](https://mathworld.wolfram.com/Gradient.html)</sup><sup> • </sup><sup>[4](https://ocw.mit.edu/courses/3-016-mathematics-for-materials-scientists-and-engineers-fall-2005/c940826122ae748cde28ebc7f5c73cd6_lecture_13.pdf)</sup> |
| 方向导数 | 对单位向量 \( \hat{n} \)，f 沿该方向的导数为 \( \hat{n} \cdot \nabla f \)；梯度方向使其取最大值，而 \( \lvert \nabla f \rvert \) 即为该方向上的导数值<sup>[2](https://www.mit.edu/~harlow/combinedlectures.pdf)</sup><sup> • </sup><sup>[1](https://mathworld.wolfram.com/Gradient.html)</sup> |
| 保守场 | 梯度向量场的旋度为零向量，可用来检验任意向量场是否为保守场<sup>[5](https://web.mit.edu/course/other/wwmath/vectorc/summary.html)</sup> |
| 拉普拉斯算子 | \( \nabla \cdot \nabla f = \nabla^2 f \) 即拉普拉斯算子；\( \nabla^2 f = 0 \) 即拉普拉斯方程<sup>[6](https://ocw.mit.edu/courses/res-18-001-calculus-fall-2023/mitres_18_001_f17_ch15.pdf)</sup> |
| 符号史 | 算子 \( \nabla \) 由威廉·罗恩·哈密顿（William Rowan Hamilton）引入；P. G. 泰特（P. G. Tait）在其 1867 年的《四元数初论》（*An Elementary Treatise on Quaternions*）中将其确立为通用符号<sup>[7](https://mathshistory.st-andrews.ac.uk/Miller/mathsym/calculus/)</sup> |
| 优化 | 最速下降法，又称梯度下降法，由柯西（Cauchy）于 1847 年首次提出<sup>[3](https://www.osti.gov/servlets/purl/983240)</sup> |
| 流形 | 在黎曼流形 \( (\mathcal{M}, g) \) 上，梯度 \( \nabla_g f \) 是与微分 \( \mathrm{d}f \) 度量对偶的唯一向量场，其定义不依赖坐标<sup>[8](https://aniketdeshpande.com/notes/ig.pdf)</sup> |

## 定义与方向导数

梯度作用于标量场——即为空间中每一点赋予一个数值的函数——并返回一个向量场。对于具有连续一阶偏导数的函数 \( f(x, y, z) \)，梯度把这些偏导数汇集为一个向量；这一运算通常用向量微分算子 \( \nabla \) 作用于 f 来表示，该算子称为 del 或那布拉（nabla）。<sup>[2](https://www.mit.edu/~harlow/combinedlectures.pdf)</sup><sup> • </sup><sup>[9](https://ocw.mit.edu/courses/18-013a-calculus-with-applications-spring-2005/pages/study-materials/)</sup>

梯度的几何意义来自方向导数，即从某点沿给定方向移动时 f 的变化率。对单位向量 \( \hat{n} \)，该导数为点积 \( \hat{n} \cdot \nabla f \)。由于与一个固定向量的点积在另一向量与之同向时最大，因此 \( \nabla f \) 的方向就是方向导数取最大值的方向，而其大小 \( \lvert \nabla f \rvert \) 就是该导数的值。<sup>[2](https://www.mit.edu/~harlow/combinedlectures.pdf)</sup><sup> • </sup><sup>[1](https://mathworld.wolfram.com/Gradient.html)</sup> 一个物理例子是温度：温度场的梯度为每一点赋予一个向量，指出朝哪个方向走升温最快。<sup>[10](https://web.mit.edu/wwmath/vectorc/ispath/unit5.html)</sup>

由此可直接得出两个推论。

## 与散度、旋度的关系

向量微积分的三大运算共用同一个算子 \( \nabla \)：标量的梯度 \( \nabla f \)、向量的散度 \( \nabla \cdot \mathbf{F} \) 与旋度 \( \nabla \times \mathbf{F} \)。类型上的区别很重要：标量的梯度是向量，向量的散度是标量。<sup>[6](https://ocw.mit.edu/courses/res-18-001-calculus-fall-2023/mitres_18_001_f17_ch15.pdf)</sup>

依次施加这些算子，便得到那些经典恒等式。任何梯度场的旋度都是零向量，因此旋度非零的场不可能是某个势的梯度；反过来，庞加莱（Poincaré）定理指出，若在某个单连通邻域内 \( \nabla \times \mathbf{F} = 0 \)，则在该邻域内 \( \mathbf{F} \) 是某个标量场的梯度。<sup>[5](https://web.mit.edu/course/other/wwmath/vectorc/summary.html)</sup><sup> • </sup><sup>[11](https://mathworld.wolfram.com/LineIntegral.html)</sup> 作为某个标量势的梯度的向量场称为保守场，因为粒子在闭合回路中逆着这样的场运动所做的功恒为 0。<sup>[5](https://web.mit.edu/course/other/wwmath/vectorc/summary.html)</sup> 将散度与梯度复合便得到拉普拉斯算子，\( \nabla \cdot \nabla f = \nabla^2 f \)；组合 \( \operatorname{div} \operatorname{grad} f = 0 \) 即拉普拉斯方程，当源为零时，势满足此方程。<sup>[6](https://ocw.mit.edu/courses/res-18-001-calculus-fall-2023/mitres_18_001_f17_ch15.pdf)</sup>

三维的这三种运算中，只有梯度和散度能直接推广到 n 维；旋度在三维以上没有简单的向量场描述，这也是高维理论转向微分形式的原因之一。<sup>[12](https://math.mit.edu/classes/18.952/2019SP/18.952_book_2019.pdf)</sup>

## 符号的历史

向量微分算子 \( \nabla \) 由威廉·罗恩·哈密顿（William Rowan Hamilton，1805—1865）引入。据斯坦（Stein）与巴塞洛斯（Barcellos）所述，哈密顿在 1846 年用普通的大写希腊字母 Δ 表示梯度，并在 1853 年的《四元数讲义》（*Lectures on Quaternions*）中引入了那布拉算子。<sup>[7](https://mathshistory.st-andrews.ac.uk/Miller/mathsym/calculus/)</sup><sup> • </sup><sup>[13](https://math93.com/histoire-des-maths/une-chronologie/19-histoire-des-mathematiques/142-les-operateurs-differentiels.html)</sup> 正是 P. G. 泰特在《四元数初论》（1867）中把 \( \nabla \) 确立为通用符号，也是他确立了“那布拉”这一名称。<sup>[7](https://mathshistory.st-andrews.ac.uk/Miller/mathsym/calculus/)</sup> 这个符号被奥利弗·亥维赛（Oliver Heaviside）称作 nabla，被其他人称作 atled（delta 倒写），通常读作 del。<sup>[14](https://preview.wellcomecollection.org/works/w4qa8wcj/items?canvas=159&manifest=2&page=27&shouldScrollToCanvas=true)</sup>

现代这套工具是围绕电磁学成形的。詹姆斯·克拉克·麦克斯韦（James Clerk Maxwell）与泰特合作，以及后来的亥维赛，建立了向量的代数与微积分，包括向量场、算子 \( \vec{\nabla} \)、散度、梯度、旋度和拉普拉斯算子，其形式与今天微积分第三学期课程中所教的几乎相同。<sup>[15](https://www.siam.org/publications/siam-news/articles/the-curious-history-of-vectors-and-tensors/)</sup> 麦克斯韦和黎曼-韦伯（Riemann-Weber）把标量 \( \phi \) 的梯度记作 grad \( \phi \)。<sup>[14](https://preview.wellcomecollection.org/works/w4qa8wcj/items?canvas=159&manifest=2&page=27&shouldScrollToCanvas=true)</sup>

## 梯度下降与优化

梯度给出最速上升的方向，因此其相反方向就是函数下降最快的方向。奥古斯丁-路易·柯西（Augustin-Louis Cauchy）于 1847 年在提交法国科学院的一篇短文中，将其正式确立为一种优化方法，提出沿局部最速下降方向反复前进，以求解方程组。<sup>[3](https://www.osti.gov/servlets/purl/983240)</sup><sup> • </sup><sup>[16](https://cpoli.github.io/mathematicskit/history/optimization_breakthroughs.html)</sup> 基本迭代为

\[ x_{k+1} = x_k - \alpha \nabla f(x_k), \]

其中步长 \( \alpha > 0 \) 取得适当。<sup>[16](https://cpoli.github.io/mathematicskit/history/optimization_breakthroughs.html)</sup><sup> • </sup><sup>[17](https://www.math.tau.ac.il/~teboulle/lx/lec1-to-6.pdf)</sup> 步长足够小时，该方法能使光滑函数稳定下降，但它会在狭窄细长（病态）的谷地中来回锯齿般振荡；其收敛速度缓慢，正是经典形式在实践中不常用的原因；不过，理解其收敛性质仍能为更精巧的方法提供启示。<sup>[16](https://cpoli.github.io/mathematicskit/history/optimization_breakthroughs.html)</sup><sup> • </sup><sup>[3](https://www.osti.gov/servlets/purl/983240)</sup>

这一思想如今驱动着大规模机器学习：随机梯度下降在权重空间中搜索网络损失函数的极小值，而损失函数的水平集构成崎岖的能量地形，其中的局部极小值和鞍点可能使迭代误入歧途。<sup>[18](https://web.stanford.edu/class/cs379c/resources/lectures/)</sup> 在高维情形下，鞍点比局部极小值常见得多。<sup>[19](https://cs231n.stanford.edu/slides/2023/lecture_3.pdf)</sup>

## 流形上的梯度

在弯曲空间中，用偏导数写出的坐标公式不再能以明确无歧义的方式定义一个向量。对于黎曼流形 \( (\mathcal{M}, g) \) 上的函数 \( f \)——所谓黎曼流形，是配备了度量长度与角度的度量的空间——梯度 \( \nabla_g f \) 定义为与微分 \( \mathrm{d}f \) 度量对偶的唯一向量场；这一定义不需要坐标，且在坐标卡变换下不变。<sup>[8](https://aniketdeshpande.com/notes/ig.pdf)</sup><sup> • </sup><sup>[20](https://arxiv.org/abs/1501.01223)</sup> 在局部坐标中，可利用度量相容性条件计算梯度，并通过黎曼几何的音乐同构把它与函数的微分联系起来。<sup>[21](https://www.mdpi.com/2073-8994/13/11/2092)</sup> 正是这种不依赖坐标的观点，使得基于梯度的方法——包括建立在瓦瑟斯坦（Wasserstein）度量等度量张量之上的自然梯度方法——能够推广到非欧几里得空间。<sup>[22](https://arxiv.org/abs/1805.08380)</sup>

## References

1. [Gradient, Wolfram MathWorld](https://mathworld.wolfram.com/Gradient.html)
2. [Gradient, divergence, and curl (MIT 8.02 lecture notes)](https://www.mit.edu/~harlow/combinedlectures.pdf)
3. [Juan C. Meza, Steepest Descent, Lawrence Berkeley National Laboratory](https://www.osti.gov/servlets/purl/983240)
4. [MIT 3.016 Lecture 13: Differential Operations on Vectors](https://ocw.mit.edu/courses/3-016-mathematics-for-materials-scientists-and-engineers-fall-2005/c940826122ae748cde28ebc7f5c73cd6_lecture_13.pdf)
5. [World Web Math: Vector Calculus Summary, MIT](https://web.mit.edu/course/other/wwmath/vectorc/summary.html)
6. [RES.18-001 Calculus, Chapter 15: Vector Calculus, MIT OpenCourseWare](https://ocw.mit.edu/courses/res-18-001-calculus-fall-2023/mitres_18_001_f17_ch15.pdf)
7. [Earliest Uses of Symbols of Calculus, MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/Miller/mathsym/calculus/)
8. [Definition 39 (Gradient on a Manifold), lecture notes](https://aniketdeshpande.com/notes/ig.pdf)
9. [Study Materials, 18.013A Calculus with Applications, MIT OpenCourseWare](https://ocw.mit.edu/courses/18-013a-calculus-with-applications-spring-2005/pages/study-materials/)
10. [World Web Math: Vector Calculus Independent Study Path, Unit 5, MIT](https://web.mit.edu/wwmath/vectorc/ispath/unit5.html)
11. [Line Integral, Wolfram MathWorld](https://mathworld.wolfram.com/LineIntegral.html)
12. [Differential Forms (MIT 18.952 text), Section 2.7](https://math.mit.edu/classes/18.952/2019SP/18.952_book_2019.pdf)
13. [Les opérateurs différentiels, math93.com](https://math93.com/histoire-des-maths/une-chronologie/19-histoire-des-mathematiques/142-les-operateurs-differentiels.html)
14. [A history of mathematical notations, Florian Cajori, Wellcome Collection](https://preview.wellcomecollection.org/works/w4qa8wcj/items?canvas=159&manifest=2&page=27&shouldScrollToCanvas=true)
15. [The Curious History of Vectors and Tensors, SIAM News](https://www.siam.org/publications/siam-news/articles/the-curious-history-of-vectors-and-tensors/)
16. [Breakthroughs in Optimization, mathematicskit documentation](https://cpoli.github.io/mathematicskit/history/optimization_breakthroughs.html)
17. [Marc Teboulle, First Order Optimization Methods, Lecture 1, Tel Aviv University](https://www.math.tau.ac.il/~teboulle/lx/lec1-to-6.pdf)
18. [Course Notes, Stanford CS379C](https://web.stanford.edu/class/cs379c/resources/lectures/)
19. [CS231n Lecture 3 slides, Stanford](https://cs231n.stanford.edu/slides/2023/lecture_3.pdf)
20. [Geometric partial differentiability on manifolds, arXiv:1501.01223](https://arxiv.org/abs/1501.01223)
21. [Manifold Calculus in System Theory and Control, MDPI Symmetry](https://www.mdpi.com/2073-8994/13/11/2092)
22. [Optimal transport natural gradient for statistical manifolds, arXiv:1805.08380](https://arxiv.org/abs/1805.08380)

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

Topic: 物质世界与数学 › 数学与统计学 › 数学分析与数学模型 › Multivariable and vector calculus

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/gradient

English original: https://www.edgepedia.org/gradient
