{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $K$ be a [[field|04C5ZBG1WT]], let $n \\ge 0$, and let $x_0, \\dots, x_n \\in K$ be pairwise distinct.\nLet $f$ be a function defined at these points with values in $K$.\nThe *Newton polynomial* of $f$ at $x_0, \\dots, x_n$ is\n$$N(x) = \\sum_{j=0}^{n} f[x_0, \\dots, x_j] \\prod_{k=0}^{j-1} (x - x_k),$$\nwhere $f[x_0, \\dots, x_j]$ are the [[divided differences|N5ZHV4HWDC]] of $f$ and the empty product for $j = 0$ is $1$.\n\n## Remarks\n\n$N$ has degree at most $n$ and $N(x_i) = f(x_i)$ for all $i$, so it is the [[interpolation polynomial|SS1YMS2NPC]] of the data, written in the Newton basis.\nThe first $j + 1$ terms form the interpolation polynomial at $x_0, \\dots, x_j$.\nIt can be evaluated with nested multiplication, as in [[Horner's method|FYBQ3Z52Z7]].\n\nExample: for $f(0) = 1$, $f(1) = 3$, $f(2) = 7$, the divided differences are $f[0] = 1$, $f[0, 1] = 2$, $f[1, 2] = 4$ and $f[0, 1, 2] = 1$.\nSo $N(x) = 1 + 2x + x(x - 1) = x^2 + x + 1$, and indeed $N(0) = 1$, $N(1) = 3$, $N(2) = 7$.\n\nNon-example: $1 + 2x + 2x(x - 1)$ has the Newton shape but its last coefficient is not $f[0, 1, 2]$; its value at $2$ is $9 \\ne 7$.\n\nFor equally spaced nodes $x_k = x_0 + kh$, the divided differences become forward differences divided by $k! \\, h^k$, which gives the [[Newton–Gregory forward formula|Q4YAST023H]].\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "9W77FPTM9E",
    "kind": "definition",
    "msc": [
      "65D05",
      "41A05"
    ],
    "name": "Newton polynomial",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Newton_polynomial"
      }
    ],
    "tag": "155K06F4JF",
    "uses": [
      "N5ZHV4HWDC",
      "SS1YMS2NPC",
      "04C5ZBG1WT"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/155K06F4JF/",
  "links": [
    {
      "field": "defines",
      "target": "9W77FPTM9E"
    },
    {
      "field": "uses",
      "target": "N5ZHV4HWDC"
    },
    {
      "field": "uses",
      "target": "SS1YMS2NPC"
    },
    {
      "field": "uses",
      "target": "04C5ZBG1WT"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/155K06F4JF.md",
  "msc": [
    "65D05",
    "41A05"
  ],
  "name": "Newton polynomial",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/155/155K06F4JF.md",
  "status": null,
  "tag": "155K06F4JF",
  "uri": "m2://155K06F4JF",
  "url": "https://tamnd.github.io/math2/wiki/newton-polynomial-definition/",
  "writing": {
    "tag": "155K06F4JF",
    "kind": "definition",
    "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
      }
    ]
  }
}
