{
  "aliases": [
    "multivariable-chain-rule"
  ],
  "backlinks": [
    {
      "field": "uses",
      "target": "03GGQEAG9S"
    },
    {
      "field": "uses",
      "target": "0A8TJ0VHC7"
    },
    {
      "field": "uses",
      "target": "0AR06W1E1B"
    },
    {
      "field": "uses",
      "target": "0G65751VSW"
    },
    {
      "field": "uses",
      "target": "0QKA345AW1"
    }
  ],
  "body": "\n## Statement\n\nLet $U \\subseteq \\mathbb{R}^n$ and $W \\subseteq \\mathbb{R}^m$ be open sets, let $g \\colon U \\to \\mathbb{R}^m$ with $g(U) \\subseteq W$, let $f \\colon W \\to \\mathbb{R}^k$, and let $a \\in U$.\nSuppose that $g$ is [[differentiable|0135XZZQ8M]] at $a$ and $f$ is differentiable at $g(a)$.\nThen the [[composition|0THBK9V825]] $f \\circ g \\colon U \\to \\mathbb{R}^k$ is differentiable at $a$, and\n$$D(f \\circ g)(a) = Df(g(a)) \\circ Dg(a).$$\n\n## Remarks\n\nIn matrix form, the [[Jacobian matrix|047NDTEPCV]] of $f \\circ g$ at $a$ is the product $J_f(g(a)) \\, J_g(a)$. In terms of partial derivatives, $\\dfrac{\\partial (f \\circ g)_i}{\\partial x_j}(a) = \\sum_{l=1}^m \\dfrac{\\partial f_i}{\\partial y_l}(g(a)) \\, \\dfrac{\\partial g_l}{\\partial x_j}(a)$.\nThe same rule, with the same proof, holds for [[Fréchet derivatives|08EVNYZF42]] of maps between normed spaces.\nA special case is the [[chain rule for a composition with a curve|0A8TJ0VHC7]].\n\n## Explanations\n\n### L1 human\n\nThe derivative of a composition is the composition of the derivatives: first the linear approximation of $g$, then the linear approximation of $f$.\nIn one variable this is $(f \\circ g)'(a) = f'(g(a)) \\, g'(a)$, a product of two numbers. In several variables the numbers become matrices.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "aliases": [
      "multivariable-chain-rule"
    ],
    "kind": "statement",
    "msc": [
      "26B05"
    ],
    "name": "Chain rule in several variables",
    "role": "theorem",
    "sources": [
      {
        "locator": "General rule: Vector-valued multivariate functions",
        "url": "https://en.wikipedia.org/wiki/Chain_rule"
      },
      {
        "locator": "Properties",
        "url": "https://en.wikipedia.org/wiki/Fr%C3%A9chet_derivative"
      }
    ],
    "tag": "0EAAS2EHDR",
    "uses": [
      "0135XZZQ8M",
      "08EVNYZF42",
      "0THBK9V825"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0EAAS2EHDR/",
  "links": [
    {
      "field": "uses",
      "target": "0135XZZQ8M"
    },
    {
      "field": "uses",
      "target": "08EVNYZF42"
    },
    {
      "field": "uses",
      "target": "0THBK9V825"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0EAAS2EHDR.md",
  "msc": [
    "26B05"
  ],
  "name": "Chain rule in several variables",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0EA/0EAAS2EHDR.md",
  "status": null,
  "tag": "0EAAS2EHDR",
  "uri": "m2://0EAAS2EHDR",
  "url": "https://math2.tamnd.com/wiki/chain-rule-in-several-variables/",
  "writing": {
    "tag": "0EAAS2EHDR",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
