{
  "aliases": [
    "lu-factorization"
  ],
  "backlinks": null,
  "body": "\n## Summary\n\nAn *LU decomposition* of a square matrix $A$ is a factorization $A = LU$.\nHere $L$ is a [[lower triangular matrix|00J3KZP8Y0]] and $U$ is an [[upper triangular matrix|0N4XY7Z3NN]].\n[[Gaussian elimination|0JVJ2WCXZH]] without row exchanges produces such a factorization: $U$ is the row echelon form, and $L$ stores the multipliers of the row operations.\nWith row exchanges, one gets $PA = LU$ for a [[permutation matrix|08SP3DF8NB]] $P$, and each square matrix over a field has such a factorization.\n\n## Remarks\n\nAn invertible matrix has an LU decomposition with $L$ unit lower triangular if and only if all its leading principal minors are nonzero.\nThis decomposition is then unique.\nThe matrix $\\begin{pmatrix} 0 \u0026 1 \\\\ 1 \u0026 0 \\end{pmatrix}$ has no LU decomposition, but it has one after a row exchange.\nTo solve $Ax = b$, solve $Ly = b$ by forward substitution and $Ux = y$ by [[back substitution|0ATFVE08MW]].\nThe decomposition also gives $\\det A = \\det L \\det U$.\n\n## Explanations\n\n### L1 human\n\nAn LU decomposition writes a matrix as a product of two triangular matrices.\nTriangular systems are easy to solve, so we solve $Ax = b$ in two easy steps.\nIt is useful when we solve many systems with the same $A$ and different right sides.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "aliases": [
      "lu-factorization"
    ],
    "kind": "concept",
    "msc": [
      "15A23",
      "65F05"
    ],
    "name": "LU decomposition",
    "same_as": {
      "wikidata": "Q833089",
      "wikipedia": "LU decomposition"
    },
    "sources": [
      {
        "locator": "lead section",
        "url": "https://en.wikipedia.org/wiki/LU_decomposition"
      }
    ],
    "tag": "0RKG5YW66Y"
  },
  "kind": "concept",
  "link": "https://math2.tamnd.com/node/0RKG5YW66Y/",
  "links": null,
  "markdown": "https://math2.tamnd.com/node/0RKG5YW66Y.md",
  "msc": [
    "15A23",
    "65F05"
  ],
  "name": "LU decomposition",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0RK/0RKG5YW66Y.md",
  "status": null,
  "tag": "0RKG5YW66Y",
  "uri": "m2://0RKG5YW66Y",
  "url": "https://math2.tamnd.com/wiki/lu-decomposition/",
  "writing": {
    "tag": "0RKG5YW66Y",
    "kind": "concept",
    "level": "W1",
    "next": [
      {
        "what": "edge defines in",
        "note": "at least one definition",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge instance_of in",
        "note": "at least two examples",
        "have": 0,
        "want": 2
      },
      {
        "what": "edge not_instance_of in",
        "note": "at least one non-example",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge specializes both",
        "note": "the more general notions and the special cases",
        "have": 0,
        "want": 1
      }
    ]
  }
}
