{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Summary\n\nBack substitution is a method to solve a system $Ux = b$, where $U$ is an $n \\times n$ [[upper triangular matrix|0N4XY7Z3NN]] with nonzero diagonal entries.\nThe last equation gives $x_n = b_n / u_{nn}$.\nThen, for $i = n-1, \\dots, 1$ in this order, equation $i$ gives\n$$x_i = \\frac{1}{u_{ii}} \\left( b_i - \\sum_{j = i+1}^{n} u_{ij} x_j \\right),$$\nwhich uses only the unknowns that are already known.\n\n## Remarks\n\nBack substitution uses on the order of $n^2$ arithmetic operations.\nForward substitution solves $Lx = b$ for a [[lower triangular matrix|00J3KZP8Y0]] $L$ in the same way, from the first equation down.\nAfter [[Gaussian elimination|0JVJ2WCXZH]], back substitution completes the solution of the system.\nWith an [[LU decomposition|0RKG5YW66Y]] $A = LU$, the system $Ax = b$ is solved by forward substitution for $Ly = b$ and then back substitution for $Ux = y$.\n\n## Explanations\n\n### L1 human\n\nIn a triangular system, the last equation has only one unknown, so we solve it at once.\nWe put that value into the equation above it, which now has only one new unknown.\nWe continue upwards until we know all the unknowns.\n",
  "commit": "545acf83a9b75c8ddc375ef8b23d2ae101a4d7e4",
  "front": {
    "kind": "concept",
    "msc": [
      "15A06",
      "65F05"
    ],
    "name": "Back substitution",
    "sources": [
      {
        "locator": "Forward and back substitution",
        "url": "https://en.wikipedia.org/wiki/Triangular_matrix"
      }
    ],
    "tag": "0ATFVE08MW"
  },
  "kind": "concept",
  "link": "https://math2.tamnd.com/node/0ATFVE08MW/",
  "links": null,
  "markdown": "https://math2.tamnd.com/node/0ATFVE08MW.md",
  "msc": [
    "15A06",
    "65F05"
  ],
  "name": "Back substitution",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0AT/0ATFVE08MW.md",
  "status": null,
  "tag": "0ATFVE08MW",
  "uri": "m2://0ATFVE08MW",
  "url": "https://math2.tamnd.com/wiki/back-substitution/",
  "writing": {
    "tag": "0ATFVE08MW",
    "kind": "concept",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
