{
  "aliases": null,
  "backlinks": [
    {
      "field": "defines",
      "target": "7M6MQ2HB1X"
    },
    {
      "field": "uses",
      "target": "M92S0Y15N1"
    }
  ],
  "body": "\n## Summary\n\nThe method of lines solves a time-dependent partial differential equation in two stages.\nFirst only the space variables are discretised, by [[finite differences|X7HYEBA5SA]], finite volumes or finite elements.\nThis turns the equation into a large system of ordinary differential equations in time.\nThen this system is solved with a numerical method for [[initial value problems|0FXDW992DS]].\nThis separation lets one reuse mature ODE solvers, with their error control and their methods for stiff problems.\n\n## Explanations\n\n### L1 human\n\nPicture the space-time plane with a few vertical lines, one for each grid point in space.\nAlong each line the unknown is a function of time only, and the PDE couples each line to its neighbours.\nSo the PDE becomes a system of ODEs, one per line, which a standard ODE solver can handle.\nFor the [[heat equation|VP2HN86VAG]] $u_t = u_{xx}$, replacing $u_{xx}$ at $x_j$ by $(u_{j+1} - 2u_j + u_{j-1})/\\Delta x^2$ gives the system $u_j'(t) = (u_{j+1}(t) - 2u_j(t) + u_{j-1}(t))/\\Delta x^2$.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "kind": "concept",
    "msc": [
      "65M20"
    ],
    "name": "Method of lines",
    "same_as": {
      "wikidata": "Q1826712",
      "wikipedia": "Method of lines"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Method_of_lines"
      }
    ],
    "tag": "FNGWJR2FPK"
  },
  "kind": "concept",
  "link": "https://tamnd.github.io/math2/node/FNGWJR2FPK/",
  "links": null,
  "markdown": "https://tamnd.github.io/math2/node/FNGWJR2FPK.md",
  "msc": [
    "65M20"
  ],
  "name": "Method of lines",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/FNG/FNGWJR2FPK.md",
  "status": null,
  "tag": "FNGWJR2FPK",
  "uri": "m2://FNGWJR2FPK",
  "url": "https://tamnd.github.io/math2/wiki/method-of-lines/",
  "writing": {
    "tag": "FNGWJR2FPK",
    "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
      }
    ]
  }
}
