{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\nWe compute the coefficient of $t^{n-1}$ of $p_A$ in two ways.\n\n1. Let $A$ be an $n \\times n$ matrix over $F$. The [[characteristic polynomial|039HF58KQ5]] is defined for $n \\ge 1$, so $n \\ge 1$. Assume that its characteristic polynomial is $p_A(t) = (t - \\lambda_1) \\cdots (t - \\lambda_n)$ with $\\lambda_i \\in F$.\n2. Claim: for $k \\ge 1$, $\\prod_{i=1}^{k} (t - \\lambda_i) = t^k - (\\lambda_1 + \\cdots + \\lambda_k) t^{k-1} + r_k$, where $r_k$ is $0$ or has [[degree|0DPF6WRZW6]] at most $k - 2$.\n3. For $k = 1$, the claim holds with $r_1 = 0$.\n4. Suppose the claim holds for $k$, and let $s = \\lambda_1 + \\cdots + \\lambda_k$ and $c = \\lambda_{k+1}$. Multiply both sides by $t - c$.\n5. This gives $t^{k+1} - (s + c) t^k + r_{k+1}$, with $r_{k+1} = c s\\, t^{k-1} + t\\, r_k - c\\, r_k$.\n6. Each of the three terms of $r_{k+1}$ is $0$ or has degree at most $k - 1$. So the claim holds for $k + 1$, and by induction for all $k$.\n7. By step 2 with $k = n$, the coefficient of $t^{n-1}$ in $p_A$ is $-(\\lambda_1 + \\cdots + \\lambda_n)$.\n8. By the rule for the [[trace as a coefficient|0FRYPZ6D0X]], the same coefficient is $-\\tr A$.\n9. By steps 7 and 8, $\\tr A = \\lambda_1 + \\lambda_2 + \\cdots + \\lambda_n$.\n\n## Idea\n\nMultiplying out $(t - \\lambda_1) \\cdots (t - \\lambda_n)$ gives $t^n - (\\lambda_1 + \\cdots + \\lambda_n) t^{n-1} + \\cdots$. The same coefficient of $t^{n-1}$ is $-\\tr A$ when $\\det(t I - A)$ is expanded. Comparing the two gives the result.\n",
  "commit": "4a3290d299c8b2cd6493fce2296920ba7f82d942",
  "front": {
    "kind": "proof",
    "msc": [
      "15A15",
      "15A18"
    ],
    "name": "Proof that the trace is the sum of the eigenvalues by comparing coefficients",
    "proves": "0NMXDCNNKR",
    "sources": [
      {
        "locator": "Trace as the sum of eigenvalues",
        "url": "https://en.wikipedia.org/wiki/Trace_(linear_algebra)"
      }
    ],
    "tag": "92AK0G8APE",
    "uses": [
      "0FRYPZ6D0X",
      "039HF58KQ5",
      "0DPF6WRZW6"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/92AK0G8APE/",
  "links": [
    {
      "field": "proves",
      "target": "0NMXDCNNKR"
    },
    {
      "field": "uses",
      "target": "0FRYPZ6D0X"
    },
    {
      "field": "uses",
      "target": "039HF58KQ5"
    },
    {
      "field": "uses",
      "target": "0DPF6WRZW6"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/92AK0G8APE.md",
  "msc": [
    "15A15",
    "15A18"
  ],
  "name": "Proof that the trace is the sum of the eigenvalues by comparing coefficients",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/92A/92AK0G8APE.md",
  "status": null,
  "tag": "92AK0G8APE",
  "uri": "m2://92AK0G8APE",
  "url": "https://math2.tamnd.com/wiki/proof-that-the-trace-is-the-sum-of-the-eigenvalues-by-comparing-coefficients/",
  "writing": {
    "tag": "92AK0G8APE",
    "kind": "proof",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
