{
  "aliases": null,
  "backlinks": [
    {
      "field": "defines",
      "target": "6GVPDQMBN7"
    }
  ],
  "body": "\n## Summary\n\nThe QR algorithm computes all the [[eigenvalues|0BQAA2BK3Q]] of a square matrix.\nIt repeatedly factors the matrix as $QR$ by the [[QR decomposition|0ERWG4NXQ9]] and multiplies the factors in the reverse order, $RQ$.\nEach step is a [[similarity|0E89HQATM8]] by an [[orthogonal matrix|0W02QESPJQ]], so the eigenvalues do not change.\nThe matrices tend to an [[upper triangular|0N4XY7Z3NN]] form with the eigenvalues on the diagonal.\nWith shifts and a preliminary reduction to [[Hessenberg form|YCEEWJTX56]], it is the standard method for dense eigenvalue problems.\n\n## Explanations\n\n### L1 human\n\nThe algorithm takes a matrix and splits it into an orthogonal part $Q$, which preserves lengths and angles, and a triangular part $R$.\nThen it puts them back together the other way round.\nThe new matrix has the same eigenvalues as the old one.\nRepeating this pushes the entries below the diagonal towards zero, so the eigenvalues appear on the diagonal.\nFor $A = \\begin{pmatrix} 2 \u0026 1 \\\\ 1 \u0026 2 \\end{pmatrix}$, one step gives $\\begin{pmatrix} 2.8 \u0026 0.6 \\\\ 0.6 \u0026 1.2 \\end{pmatrix}$, already closer to the eigenvalues $3$ and $1$ on the diagonal.\n",
  "commit": "547b6eddb8f2feb8d579f2d633d22a27b7e132fc",
  "front": {
    "kind": "concept",
    "msc": [
      "65F15",
      "15A18",
      "15A23"
    ],
    "name": "QR algorithm",
    "same_as": {
      "wikidata": "Q453132",
      "wikipedia": "QR algorithm"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/QR_algorithm"
      }
    ],
    "tag": "B6F8YWHYZ5"
  },
  "kind": "concept",
  "link": "https://math2.tamnd.com/node/B6F8YWHYZ5/",
  "links": null,
  "markdown": "https://math2.tamnd.com/node/B6F8YWHYZ5.md",
  "msc": [
    "65F15",
    "15A18",
    "15A23"
  ],
  "name": "QR algorithm",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/B6F/B6F8YWHYZ5.md",
  "status": null,
  "tag": "B6F8YWHYZ5",
  "uri": "m2://B6F8YWHYZ5",
  "url": "https://math2.tamnd.com/wiki/qr-algorithm/",
  "writing": {
    "tag": "B6F8YWHYZ5",
    "kind": "concept",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      },
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
