{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "042JWAR3Q0"
    }
  ],
  "body": "\n## Definition\n\nLet $F$ be a field, let $n \\ge 1$, and let $p(t) = t^n + c_{n-1} t^{n-1} + \\cdots + c_1 t + c_0$ be a monic polynomial over $F$.\nThe *companion matrix* of $p$ is the $n \\times n$ matrix\n$$C(p) = \\begin{pmatrix} 0 \u0026 0 \u0026 \\cdots \u0026 0 \u0026 -c_0 \\\\ 1 \u0026 0 \u0026 \\cdots \u0026 0 \u0026 -c_1 \\\\ 0 \u0026 1 \u0026 \\cdots \u0026 0 \u0026 -c_2 \\\\ \\vdots \u0026 \u0026 \\ddots \u0026 \u0026 \\vdots \\\\ 0 \u0026 0 \u0026 \\cdots \u0026 1 \u0026 -c_{n-1} \\end{pmatrix}.$$\n\n## Remarks\n\nThe [[characteristic polynomial|0VSSPAFM2C]] and the [[minimal polynomial|03NDVCSHSB]] of $C(p)$ both equal $p$.\nIn the basis $e_1, \\dots, e_n$, the map of $C(p)$ sends $e_i$ to $e_{i+1}$ for $i \u003c n$.\nSome authors use the transpose of this matrix as the companion matrix.\nCompanion matrices are the blocks of the [[rational canonical form|042JWAR3Q0]].\n\n## Explanations\n\n### L1 human\n\nFor each monic polynomial, the companion matrix is a matrix with exactly that characteristic polynomial.\nIt shifts each basis vector to the next one, and the polynomial fixes the image of the last one.\nSo questions about roots of polynomials become questions about eigenvalues of matrices.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "defines": "0ZCWPNZTQ3",
    "kind": "definition",
    "msc": [
      "15A21"
    ],
    "name": "Companion matrix",
    "sources": [
      {
        "locator": "lead section",
        "url": "https://en.wikipedia.org/wiki/Companion_matrix"
      }
    ],
    "tag": "0VH1TC1PWF",
    "uses": [
      "0CP7YY6NAG",
      "039HF58KQ5"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0VH1TC1PWF/",
  "links": [
    {
      "field": "defines",
      "target": "0ZCWPNZTQ3"
    },
    {
      "field": "uses",
      "target": "0CP7YY6NAG"
    },
    {
      "field": "uses",
      "target": "039HF58KQ5"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0VH1TC1PWF.md",
  "msc": [
    "15A21"
  ],
  "name": "Companion matrix",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0VH/0VH1TC1PWF.md",
  "status": null,
  "tag": "0VH1TC1PWF",
  "uri": "m2://0VH1TC1PWF",
  "url": "https://math2.tamnd.com/wiki/companion-matrix-definition/",
  "writing": {
    "tag": "0VH1TC1PWF",
    "kind": "definition",
    "level": "W1",
    "next": [
      {
        "what": "edge instance_of in",
        "note": "one example",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge not_instance_of in",
        "note": "one non-example that fails one clause",
        "have": 0,
        "want": 1
      }
    ]
  }
}
