# 偏导数

偏导数是多变量函数关于其中一个变量的导数，求导时其余所有自变量均保持不变。对于函数 \( f(x, y) \)，关于 \( x \) 的偏导数定义为极限

\[ \frac{\partial f}{\partial x} = \lim_{h \to 0} \frac{f(x+h,\, y) - f(x, y)}{h}, \]

而关于 \( y \) 的偏导数则在固定 \( x \) 的情形下类似地定义。<sup>[1](https://openstax.org/books/calculus-volume-3/pages/4-3-partial-derivatives)</sup> 在实际计算中，对某个给定变量求偏导时，只需把其余变量都当作常数，再套用通常的单变量求导法则即可。<sup>[2](https://openstax.org/books/calculus-volume-3/pages/4-key-concepts)</sup>

| 要点 | 说明 |
|---|---|
| 定义 | 固定其余变量时，关于一个变量的差商的极限：\( \partial f/\partial x = \lim_{h \to 0} [f(x+h, y) - f(x, y)]/h \)<sup>[1](https://openstax.org/books/calculus-volume-3/pages/4-3-partial-derivatives)</sup> |
| 几何意义 | 对于 \( z = f(x, y) \)，\( \partial z/\partial x \) 是曲面上平行于 x 轴的切线的斜率，\( \partial z/\partial y \) 则是平行于 y 轴的切线的斜率<sup>[3](https://openstax.org/books/calculus-volume-3/pages/4-6-directional-derivatives-and-the-gradient)</sup> |
| 高阶偏导 | 高阶偏导数的计算方法与高阶普通导数相同<sup>[2](https://openstax.org/books/calculus-volume-3/pages/4-key-concepts)</sup> |
| 在最优化中的作用 | \( f(x, y) \) 的临界点是指满足 \( f_x = f_y = 0 \) 或其中至少一个不存在的点；鞍点满足 \( f_x = f_y = 0 \)，但既不是极大值点也不是极小值点<sup>[2](https://openstax.org/books/calculus-volume-3/pages/4-key-concepts)</sup> |
| 记号 | “卷曲 d” \( \partial \) 由孔多塞（Condorcet）于 1770 年使用，首次以 \( \partial u/\partial x \) 的形式出现于勒让德（Legendre）1786 年的论文中，后由雅可比（Jacobi）于 1841 年重新引入<sup>[4](https://mathshistory.st-andrews.ac.uk/Miller/mathsym/calculus/)</sup> |
| 软件中的计算 | 反向模式自动微分（如 JAX 的 `jax.grad`）一次调用即可求出一个标量函数的梯度，代价约为一次函数求值的三倍<sup>[5](https://docs.jax.dev/en/latest/jacobian-vector-products.html)</sup> |

## 定义与计算

其定义与单变量导数的定义完全一致，只是让一个变量变动、其余变量冻结。对于 \( f(x, y) = x^2 - 3xy + 2y^2 - 4x + 5y - 12 \)，固定 \( y \) 求导得 \( \partial f/\partial x = 2x - 3y - 4 \)，固定 \( x \) 求导得 \( \partial f/\partial y = -3x + 4y + 5 \)。<sup>[1](https://openstax.org/books/calculus-volume-3/pages/4-3-partial-derivatives)</sup> 固定 \( y \) 后，\( f \) 就变成了普通函数 \( g(x) = f(x, y) \)，因此偏导数不过是 \( g'(x) \)；包括和法则、积法则、链法则在内的一切常用法则都照常适用。<sup>[1](https://openstax.org/books/calculus-volume-3/pages/4-3-partial-derivatives)</sup> 对于多于两个变量的函数，步骤相同：对所选变量求导，把其他所有自变量都当作常数。<sup>[2](https://openstax.org/books/calculus-volume-3/pages/4-key-concepts)</sup>

**高阶偏导。** 对偏导数再次求导——无论关于同一变量还是另一变量——便得到高阶偏导数，如 \( \partial^2 z/\partial x^2 \) 或混合偏导 \( \partial^2 z/\partial x \, \partial y \)；它们通过反复应用同样的“保持常数”法则计算。<sup>[2](https://openstax.org/books/calculus-volume-3/pages/4-key-concepts)</sup> 按相反顺序求得的混合偏导相等这一事实，早在 18 世纪 30 年代就已被注意到：法国数学家亚历克西斯·方丹（Alexis Fontaine）在 1738 年一篇引入此类比值分数形式的文稿中记载，\( dd\mu/dx\,dy \) 与 \( dd\mu/dy\,dx \) 相等。<sup>[6](https://old.maa.org/press/periodicals/convergence/math-origins-the-language-of-change)</sup>

## 与梯度及方向导数的关系

对于函数 \( z = f(x, y) \)，两个偏导数 \( \partial z/\partial x \) 与 \( \partial z/\partial y \) 是沿坐标方向的瞬时变化率。梯度 \( \nabla f \) 将它们汇成一个向量，指示函数变化最快的方向。<sup>[3](https://openstax.org/books/calculus-volume-3/pages/4-6-directional-derivatives-and-the-gradient)</sup> 方向导数把这一想法推广到任意方向：它度量 \( f \) 沿单位向量 \( u \) 的变化率，定义为沿该方向的差商的极限。<sup>[3](https://openstax.org/books/calculus-volume-3/pages/4-6-directional-derivatives-and-the-gradient)</sup> 当 \( f \) 的所有偏导数连续时，沿任意单位方向 \( v \) 的方向导数就是点积 \( D_v f = \nabla f \cdot v \)，因此偏导数一举确定了所有方向上的变化率。<sup>[7](https://dummit.cos.northeastern.edu/teaching_sp21_2321/calc3_2_partial_derivatives_v4.00.pdf)</sup> 一点处方向导数的最大值在方向与梯度一致时取得，且等于该点处的 \( \| \nabla f \| \)。<sup>[3](https://openstax.org/books/calculus-volume-3/pages/4-6-directional-derivatives-and-the-gradient)</sup>

## 应用

**最优化。** 偏导数出现在任何基于微积分、含多个选择变量的最优化问题中；例如，厂商可能在两种产品的产量 \( x \) 与 \( y \) 上最大化利润 \( \pi(x, y) \)，其一阶条件即令各偏导数等于零。<sup>[8](https://mathresearch.utsa.edu/wiki/index.php?title=Partial_Derivatives)</sup> 有约束时，拉格朗日乘数法构造函数 \( L(x, y, \mu) = f(x, y) - \mu(g(x, y) - k) \)，并令 \( \partial L/\partial x \)、\( \partial L/\partial y \)、\( \partial L/\partial \mu \) 各自为零；这一方法及其等价的几何方法适用于内点最优解，例如经济学中典型的效用最大化和成本最小化问题。<sup>[9](https://economics.uwo.ca/math/resources/calculus-multivariable-functions/5-partial-derivatives-optimization-constraints/content/)</sup>

**物理与工程。** 偏导数是偏微分方程的构件。在热方程 \( \partial u/\partial t = \gamma \, \partial^2 u/\partial x^2 \) 中，项 \( \partial u/\partial t \) 意为固定空间变量 \( x \) 而对时间求导，而 \( \partial^2 u/\partial x^2 \) 意为固定 \( t \) 而在空间上求二阶导。<sup>[10](https://math.mit.edu/~dyatlov/18.03/lectures/Section10-1.pdf)</sup> 偏导数还出现在吉布斯-杜安方程、薛定谔波动方程等热力学关系与其他数学物理方程中。<sup>[8](https://mathresearch.utsa.edu/wiki/index.php?title=Partial_Derivatives)</sup>

## 偏导数的数值计算与自动计算

当函数无法符号求导时，可用有限差分近似偏导数。对于项 \( \Lambda(\tau, \delta) \) 关于 \( \tau \) 的一阶导数，在保持其他变量不变时，中心差分为

\[ \frac{\partial \Lambda}{\partial \tau} \approx \frac{\Lambda(\tau + \Delta\tau, \delta) - \Lambda(\tau - \Delta\tau, \delta)}{2\,\Delta\tau} + O\bigl((\Delta\tau)^2\bigr), \]

关于 \( \delta \) 的形式相同；需要更高精度时，可使用截断误差为四阶的高阶中心公式。<sup>[11](https://nvlpubs.nist.gov/nistpubs/jres/121/jres.121.011.pdf)</sup> 步长不能取得任意小，因为相减两个几乎相等的函数值会丢失有效数字；在 IEEE 754 双精度算术下，增量取约 \( h \approx 10^{-5} x \) 通常是在相消误差与截断误差之间的良好折衷。<sup>[12](https://tsapps.nist.gov/publication/get_pdf.cfm?pub_id=930138)</sup>

自动微分则通过在程序的基本运算上应用链法则，同时避开这两类误差。在 JAX 库中，前向模式通过 `jax.jvp` 计算雅可比-向量积 \( (x, v) \mapsto (f(x), \partial f(x)\, v) \)，而反向模式（即 `jax.grad`）计算向量-雅可比积 \( (x, v) \mapsto (f(x), v^{\mathsf{T}} \partial f(x)) \)；反向模式求值的代价约为一次 \( f \) 求值的三倍，因此 \( n \) 元标量函数的梯度只需一次调用即可获得。<sup>[5](https://docs.jax.dev/en/latest/jacobian-vector-products.html)</sup> 这种代价结构——一次前向运行的很小倍数，且与输入个数无关——正是基于梯度的多参数最优化得以在大规模模拟中可行的原因。<sup>[13](https://jax-in-cell.readthedocs.io/en/latest/user_guide/differentiation.html)</sup>

## 历史

多变量函数及其变化率的研究于 18 世纪中叶围绕偏微分方程逐渐成形。让·勒朗·达朗贝尔（Jean le Rond d'Alembert）是偏微分方程研究的先驱，并率先将其用于物理学；他 1747 年关于振动弦的文章首次在印刷品中出现了波方程，他的获奖论文《关于风的一般成因的思考》（\( \textit{Réflexions sur la cause générale des vents} \)）将同样的方法应用于大气。<sup>[14](https://mathshistory.st-andrews.ac.uk/Biographies/DAlembert/)</sup> 欧拉（Euler）的悼词直接归功于他：“偏微分的发现，实际上应归功于达朗贝尔先生。”<sup>[15](https://mathshistory.st-andrews.ac.uk//Extras/Euler_elogium/)</sup>

现代符号出现得更晚。方丹 1738 年的文稿引入了差之比的分数形式，使偏导数得以清晰地书写。<sup>[6](https://old.maa.org/press/periodicals/convergence/math-origins-the-language-of-change)</sup> “卷曲 d” \( \partial \) 于 1770 年由孔多塞侯爵安托万-尼古拉·卡里塔（Antoine-Nicolas Caritat, Marquis de Condorcet）使用，以区分偏差分与全差分；阿德里安-马里·勒让德（Adrien-Marie Legendre）在 1786 年一篇关于在变分法中区分极大与极小的论文中首次以如今标准的 \( \partial u/\partial x \) 形式使用它，但随后又弃用了这个符号。卡尔·古斯塔夫·雅各布·雅可比（Carl Gustav Jacob Jacobi）于 1841 年在其论文《论函数行列式》（\( \textit{De determinantibus Functionalibus} \)）中重新引入该符号，写道他偏爱用特征符号 \( \partial \) 表示偏微分，以免与普通微分混淆，此后这一符号便被称为“雅可比的 delta”。<sup>[4](https://mathshistory.st-andrews.ac.uk/Miller/mathsym/calculus/)</sup>

## References

1. [4.3 Partial Derivatives, Calculus Volume 3, OpenStax](https://openstax.org/books/calculus-volume-3/pages/4-3-partial-derivatives)
2. [Ch. 4 Key Concepts, Calculus Volume 3, OpenStax](https://openstax.org/books/calculus-volume-3/pages/4-key-concepts)
3. [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)
4. [Earliest Uses of Symbols of Calculus, MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/Miller/mathsym/calculus/)
5. [Forward- and reverse-mode autodiff in JAX, JAX documentation](https://docs.jax.dev/en/latest/jacobian-vector-products.html)
6. [Math Origins: The Language of Change, Mathematical Association of America](https://old.maa.org/press/periodicals/convergence/math-origins-the-language-of-change)
7. [Calculus III (part 2): Partial Derivatives, Evan Dummit, Northeastern University](https://dummit.cos.northeastern.edu/teaching_sp21_2321/calc3_2_partial_derivatives_v4.00.pdf)
8. [Partial Derivatives, Department of Mathematics, University of Texas at San Antonio](https://mathresearch.utsa.edu/wiki/index.php?title=Partial_Derivatives)
9. [Optimization and Constraints, Calculus of Multivariable Functions, University of Western Ontario](https://economics.uwo.ca/math/resources/calculus-multivariable-functions/5-partial-derivatives-optimization-constraints/content/)
10. [§10.1 The heat equation, 18.03 lecture notes, MIT](https://math.mit.edu/~dyatlov/18.03/lectures/Section10-1.pdf)
11. [Journal of Research of the National Institute of Standards and Technology, Vol. 121 (2016)](https://nvlpubs.nist.gov/nistpubs/jres/121/jres.121.011.pdf)
12. [A. Numerical Differentiation, NIST](https://tsapps.nist.gov/publication/get_pdf.cfm?pub_id=930138)
13. [Differentiable simulations, JAX-in-Cell documentation](https://jax-in-cell.readthedocs.io/en/latest/user_guide/differentiation.html)
14. [Jean d'Alembert (1717–1783), MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/Biographies/DAlembert/)
15. [Elogium of Euler, MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk//Extras/Euler_elogium/)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Oct 15, 2026 · Edited: Oct 15, 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/partial-derivative

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