{
  "id": "euler-lagrange-equations",
  "title": "Euler–Lagrange Equations",
  "lang": "en",
  "source_lang": "en",
  "summary": "Differential equations expressing the stationarity of an integral functional, fundamental to variational calculus, mechanics, and field theory.",
  "category": "mathematics",
  "subcategory": "analysis",
  "type": "concept",
  "aliases": [
    "Euler–Lagrange equation",
    "Euler–Lagrange differential equations"
  ],
  "generated_at": "2026-10-04",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/euler-lagrange-equations/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/euler-lagrange-equations/",
      "json": "https://aiwiki.page/zh/euler-lagrange-equations.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "The Euler–Lagrange equations are differential equations that characterize stationary functions of integral functionals: functions for which every admissible infinitesimal variation produces zero first-order change in the functional. They are central to the calculus of variations. In classical mechanics, they express the equations of motion through stationarity of the action; in field theory, they give the corresponding equations for fields. Stationarity is a necessary condition for a smooth extremum, but does not by itself establish a minimum or maximum. (damtp.cam.ac.uk)"
    },
    {
      "heading": "Mathematical formulation",
      "text": "Consider the functional\n\n\\[J[y]=\\int_a^b F(x,y(x),y'(x))\\,dx,\\]\n\nwith prescribed endpoint values \\(y(a)\\) and \\(y(b)\\). Here \\(F\\) is a sufficiently smooth integrand, and \\(y'=dy/dx\\). A sufficiently smooth stationary function satisfies\n\n\\[\\boxed{\\frac{\\partial F}{\\partial y} -\\frac{d}{dx}\\left(\\frac{\\partial F}{\\partial y'}\\right)=0.}\\]\n\nThe partial derivatives treat \\(x,y,y'\\) as independent arguments of \\(F\\), whereas \\(d/dx\\) differentiates the resulting expression along the function \\(y(x)\\). (math.mit.edu)\n\nFor several dependent functions \\(y_1,\\ldots,y_n\\), there is one equation for each:\n\n\\[\\frac{\\partial F}{\\partial y_i} -\\frac{d}{dx}\\left(\\frac{\\partial F}{\\partial y_i'}\\right)=0, \\qquad i=1,\\ldots,n.\\]\n\nThese equations generally contain second derivatives, although special or degenerate integrands can reduce their order. (web.mit.edu)"
    },
    {
      "heading": "Derivation from the first variation",
      "text": "Replace \\(y\\) by\n\n\\[y_\\varepsilon(x)=y(x)+\\varepsilon\\eta(x),\\]\n\nwhere \\(\\eta(a)=\\eta(b)=0\\) preserves the endpoint values. The first variation is\n\n\\[\\delta J[y;\\eta] =\\left.\\frac{d}{d\\varepsilon}J[y+\\varepsilon\\eta]\\right|_{\\varepsilon=0} =\\int_a^b\\left(F_y\\eta+F_{y'}\\eta'\\right)\\,dx.\\]\n\nIntegration by parts gives\n\n\\[\\delta J =\\left[F_{y'}\\eta\\right]_a^b +\\int_a^b\\left(F_y-\\frac{d}{dx}F_{y'}\\right)\\eta\\,dx.\\]\n\nThe boundary term vanishes. Requiring the remaining integral to vanish for every admissible \\(\\eta\\) forces its coefficient to vanish, yielding the Euler–Lagrange equation. This implication is the fundamental lemma of the calculus of variations. (damtp.cam.ac.uk)"
    },
    {
      "heading": "Classical mechanics",
      "text": "For independent generalized coordinates \\(q_i(t)\\), define the action using a Lagrangian \\(L(q,\\dot q,t)\\):\n\n\\[S[q]=\\int_{t_1}^{t_2}L(q,\\dot q,t)\\,dt.\\]\n\nStationarity under fixed-endpoint variations gives\n\n\\[\\boxed{\\frac{d}{dt}\\left(\\frac{\\partial L}{\\partial\\dot q_i}\\right) -\\frac{\\partial L}{\\partial q_i}=0.}\\]\n\nThe formulation retains its form under invertible changes of generalized coordinates, allowing positions, angles, and other suitable variables to describe motion. (damtp.cam.ac.uk)\n\nFor a particle of constant mass \\(m\\) moving in one dimension under a position-dependent potential,\n\n\\[L=\\frac12m\\dot x^2-V(x).\\]\n\nThe first term is kinetic energy, and \\(V\\) is potential energy. Substitution gives\n\n\\[m\\ddot x=-\\frac{dV}{dx},\\]\n\nrecovering Newton’s second law for a conservative force. (damtp.cam.ac.uk)\n\nConserved quantities\n\nThe conjugate momentum is\n\n\\[p_i=\\frac{\\partial L}{\\partial\\dot q_i}.\\]\n\nIf \\(L\\) is independent of \\(q_i\\), that coordinate is cyclic or ignorable, and its equation implies \\(\\dot p_i=0\\). If \\(L\\) has no explicit time dependence, then\n\n\\[E=\\sum_i\\dot q_i p_i-L\\]\n\nis conserved. For the usual time-independent mechanical Lagrangian with quadratic kinetic energy and velocity-independent potential, this equals the total energy. These results are examples of Noether’s theorem, which relates continuous symmetries of the action to conservation laws. (damtp.cam.ac.uk)"
    },
    {
      "heading": "Geometric example: shortest curves",
      "text": "The length of a plane curve represented as \\(y(x)\\) is\n\n\\[J[y]=\\int_a^b\\sqrt{1+(y')^2}\\,dx.\\]\n\nBecause the integrand is independent of \\(y\\), its Euler–Lagrange equation becomes\n\n\\[\\frac{d}{dx}\\left(\\frac{y'}{\\sqrt{1+(y')^2}}\\right)=0.\\]\n\nThus \\(y'\\) is constant, giving the straight segment between fixed endpoints. This illustrates how optimization over entire functions becomes a differential equation. (math.mit.edu)\n\nOn curved spaces, analogous variational formulations lead to geodesic equations. For example, a kinetic-type Lagrangian\n\n\\[L=\\frac12g_{ij}(q)\\dot q^i\\dot q^j\\]\n\nbuilt from a metric tensor yields the equations for affinely parametrized geodesics. (damtp.cam.ac.uk)"
    },
    {
      "heading": "Fields and several independent variables",
      "text": "For fields \\(\\phi^A(x)\\) on a region \\(\\Omega\\), consider\n\n\\[S[\\phi]=\\int_\\Omega \\mathcal L(x,\\phi^A,\\partial_\\mu\\phi^A)\\,d^dx.\\]\n\nWith suitable boundary conditions, stationarity gives\n\n\\[\\boxed{ \\frac{\\partial\\mathcal L}{\\partial\\phi^A} -\\partial_\\mu\\left( \\frac{\\partial\\mathcal L}{\\partial(\\partial_\\mu\\phi^A)} \\right)=0. }\\]\n\nRepeated \\(\\mu\\) indices are summed. Here \\(\\mathcal L\\) is the Lagrangian density. These are generally partial differential equations, and provide the variational framework for classical field theories underlying quantum field theory. (damtp.cam.ac.uk)"
    },
    {
      "heading": "Boundary conditions and scope",
      "text": "The interior equations must be accompanied by appropriate boundary conditions. If an endpoint’s independent-variable position is fixed but its function value is free, the boundary term requires\n\n\\[\\frac{\\partial F}{\\partial y'}=0\\]\n\nthere, provided the functional has no additional endpoint contribution. Such requirements are called natural boundary conditions. Moving endpoints produce further conditions. (web.mit.edu)\n\nFor an integrand depending on derivatives through order \\(r\\), the higher-order equation is\n\n\\[\\sum_{k=0}^{r}(-1)^k \\frac{d^k}{dx^k} \\left(\\frac{\\partial F}{\\partial y^{(k)}}\\right)=0, \\qquad y^{(0)}=y.\\]\n\nIts derivation requires repeated integration by parts and appropriate endpoint restrictions. (web.mit.edu)\n\nThe equations identify stationary candidates rather than prove optimality or existence. Additional analysis is needed to distinguish minima, maxima, and saddle points. When solutions lack the smoothness required for the classical differential equation, stationarity can instead be expressed in a weak integral formulation, connecting variational methods with weak solutions. (math.mit.edu)"
    }
  ],
  "links": [
    "differential-equation",
    "calculus-of-variations",
    "classical-mechanics",
    "action-physics",
    "partial-derivative",
    "integral",
    "lagrangian",
    "mass",
    "kinetic-energy",
    "potential-energy",
    "newtons-laws-of-motion",
    "energy",
    "noethers-theorem",
    "geodesic",
    "metric-tensor",
    "partial-differential-equation",
    "quantum-field-theory",
    "weak-solution"
  ],
  "sources": [
    {
      "title": "Calculus of Variations — Gilbert Strang",
      "url": "https://math.mit.edu/classes/18.086/2006/am72.pdf"
    },
    {
      "title": "A Mathematical Primer — Rohan Abeyaratne",
      "url": "https://web.mit.edu/abeyaratne/Volumes/RCA_Vol_I_Math.pdf"
    }
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}