# 方向导数

多变量函数的方向导数，是函数在某一点沿指定方向移动时发生变化的速率。它推广了单变量微积分中的普通导数：不再问函数沿 x 轴变化多快，而是问它沿过该点的任意选定的直线变化多快。<sup>[1](https://www.math.toronto.edu/courses/mat237y1/20199/notes/Chapter2/S2.1.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 对单位向量 \( \mathbf{u} \)，\( \partial_{\mathbf{u}} f(\mathbf{x}) = \lim_{h \to 0} \frac{f(\mathbf{x} + h\mathbf{u}) - f(\mathbf{x})}{h} \)，只要该极限存在<sup>[1](https://www.math.toronto.edu/courses/mat237y1/20199/notes/Chapter2/S2.1.html)</sup> |
| 梯度公式 | 若 \( f \) 在 \( \mathbf{x} \) 处可微，则对每个单位向量 \( \mathbf{u} \)，有 \( \partial_{\mathbf{u}} f(\mathbf{x}) = \mathbf{u} \cdot \nabla f(\mathbf{x}) \)<sup>[1](https://www.math.toronto.edu/courses/mat237y1/20199/notes/Chapter2/S2.1.html)</sup> |
| 偏导数 | 每个偏导数 \( \partial f / \partial x_j \) 都是沿第 \( j \) 个坐标单位向量 \( \mathbf{e}_j \) 的方向导数<sup>[1](https://www.math.toronto.edu/courses/mat237y1/20199/notes/Chapter2/S2.1.html)</sup> |
| 最速上升 | 若 \( \nabla f(\mathbf{x}) \neq \mathbf{0} \)，则导数在方向 \( \mathbf{u}^* = \nabla f(\mathbf{x}) / \|\nabla f(\mathbf{x})\| \) 上取最大值；若梯度为零，则每个方向都给出值 0<sup>[1](https://www.math.toronto.edu/courses/mat237y1/20199/notes/Chapter2/S2.1.html)</sup> |
| 逻辑强度 | 一点处所有方向导数都存在，是比可微更弱的条件；它甚至不能推出连续性<sup>[2](https://notes.amittai.studio/real-analysis/several-variables/gradient-chain-rule)</sup> |
| 无穷维形式 | Gateaux 微分 \( d_h f = \lim_{\epsilon \to 0} \frac{f(x + \epsilon h) - f(x)}{\epsilon} \) 把方向导数推广到向量空间<sup>[3](https://www.math.ttu.edu/~klong/5311-spr09/diff.pdf)</sup> |
| 名称由来 | Gateaux 导数以勒内·加托（René Gateaux）命名，这位法国数学家于第一次世界大战初期阵亡<sup>[4](https://mathshistory.st-andrews.ac.uk/Extras/Levy_Gateaux/)</sup> |

## 定义与几何意义

设 \( f \) 是定义域为 \( D \) 的二元函数，\( (a,b) \in D \)，单位向量 \( \mathbf{u} = \cos\theta\,\mathbf{i} + \sin\theta\,\mathbf{j} \)，则 \( f \) 沿 \( \mathbf{u} \) 方向的方向导数为

\[ D_{\mathbf{u}} f(a,b) = \lim_{h \to 0} \frac{f(a + h\cos\theta,\; b + h\sin\theta) - f(a,b)}{h}, \]

只要该极限存在。<sup>[5](https://openstax.org/books/calculus-volume-3/pages/4-6-directional-derivatives-and-the-gradient)</sup> 分子是沿 \( \mathbf{u} \) 方向走长度为 \( h \) 的一步之后函数值的变化量，因此商是割线斜率，而极限则是曲面 \( z = f(x,y) \) 被过 \( (a,b) \) 且沿该方向的竖直平面截出的曲线之切线的斜率。<sup>[5](https://openstax.org/books/calculus-volume-3/pages/4-6-directional-derivatives-and-the-gradient)</sup>

在 \( n \) 维情形下，同样的构造写作 \( \partial_{\mathbf{u}} f(\mathbf{x}) = \lim_{h \to 0} \frac{f(\mathbf{x} + h\mathbf{u}) - f(\mathbf{x})}{h} \)，该量表示当人从点 \( \mathbf{x} \) 沿方向 \( \mathbf{u} \) 移动时 \( f \) 的瞬时变化率。<sup>[1](https://www.math.toronto.edu/courses/mat237y1/20199/notes/Chapter2/S2.1.html)</sup> 等价地说，它是 \( f \) 限制在过 \( \mathbf{x} \) 且沿所选方向的直线上时的斜率：每单位步长对应的图像上升量。<sup>[2](https://notes.amittai.studio/real-analysis/several-variables/gradient-chain-rule)</sup> 要求单位向量，正是为了使该值可以解释为“每单位步长”的速率；对于非单位向量 \( \mathbf{v} \)，在可微的前提下同样的极限存在，但会按 \( \|\mathbf{v}\| \) 缩放。<sup>[1](https://www.math.toronto.edu/courses/mat237y1/20199/notes/Chapter2/S2.1.html)</sup>

## 与梯度的关系

当 \( f \) 在某点可微时，方向导数并不是一项新的计算，而是沿某方向读取的导数：可微性蕴含对每个单位向量 \( \mathbf{u} \)，\( \partial_{\mathbf{u}} f(\mathbf{x}) \) 都存在且等于 \( \mathbf{u} \cdot \nabla f(\mathbf{x}) \)。<sup>[1](https://www.math.toronto.edu/courses/mat237y1/20199/notes/Chapter2/S2.1.html)</sup> 在二元情形下即 \( D_{\mathbf{u}} f = f_x u_1 + f_y u_2 \)，因此梯度向量 \( \nabla f = (f_x, f_y) \) 包含了 \( f \) 在该点处方向导数与偏导数的全部信息。<sup>[6](https://lemesurierb.people.charleston.edu/math221-notes-and-study-guide/section-directional-derivatives-and-the-gradient.html)</sup> 梯度公式要求可微；当梯度不存在时，方向导数仍可由极限定义直接计算。<sup>[5](https://openstax.org/books/calculus-volume-3/pages/4-6-directional-derivatives-and-the-gradient)</sup>

点积形式也解释了梯度的几何含义。将 \( \mathbf{u} \cdot \nabla f(\mathbf{x}) = \|\nabla f(\mathbf{x})\| \cos\theta \) 写出，其中 \( \theta \) 是 \( \mathbf{u} \) 与梯度之间的夹角，可见当 \( \cos\theta = 1 \) 时速率最大，也就是当 \( \mathbf{u} \) 指向 \( \nabla f(\mathbf{x}) \) 时。若梯度是零向量，则每个方向都给出值 0。<sup>[1](https://www.math.toronto.edu/courses/mat237y1/20199/notes/Chapter2/S2.1.html)</sup> 这一原理——非零梯度指向增长最快的方向——是机器学习中梯度下降法以及图像缩放中的接缝裁剪等技术的基础。<sup>[1](https://www.math.toronto.edu/courses/mat237y1/20199/notes/Chapter2/S2.1.html)</sup>

## 方向导数不能推出什么

每个方向的方向导数都存在，是严格弱于可微性的条件。它甚至不能推出连续性。<sup>[2](https://notes.amittai.studio/real-analysis/several-variables/gradient-chain-rule)</sup> 一个标准例子是函数 \( f(x,y) = \frac{xy}{x^2 + y} \)（其中 \( x^2 + y \neq 0 \)），其余处取 \( f = 0 \)：沿过原点的每条直线方向导数都存在，然而沿曲线 \( x^2 = -y + s \)（\( s > 0 \) 很小）时，值 \( f = xy/s \) 在原点附近无界，因此 \( f \) 在该点不连续，从而不可微。<sup>[2](https://notes.amittai.studio/real-analysis/several-variables/gradient-chain-rule)</sup> 原因在于定义中的极限只沿直线对函数取样，而可微性同时控制所有逼近方式，包括沿曲线的逼近。<sup>[2](https://notes.amittai.studio/real-analysis/several-variables/gradient-chain-rule)</sup> 因此，点积公式 \( \mathbf{u} \cdot \nabla f \) 仅在 \( f \) 可微时成立；否则必须直接使用极限定义。<sup>[6](https://lemesurierb.people.charleston.edu/math221-notes-and-study-guide/section-directional-derivatives-and-the-gradient.html)</sup>

## 向量空间中的推广

Gateaux 微分把这一想法推广到向量空间之间的函数。对于函数 \( f : V \to U \) 以及 \( V \) 中的向量 \( x \) 和 \( h \neq 0 \)，它定义为

\[ d_h f = \lim_{\epsilon \to 0} \frac{f(x + \epsilon h) - f(x)}{\epsilon}. \]

这是单变量函数 \( \varepsilon \mapsto f(x + \varepsilon h) \) 在 \( \varepsilon = 0 \) 处的导数，这一概念在泛函求导中很有用，即对输入本身是函数或无穷维空间元素的函数求导。<sup>[3](https://www.math.ttu.edu/~klong/5311-spr09/diff.pdf)</sup> 在 Banach 空间 \( V \) 中（\( U \) 为开向量子空间），\( f \in C(U, \mathbb{F}) \) 沿方向 \( \mathbf{y} \in V \) 的 Gateaux 微分 \( d f_{\mathbf{y}}(\mathbf{x}) \) 以同样方式定义，并且只要 \( f \) 可微，它对实值或复值 \( f \) 都有良好定义。<sup>[7](https://access.archive-ouverte.unige.ch/access/metadata/2ccdd1b0-e9b5-4b08-aab7-947a550c8cf4/download)</sup>

一个更强的变体是 Hadamard 方向导数，其中方向允许随步长收缩而变化：

\[ f'_H(\bar{x})(\nu) := \lim_{t \downarrow 0,\; \mu \to \nu} \frac{f(\bar{x} + t\mu) - f(\bar{x})}{t}. \]

Hadamard 可微性强于 Gateaux 可微性：Hadamard 可微的映射是 Gateaux 可微的，且其导数连续；而对于赋范空间之间的局部 Lipschitz 映射，两种方向导数重合。<sup>[8](https://link.springer.com/article/10.1186/s13663-021-00699-z)</sup> Gateaux 导数本身在导数的各种推广中颇为特别，因为它不是线性的。<sup>[4](https://mathshistory.st-andrews.ac.uk/Extras/Levy_Gateaux/)</sup>

## 历史

他发表了五篇论文，全部在 1913 年或 1914 年，刊于科学院的《法国科学院院报》（Comptes rendus）或林琴科学院的《报告》（Rendiconti）；其中最重要的一篇《论连续泛函与解析泛函》（"Sur les fonctionnelles continues et les fonctionnelles analytiques"）发表于 1913 年。<sup>[4](https://mathshistory.st-andrews.ac.uk/Extras/Levy_Gateaux/)</sup> 他在第一次世界大战初期阵亡，当时正带领其步兵连作战；科学院于 1916 年追授他弗朗克尔奖（Francoeur Prize）。<sup>[4](https://mathshistory.st-andrews.ac.uk/Extras/Levy_Gateaux/)</sup> 他未发表的工作由保罗·莱维（Paul Lévy）整理，以三篇论文发表于《法国数学会通报》（Bulletin de la Société Mathématique de France，1919 年和 1922 年），Gateaux 导数正是在这些论文中出现的。<sup>[4](https://mathshistory.st-andrews.ac.uk/Extras/Levy_Gateaux/)</sup> “Gateaux 微分”在比 Fréchet 导数更弱的假设下定义，对该领域后来的工作产生了相当大的影响。<sup>[9](https://renato.ryn-fismat.es/clases/af/kreyszig-historia.pdf)</sup>

## 应用

凡需要知道某个量对特定方向变化的敏感度之处，都会出现方向导数。在优化中，最优值函数 \( \vartheta(\theta) \) 关于参数向量 \( \theta \) 沿方向 \( h \) 的方向导数

\[ \vartheta'(\theta, h) = \lim_{\tau \downarrow 0} \frac{\vartheta(\theta + \tau h) - \vartheta(\theta)}{\tau}, \]

衡量最优值如何响应问题数据的微小扰动；当最优解唯一时，\( \vartheta \) 可微，其梯度就是拉格朗日量在最优对处的梯度。<sup>[10](https://repository.gatech.edu/bitstreams/dc7ea173-1790-46e6-8372-fffd0db65673/download)</sup> 在形状与拓扑优化中，灵敏度分析通过形状导数表达，即定义域上的方向导数类比物。<sup>[11](https://arxiv.org/abs/1705.01442)</sup> 集值映射的方向导数与次梯度同样被用来表述集优化问题中的最优性条件。<sup>[12](https://www.jorsc.shu.edu.cn/EN/Y2024/V12/I4/1103)</sup>

## References

1. [MAT237 notes, Chapter 2.1: Directional derivatives and the meaning of the gradient, University of Toronto](https://www.math.toronto.edu/courses/mat237y1/20199/notes/Chapter2/S2.1.html)
2. [Directional Derivatives, the Gradient, and the Chain Rule, Amittai study notes](https://notes.amittai.studio/real-analysis/several-variables/gradient-chain-rule)
3. [Gateaux differentials and Frechet derivatives, Texas Tech University course notes](https://www.math.ttu.edu/~klong/5311-spr09/diff.pdf)
4. [Paul Levy and René Gateaux, MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/Extras/Levy_Gateaux/)
5. [4.6 Directional Derivatives and the Gradient, Calculus Volume 3, OpenStax](https://openstax.org/books/calculus-volume-3/pages/4-6-directional-derivatives-and-the-gradient)
6. [Directional Derivatives and the Gradient, study guide by B. Lemesurier, College of Charleston](https://lemesurierb.people.charleston.edu/math221-notes-and-study-guide/section-directional-derivatives-and-the-gradient.html)
7. [Lecture notes on differential calculus in vector spaces, Archive ouverte UNIGE](https://access.archive-ouverte.unige.ch/access/metadata/2ccdd1b0-e9b5-4b08-aab7-947a550c8cf4/download)
8. [Strongly regular points of mappings, Fixed Point Theory and Algorithms for Sciences and Engineering (2021)](https://link.springer.com/article/10.1186/s13663-021-00699-z)
9. [Kreyszig, on the history of functional analysis, Historia Mathematica (1984)](https://renato.ryn-fismat.es/clases/af/kreyszig-historia.pdf)
10. [Sensitivity Analysis, Georgia Tech repository lecture notes](https://repository.gatech.edu/bitstreams/dc7ea173-1790-46e6-8372-fffd0db65673/download)
11. [A level set-based structural optimization code using FEniCS, arXiv:1705.01442](https://arxiv.org/abs/1705.01442)
12. [Directional Derivative and Subgradient of Cone-Convex Set-Valued Mappings, Journal of Operations Research Society of China (2024)](https://www.jorsc.shu.edu.cn/EN/Y2024/V12/I4/1103)

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

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/directional-derivative

English original: https://www.edgepedia.org/directional-derivative
