{
  "aliases": null,
  "backlinks": [
    {
      "field": "defines",
      "target": "1FMBCFJ7K1"
    },
    {
      "field": "uses",
      "target": "948A39DZDE"
    }
  ],
  "body": "\n## Summary\n\nSimpson's rule approximates $\\int_a^b f$ by integrating the parabola through the values of $f$ at $a$, at the midpoint, and at $b$, which gives $\\frac{b - a}{6}\\big(f(a) + 4 f(m) + f(b)\\big)$.\nIt is the closed [[Newton–Cotes formula|BQPQAY1FDJ]] with three nodes, and it is exact for all cubic polynomials.\nIts composite form has error of order $h^4$ for smooth integrands, which makes it a standard simple method.\n\n## Explanations\n\n### L1 human\n\nInstead of joining samples by straight lines, Simpson's rule fits a parabola through three equally spaced samples and takes the area under it.\nThe middle sample gets weight four times that of the ends, because the parabola's area depends most on the height in the middle.\nFor $f(x) = x^3$ on $[0, 1]$ it gives $\\frac{1}{6}\\big(0 + 4 \\cdot \\frac{1}{8} + 1\\big) = \\frac{1}{4}$, exactly the true value.\nHalving the step size reduces the error by a factor of about sixteen.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "kind": "concept",
    "msc": [
      "65D32",
      "41A55",
      "65D30"
    ],
    "name": "Simpson's rule",
    "same_as": {
      "wikidata": "Q722507",
      "wikipedia": "Simpson's rule"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Simpson%27s_rule"
      }
    ],
    "specializes": [
      "BQPQAY1FDJ"
    ],
    "tag": "MNXC26G3BQ"
  },
  "kind": "concept",
  "link": "https://tamnd.github.io/math2/node/MNXC26G3BQ/",
  "links": [
    {
      "field": "specializes",
      "target": "BQPQAY1FDJ"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/MNXC26G3BQ.md",
  "msc": [
    "65D32",
    "41A55",
    "65D30"
  ],
  "name": "Simpson's rule",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/MNX/MNXC26G3BQ.md",
  "status": null,
  "tag": "MNXC26G3BQ",
  "uri": "m2://MNXC26G3BQ",
  "url": "https://tamnd.github.io/math2/wiki/simpsons-rule/",
  "writing": {
    "tag": "MNXC26G3BQ",
    "kind": "concept",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
