{
  "aliases": null,
  "backlinks": [
    {
      "field": "defines",
      "target": "7R0F4956PX"
    },
    {
      "field": "about",
      "target": "Q0M7PT9VN2"
    },
    {
      "field": "uses",
      "target": "Q0M7PT9VN2"
    },
    {
      "field": "uses",
      "target": "TPM8JXFWYB"
    },
    {
      "field": "uses",
      "target": "X4EXEGM2BV"
    }
  ],
  "body": "\n## Summary\n\nThe trapezoidal rule approximates $\\int_a^b f$ by the area of the trapezoid under the chord from $(a, f(a))$ to $(b, f(b))$.\nIts composite form splits $[a, b]$ into $N$ equal parts and adds the trapezoids, with error of order $h^2$ for smooth $f$, where $h = (b - a)/N$.\nIt is the closed [[Newton–Cotes formula|BQPQAY1FDJ]] with two nodes, and it is remarkably accurate for smooth periodic functions over a full period.\n\n## Explanations\n\n### L1 human\n\nReplace the curve over each small piece by the straight line between its endpoints, and add up the areas of the resulting trapezoids.\nEach trapezoid has area equal to its width times the average of its two heights.\nHalving the width of the pieces roughly cuts the error by four.\nFor $f(x) = x^2$ on $[0, 1]$ with two pieces, the trapezoids give $3/8$, slightly more than the true value $1/3$, because the parabola bends below its chords.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "kind": "concept",
    "msc": [
      "65D32",
      "41A55",
      "65D30"
    ],
    "name": "Trapezoidal rule",
    "same_as": {
      "wikidata": "Q833293",
      "wikipedia": "Trapezoidal rule"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Trapezoidal_rule"
      }
    ],
    "specializes": [
      "BQPQAY1FDJ"
    ],
    "tag": "FH0538XCZR"
  },
  "kind": "concept",
  "link": "https://tamnd.github.io/math2/node/FH0538XCZR/",
  "links": [
    {
      "field": "specializes",
      "target": "BQPQAY1FDJ"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/FH0538XCZR.md",
  "msc": [
    "65D32",
    "41A55",
    "65D30"
  ],
  "name": "Trapezoidal rule",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/FH0/FH0538XCZR.md",
  "status": null,
  "tag": "FH0538XCZR",
  "uri": "m2://FH0538XCZR",
  "url": "https://tamnd.github.io/math2/wiki/trapezoidal-rule/",
  "writing": {
    "tag": "FH0538XCZR",
    "kind": "concept",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
