{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Example\n\nLet $f(x) = \\dfrac{1}{1 + 25 x^2}$ on $[-1, 1]$.\nFor $n \\ge 1$ let $p_n$ be the [[interpolation polynomial|SS1YMS2NPC]] of degree at most $n$ of $f$ at the equally spaced nodes $x_i = -1 + 2i/n$, $i = 0, \\dots, n$.\nThen\n$$\\max_{x \\in [-1, 1]} \\abs{f(x) - p_n(x)} \\to \\infty \\quad \\text{as } n \\to \\infty.$$\nThe error stays small in the middle of the interval but grows without bound near the end points, where $p_n$ oscillates more and more.\n\nThe function $f$ is smooth, in fact analytic on all of $\\R$, so the failure is not due to a lack of differentiability.\nThe [[interpolation error formula|HASA2XSG66]] explains it.\nThe derivatives $f^{(n+1)}$ grow roughly like $(n + 1)! \\, 5^{n+1}$ on $[-1, 1]$, because $f$ has complex poles at $\\pm i/5$, close to the interval.\nThis growth outweighs the factor $\\frac{1}{(n+1)!} \\max \\abs{\\prod_i (x - x_i)}$ for equally spaced nodes, which is largest near the end points.\n\nWith [[Chebyshev nodes|HYK8J56PSH]] instead of equally spaced nodes, the interpolation polynomials of the same $f$ converge [[uniformly|08VZ57PT26]] to $f$ on $[-1, 1]$.\n\n## Explanations\n\n### L1 human\n\nOne might think that fitting a polynomial through more and more points of a nice curve always gives a better and better fit.\nRunge's example shows that this is false.\nFor a simple bell-shaped curve and equally spaced points, the fitted polynomial develops wild wiggles near the ends of the interval.\nThe wiggles get bigger as more points are used.\nThe cure is to put more points near the ends, as Chebyshev nodes do, or to use piecewise polynomials such as [[splines|84TJ8KQ926]].\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "illustrates": [
      "SS1YMS2NPC"
    ],
    "kind": "example",
    "msc": [
      "41A05",
      "65D05"
    ],
    "name": "Runge's phenomenon",
    "same_as": {
      "wikidata": "Q1990319",
      "wikipedia": "Runge's phenomenon"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Runge%27s_phenomenon"
      }
    ],
    "tag": "ZMT8JF21R6",
    "uses": [
      "HASA2XSG66",
      "HYK8J56PSH",
      "08VZ57PT26"
    ]
  },
  "kind": "example",
  "link": "https://tamnd.github.io/math2/node/ZMT8JF21R6/",
  "links": [
    {
      "field": "illustrates",
      "target": "SS1YMS2NPC"
    },
    {
      "field": "uses",
      "target": "HASA2XSG66"
    },
    {
      "field": "uses",
      "target": "HYK8J56PSH"
    },
    {
      "field": "uses",
      "target": "08VZ57PT26"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/ZMT8JF21R6.md",
  "msc": [
    "41A05",
    "65D05"
  ],
  "name": "Runge's phenomenon",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/ZMT/ZMT8JF21R6.md",
  "status": null,
  "tag": "ZMT8JF21R6",
  "uri": "m2://ZMT8JF21R6",
  "url": "https://tamnd.github.io/math2/wiki/runges-phenomenon/",
  "writing": {
    "tag": "ZMT8JF21R6",
    "kind": "example",
    "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
      }
    ]
  }
}
