{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $K$ be a [[field|0QA8CHH8MG]], let $n \\ge 0$, let $x_0, \\dots, x_n \\in K$ be pairwise distinct, and let $y_0, \\dots, y_n \\in K$.\nAn interpolation polynomial of the data $(x_i, y_i)$ is a polynomial $p \\in K[x]$ such that:\n\n1. $p = 0$ or $\\deg p \\le n$;\n2. $p(x_i) = y_i$ for $i = 0, \\dots, n$.\n\n## Remarks\n\nThere is exactly one interpolation polynomial.\nUniqueness: the difference of two of them has degree at most $n$ and $n + 1$ roots, so it is $0$ by the [[bound on the number of roots|0KJVQV3E0F]].\nExistence: the [[Lagrange formula|237KR6FRCK]] gives one.\nEquivalently, the coefficients solve a linear system whose matrix has the nonzero [[Vandermonde determinant|0P84B554AS]].\nExample: for $(0, 1)$, $(1, 3)$, $(2, 7)$ the interpolation polynomial is $x^2 + x + 1$.\nNon-example: $x^2 + x + 1 + x(x - 1)(x - 2)$ takes the same values at $0, 1, 2$, but it has degree $3 \u003e 2$, so clause 1 fails.\n\n## Explanations\n\n### L1 human\n\nThe degree bound is what makes the answer unique.\nWithout it, you can add any multiple of $(x - x_0) \\cdots (x - x_n)$ and still pass through the points.\n",
  "commit": "5fc425f97f1f6b11da5892c2948ef8c5d8805665",
  "front": {
    "defines": "SS1YMS2NPC",
    "kind": "definition",
    "msc": [
      "41A05",
      "65D05"
    ],
    "name": "Polynomial interpolation",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Polynomial_interpolation"
      }
    ],
    "tag": "EKDSDN89FR",
    "uses": [
      "0QA8CHH8MG",
      "0Q9EZS90GY",
      "0DPF6WRZW6",
      "0KJVQV3E0F"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/EKDSDN89FR/",
  "links": [
    {
      "field": "defines",
      "target": "SS1YMS2NPC"
    },
    {
      "field": "uses",
      "target": "0QA8CHH8MG"
    },
    {
      "field": "uses",
      "target": "0Q9EZS90GY"
    },
    {
      "field": "uses",
      "target": "0DPF6WRZW6"
    },
    {
      "field": "uses",
      "target": "0KJVQV3E0F"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/EKDSDN89FR.md",
  "msc": [
    "41A05",
    "65D05"
  ],
  "name": "Polynomial interpolation",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/EKD/EKDSDN89FR.md",
  "status": null,
  "tag": "EKDSDN89FR",
  "uri": "m2://EKDSDN89FR",
  "url": "https://math2.tamnd.com/wiki/polynomial-interpolation-definition/",
  "writing": {
    "tag": "EKDSDN89FR",
    "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
      }
    ]
  }
}
