{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "080RWVVSB6"
    },
    {
      "field": "uses",
      "target": "0GXA8Z205E"
    },
    {
      "field": "uses",
      "target": "0MBWQKM8QR"
    },
    {
      "field": "uses",
      "target": "0N1JQXZXHC"
    },
    {
      "field": "uses",
      "target": "0XYAFCN0PT"
    }
  ],
  "body": "\n## Definition\n\nLet $a \u003c b$, let $f \\colon [a, b] \\to \\mathbb{R}$, and let $P = (x_0, \\dots, x_n)$ be a [[partition|069P20KYQT]] of $[a, b]$.\nLet $t = (t_1, \\dots, t_n)$ be tags with $t_i \\in [x_{i-1}, x_i]$ for each $i$.\nThe Riemann sum of $f$ for the tagged partition $(P, t)$ is\n$$S(f, P, t) = \\sum_{i=1}^{n} f(t_i) (x_i - x_{i-1}).$$\n\n## Remarks\n\nThe left rule takes $t_i = x_{i-1}$, the right rule takes $t_i = x_i$, and the midpoint rule takes the midpoints.\nFor bounded $f$, each Riemann sum lies between the lower and the upper [[Darboux sum|0QRQVH0CRW]] for $P$.\nMathlib has a general form for boxes, `BoxIntegral.integralSum`.\n\n## Explanations\n\n### L1 human\n\nA Riemann sum adds up areas of rectangles.\nEach rectangle stands on a piece of the partition, and its height is the value of $f$ at the chosen tag.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "defines": "0JAEHXTVV5",
    "kind": "definition",
    "msc": [
      "26A42"
    ],
    "name": "Riemann sum",
    "sources": [
      {
        "locator": "Definition",
        "url": "https://en.wikipedia.org/wiki/Riemann_sum"
      }
    ],
    "tag": "0HBY48G8G1",
    "uses": [
      "069P20KYQT"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0HBY48G8G1/",
  "links": [
    {
      "field": "defines",
      "target": "0JAEHXTVV5"
    },
    {
      "field": "uses",
      "target": "069P20KYQT"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0HBY48G8G1.md",
  "msc": [
    "26A42"
  ],
  "name": "Riemann sum",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0HB/0HBY48G8G1.md",
  "status": null,
  "tag": "0HBY48G8G1",
  "uri": "m2://0HBY48G8G1",
  "url": "https://math2.tamnd.com/wiki/riemann-sum-definition/",
  "writing": {
    "tag": "0HBY48G8G1",
    "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
      }
    ]
  }
}
