# 拉格朗日力学

**拉格朗日力学**是经典力学的一种重新表述：系统的运动方程由单个标量函数——拉格朗日量——通过变分原理导出，而不是由作用于单个粒子的力导出。拉格朗日量用广义坐标、其时间导数以及可能的时间本身来表示，运动方程则由哈密顿驻定作用量原理得出。<sup>[1](https://interactivetextbooks.tudelft.nl/nb1140/content/Lagrangianmechanics.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 拉格朗日量 | \( \mathcal{L} = K - U \)，即动能与势能之差，写成广义坐标 \( q_i \)、速度 \( \dot{q}_i \) 以及可能的时间的函数<sup>[1](https://interactivetextbooks.tudelft.nl/nb1140/content/Lagrangianmechanics.html)</sup> |
| 基本原理 | 哈密顿原理：系统沿位形空间中使作用量积分 \( S = \int \mathcal{L}\, dt \) 驻定的路径运动<sup>[2](https://galileoandeinstein.phys.virginia.edu/7010/CM_04_HamiltonsPrinciple.html)</sup> |
| 运动方程 | 每个广义坐标对应一个欧拉-拉格朗日方程：\( \frac{d}{dt}\frac{\partial \mathcal{L}}{\partial \dot{q}_i} - \frac{\partial \mathcal{L}}{\partial q_i} = 0 \)<sup>[1](https://interactivetextbooks.tudelft.nl/nb1140/content/Lagrangianmechanics.html)</sup> |
| 与牛顿的关系 | 对于势场中的粒子，欧拉-拉格朗日方程重现牛顿第二定律 \( m\ddot{x} = -dU/dx \)<sup>[1](https://interactivetextbooks.tudelft.nl/nb1140/content/Lagrangianmechanics.html)</sup> |
| 对称性 | 诺特定理：拉格朗日量的每一个连续对称性都给出一个相应的守恒量<sup>[1](https://interactivetextbooks.tudelft.nl/nb1140/content/Lagrangianmechanics.html)</sup> |
| 能量 | 若拉格朗日量不显含时间，则哈密顿量 \( \mathcal{H} = -\mathcal{L} + \sum_i \dot{q}_i \frac{\partial \mathcal{L}}{\partial \dot{q}_i} \)（等于总能量 \( E = K + U \)）守恒<sup>[1](https://interactivetextbooks.tudelft.nl/nb1140/content/Lagrangianmechanics.html)</sup> |
| 起源 | 约瑟夫-路易·拉格朗日（Joseph-Louis Lagrange）的《分析力学》（*Mécanique analytique*）于1788年出版，书中没有任何图形，仅从代数运算推导力学<sup>[3](https://mathshistory.st-andrews.ac.uk/Extras/Lagrange_Analytical_Mechanics/)</sup> |

## 哈密顿原理与欧拉-拉格朗日方程

起点是作用量，即拉格朗日量沿空间和时间中固定端点之间某条路径的积分。哈密顿原理指出，物理路径是使作用量驻定的那条路径：路径的微小变分只会使作用量发生二阶变化。严格地说，该路径必须是可能路径空间中的一个驻点，而且通常是最小作用量路径。<sup>[2](https://galileoandeinstein.phys.virginia.edu/7010/CM_04_HamiltonsPrinciple.html)</sup>

对路径 \( x(t) \to x(t) + h(t) \) 作变分，其中变分 \( h(t) \) 在端点处为零，并将作用量按 \( h \) 展开到一阶，则驻定条件要求被积函数对任意 \( h \) 都为零。由此得到欧拉-拉格朗日方程

\[ \frac{d}{dt} \frac{\partial \mathcal{L}}{\partial \dot{x}} - \frac{\partial \mathcal{L}}{\partial x} = 0. \]

对于一维拉格朗日量 \( \mathcal{L} = \frac{1}{2} m \dot{x}^2 - U(x) \)，该方程正是牛顿第二定律 \( m\ddot{x} = -dU/dx \)。因此，对于保守系统，哈密顿原理可以取代牛顿第二定律作为公理。<sup>[1](https://interactivetextbooks.tudelft.nl/nb1140/content/Lagrangianmechanics.html)</sup>

## 广义坐标与约束

**坐标选择的自由**是该方法在实用上的优势。欧拉-拉格朗日方程在任意一组广义坐标 \( q_i \) 下都成立；广义坐标是描述系统位形的完备且独立的参数集，而不限于笛卡儿坐标。例如，在极坐标中，势场 \( V(r, \theta) \) 中粒子的拉格朗日量为 \( \mathcal{L} = \frac{1}{2} m (\dot{r}^2 + r^2 \dot{\theta}^2) - V(r, \theta) \)，将其代入欧拉-拉格朗日方程，可直接重现极坐标下的运动方程。<sup>[1](https://interactivetextbooks.tudelft.nl/nb1140/content/Lagrangianmechanics.html)</sup>

**约束**是限制系统自由度的条件，例如珠子固定在距旋转金属丝原点距离 \( L \) 处。在基于力的描述中，往往不容易看出是哪个力在施加约束。在拉格朗日力学中，约束被吸收进一个扩展的拉格朗日量，其中引入一个额外变量——拉格朗日乘子；对扩展拉格朗日量应用欧拉-拉格朗日方程，就能得到受约束的运动方程以及所需的约束力。<sup>[1](https://interactivetextbooks.tudelft.nl/nb1140/content/Lagrangianmechanics.html)</sup> 不做功的约束力，例如摆绳中的张力或金属丝上珠子受到的法向力，根本不会出现在拉格朗日量中；如果关心张力本身，则使用牛顿方法，或从拉格朗日解反推计算。<sup>[2](https://galileoandeinstein.phys.virginia.edu/7010/CM_04_HamiltonsPrinciple.html)</sup>

对于存在非保守力的系统，拉格朗日方程具有如下形式 \( \frac{d}{dt}\left(\frac{\partial L}{\partial \dot{q}_j}\right) - \frac{\partial L}{\partial q_j} = Q_j \)，其中 \( Q_j \) 是在坐标 \( q_j \) 的虚位移下，由施加力的虚功得到的广义力。<sup>[4](https://ocw.mit.edu/courses/2-003sc-engineering-dynamics-fall-2011/d1984062464dcc3df68b5741fd37192b_MIT2_003SCF11_Lagrange.pdf)</sup>

## 诺特定理与守恒定律

这一形式体系揭示了对称性与守恒定律之间的联系。拉格朗日量的连续对称性意味着，在一阶近似下，拉格朗日量在坐标的微小变化下不变。以德国数学家埃米·诺特（Emmy Noether，1882—1935）命名的诺特定理指出，拉格朗日量的每一个连续对称性都有一个相应的守恒量。<sup>[1](https://interactivetextbooks.tudelft.nl/nb1140/content/Lagrangianmechanics.html)</sup> 标准情形包括：

- 时间平移不变性，即 \( \mathcal{L} \) 不显含 \( t \)，给出能量守恒；<sup>[1](https://interactivetextbooks.tudelft.nl/nb1140/content/Lagrangianmechanics.html)</sup>
- 空间平移不变性给出动量守恒；<sup>[1](https://interactivetextbooks.tudelft.nl/nb1140/content/Lagrangianmechanics.html)</sup>
- 空间旋转不变性给出角动量守恒。<sup>[1](https://interactivetextbooks.tudelft.nl/nb1140/content/Lagrangianmechanics.html)</sup>

能量这一陈述可以明确写出。将哈密顿量定义为 \( \mathcal{H} = -\mathcal{L} + \sum_i \dot{q}_i \frac{\partial \mathcal{L}}{\partial \dot{q}_i} \)，不显含时间的拉格朗日量使 \( \mathcal{H} \) 成为运动常数；对于普通力学系统，它等于总能量 \( E = K + U \)。<sup>[1](https://interactivetextbooks.tudelft.nl/nb1140/content/Lagrangianmechanics.html)</sup> 拉格朗日量不依赖的坐标 \( q_i \) 称为可忽略坐标或循环坐标，相应的广义动量 \( p_i = \partial \mathcal{L}/\partial \dot{q}_i \) 守恒；诺特定理给出了这一联系的与坐标无关的版本。<sup>[5](https://maths.dur.ac.uk/users/inaki.garcia-etxebarria/MPII/Lectures.html)</sup> 类似的对称性—守恒关系也存在于狭义与广义相对论、量子力学和量子场论中。<sup>[1](https://interactivetextbooks.tudelft.nl/nb1140/content/Lagrangianmechanics.html)</sup>

## 历史

约瑟夫-路易·拉格朗日（Joseph-Louis Lagrange，1736—1813）是意大利出生的法国数学家；他于1760年发展了广义坐标及其运动方程，并在欧拉（Euler）和莫佩尔蒂（Maupertuis）先前工作的基础上，于1760年将最小作用量原理推广到一般情形，又于1773年引入势函数和拉格朗日量 \( L = T - V \)。<sup>[6](https://pages.hep.wisc.edu/~ldurand/711html/courseinfo/biographies/lagrange.html)</sup> 这些构件在他的柏林（Berlin）时期逐步积累：虚功原理与达朗贝尔（d'Alembert）原理相结合，作为动力学基础，出现于1765年；运动方程的首批通积分出现于1779年；拉格朗日运动方程出现于1782年。<sup>[7](https://doi.org/10.1007/s40329-014-0043-3)</sup>

论著《分析力学》（*Mécanique analytique*）于1788年在巴黎（Paris）出版，第二卷于1789年出版，几乎正好在牛顿的《自然哲学的数学原理》（*Principia*）之后一个世纪。拉格朗日在序言中宣称：“本著作中不会出现任何图形。我所阐述的方法仅依赖于以规则、统一方式进行的代数运算，无需借助几何或力学的作图或论证。”<sup>[3](https://mathshistory.st-andrews.ac.uk/Extras/Lagrange_Analytical_Mechanics/)</sup> 他修订并增补了这部著作，于1811年出版第1卷第二版；1813年去世时，增补后的第2卷已基本完成，并于1815年问世。<sup>[3](https://mathshistory.st-andrews.ac.uk/Extras/Lagrange_Analytical_Mechanics/)</sup> 威廉·罗恩·哈密顿（William Rowan Hamilton）第一个使用最小作用量原理推导出现今形式的拉格朗日方程，并称拉格朗日的书是“一种科学诗”。<sup>[2](https://galileoandeinstein.phys.virginia.edu/7010/CM_04_HamiltonsPrinciple.html)</sup>

## 扩展与局限

基本形式体系假定力是可由势导出的保守力。线性依赖于速度的耗散力可以通过瑞利耗散函数 \( \mathcal{R}(\dot{\mathbf{q}}) \) 纳入，该函数由瑞利勋爵（Lord Rayleigh）于1881年引入：广义摩擦力为 \( Q_j^f = -\partial \mathcal{R}/\partial \dot{q}_j \)，而 \( 2\mathcal{R} \) 等于耗散力导致的能量损失率。<sup>[8](https://phys.libretexts.org/Bookshelves/Classical_Mechanics/Variational_Principles_in_Classical_Mechanics_%28Cline%29/10%253A_Nonconservative_Systems/10.04%253A_Rayleighs_Dissipation_Function)</sup>

该方法有已知的优点和局限。它会自动为每个自由度给出一个方程，可直接在广义坐标中工作，并消去不做功的约束力；但是，在建立动能、势能或广义力时的错误可能不被察觉，因为绕过了受力图分析这一物理过程；而且计算广义力的工作量可能与直接的牛顿方法一样大。<sup>[4](https://ocw.mit.edu/courses/2-003sc-engineering-dynamics-fall-2011/d1984062464dcc3df68b5741fd37192b_MIT2_003SCF11_Lagrange.pdf)</sup> 一个标准应用是平面双摆，即重力作用下由无质量刚性杆连接的两个质点；其在角坐标 \( \theta_1, \theta_2 \) 中的拉格朗日量产生两个耦合的非线性运动方程，无法解析求解。<sup>[9](https://www.physics.umd.edu/hep/drew/pendulum2.html)</sup>

## References

1. [9. Lagrangian mechanics, Introduction to particle and continuum physics, TU Delft](https://interactivetextbooks.tudelft.nl/nb1140/content/Lagrangianmechanics.html)
2. [Hamilton's Principle, University of Virginia](https://galileoandeinstein.phys.virginia.edu/7010/CM_04_HamiltonsPrinciple.html)
3. [Joseph-Louis Lagrange: Analytical Mechanics, MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/Extras/Lagrange_Analytical_Mechanics/)
4. [Lagrange Handout, MIT 2.003SC Engineering Dynamics, Fall 2011](https://ocw.mit.edu/courses/2-003sc-engineering-dynamics-fall-2011/d1984062464dcc3df68b5741fd37192b_MIT2_003SCF11_Lagrange.pdf)
5. [Lagrangian and Hamiltonian Mechanics, Durham University](https://maths.dur.ac.uk/users/inaki.garcia-etxebarria/MPII/Lectures.html)
6. [Joseph-Louis Lagrange biography, University of Wisconsin](https://pages.hep.wisc.edu/~ldurand/711html/courseinfo/biographies/lagrange.html)
7. [The history of the Méchanique analitique, Lettera Matematica (2014)](https://doi.org/10.1007/s40329-014-0043-3)
8. [Rayleigh's Dissipation Function, Physics LibreTexts](https://phys.libretexts.org/Bookshelves/Classical_Mechanics/Variational_Principles_in_Classical_Mechanics_%28Cline%29/10%253A_Nonconservative_Systems/10.04%253A_Rayleighs_Dissipation_Function)
9. [Double Pendulum, University of Maryland](https://www.physics.umd.edu/hep/drew/pendulum2.html)

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

Topic: 物质世界与数学 › 物理学 › 经典物理学 › Mechanics › Momentum, energy, and work › Work (mechanics) › Virtual work and analytical mechanics

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/lagrangian-mechanics

English original: https://www.edgepedia.org/lagrangian-mechanics
