# 恰当微分方程

恰当微分方程是写成对称形式 \( M(x,y)\,dx + N(x,y)\,dy = 0 \) 的一阶常微分方程，且存在势函数 \( F(x,y) \) 满足 \( F_x = M \) 与 \( F_y = N \)，于是方程即表示 \( dF = 0 \)，其解为等值曲线 \( F(x,y) = C \)<sup>[1](https://learn.math101.ca/cheatsheets/differential-equations-exact-differential-equations/)</sup><sup> • </sup><sup>[2](https://www.cfm.brown.edu/people/dobrush/am33/Mathematica/ch2/exact.html)</sup>。这一概念是恰当微分形式的二变量情形，热力学中状态函数与路径函数之间的区分也基于同样的思想<sup>[3](https://planetmath.org/closeddifferentialformsonasimplyconnecteddomain)</sup><sup> • </sup><sup>[4](https://chem.libretexts.org/Bookshelves/Physical_and_Theoretical_Chemistry_Textbook_Maps/Mathematical_Methods_in_Chemistry_%28Levitus%29/09%253A_Exact_and_Inexact_Differentials/9.03%253A_Differentials_in_Thermodynamics_-_State_and_Path_Functions)</sup>。

| 关键事实 | 细节 |
|---|---|
| 定义条件 | 当存在势函数 \( F \) 满足 \( F_x = M \) 与 \( F_y = N \) 时，\( M\,dx + N\,dy = 0 \) 是恰当的；解为 \( F(x,y) = C \)<sup>[1](https://learn.math101.ca/cheatsheets/differential-equations-exact-differential-equations/)</sup> |
| 恰当性检验 | \( \partial M/\partial y = \partial N/\partial x \) 是必要条件；在具有连续一阶偏导数的单连通区域上，它也是充分条件<sup>[1](https://learn.math101.ca/cheatsheets/differential-equations-exact-differential-equations/)</sup><sup> • </sup><sup>[5](https://mathresearch.utsa.edu/wiki/index.php?title=Exact_Differential_Equations)</sup> |
| 求解方法 | 对 \( F_x = M \) 关于 \( x \) 积分得 \( F = \int M\,dx + A(y) \)，再关于 \( y \) 求导，令其等于 \( N \)，积分求出 \( A(y) \)<sup>[6](https://www.buffalo.edu/content/cas/math/ug/ug-courses/syllabi/_jcr_content/par/download_457389674/file.res/MTH306-textbook-diffyqs_UB.pdf)</sup> |
| 几何意义 | 向量场 \( (M, N) \) 是保守场；\( M\,dx + N\,dy \) 沿路径的线积分等于终点处的 \( F \) 减去起点处的 \( F \)，与路径无关<sup>[6](https://www.buffalo.edu/content/cas/math/ug/ug-courses/syllabi/_jcr_content/par/download_457389674/file.res/MTH306-textbook-diffyqs_UB.pdf)</sup> |
| 定义域限制 | 在单连通区域上，每个闭1-形式都是恰当的；在有洞的区域上，闭形式未必恰当<sup>[3](https://planetmath.org/closeddifferentialformsonasimplyconnecteddomain)</sup><sup> • </sup><sup>[7](https://math.berkeley.edu/~hutching/teach/185-2016/notes2.pdf)</sup> |
| 标准反例 | \( \alpha = (x\,dy - y\,dx)/(x^2 + y^2) \) 在 \( \mathbb{R}^2 \setminus \{(0,0)\} \) 上满足 \( d\alpha = 0 \) 但并不恰当；它在单位圆上的积分为 \( 2\pi \)<sup>[7](https://math.berkeley.edu/~hutching/teach/185-2016/notes2.pdf)</sup> |
| 物理对应 | 热力学中，\( dU \)、\( dH \)、\( dS \) 是状态函数的恰当微分，而热量 \( \delta Q \) 与功 \( \delta W \) 是不恰当的，依赖于路径<sup>[4](https://chem.libretexts.org/Bookshelves/Physical_and_Theoretical_Chemistry_Textbook_Maps/Mathematical_Methods_in_Chemistry_%28Levitus%29/09%253A_Exact_and_Inexact_Differentials/9.03%253A_Differentials_in_Thermodynamics_-_State_and_Path_Functions)</sup> |

## 定义与恰当性检验

下标表示偏导数。若存在势函数 \( F \) 满足 \( F_x = M \) 与 \( F_y = N \)，则方程 \( M(x,y)\,dx + N(x,y)\,dy = 0 \) 在某个区域上是恰当的；此时 \( dF = M\,dx + N\,dy \)，令 \( dF = 0 \) 即迫使 \( F \) 沿解曲线为常数<sup>[1](https://learn.math101.ca/cheatsheets/differential-equations-exact-differential-equations/)</sup>。定义域内的可微函数 \( y(x) \)（满足 \( (x, y(x)) \) 在定义域中）是解，当且仅当对某个实常数 \( c \) 有 \( F(x, y(x)) = c \)<sup>[5](https://mathresearch.utsa.edu/wiki/index.php?title=Exact_Differential_Equations)</sup>。

恰当性检验来自混合偏导数相等的性质。若 \( M = F_x \)、\( N = F_y \) 且二阶导数连续，则

\[ \frac{\partial M}{\partial y} = \frac{\partial^2 F}{\partial y\,\partial x} = \frac{\partial^2 F}{\partial x\,\partial y} = \frac{\partial N}{\partial x}. \]

因此 \( M_y = N_x \) 是必要条件<sup>[6](https://www.buffalo.edu/content/cas/math/ug/ug-courses/syllabi/_jcr_content/par/download_457389674/file.res/MTH306-textbook-diffyqs_UB.pdf)</sup>。在 \( \mathbb{R}^2 \) 的单连通开子集上，若 \( M \) 与 \( N \) 连续可微，则该条件也是充分的：势函数 \( F \) 存在，当且仅当在整个区域上 \( I_y = J_x \)<sup>[5](https://mathresearch.utsa.edu/wiki/index.php?title=Exact_Differential_Equations)</sup><sup> • </sup><sup>[1](https://learn.math101.ca/cheatsheets/differential-equations-exact-differential-equations/)</sup>。学生常犯的错误是检验 \( M_x = N_y \)，而非所需的交叉偏导数 \( M_y = N_x \)<sup>[1](https://learn.math101.ca/cheatsheets/differential-equations-exact-differential-equations/)</sup>。

## 求势函数

一旦确认恰当性，便可通过积分构造势函数。对 \( F_x = M \) 关于 \( x \) 积分得

\[ F(x,y) = \int M(x,y)\,dx + A(y), \]

其中积分“常数” \( A \) 可能依赖于 \( y \)<sup>[1](https://learn.math101.ca/cheatsheets/differential-equations-exact-differential-equations/)</sup><sup> • </sup><sup>[6](https://www.buffalo.edu/content/cas/math/ug/ug-courses/syllabi/_jcr_content/par/download_457389674/file.res/MTH306-textbook-diffyqs_UB.pdf)</sup>。将此式关于 \( y \) 求导并令结果等于 \( N \)，即可确定 \( A'(y) \)，再积分一次便得 \( A \)<sup>[6](https://www.buffalo.edu/content/cas/math/ug/ug-courses/syllabi/_jcr_content/par/download_457389674/file.res/MTH306-textbook-diffyqs_UB.pdf)</sup>。该过程也可按相反顺序进行，先对 \( N \) 关于 \( y \) 积分<sup>[6](https://www.buffalo.edu/content/cas/math/ug/ug-courses/syllabi/_jcr_content/par/download_457389674/file.res/MTH306-textbook-diffyqs_UB.pdf)</sup>。

**一个算例。** 对于 \( 2x + 2y\,\frac{dy}{dx} = 0 \)，有 \( M = 2x \)、\( N = 2y \)，且 \( M_y = N_x = 0 \)。对 \( F_x = 2x \) 积分得 \( F = x^2 + A(y) \)；关于 \( y \) 求导并令其等于 \( N = 2y \)，得 \( A(y) = y^2 \)，故 \( F = x^2 + y^2 \)，隐式解为 \( x^2 + y^2 = C \)，解出 \( y \) 后为 \( y = \pm\sqrt{C^2 - x^2} \)<sup>[6](https://www.buffalo.edu/content/cas/math/ug/ug-courses/syllabi/_jcr_content/par/download_457389674/file.res/MTH306-textbook-diffyqs_UB.pdf)</sup>。相反，\( 2x + y + xy\,\frac{dy}{dx} = 0 \) 则不是恰当方程：对 \( M = 2x + y \) 积分得 \( F = x^2 + xy + A(y) \)，而要与 \( N = xy \) 匹配就要求 \( xy = x + A'(y) \)，没有任何函数 \( A \) 能满足此式，因此势函数不存在<sup>[6](https://www.buffalo.edu/content/cas/math/ug/ug-courses/syllabi/_jcr_content/par/download_457389674/file.res/MTH306-textbook-diffyqs_UB.pdf)</sup>。

势函数在相差一个可加常数的意义下唯一：给 \( F \) 加上常数不改变方程<sup>[6](https://www.buffalo.edu/content/cas/math/ug/ug-courses/syllabi/_jcr_content/par/download_457389674/file.res/MTH306-textbook-diffyqs_UB.pdf)</sup>。对于初值问题 \( y(x_0) = y_0 \)，可在局部构造势函数：先在固定 \( y_0 \) 下将 \( I \) 从 \( x_0 \) 积分到 \( x \)，再在固定 \( x \) 下将 \( J \) 从 \( y_0 \) 积分到 \( y \)<sup>[5](https://mathresearch.utsa.edu/wiki/index.php?title=Exact_Differential_Equations)</sup>。

## 几何：保守场与路径无关性

数对 \( (M, N) \) 定义了平面上的一个向量场。当方程恰当时，该场是保守场：它来自势函数 \( F \)，\( M\,dx + N\,dy \) 沿任意路径的线积分等于终点处的 \( F \) 减去起点处的 \( F \)，因此做功只取决于路径的起点与终点<sup>[6](https://www.buffalo.edu/content/cas/math/ug/ug-courses/syllabi/_jcr_content/par/download_457389674/file.res/MTH306-textbook-diffyqs_UB.pdf)</sup>。等值曲线 \( F = C \) 即不做功的曲线；若 \( F \) 为重力势，它们就是箱子可以无加速度滑动的曲线<sup>[6](https://www.buffalo.edu/content/cas/math/ug/ug-courses/syllabi/_jcr_content/par/download_457389674/file.res/MTH306-textbook-diffyqs_UB.pdf)</sup>。

## 定义域为何重要

\( M_y = N_x \) 的充分性取决于区域的形状。当 \( d\omega = 0 \) 时，微分形式 \( \omega \) 称为闭形式；对1-形式 \( M\,dx + N\,dy \) 而言，这恰好就是条件 \( M_y = N_x \)。庞加莱型定理指出，若 \( D \) 单连通且 \( \omega \) 是闭形式，则 \( \omega \) 是恰当的<sup>[3](https://planetmath.org/closeddifferentialformsonasimplyconnecteddomain)</sup>。粗略地说，单连通意味着区域没有洞<sup>[7](https://math.berkeley.edu/~hutching/teach/185-2016/notes2.pdf)</sup>。

在穿孔平面上，检验可能通过，但不存在整体势函数。形式

\[ \alpha = \frac{x\,dy - y\,dx}{x^2 + y^2} \]

定义在 \( \mathbb{R}^2 \setminus \{(0,0)\} \) 上，该区域被挖去的原点算作一个洞。简单计算可得 \( d\alpha = 0 \)，然而 \( \alpha \) 并不恰当：它沿逆时针方向的单位圆的积分等于 \( 2\pi \)，而任何恰当1-形式沿闭曲线的积分必为零<sup>[7](https://math.berkeley.edu/~hutching/teach/185-2016/notes2.pdf)</sup>。更一般地，2025年一项使用de Rham上同调的分析表明，第一de Rham上同调群的平凡性——而非单连通性本身——才是与一阶常微分方程相关联的闭1-形式存在整体势函数的根本要求<sup>[8](https://arxiv.org/abs/2507.16457)</sup>。

## 当方程不恰当时

许多一阶方程既不可分离，也不是线性的，更不恰当。此时仍可能找到积分因子——一个将方程变为恰当方程的乘子——或进行代换，将其化为可解形式<sup>[9](https://faculty.ksu.edu.sa/sites/default/files/r._kent_nagle_edward_b._saff_arthur_david_snidebookzz.org_.pdf)</sup>。

## 热力学中的恰当微分

同样的数学也用于对物理量进行分类。若一个量的无穷小变化可写成恰当微分 \( dX \)，则它是状态函数：它在两个平衡态之间的变化与过程路径无关，沿任何循环路径的积分为零<sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC11197665/)</sup>。热力学中，\( dU \)（内能）、\( dH \)（焓）、\( dS \)（熵）是状态函数的恰当微分，而热量 \( \delta Q \) 与功 \( \delta W \) 用非恰当符号 \( \delta \) 书写，因为它们的值取决于所走路径<sup>[4](https://chem.libretexts.org/Bookshelves/Physical_and_Theoretical_Chemistry_Textbook_Maps/Mathematical_Methods_in_Chemistry_%28Levitus%29/09%253A_Exact_and_Inexact_Differentials/9.03%253A_Differentials_in_Thermodynamics_-_State_and_Path_Functions)</sup>。由于状态函数 \( G \) 的 \( dG \) 是恰当的，混合偏导数相等便给出热力学量各偏导数之间的关系，这正是推导麦克斯韦关系的基础<sup>[4](https://chem.libretexts.org/Bookshelves/Physical_and_Theoretical_Chemistry_Textbook_Maps/Mathematical_Methods_in_Chemistry_%28Levitus%29/09%253A_Exact_and_Inexact_Differentials/9.03%253A_Differentials_in_Thermodynamics_-_State_and_Path_Functions)</sup>。稳态黑洞的 \( dS \) 的恰当性（源于熵是状态函数）已被用于在隧穿分析中推导黑洞热力学第一定律<sup>[11](https://arxiv.org/abs/0903.3321)</sup>。

## 历史注记

这一思想可追溯至亚历克西斯·克莱罗（Alexis Clairaut）18世纪关于微分方程的工作。从克莱罗到19世纪末，微分形式的历史发展产生了外微分、庞加莱引理及其逆，以及恰当微分周期的概念；这一发展大部分由物理学家完成，尽管积分微分形式的最初动机来自复变函数论<sup>[12](https://www.sciencedirect.com/science/article/pii/0315086081900276)</sup>。

## References

1. [Exact Differential Equations Cheat Sheet, Math101.ca](https://learn.math101.ca/cheatsheets/differential-equations-exact-differential-equations/)
2. [Exact Equations, Mathematica Tutorial Part 1.2, Brown University](https://www.cfm.brown.edu/people/dobrush/am33/Mathematica/ch2/exact.html)
3. [Closed differential forms on a simply connected domain, PlanetMath](https://planetmath.org/closeddifferentialformsonasimplyconnecteddomain)
4. [Differentials in Thermodynamics: State and Path Functions, Chemistry LibreTexts](https://chem.libretexts.org/Bookshelves/Physical_and_Theoretical_Chemistry_Textbook_Maps/Mathematical_Methods_in_Chemistry_%28Levitus%29/09%253A_Exact_and_Inexact_Differentials/9.03%253A_Differentials_in_Thermodynamics_-_State_and_Path_Functions)
5. [Exact Differential Equations, UTSA Department of Mathematics](https://mathresearch.utsa.edu/wiki/index.php?title=Exact_Differential_Equations)
6. [Notes on Diffy Qs, University at Buffalo Edition (Lebl)](https://www.buffalo.edu/content/cas/math/ug/ug-courses/syllabi/_jcr_content/par/download_457389674/file.res/MTH306-textbook-diffyqs_UB.pdf)
7. [Notes for Math 185, Part 2: Integration (Hutchings), UC Berkeley](https://math.berkeley.edu/~hutching/teach/185-2016/notes2.pdf)
8. [Exactness, Cohomology, and Uniqueness in First-Order Differential Equations, arXiv:2507.16457](https://arxiv.org/abs/2507.16457)
9. [Nagle, Saff, Snider, Fundamentals of Differential Equations](https://faculty.ksu.edu.sa/sites/default/files/r._kent_nagle_edward_b._saff_arthur_david_snidebookzz.org_.pdf)
10. [State functions/quantities in thermodynamics and heat transfer, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC11197665/)
11. [Exact Differential and Corrected Area Law for Stationary Black Holes in Tunneling Method, arXiv:0903.3321](https://arxiv.org/abs/0903.3321)
12. [The history of differential forms from Clairaut to Poincaré, Historia Mathematica](https://www.sciencedirect.com/science/article/pii/0315086081900276)

---
*Initially written Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数学分析与数学模型 › Ordinary differential equations

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/exact-differential-equation

English original: https://www.edgepedia.org/exact-differential-equation
