# 勒让德变换

勒让德变换是一种数学运算，它把一个凸函数改用其斜率而非其函数值来重新表达：对于凸函数 \( L \)，它产生一个新函数 \( L^{*} \)，定义为线性函数与 \( L \) 之间差距的上确界。它也被称为芬切尔变换、勒让德–芬切尔变换或凸共轭，是凸分析中的经典工具。<sup>[1](https://www.mat.uniroma2.it/~cannarsa/dynopt.pdf)</sup> 在物理学中，它联系着力学的拉格朗日描述与哈密顿描述，并生成热力学势；在概率论中，它给出大偏差理论中的速率函数；在最优化中，它是对偶理论的基础。<sup>[2](https://encyclopediaofmath.org/wiki/Legendre_transform)</sup><sup> • </sup><sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC12840504/)</sup>

| 关键事实 | 细节 |
|---|---|
| 定义 | 对凸函数 \( L \colon \mathbb{R}^n \to \mathbb{R} \)，若当 \( \lvert q\rvert \to \infty \) 时 \( L(q)/\lvert q\rvert \to +\infty \)，则 \( L^{*}(p) = \sup_{q \in \mathbb{R}^n} \,[\, p \cdot q - L(q) \,] \)<sup>[1](https://www.mat.uniroma2.it/~cannarsa/dynopt.pdf)</sup> |
| 基本例子 | \( L(q) = \tfrac{1}{2}\lvert q\rvert^2 \) 变换为 \( L^{*}(p) = \tfrac{1}{2}\lvert p\rvert^2 \)；对 \( L(q) = \tfrac{1}{2} A q \cdot q \)（\( A \) 对称正定），有 \( L^{*}(p) = \tfrac{1}{2} A^{-1} p \cdot p \)<sup>[1](https://www.mat.uniroma2.it/~cannarsa/dynopt.pdf)</sup> |
| 对合性 | 对 \( f \in \Gamma_0(\mathcal{H}) \)（凸、下半连续、常态），有 \( (f^{*})^{*} = f \)；该变换是其自身的逆<sup>[4](https://mathematical-tours.github.io/book/interactive/convex-analysis/)</sup> |
| 芬切尔–杨不等式 | \( \langle x, y \rangle \leqslant f(x) + f^{*}(y) \)，等号成立当且仅当 \( y \in \partial f(x) \)<sup>[4](https://mathematical-tours.github.io/book/interactive/convex-analysis/)</sup> |
| 曲率互换 | 若 \( f \) 二次连续可微且海森矩阵正定，则在 \( y = \nabla f(x) \) 处有 \( \partial^2 f^{*}(y) = (\partial^2 f(x))^{-1} \)；\( f \) 的梯度 \( L \)-利普希茨等价于 \( f^{*} \) 的 \( 1/L \)-强凸性<sup>[4](https://mathematical-tours.github.io/book/interactive/convex-analysis/)</sup> |
| 力学 | \( H(q,p) = \sum_i p_i \dot{q}_i - L(q, \dot{q}) \) 是拉格朗日函数关于速度的勒让德变换<sup>[5](https://galileoandeinstein.phys.virginia.edu/7010/CM_06_HamiltonsEqns.html)</sup> |
| 热力学 | 亥姆霍兹自由能为 \( F(T,V) = \inf_S \,[\, U(S,V) - TS \,] \)，即内能关于熵的负勒让德变换<sup>[6](https://web.math.ku.dk/noter/filer/mathphys2014.pdf)</sup> |
| 大偏差 | 克拉默速率函数是对数矩生成函数的勒让德变换，\( I(x) = \sup_{\lambda} \,[\, \lambda x - \Lambda(\lambda) \,] \)<sup>[7](https://math.mit.edu/~sheffield/2016175/Lecture9.pdf)</sup> |

## 定义与基本性质

对于 \( C^1 \) 凸函数 \( L \colon \mathbb{R}^n \to \mathbb{R} \)，若它超线性，即当 \( \lvert q\rvert \to \infty \) 时 \( L(q)/\lvert q\rvert \to +\infty \)，则勒让德变换为<sup>[1](https://www.mat.uniroma2.it/~cannarsa/dynopt.pdf)</sup>

\[ L^{*}(p) = \sup_{q \in \mathbb{R}^n} \,[\, p \cdot q - L(q) \,]. \]

超线性条件保证上确界能够取到。在可微情形下，取到最大值的 \( q \) 满足 \( p = \nabla L(q) \)，因此新函数以原函数的斜率作为自变量；当最大值在 \( q_0 \) 处取到时，\( L^{*}(p) = \langle p, q_0 \rangle - L(q_0) \)。<sup>[1](https://www.mat.uniroma2.it/~cannarsa/dynopt.pdf)</sup><sup> • </sup><sup>[8](https://www.lix.polytechnique.fr/bigdata/mathbigdata/wp-content/uploads/2014/09/Lnotes_1234_cvxAnalysis.pdf)</sup> 从几何上看，该变换用一条凸曲线的切线族、而非其上的点来刻画这条曲线：每张切平面由它的法向量与截距记录下来。<sup>[2](https://encyclopediaofmath.org/wiki/Legendre_transform)</sup>

**算例。** 对 \( L(q) = \tfrac{1}{2}\lvert q\rvert^2 \)，驻定条件 \( p - q = 0 \) 给出 \( L^{*}(p) = \tfrac{1}{2}\lvert p\rvert^2 \)。对 \( L(q) = \tfrac{1}{2} A q \cdot q \)（\( A \) 对称正定），条件 \( p - A q = 0 \) 给出 \( q = A^{-1} p \)，从而 \( L^{*}(p) = \tfrac{1}{2} A^{-1} p \cdot p \)。<sup>[1](https://www.mat.uniroma2.it/~cannarsa/dynopt.pdf)</sup> 在一维情形下，\( \lvert x\rvert^p / p \) 的变换是 \( \lvert y\rvert^{p'} / p' \)，其中 \( 1/p + 1/p' = 1 \)，这正是杨不等式与赫尔德不等式以及对偶范数理论的基础。<sup>[2](https://encyclopediaofmath.org/wiki/Legendre_transform)</sup><sup> • </sup><sup>[9](https://www.cambridge.org/highereducation/books/essential-mathematics-for-convex-optimization/0772D4760EF7FA9498B25E051565ECE2/legendre-transform/012D9CE5F3051C3CB3FE92C10D76F45E)</sup>

**凸性与对合性质。** 共轭函数 \( f^{*} \) 总是凸的且下半连续的，即使 \( f \) 本身不是，因为它是 \( p \) 的一族仿射函数的上确界。<sup>[4](https://mathematical-tours.github.io/book/interactive/convex-analysis/)</sup><sup> • </sup><sup>[10](https://www.cs.cmu.edu/~ggordon/10725-F12/slides/17-dual-corresp.pdf)</sup> 对常态下半连续凸函数，双共轭定理指出 \( (f^{*})^{*} = f \)：把变换作用两次就还原出原函数，因此在该函数类上该变换是自身的逆。<sup>[4](https://mathematical-tours.github.io/book/interactive/convex-analysis/)</sup><sup> • </sup><sup>[11](https://arxiv.org/abs/0806.1147)</sup> 对非凸函数，第二次共轭得到的是凸包络，即不超过原函数的最大凸下半连续函数。<sup>[12](https://www.math.utah.edu/~cherk/teach/5500-19/hamiltonian2.pdf)</sup><sup> • </sup><sup>[13](https://epubs.siam.org/doi/10.1137/1.9781611978094.appb)</sup>

**导数的对偶性。** \( f \) 与 \( f^{*} \) 的次微分是互为逆映射的集值映射，即 \( \partial f^{*} = (\partial f)^{-1} \)。当 \( f \) 二次连续可微且海森矩阵正定、\( y = \nabla f(x) \) 时，反函数定理给出 \( \partial^2 f^{*}(y) = (\partial^2 f(x))^{-1} \)。更一般地，\( f \) 的梯度为 \( L \)-利普希茨，当且仅当 \( f^{*} \) 是 \( 1/L \)-强凸的，因此该变换把光滑性与强凸性互换。<sup>[4](https://mathematical-tours.github.io/book/interactive/convex-analysis/)</sup>

## 与芬切尔共轭的关系

一般定义 \( f^{*}(\varphi) = \sup_x \,[\, \langle \varphi, x \rangle - f(x) \,] \) 适用于任意函数 \( f \colon X \to [-\infty, +\infty] \)，它归功于芬切尔（W. Fenchel），其 1949 年的论文《论共轭凸函数》（"On Conjugate Convex Functions"）把共轭对应作为经典勒让德构造的推广引入。<sup>[8](https://www.lix.polytechnique.fr/bigdata/mathbigdata/wp-content/uploads/2014/09/Lnotes_1234_cvxAnalysis.pdf)</sup><sup> • </sup><sup>[14](http://geodesic.mathdoc.fr/articles/10.4153/CJM-1967-012-4/)</sup> 罗卡费拉（R. Tyrrell Rockafellar）——这位数学家在《加拿大数学杂志》1967 年的论文中分析了这一关系——证明了：当且仅当凸函数的次微分是一一映射时，共轭退化为经典的勒让德变换；而这一条件在可微性、严格凸性以及有效域边界附近的陡峭性之下成立。<sup>[14](http://geodesic.mathdoc.fr/articles/10.4153/CJM-1967-012-4/)</sup>

2009 年，特拉维夫大学数学科学学院的希里·阿尔特斯坦-阿维丹（Shiri Artstein-Avidan）与维塔利·米尔曼（Vitali Milman）在《数学年刊》上发表论文，用公理方式刻画了该变换：下半连续凸函数类上任何反序的对合，在相差线性项的意义下，必定就是勒让德变换本身。<sup>[15](https://annals.math.princeton.edu/2009/169-2/p08)</sup>

## 经典力学

在分析力学中，拉格朗日函数 \( L(q, \dot{q}) \) 用广义坐标 \( q \) 与速度 \( \dot{q} \) 描述一个系统。广义动量为 \( p_i = \partial L / \partial \dot{q}_i \)，哈密顿量是 \( L \) 关于速度的勒让德变换，<sup>[5](https://galileoandeinstein.phys.virginia.edu/7010/CM_06_HamiltonsEqns.html)</sup>

\[ H(q, p) = \sum_{i=1}^{n} p_i \dot{q}_i - L(q, \dot{q}). \]

对一维情形下的粒子，若 \( L = \tfrac{1}{2} m \dot{q}^2 - V(q) \)，则动量为 \( p = m \dot{q} \)，变换给出 \( H = p^2/(2m) + V(q) \)，即总能量。<sup>[5](https://galileoandeinstein.phys.virginia.edu/7010/CM_06_HamiltonsEqns.html)</sup> 该变换之所以合法，是因为动能项是速度的正定二次型，从而从速度到动量的映射可逆。<sup>[5](https://galileoandeinstein.phys.virginia.edu/7010/CM_06_HamiltonsEqns.html)</sup> 哈密顿量与拉格朗日函数是同一系统的两种对偶描述，而该变换可以部分地进行，即每次只对一个速度变量作变换。<sup>[16](https://arxiv.org/abs/2310.17667)</sup> 欧拉–拉格朗日方程在此变换下变成哈密顿正则方程 \( \partial H / \partial p_i = \dot{q}_i \)、\( \partial H / \partial q_i = -\dot{p}_i \)。<sup>[2](https://encyclopediaofmath.org/wiki/Legendre_transform)</sup><sup> • </sup><sup>[5](https://galileoandeinstein.phys.virginia.edu/7010/CM_06_HamiltonsEqns.html)</sup>

## 热力学与统计力学

热力学函数在其自然变量下是凸的或凹的，这使它们成为该变换的适用对象。熵 \( S(U,V) \) 关于能量 \( U \) 是凹的；其反函数 \( U(S,V) \) 关于 \( S \) 是凸的，而亥姆霍兹自由能是 \( U \) 关于 \( S \) 的负勒让德变换，<sup>[6](https://web.math.ku.dk/noter/filer/mathphys2014.pdf)</sup>

\[ F(T,V) = -U^{*}(T,V) = \inf_{S} \,[\, U(S,V) - TS \,], \]

其中与 \( S \) 共轭的变量是温度 \( T \)。自由能衡量系统在恒温过程中所能做的功；总能量 \( U \) 并非全部都能用于这一目的。<sup>[6](https://web.math.ku.dk/noter/filer/mathphys2014.pdf)</sup> 同样的构造生成其余的热力学势，把能量、焓与各种自由能联系起来，并使热力学关系可以用对给定实验最方便的那一组独立变量来表述；在工程热力学中，它已被推广到适用于多组分系统稳定性与临界点现象的热力学势。<sup>[17](https://aiche.onlinelibrary.wiley.com/doi/10.1002/aic.690200620)</sup><sup> • </sup><sup>[18](https://opensiuc.lib.siu.edu/theses/1496/)</sup> 其实用动机在于控制：熵难以直接测量或设定，而它的共轭量——温度——却很容易施加。<sup>[5](https://galileoandeinstein.phys.virginia.edu/7010/CM_06_HamiltonsEqns.html)</sup><sup> • </sup><sup>[11](https://arxiv.org/abs/0806.1147)</sup>

## 概率论及其他应用

在大偏差理论中，克拉默定理中的速率函数是对数矩生成函数 \( \Lambda(\lambda) = \log \mathbb{E}\, e^{(\lambda, X)} \) 的勒让德变换：独立同分布随机向量的经验均值满足大偏差原理，其凸速率函数为 \( \Lambda^{*}(x) = \sup_{\lambda} \,[\, (\lambda, x) - \Lambda(\lambda) \,] \)。<sup>[7](https://math.mit.edu/~sheffield/2016175/Lecture9.pdf)</sup> 对标准正态变量，\( \kappa(\theta) = \tfrac{1}{2}\theta^2 \)，速率函数为 \( I(x) = \tfrac{1}{2}x^2 \)。<sup>[19](https://web.math.princeton.edu/~js129/PDFs/teaching/MAT425_spring_2025/MAT425_Lecture_Notes.pdf)</sup>

该变换所引出的变量对偶原理出现在各个科学领域：在量子场论中它联系拉格朗日表述与哈密顿表述，在经济学中它联系支出函数与效用函数，在凸优化中它是对偶理论的基石。<sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC12840504/)</sup> 把它应用于微分方程 \( F(x, y, y') = 0 \) 的求解时，可将方程转化为有时更易积分的形式。<sup>[2](https://encyclopediaofmath.org/wiki/Legendre_transform)</sup>

## 历史

该变换以法国数学家阿德里安-马里·勒让德（Adrien-Marie Legendre，1752–1833）命名。据文献学考证所能确定，被称为勒让德变换的运算可追溯到他 1787 年的论文《论若干偏微分方程的积分》（*Mémoire sur l'intégration de quelques équations aux différences partielles*），发表于《皇家科学院史》（*Histoire de l'Académie royale des sciences*）；文献中尚无关于该变换的完整历史记述。<sup>[20](https://jordanbell.info/LaTeX/mathematics/legendretransform/legendretransform.pdf)</sup> 凸分析意义下的推广来自芬切尔 1949 年的工作，而现代理论在此后数十年间于凸分析与最优化中逐步整合成形。<sup>[14](http://geodesic.mathdoc.fr/articles/10.4153/CJM-1967-012-4/)</sup>

## References

1. [Cannarsa, P. Lecture Notes on Dynamic Optimization, Chapter 3: The Legendre Transform, Università di Roma Tor Vergata.](https://www.mat.uniroma2.it/~cannarsa/dynopt.pdf)
2. [Legendre transform, Encyclopedia of Mathematics.](https://encyclopediaofmath.org/wiki/Legendre_transform)
3. [Generalized Legendre Transforms Have Roots in Information Geometry, PMC.](https://pmc.ncbi.nlm.nih.gov/articles/PMC12840504/)
4. [Convex Analysis, Chapter 18: Legendre–Fenchel Transform, Mathematical Foundations of Data Sciences.](https://mathematical-tours.github.io/book/interactive/convex-analysis/)
5. [Hamilton's Equations, University of Virginia physics notes.](https://galileoandeinstein.phys.virginia.edu/7010/CM_06_HamiltonsEqns.html)
6. [Mathematical Physics notes, Section 3.5: Legendre transform in thermodynamics, University of Copenhagen.](https://web.math.ku.dk/noter/filer/mathphys2014.pdf)
7. [Sheffield, S. 18.175 Lecture 9: More Large Deviations, MIT.](https://math.mit.edu/~sheffield/2016175/Lecture9.pdf)
8. [Fenchel-Legendre Transformation, Fenchel Duality, Convex Analysis lecture notes, École Polytechnique.](https://www.lix.polytechnique.fr/bigdata/mathbigdata/wp-content/uploads/2014/09/Lnotes_1234_cvxAnalysis.pdf)
9. [Kılınç-Karzan, F., Nemirovski, A. Chapter 13: Legendre Transform, in Essential Mathematics for Convex Optimization, Cambridge University Press.](https://www.cambridge.org/highereducation/books/essential-mathematics-for-convex-optimization/0772D4760EF7FA9498B25E051565ECE2/legendre-transform/012D9CE5F3051C3CB3FE92C10D76F45E)
10. [Gordon, G. Duality Correspondences, lecture slides, Carnegie Mellon University 10-725.](https://www.cs.cmu.edu/~ggordon/10725-F12/slides/17-dual-corresp.pdf)
11. [Zia, R. K. P., Redish, E. F., McKay, S. R. Making Sense of the Legendre Transform, arXiv:0806.1147.](https://arxiv.org/abs/0806.1147)
12. [Cherkassky, V. Hamiltonian and Duality lecture notes, University of Utah.](https://www.math.utah.edu/~cherk/teach/5500-19/hamiltonian2.pdf)
13. [The Double Legendre Transform, Appendix B, Optimal Transport: A Comprehensive Introduction, SIAM.](https://epubs.siam.org/doi/10.1137/1.9781611978094.appb)
14. [Rockafellar, R. T. (1967). Conjugates and Legendre Transforms of Convex Functions. Canadian Journal of Mathematics 19, 200–205.](http://geodesic.mathdoc.fr/articles/10.4153/CJM-1967-012-4/)
15. [Artstein-Avidan, S., Milman, V. (2009). The Concept of Duality in Convex Analysis, and the Characterization of the Legendre Transform. Annals of Mathematics 169(2), 661–674.](https://annals.math.princeton.edu/2009/169-2/p08)
16. [Hurtado, J. E. Understanding the Hamiltonian Function through the Geometry of Partial Legendre Transforms, arXiv:2310.17667.](https://arxiv.org/abs/2310.17667)
17. [Beegle, B. L., Modell, M., Reid, R. C. (1974). Legendre Transforms and Their Application in Thermodynamics. AIChE Journal 20(6).](https://aiche.onlinelibrary.wiley.com/doi/10.1002/aic.690200620)
18. [Rupassara, R. U. H. Geometry of Legendre Transform and Applications, SIU Carbondale thesis.](https://opensiuc.lib.siu.edu/theses/1496/)
19. [Measure Theory, MAT425 Lecture Notes, Princeton University, Example 7.48.](https://web.math.princeton.edu/~js129/PDFs/teaching/MAT425_spring_2025/MAT425_Lecture_Notes.pdf)
20. [The Legendre Transform (history section), Jordan Bell.](https://jordanbell.info/LaTeX/mathematics/legendretransform/legendretransform.pdf)

---
*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: 物质世界与数学 › 数学与统计学 › 数学分析与数学模型 › Real analysis

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/legendre-transformation

English original: https://www.edgepedia.org/legendre-transformation
