{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $h \u003e 0$, let $x_k = x_0 + kh$ for $k = 0, \\ldots, 4$, and let $f \\in C^6[x_0, x_4]$ with $f_k = f(x_k)$.\nThen there is $\\xi \\in (x_0, x_4)$ with\n$$\\int_{x_0}^{x_4} f(x) \\, dx = \\frac{2h}{45} \\big( 7 f_0 + 32 f_1 + 12 f_2 + 32 f_3 + 7 f_4 \\big) - \\frac{8 h^7}{945} f^{(6)}(\\xi).$$\n\n## Remarks\n\nThe rule is the closed [[Newton–Cotes formula|BQPQAY1FDJ]] with five nodes: its weights are the integrals of the Lagrange basis polynomials of the five equally spaced nodes.\nBy symmetry it is exact for all polynomials of degree at most $5$, one more than the interpolation degree, so its [[degree of exactness|ZYT1JNT1Y0]] is $5$.\nThe error constant can be read off from $f(x) = x^6$ on $[0, 4]$ with $h = 1$: the integral is $\\frac{4^7}{7}$, the rule gives $\\frac{4^7}{7} + \\frac{128}{21}$, and $\\frac{8}{945} \\cdot 720 = \\frac{128}{21}$.\nCheck of the weights: $\\frac{2h}{45}(7 + 32 + 12 + 32 + 7) = 4h$, the length of the interval.\nThe composite rule on $4m$ subintervals has error $O(h^6)$ for $f \\in C^6$.\n\n## Explanations\n\n### L1 human\n\nBoole's rule estimates an integral from five equally spaced samples.\nIt fits a polynomial of degree four through the samples and integrates that polynomial instead.\nThe weights $7, 32, 12, 32, 7$ come out of this fit, and the rule is exact for all polynomials up to degree five.\n\n### L2 human\n\nBoole's rule is the next member after the trapezoidal rule, Simpson's rule and Simpson's $3/8$ rule in the closed Newton–Cotes family.\nIt equals one step of [[Richardson extrapolation|WMTZG71K2Y]] applied to Simpson's rule with steps $2h$ and $h$, as in the Romberg method.\nHigher Newton–Cotes rules eventually have negative weights and become unstable, so in practice one uses composite rules of low order or Gaussian rules instead.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "about": [
      "BQPQAY1FDJ"
    ],
    "kind": "statement",
    "msc": [
      "65D32",
      "41A55"
    ],
    "name": "Boole's rule",
    "role": "theorem",
    "same_as": {
      "wikidata": "Q4943343",
      "wikipedia": "Boole's rule"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Boole%27s_rule"
      }
    ],
    "tag": "TVSVBH4TT4",
    "uses": [
      "BQPQAY1FDJ",
      "ZYT1JNT1Y0",
      "WMTZG71K2Y"
    ]
  },
  "kind": "statement",
  "link": "https://tamnd.github.io/math2/node/TVSVBH4TT4/",
  "links": [
    {
      "field": "about",
      "target": "BQPQAY1FDJ"
    },
    {
      "field": "uses",
      "target": "BQPQAY1FDJ"
    },
    {
      "field": "uses",
      "target": "ZYT1JNT1Y0"
    },
    {
      "field": "uses",
      "target": "WMTZG71K2Y"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/TVSVBH4TT4.md",
  "msc": [
    "65D32",
    "41A55"
  ],
  "name": "Boole's rule",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/TVS/TVSVBH4TT4.md",
  "status": null,
  "tag": "TVSVBH4TT4",
  "uri": "m2://TVSVBH4TT4",
  "url": "https://tamnd.github.io/math2/wiki/booles-rule/",
  "writing": {
    "tag": "TVSVBH4TT4",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
