{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $\\Omega \\subseteq \\R^n$ be an open set and let $L \\colon \\Omega \\times \\R \\times \\R^n \\to \\R$, written $L(x, z, p)$, be a function of class $C^2$.\nWrite $L_z = \\partial L / \\partial z$ and $L_{p_i} = \\partial L / \\partial p_i$ for its [[partial derivatives|05AXG3QRKR]].\nThe *Euler–Lagrange equation* of the functional $J(u) = \\int_\\Omega L(x, u, \\nabla u) \\, dx$ of the [[calculus of variations|PQ25NHV0KS]] is the second-order equation\n$$-\\sum_{i=1}^n \\frac{\\partial}{\\partial x_i} \\Big( L_{p_i}\\big(x, u(x), \\nabla u(x)\\big) \\Big) + L_z\\big(x, u(x), \\nabla u(x)\\big) = 0 \\quad \\text{in } \\Omega$$\nfor an unknown $u \\in C^2(\\Omega)$.\nIn short form it reads $-\\operatorname{div} L_p(x, u, \\nabla u) + L_z(x, u, \\nabla u) = 0$, with the [[divergence|02NSMQVQWK]] taken in $x$.\n\n## Remarks\n\nIf $\\Omega$ is bounded and $u \\in C^2(\\overline{\\Omega})$ minimises $J$ among $C^2(\\overline{\\Omega})$ functions with the same boundary values, then $u$ solves the Euler–Lagrange equation.\nIndeed $\\frac{d}{dt} J(u + t\\varphi)\\big|_{t=0} = 0$ for every $\\varphi \\in C^\\infty_c(\\Omega)$; integrating by parts gives $\\int_\\Omega (-\\operatorname{div} L_p + L_z) \\varphi \\, dx = 0$ for all such $\\varphi$, so the integrand vanishes.\nThe *weak* form $\\int_\\Omega \\big( L_p(x, u, \\nabla u) \\cdot \\nabla \\varphi + L_z(x, u, \\nabla u) \\varphi \\big) \\, dx = 0$ for all $\\varphi \\in C^\\infty_c(\\Omega)$ makes sense for less regular $u$.\n\nExample: for $L(x, z, p) = \\frac{1}{2}\\abs{p}^2 - f(x) z$ one has $L_p = p$ and $L_z = -f$, so the Euler–Lagrange equation is Poisson's equation $-\\Delta u = f$.\n\nExample: for $n = 1$ and $L(x, z, p) = \\sqrt{1 + p^2}$, one gets $\\frac{d}{dx}\\big(u' / \\sqrt{1 + u'^2}\\big) = 0$, so $u'$ is constant and the graph is a straight line.\n\nNon-example: a solution of the Euler–Lagrange equation need not be a minimiser.\nFor $n = 1$, $\\Omega = (0, 2\\pi)$ and $L = \\frac{1}{2}(p^2 - z^2)$, the equation is $u'' + u = 0$, solved by $u = 0$; but $J(t \\sin(x/2)) = \\frac{t^2}{2} \\int_0^{2\\pi} \\big(\\frac{1}{4}\\cos^2(x/2) - \\sin^2(x/2)\\big) \\, dx = -\\frac{3\\pi t^2}{8} \u003c 0 = J(0)$ for $t \\ne 0$, and $t\\sin(x/2)$ has the same boundary values $0$.\n\n## Explanations\n\n### L1 human\n\nThe Euler–Lagrange equation is what one gets by setting the first variation of an integral functional to zero.\nMinimisers that are smooth enough must solve it, but solutions need not be minimisers.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "PS0VV149ET",
    "kind": "definition",
    "msc": [
      "49K10",
      "35A15",
      "49K05"
    ],
    "name": "Euler–Lagrange equation",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Euler%E2%80%93Lagrange_equation"
      }
    ],
    "tag": "ZY5E6ZQZVV",
    "uses": [
      "PQ25NHV0KS",
      "05AXG3QRKR",
      "02NSMQVQWK"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/ZY5E6ZQZVV/",
  "links": [
    {
      "field": "defines",
      "target": "PS0VV149ET"
    },
    {
      "field": "uses",
      "target": "PQ25NHV0KS"
    },
    {
      "field": "uses",
      "target": "05AXG3QRKR"
    },
    {
      "field": "uses",
      "target": "02NSMQVQWK"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/ZY5E6ZQZVV.md",
  "msc": [
    "49K10",
    "35A15",
    "49K05"
  ],
  "name": "Euler–Lagrange equation",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/ZY5/ZY5E6ZQZVV.md",
  "status": null,
  "tag": "ZY5E6ZQZVV",
  "uri": "m2://ZY5E6ZQZVV",
  "url": "https://tamnd.github.io/math2/wiki/euler-lagrange-equation-definition/",
  "writing": {
    "tag": "ZY5E6ZQZVV",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
