{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $R$ be a commutative ring.\nLet $A$ be an $m \\times n$ matrix and $B$ an $n \\times m$ matrix over $R$.\nThen $\\tr(AB) = \\tr(BA)$, where $\\tr$ is the [[trace|0XC1RDBY7A]].\n\n## Remarks\n\nBoth sides equal $\\sum_{i=1}^{m} \\sum_{j=1}^{n} a_{ij} b_{ji}$.\nThe matrices $AB$ and $BA$ can have different sizes, and the identity still holds.\nA consequence is $\\tr(P^{-1} A P) = \\tr A$, so similar matrices have the same trace.\nFor three matrices, only cyclic permutations are allowed in general: $\\tr(ABC) = \\tr(BCA)$, but $\\tr(ABC)$ can differ from $\\tr(BAC)$.\n\n## Explanations\n\n### L1 human\n\nAlthough $AB$ and $BA$ are usually different matrices, they have the same trace.\nEach diagonal sum adds the same products $a_{ij} b_{ji}$, only in another order.\nThis fact makes the trace a property of a linear map, not of the basis that we choose.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "kind": "statement",
    "msc": [
      "15A15"
    ],
    "name": "Trace of a product is symmetric",
    "role": "proposition",
    "sources": [
      {
        "locator": "Trace of a product",
        "url": "https://en.wikipedia.org/wiki/Trace_(linear_algebra)"
      }
    ],
    "tag": "0Y4NF1DRKD",
    "uses": [
      "07PTPSZPME",
      "076JGP6R3T"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0Y4NF1DRKD/",
  "links": [
    {
      "field": "uses",
      "target": "07PTPSZPME"
    },
    {
      "field": "uses",
      "target": "076JGP6R3T"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0Y4NF1DRKD.md",
  "msc": [
    "15A15"
  ],
  "name": "Trace of a product is symmetric",
  "prov": null,
  "role": "proposition",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0Y4/0Y4NF1DRKD.md",
  "status": null,
  "tag": "0Y4NF1DRKD",
  "uri": "m2://0Y4NF1DRKD",
  "url": "https://math2.tamnd.com/wiki/trace-of-a-product-is-symmetric/",
  "writing": {
    "tag": "0Y4NF1DRKD",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
