{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $\\Omega \\subseteq \\R^3$ be a region filled with an isotropic optical medium of refractive index $n \\colon \\Omega \\to (0, \\infty)$.\nFor a piecewise smooth curve $\\gamma \\colon [a, b] \\to \\Omega$ define the *optical path length*\n$$\\mathcal{L}[\\gamma] = \\int_a^b n(\\gamma(s))\\, \\abs{\\gamma'(s)} \\, ds.$$\nLet $A$ and $B$ be two points of $\\Omega$.\nIn geometric optics, the path of a light ray from $A$ to $B$ is a critical point of $\\mathcal{L}$ among curves from $A$ to $B$.\n\n## Remarks\n\nSince light has speed $c/n$ in the medium, $\\mathcal{L}[\\gamma]/c$ is the travel time along $\\gamma$, so the principle says the ray makes the travel time stationary.\nThe ray need not minimise the time: a ray reflected by a concave mirror can be a saddle point or a maximum.\nWhen $n$ is smooth, the rays are the solutions of the [[Euler–Lagrange equation|PS0VV149ET]] of $\\mathcal{L}$, which in arc length $\\sigma$ reads $\\frac{d}{d\\sigma}\\big(n\\, \\frac{dx}{d\\sigma}\\big) = \\nabla n$.\nEquivalently, the rays are the [[geodesics|NSYMQMHPDN]] of the metric $n^2 \\abs{dx}^2$.\nIn a homogeneous medium ($n$ constant) the rays are straight lines.\nTake two homogeneous media with indices $n_1, n_2$ separated by a plane.\nMinimising $\\mathcal{L}$ over broken lines gives Snell's law $n_1 \\sin \\theta_1 = n_2 \\sin \\theta_2$.\nHere $\\theta_i$ is the angle between the ray and the normal of the plane.\nThe principle is a statement of physics, not a theorem.\nIn wave optics it is recovered in the limit of short wavelength, where the phase solves the [[eikonal equation|HGMX1QGTAZ]] and the rays are its characteristic curves.\n\n## Explanations\n\n### L1 human\n\nLight travelling from one point to another follows the path that takes the least time.\nMore exactly, its travel time does not change to first order under small changes of the path.\nThis explains why light goes straight in air, why it bends when it enters water, and why angles of incidence and reflection are equal at a mirror.\n\n### L2 human\n\nFermat's principle is the model for all variational principles of physics.\nThe ray equations are the Euler–Lagrange equations of the optical length, and the rays are geodesics of the optical metric $n^2 \\abs{dx}^2$.\nThe same formalism appears in mechanics through [[Maupertuis's principle|ZXY0AYKMXZ]], whose Jacobi metric plays the role of $n^2 \\abs{dx}^2$.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "about": [
      "PQ25NHV0KS"
    ],
    "kind": "statement",
    "msc": [
      "78A05",
      "49S05"
    ],
    "name": "Fermat's principle",
    "role": "fact",
    "same_as": {
      "wikidata": "Q331041",
      "wikipedia": "Fermat's principle"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Fermat%27s_principle"
      }
    ],
    "tag": "RKX9XJ0RVW",
    "uses": [
      "PQ25NHV0KS",
      "PS0VV149ET",
      "NSYMQMHPDN"
    ]
  },
  "kind": "statement",
  "link": "https://tamnd.github.io/math2/node/RKX9XJ0RVW/",
  "links": [
    {
      "field": "about",
      "target": "PQ25NHV0KS"
    },
    {
      "field": "uses",
      "target": "PQ25NHV0KS"
    },
    {
      "field": "uses",
      "target": "PS0VV149ET"
    },
    {
      "field": "uses",
      "target": "NSYMQMHPDN"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/RKX9XJ0RVW.md",
  "msc": [
    "78A05",
    "49S05"
  ],
  "name": "Fermat's principle",
  "prov": null,
  "role": "fact",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/RKX/RKX9XJ0RVW.md",
  "status": null,
  "tag": "RKX9XJ0RVW",
  "uri": "m2://RKX9XJ0RVW",
  "url": "https://tamnd.github.io/math2/wiki/fermats-principle/",
  "writing": {
    "tag": "RKX9XJ0RVW",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
