{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\nWe differentiate the constant function $f \\circ \\gamma$ in two ways.\n\n1. Let $U$, $f$, $c$, $I$, $\\gamma$ and $t_0$ be as in the statement. Put $\\varphi = f \\circ \\gamma \\colon I \\to \\mathbb{R}$.\n2. Since $\\gamma$ lies in the [[level set|0Y5Q8Q9WJ7]] $L_c(f)$, $\\varphi(t) = c$ for each $t \\in I$.\n3. So for $s \\ne 0$ with $t_0 + s \\in I$, the difference quotient $(\\varphi(t_0 + s) - \\varphi(t_0)) / s$ is $0$. Hence $\\varphi'(t_0) = 0$.\n4. By the [[chain rule for a composition with a curve|0A8TJ0VHC7]] with $m = 1$, $\\varphi'(t_0) = Df(\\gamma(t_0))\\big(\\gamma'(t_0)\\big)$.\n5. Since $f$ is differentiable at $\\gamma(t_0)$, the [[gradient|0NS2QYVC4Y]] $\\nabla f(\\gamma(t_0))$ is defined, and $Df(\\gamma(t_0))(v) = \\nabla f(\\gamma(t_0)) \\cdot v$ for each $v \\in \\mathbb{R}^n$.\n6. By steps 3, 4 and 5, $\\nabla f(\\gamma(t_0)) \\cdot \\gamma'(t_0) = \\varphi'(t_0) = 0$.\n\n## Idea\n\nAlong a curve inside a level set, the value of $f$ does not change, so its rate of change is $0$. The chain rule computes that rate as the dot product of the gradient with the velocity of the curve. So this dot product is $0$.\n",
  "commit": "4a3290d299c8b2cd6493fce2296920ba7f82d942",
  "front": {
    "kind": "proof",
    "msc": [
      "26B12"
    ],
    "name": "Proof that the gradient is orthogonal to level sets",
    "proves": "0VXYV3NQQ1",
    "sources": [
      {
        "locator": "Level sets",
        "url": "https://en.wikipedia.org/wiki/Gradient"
      }
    ],
    "tag": "8HABMM97AP",
    "uses": [
      "0A8TJ0VHC7",
      "0NS2QYVC4Y",
      "0Y5Q8Q9WJ7"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/8HABMM97AP/",
  "links": [
    {
      "field": "proves",
      "target": "0VXYV3NQQ1"
    },
    {
      "field": "uses",
      "target": "0A8TJ0VHC7"
    },
    {
      "field": "uses",
      "target": "0NS2QYVC4Y"
    },
    {
      "field": "uses",
      "target": "0Y5Q8Q9WJ7"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/8HABMM97AP.md",
  "msc": [
    "26B12"
  ],
  "name": "Proof that the gradient is orthogonal to level sets",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/8HA/8HABMM97AP.md",
  "status": null,
  "tag": "8HABMM97AP",
  "uri": "m2://8HABMM97AP",
  "url": "https://math2.tamnd.com/wiki/proof-that-the-gradient-is-orthogonal-to-level-sets/",
  "writing": {
    "tag": "8HABMM97AP",
    "kind": "proof",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
