{
  "aliases": [
    "second-partial-derivative-test"
  ],
  "backlinks": null,
  "body": "\n## Statement\n\nLet $U \\subseteq \\mathbb{R}^n$ be open, let $f \\colon U \\to \\mathbb{R}$ be of [[class C^2|0TCBZMEYGN]] on $U$, and let $a \\in U$ with $\\nabla f(a) = 0$.\nLet $H = H_f(a)$ be the [[Hessian matrix|0SCSQWXRA4]] of $f$ at $a$.\n\n1. If $H$ is [[positive definite|01RBSSGMY5]], then $f$ has a strict [[local minimum|04CPG9K1C4]] at $a$.\n2. If $H$ is negative definite, then $f$ has a strict local maximum at $a$.\n3. If $H$ has a positive and a negative eigenvalue, then $a$ is a [[saddle point|00N3T18QNA]] of $f$.\n\nIn the other cases the test gives no conclusion.\n\n## Remarks\n\nFor $n = 2$, let $D = f_{xx}(a) f_{yy}(a) - f_{xy}(a)^2$ be the determinant of $H$. If $D \u003e 0$ and $f_{xx}(a) \u003e 0$, then $a$ is a local minimum. If $D \u003e 0$ and $f_{xx}(a) \u003c 0$, then $a$ is a local maximum. If $D \u003c 0$, then $a$ is a saddle point.\nThe proof uses the [[second-order Taylor expansion|0P30YYZN85]]. If $H$ is positive definite, then $h^{\\mathsf{T}} H h \\ge m \\|h\\|^2$ for some $m \u003e 0$, and this term dominates the remainder.\nThe functions $x^4 + y^4$, $-(x^4 + y^4)$ and $x^4 - y^4$ all have zero Hessian at the origin. The origin is a minimum, a maximum and a saddle point, respectively, so the test cannot decide when $H$ is singular and semidefinite.\nBy Sylvester's criterion, $H$ is positive definite if and only if all its leading principal minors are positive.\n\n## Explanations\n\n### L1 human\n\nAt a critical point the tangent plane is flat, so the second derivatives decide the shape of the graph.\nIf the graph bends upward in every direction, the point is a minimum. If it bends down in every direction, the point is a maximum.\nIf it bends up in some directions and down in others, the point is a saddle.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "aliases": [
      "second-partial-derivative-test"
    ],
    "kind": "statement",
    "msc": [
      "49K10"
    ],
    "name": "Second derivative test in several variables",
    "role": "theorem",
    "same_as": {
      "wikidata": "Q7443745",
      "wikipedia": "Second partial derivative test"
    },
    "sources": [
      {
        "locator": "Functions of many variables",
        "url": "https://en.wikipedia.org/wiki/Second_partial_derivative_test"
      },
      {
        "locator": "Functions of two variables",
        "url": "https://en.wikipedia.org/wiki/Second_partial_derivative_test"
      }
    ],
    "tag": "0GYDV9FE98",
    "uses": [
      "0SCSQWXRA4",
      "01RBSSGMY5",
      "00N3T18QNA",
      "04CPG9K1C4",
      "0P30YYZN85",
      "0TCBZMEYGN"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0GYDV9FE98/",
  "links": [
    {
      "field": "uses",
      "target": "0SCSQWXRA4"
    },
    {
      "field": "uses",
      "target": "01RBSSGMY5"
    },
    {
      "field": "uses",
      "target": "00N3T18QNA"
    },
    {
      "field": "uses",
      "target": "04CPG9K1C4"
    },
    {
      "field": "uses",
      "target": "0P30YYZN85"
    },
    {
      "field": "uses",
      "target": "0TCBZMEYGN"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0GYDV9FE98.md",
  "msc": [
    "49K10"
  ],
  "name": "Second derivative test in several variables",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0GY/0GYDV9FE98.md",
  "status": null,
  "tag": "0GYDV9FE98",
  "uri": "m2://0GYDV9FE98",
  "url": "https://math2.tamnd.com/wiki/second-derivative-test-in-several-variables/",
  "writing": {
    "tag": "0GYDV9FE98",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
