{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "0JQE130DHW"
    }
  ],
  "body": "\n## Definition\n\nLet $f \\colon [0, 1] \\to \\mathbb{R}$ be a function and let $n \\ge 1$ be an integer.\nThe $n$-th Bernstein polynomial of $f$ is\n$$B_n(f)(x) = \\sum_{k=0}^{n} f\\Big( \\frac{k}{n} \\Big) \\binom{n}{k} x^k (1 - x)^{n-k}.$$\nThe polynomials $b_{k,n}(x) = \\binom{n}{k} x^k (1 - x)^{n-k}$ are the Bernstein basis polynomials.\n\n## Remarks\n\nIf $f$ is continuous, then $B_n(f) \\to f$ uniformly on $[0, 1]$. This proves the [[Weierstrass approximation theorem|0JQE130DHW]].\nThe basis polynomials are nonnegative on $[0, 1]$, and they sum to $1$ by the binomial theorem.\nSergei Bernstein gave this proof in 1912, with an argument from probability. Mathlib defines the basis polynomials as `bernsteinPolynomial`.\n\n## Explanations\n\n### L1 human\n\nThe Bernstein polynomial samples $f$ at the points $k/n$ and blends the values with smooth weights.\nNear $x$, the weights concentrate on the samples with $k/n$ close to $x$.\n",
  "commit": "545acf83a9b75c8ddc375ef8b23d2ae101a4d7e4",
  "front": {
    "defines": "0JT92VK307",
    "kind": "definition",
    "msc": [
      "41A10"
    ],
    "name": "Bernstein polynomial",
    "sources": [
      {
        "locator": "Definition",
        "url": "https://en.wikipedia.org/wiki/Bernstein_polynomial"
      }
    ],
    "tag": "0C4VWBFY73"
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0C4VWBFY73/",
  "links": [
    {
      "field": "defines",
      "target": "0JT92VK307"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0C4VWBFY73.md",
  "msc": [
    "41A10"
  ],
  "name": "Bernstein polynomial",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0C4/0C4VWBFY73.md",
  "status": null,
  "tag": "0C4VWBFY73",
  "uri": "m2://0C4VWBFY73",
  "url": "https://math2.tamnd.com/wiki/bernstein-polynomial-definition/",
  "writing": {
    "tag": "0C4VWBFY73",
    "kind": "definition",
    "level": "W1",
    "next": [
      {
        "what": "edge instance_of in",
        "note": "one example",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge not_instance_of in",
        "note": "one non-example that fails one clause",
        "have": 0,
        "want": 1
      }
    ]
  }
}
