{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "0KQZYGEJTF"
    }
  ],
  "body": "\n## Statement\n\nLet $A$ be a real symmetric $n \\times n$ matrix.\nLet $P$ and $P'$ be invertible real $n \\times n$ matrices such that $D = P^T A P$ and $D' = P'^T A P'$ are diagonal.\nThen $D$ and $D'$ have the same number of positive diagonal entries and the same number of negative diagonal entries.\nThey also have the same number of zero diagonal entries.\n\n## Remarks\n\nSo these three numbers are invariants of the quadratic form $x \\mapsto x^T A x$; they give its [[signature|07EZA80NEH]].\nThey are also the numbers of positive, negative and zero eigenvalues of $A$, counted with multiplicity.\nEquivalently, two real symmetric matrices are congruent if and only if they have the same numbers of positive, negative and zero eigenvalues.\n\n## History\n\nJames Joseph Sylvester published the theorem in 1852.\n\n## Explanations\n\n### L1 human\n\nA real quadratic form can be written as a sum of squares in many ways.\nThe numbers of plus signs and minus signs are always the same.\nFor example, $x^2 + 2xy$ always has one plus sign and one minus sign.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "kind": "statement",
    "msc": [
      "15A63",
      "11E04"
    ],
    "name": "Sylvester's law of inertia",
    "role": "theorem",
    "same_as": {
      "wikidata": "Q1752621",
      "wikipedia": "Sylvester's law of inertia"
    },
    "sources": [
      {
        "locator": "Statement",
        "url": "https://en.wikipedia.org/wiki/Sylvester's_law_of_inertia"
      }
    ],
    "tag": "0WFED3K3DQ",
    "uses": [
      "0N28QN4CYA",
      "0SPYAGE7T0"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0WFED3K3DQ/",
  "links": [
    {
      "field": "uses",
      "target": "0N28QN4CYA"
    },
    {
      "field": "uses",
      "target": "0SPYAGE7T0"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0WFED3K3DQ.md",
  "msc": [
    "15A63",
    "11E04"
  ],
  "name": "Sylvester's law of inertia",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0WF/0WFED3K3DQ.md",
  "status": null,
  "tag": "0WFED3K3DQ",
  "uri": "m2://0WFED3K3DQ",
  "url": "https://math2.tamnd.com/wiki/sylvesters-law-of-inertia/",
  "writing": {
    "tag": "0WFED3K3DQ",
    "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
      }
    ]
  }
}
