{
  "aliases": [
    "lagrange-multiplier-theorem",
    "method-of-lagrange-multipliers"
  ],
  "backlinks": [
    {
      "field": "uses",
      "target": "04A2XEX4D4"
    }
  ],
  "body": "\n## Statement\n\nLet $U \\subseteq \\mathbb{R}^n$ be open, let $m \u003c n$, and let $f \\colon U \\to \\mathbb{R}$ and $g = (g_1, \\dots, g_m) \\colon U \\to \\mathbb{R}^m$ be of [[class C^1|0TCBZMEYGN]].\nLet $M = \\{x \\in U : g(x) = 0\\}$, and let $a \\in M$ be a [[local extremum|04CPG9K1C4]] of the restriction of $f$ to $M$.\nSuppose that the [[gradients|0NS2QYVC4Y]] $\\nabla g_1(a), \\dots, \\nabla g_m(a)$ are linearly independent.\nThen there is a unique $\\lambda = (\\lambda_1, \\dots, \\lambda_m) \\in \\mathbb{R}^m$ such that\n$$\\nabla f(a) = \\lambda_1 \\nabla g_1(a) + \\dots + \\lambda_m \\nabla g_m(a).$$\n\n## Remarks\n\nThe numbers $\\lambda_i$ are the Lagrange multipliers. Equivalently, $(a, \\lambda)$ is a critical point of the Lagrangian $L(x, \\lambda) = f(x) - \\lambda \\cdot g(x)$.\nThe hypothesis on the gradients is the constraint qualification. It says that the [[Jacobian matrix|0YF0VXKXGB]] $Dg(a)$ has rank $m$.\nThe proof uses the [[implicit function theorem|0BXBADR94C]]. Near $a$, the set $M$ is the graph of a $C^1$ function of $n - m$ variables. The gradient of $f$ is orthogonal to the tangent space of $M$ at $a$.\nThe condition is necessary, not sufficient. Each candidate point needs a further check, for example a comparison of values on a compact set $M$.\n\n## Explanations\n\n### L1 human\n\nAt a constrained extremum, a small move along the constraint set does not change $f$ to first order.\nSo $\\nabla f(a)$ has no component along the constraint set, and it is a combination of the normals $\\nabla g_i(a)$.\nThis turns a constrained problem into a system of $n + m$ equations in $n + m$ unknowns.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "aliases": [
      "lagrange-multiplier-theorem",
      "method-of-lagrange-multipliers"
    ],
    "kind": "statement",
    "msc": [
      "90C46"
    ],
    "name": "Lagrange multipliers",
    "role": "theorem",
    "same_as": {
      "wikidata": "Q598870",
      "wikipedia": "Lagrange multiplier"
    },
    "sources": [
      {
        "locator": "Statement",
        "url": "https://en.wikipedia.org/wiki/Lagrange_multiplier"
      },
      {
        "locator": "Multiple constraints",
        "url": "https://en.wikipedia.org/wiki/Lagrange_multiplier"
      }
    ],
    "tag": "0VKKP8X6Q6",
    "uses": [
      "0EPW94MJ1P",
      "04CPG9K1C4",
      "0NS2QYVC4Y",
      "0YF0VXKXGB",
      "0BXBADR94C",
      "0TCBZMEYGN"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0VKKP8X6Q6/",
  "links": [
    {
      "field": "uses",
      "target": "0EPW94MJ1P"
    },
    {
      "field": "uses",
      "target": "04CPG9K1C4"
    },
    {
      "field": "uses",
      "target": "0NS2QYVC4Y"
    },
    {
      "field": "uses",
      "target": "0YF0VXKXGB"
    },
    {
      "field": "uses",
      "target": "0BXBADR94C"
    },
    {
      "field": "uses",
      "target": "0TCBZMEYGN"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0VKKP8X6Q6.md",
  "msc": [
    "90C46"
  ],
  "name": "Lagrange multipliers",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0VK/0VKKP8X6Q6.md",
  "status": null,
  "tag": "0VKKP8X6Q6",
  "uri": "m2://0VKKP8X6Q6",
  "url": "https://math2.tamnd.com/wiki/lagrange-multipliers/",
  "writing": {
    "tag": "0VKKP8X6Q6",
    "kind": "statement",
    "level": "W1",
    "next": [
      {
        "what": "edge about out",
        "note": "the concepts that the statement is about",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge proves in",
        "note": "at least one proof node",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge instance_of or illustrates in",
        "note": "one example that shows the statement at work",
        "have": 0,
        "want": 1
      },
      {
        "what": "explanation L2",
        "have": 0,
        "want": 1
      }
    ]
  }
}
