{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $F$ be a [[field|04C5ZBG1WT]] and let $n \\ge 1$.\nLet $A$ and $B$ be $n \\times n$ matrices over $F$.\nThen $A$ and $B$ are *congruent* if there is an [[invertible|0EB9N0S33C]] $n \\times n$ matrix $P$ over $F$ with\n$$B = P^{T} A P.$$\nHere $P^{T}$ is the [[transpose|09DXWYRD43]] of $P$.\n\n## Remarks\n\nExample: over $\\R$, let $A = \\begin{pmatrix} 0 \u0026 1 \\\\ 1 \u0026 0 \\end{pmatrix}$ and $P = \\begin{pmatrix} 1 \u0026 1 \\\\ 1 \u0026 -1 \\end{pmatrix}$.\nThen $P$ is invertible, since $\\det P = -2$, and $P^{T} A P = \\begin{pmatrix} 2 \u0026 0 \\\\ 0 \u0026 -2 \\end{pmatrix}$, so these two matrices are congruent.\nNon-example: over $\\R$, the identity $I_2$ and $-I_2$ are not congruent, because $x^{T} P^{T} I_2 P x = \\norm{Px}^2 \\ge 0$ for all $x \\in \\R^2$, while $x^{T} (-I_2) x \u003c 0$ for $x \\ne 0$.\nCongruence is an equivalence relation on $n \\times n$ matrices.\nLet $A$ be the matrix of a [[bilinear form|0SQZMXB6GP]] in one basis, and let $P$ be the [[change of basis matrix|0MKRHZB3WS]] to a second basis.\nThen $P^{T} A P$ is the matrix of the same form in the second basis; see [[change of basis for a bilinear form|0SPYAGE7T0]].\nCongruence keeps symmetry and the rank, and it multiplies the determinant by the nonzero square $(\\det P)^2$.\nOver $\\C$, the complex analogue often uses the [[conjugate transpose|0DXKE10PHF]] $P^{*}$ in place of $P^{T}$; this is called $*$-congruence.\n",
  "commit": "547b6eddb8f2feb8d579f2d633d22a27b7e132fc",
  "front": {
    "defines": "WJWNYSQKK8",
    "kind": "definition",
    "msc": [
      "15A63",
      "15A21"
    ],
    "name": "Matrix congruence",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Matrix_congruence"
      }
    ],
    "tag": "NZJDNC6EP6",
    "uses": [
      "0CP7YY6NAG",
      "0TWTS88TWN",
      "0W809K6AW0",
      "0QA8CHH8MG"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/NZJDNC6EP6/",
  "links": [
    {
      "field": "defines",
      "target": "WJWNYSQKK8"
    },
    {
      "field": "uses",
      "target": "0CP7YY6NAG"
    },
    {
      "field": "uses",
      "target": "0TWTS88TWN"
    },
    {
      "field": "uses",
      "target": "0W809K6AW0"
    },
    {
      "field": "uses",
      "target": "0QA8CHH8MG"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/NZJDNC6EP6.md",
  "msc": [
    "15A63",
    "15A21"
  ],
  "name": "Matrix congruence",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/NZJ/NZJDNC6EP6.md",
  "status": null,
  "tag": "NZJDNC6EP6",
  "uri": "m2://NZJDNC6EP6",
  "url": "https://math2.tamnd.com/wiki/matrix-congruence-definition/",
  "writing": {
    "tag": "NZJDNC6EP6",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
