# 费马原理

**费马原理**（Fermat's principle，也称最短时间原理）是几何光学的一条陈述：在光线于两点之间可能采取的所有路径中，实际路径是那条使其传播时间——或等价地，光程——在路径发生微小改变时保持驻定的路径。<sup>[1](https://www.feynmanlectures.caltech.edu/I_26.html)</sup><sup> • </sup><sup>[2](https://labs.phys.utk.edu/mbreinig/phys421/modules/m1/Fermat.html)</sup> 它是几何光学的核心结果——包括直线传播、反射定律和斯涅尔折射定律——得以推出的单一支配原理。<sup>[1](https://www.feynmanlectures.caltech.edu/I_26.html)</sup><sup> • </sup><sup>[3](https://onlinelibrary.wiley.com/doi/10.1155/2012/273107)</sup>

| 关键事实 | 详情 |
|---|---|
| 表述 | 两点之间的光线沿最短时间的路径传播；更确切地说，实际路径的任何微小改变只会使传播时间产生二阶变化。<sup>[1](https://www.feynmanlectures.caltech.edu/I_26.html)</sup> |
| 公式表述 | 光程 \( \mathrm{OPL} = \int n(\mathbf{r}(s))\, ds \)；传播时间等于 OPL 除以 \( c \)，因此最短时间与最短 OPL 等价。<sup>[4](https://phys.libretexts.org/Bookshelves/Optics/BSc_Optics_%28Konijnenberg_Adam_and_Urbach%29/02%3A_Geometrical_Optics/2.03%3A_Principle_of_Fermat)</sup> |
| 起源 | 由皮埃尔·德·费马（Pierre de Fermat）于约1650年提出；反射的最短距离版本此前已由亚历山大里亚的希罗（Hero of Alexandria）表述。<sup>[1](https://www.feynmanlectures.caltech.edu/I_26.html)</sup> |
| 主要推论 | 反射定律 \( \theta_i = \theta_r \) 与斯涅尔定律（Snell's law）\( n_1 \sin\theta_1 = n_2 \sin\theta_2 \)，以及光线可逆性。<sup>[2](https://labs.phys.utk.edu/mbreinig/phys421/modules/m1/Fermat.html)</sup> |
| 成像条件 | 当从物点到像点的许多路径具有相等光程时，就形成像。<sup>[5](https://optics.byu.edu/docs/opticsBook.pdf)</sup> |
| 局限 | 简单的最小化在各向异性介质中失效，因为其中折射率既依赖光线方向也依赖位置。<sup>[5](https://optics.byu.edu/docs/opticsBook.pdf)</sup> |
| 波动光学中的地位 | 几何光学是波动光学的短波长近似；费马原理可由费曼路径积分通过驻相法推出。<sup>[3](https://onlinelibrary.wiley.com/doi/10.1155/2012/273107)</sup> |

## 表述与光程

在折射率为 \( n \) 的介质中，光以速度 \( c/n \) 传播，其中 \( c = 3 \times 10^{8} \) m/s 是真空光速。<sup>[4](https://phys.libretexts.org/Bookshelves/Optics/BSc_Optics_%28Konijnenberg_Adam_and_Urbach%29/02%3A_Geometrical_Optics/2.03%3A_Principle_of_Fermat)</sup> 沿路径的传播时间因此为

\[ t_{S \to P} = \int_0^{s_P} \frac{n(\mathbf{r}(s))}{c}\, ds, \]

而光程（OPL）定义为

\[ \mathrm{OPL} = \int_0^{s_P} n(\mathbf{r}(s))\, ds, \]

即按折射率加权的几何距离。<sup>[4](https://phys.libretexts.org/Bookshelves/Optics/BSc_Optics_%28Konijnenberg_Adam_and_Urbach%29/02%3A_Geometrical_Optics/2.03%3A_Principle_of_Fermat)</sup> 在均匀介质中，OPL 就是折射率乘以几何长度。<sup>[6](https://optics.engineering/knowledge_base/worked_exercises/fundamentals_of_photonics/ch01_ray_optics.html)</sup> OPL 不是光实际传播的物理距离；它正比于该距离内能容纳的波长数，因此在折射率更高的介质中波长变短时，OPL 增大。<sup>[5](https://optics.byu.edu/docs/opticsBook.pdf)</sup>

**驻定，并不总是最小。** 流行的说法“最短时间”严格来说并不正确。准确的说法是，沿特定路径传播的光线具有这样的性质：路径形状或与表面相交点的微小改变不会使时间产生一阶变化，而只产生二阶变化。<sup>[1](https://www.feynmanlectures.caltech.edu/I_26.html)</sup> 在通常情形下，驻定路径与邻近路径相比是局部极小，但光线可以在同一对点之间走两条不同路径，每条都是传播时间的局部极小；镜面反射是标准例子。<sup>[4](https://phys.libretexts.org/Bookshelves/Optics/BSc_Optics_%28Konijnenberg_Adam_and_Urbach%29/02%3A_Geometrical_Optics/2.03%3A_Principle_of_Fermat)</sup>

## 反射与折射的推论

**反射定律。** 对于距平面镜垂距为 \( d \)、彼此相隔 \( D \) 的两点 A 和 B，折线路径长度为 \( L = (x^{2} + d^{2})^{1/2} + ((D - x)^{2} + d^{2})^{1/2} \)。令 \( dL/dx = 0 \) 得 \( x = D/2 \)，这等价于 \( \theta_i = \theta_r \)：入射角等于反射角。<sup>[2](https://labs.phys.utk.edu/mbreinig/phys421/modules/m1/Fermat.html)</sup> 费曼（Feynman）通过将点 B 经镜面反射，几何地呈现了同一结果：最短折线路径于是变成通往像点的直线。<sup>[1](https://www.feynmanlectures.caltech.edu/I_26.html)</sup>

**斯涅尔定律。** 对于穿过折射率为 \( n_1 \) 和 \( n_2 \) 的介质之间平直界面的光线，就交点位置求光程 \( \mathrm{OPL} = n_i \sqrt{x_i^{2} + y_i^{2}} + n_t \sqrt{x_t^{2} + y_t^{2}} \) 的极小值，并利用 \( \sin\theta_i = y_i / \sqrt{x_i^{2} + y_i^{2}} \) 及 \( \theta_t \) 的相应表达式，可化为

\[ n_i \sin\theta_i = n_t \sin\theta_t, \]

即熟悉的斯涅尔定律。<sup>[5](https://optics.byu.edu/docs/opticsBook.pdf)</sup> 同一推导出现在莱布尼茨（Leibniz）1684年最初的微积分专著中，作为新微积分威力的例证。<sup>[7](https://liberzon.csl.illinois.edu/teaching/cvoc/node22.html)</sup> 要求 \( L = \int n\, ds \) 驻定，也迫使入射方向、折射方向和表面法线方向共面。<sup>[8](https://www.physics2u.com/vault/snell-law-and-reflection-from-fermat.html)</sup>

**光线可逆性。** 因为两点之间的光程无论从 A 到 B 还是从 B 到 A 计算都相同，所以任何实际光线若反向，就会沿同一路径回溯；这就是几何可逆性原理。<sup>[2](https://labs.phys.utk.edu/mbreinig/phys421/modules/m1/Fermat.html)</sup>

## 成像与弯曲路径

费马原理解释了光线为何在非均匀介质中弯曲，也解释了透镜为何成像。当折射率随位置变化时，两点之间的正确光线不必是直线，而可能沿一条复杂曲线传播，这条曲线由折射率如何变化决定；海市蜃楼可通过最小化泛函 \( I[x(y)] = \int n(y) \sqrt{1 + x'(y)^{2}}\, dy \) 来计算。<sup>[5](https://optics.byu.edu/docs/opticsBook.pdf)</sup><sup> • </sup><sup>[9](https://www.pa.uky.edu/~crawford/phy404_fa20/H04.pdf)</sup> 当从点 A 到点 B 的许多路径具有相同光程时，就会成像：在透镜中，通过中心的光线具有较短的几何路径长度，但穿过更多材料，因此其 OPL 与外侧光线相等，来自物点的所有光线同相到达像点。<sup>[5](https://optics.byu.edu/docs/opticsBook.pdf)</sup> 同样的恒定 OPL 要求决定了将一点成像到另一点的反射面的曲率。<sup>[5](https://optics.byu.edu/docs/opticsBook.pdf)</sup>

用变分法的语言说，光线是作用量泛函 \( S = \int_a^b \frac{c(x)}{|\dot{X}(t)|} dt \) 的极值曲线，并且是度规 \( ds^{2} = c^{-2}(x)\, dx^{2} \) 的测地线；当多条光线连接同样的两点时——这种情况称为多路径——传播时间取多个值，并沿称为焦散线的曲线出现不连续。<sup>[10](https://ocw.tau.edu.ng/courses/mathematics/18-325-topics-in-applied-mathematics-waves-and-imaging-fall-2015/lecture-notes/MIT18_325F15_Chapter2.pdf)</sup>

## 与波动光学的关系

几何光学是波动光学的短波长近似，其所有结果都可由单一的费马原理推出，而标量准单色近似下的波动光学则建立在惠更斯-菲涅耳原理（Huygens-Fresnel principle）之上。<sup>[3](https://onlinelibrary.wiley.com/doi/10.1155/2012/273107)</sup> 两者相互联系：把光学传播子写成对所有虚路径的费曼路径积分，并应用驻相法，积分会坍缩到光程驻定的那一条路径上；这恰好就是满足费马原理的路径，而相位函数则成为点程函。<sup>[3](https://onlinelibrary.wiley.com/doi/10.1155/2012/273107)</sup> 波长决定了这种联系的尺度：波长告诉光必须在多远处有效地“嗅探”路径以检验它；这就是为什么当孔径与波长可比时，光线模型会失效。<sup>[1](https://www.feynmanlectures.caltech.edu/I_26.html)</sup><sup> • </sup><sup>[11](https://oyc.yale.edu/physics/phys-201/lecture-16)</sup>

## 推广与局限

光程的简单最小化在各向异性介质（如晶体）中不能给出正确路径；在这种介质中，\( n \) 既依赖光线位置，也依赖光线方向。<sup>[5](https://optics.byu.edu/docs/opticsBook.pdf)</sup> 尽管如此，该原理已被远远推广到其原初设定之外。当光学介质及其边界以相对论速度运动时，只要把静止系中的各向同性介质在运动参考系中视为光学各向异性，该原理仍然有效。<sup>[12](https://arxiv.org/abs/physics/0702100)</sup> 它已被推广到用于引力光线的稳态时空，<sup>[13](https://www.sciencedirect.com/science/article/pii/039304409400011R)</sup> 而从费马原理出发的详细推导给出了与梯度折射率光学和超表面相关的广义斯涅尔-笛卡尔定律；在超表面中，一组光线因在其内部多次反射而从表面出射。<sup>[14](https://opg.optica.org/abstract.cfm?uri=josaa-40-4-676)</sup>

## 历史注记

费马于约1650年提出该原理，其灵感来自亚历山大里亚的希罗早先的观察：反射光取尽可能最短的距离到达镜面并返回。<sup>[1](https://www.feynmanlectures.caltech.edu/I_26.html)</sup> 当时，人们已猜测光速有限，但尚未测出其数值；1676年，丹麦天文学家奥勒·罗默（Ole Römer）根据木星某颗卫星的食计算出光速，得到的估计值仅低了30%。<sup>[4](https://phys.libretexts.org/Bookshelves/Optics/BSc_Optics_%28Konijnenberg_Adam_and_Urbach%29/02%3A_Geometrical_Optics/2.03%3A_Principle_of_Fermat)</sup> 费马的最小化问题也预示了变分法；这一领域后来由欧拉（Euler）、拉格朗日（Lagrange）和哈密顿（Hamilton）发展，其中同样的驻定积分结构支配力学。<sup>[9](https://www.pa.uky.edu/~crawford/phy404_fa20/H04.pdf)</sup>

## References

1. [The Feynman Lectures on Physics, Vol. I, Ch. 26: Optics: The Principle of Least Time](https://www.feynmanlectures.caltech.edu/I_26.html)
2. [Fermat's principle, University of Tennessee Physics 421 lecture notes](https://labs.phys.utk.edu/mbreinig/phys421/modules/m1/Fermat.html)
3. [A. V. Gitin (2012). Mathematical Fundamentals of Modern Linear Optics. International Journal of Antennas and Propagation.](https://onlinelibrary.wiley.com/doi/10.1155/2012/273107)
4. [2.3: Principle of Fermat, Physics LibreTexts (Konijnenberg, Adam, and Urbach, TU Delft)](https://phys.libretexts.org/Bookshelves/Optics/BSc_Optics_%28Konijnenberg_Adam_and_Urbach%29/02%3A_Geometrical_Optics/2.03%3A_Principle_of_Fermat)
5. [Optics textbook, Brigham Young University, Ch. 9: Light as Rays](https://optics.byu.edu/docs/opticsBook.pdf)
6. [Chapter 1: Ray Optics, KrakenOS documentation](https://optics.engineering/knowledge_base/worked_exercises/fundamentals_of_photonics/ch01_ray_optics.html)
7. [2.1.2 Light reflection and refraction, University of Illinois course notes](https://liberzon.csl.illinois.edu/teaching/cvoc/node22.html)
8. [Laws of Reflection and Refraction from Fermat, physics2u](https://www.physics2u.com/vault/snell-law-and-reflection-from-fermat.html)
9. [University of Kentucky Physics 404G, Homework #4](https://www.pa.uky.edu/~crawford/phy404_fa20/H04.pdf)
10. [Waves and Imaging, Geometrical Optics, MIT 18.325 lecture notes](https://ocw.tau.edu.ng/courses/mathematics/18-325-topics-in-applied-mathematics-waves-and-imaging-fall-2015/lecture-notes/MIT18_325F15_Chapter2.pdf)
11. [PHYS 201 Lecture 16: Ray or Geometrical Optics I, Open Yale Courses](https://oyc.yale.edu/physics/phys-201/lecture-16)
12. [Fermat's principle of least time in the presence of uniformly moving boundaries and media, arXiv:physics/0702100](https://arxiv.org/abs/physics/0702100)
13. [A Fermat principle for stationary space-times and applications to light rays, ScienceDirect](https://www.sciencedirect.com/science/article/pii/039304409400011R)
14. [Detailed derivation of the generalized Snell–Descartes laws from Fermat's principle, Journal of the Optical Society of America A](https://opg.optica.org/abstract.cfm?uri=josaa-40-4-676)

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

Topic: 物质世界与数学 › 物理学 › 经典物理学 › Waves and optics › Geometrical optics and imaging › Ray tracing and refraction › Fermat's principle

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/fermats-principle

English original: https://www.edgepedia.org/fermats-principle
