{
  "aliases": [
    "integral-test-for-convergence"
  ],
  "backlinks": null,
  "body": "\n## Statement\n\nLet $N$ be an integer and let $f \\colon [N, \\infty) \\to \\mathbb{R}$ be a decreasing function with $f(x) \\ge 0$ for all $x \\ge N$.\nThen the series $\\sum_{n=N}^{\\infty} f(n)$ converges if and only if the [[improper integral|0VCTBJMEJF]] $\\int_N^{\\infty} f(x)\\, dx$ converges.\n\n## Remarks\n\nA decreasing function is Riemann integrable on each bounded interval, so the integrals $\\int_N^b f(x)\\, dx$ exist.\nThe proof uses the [[comparison of a series and an integral|069HKV4X1E]]. When both converge,\n$$\\int_N^{\\infty} f(x)\\, dx \\le \\sum_{n=N}^{\\infty} f(n) \\le f(N) + \\int_N^{\\infty} f(x)\\, dx.$$\nWith $f(x) = 1/x^p$ it gives the [[p-series test|0ZNSSK8ZK1]].\nMathlib states the convergence direction for an antitone function, in `AntitoneOn.summable_of_integrableOn_Ioi`.\n\n## Explanations\n\n### L1 human\n\nDraw rectangles of width $1$ and height $f(n)$ under or over the graph of $f$.\nThe total area of the rectangles is the sum of the series, and it stays within $f(N)$ of the area under the graph.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "aliases": [
      "integral-test-for-convergence"
    ],
    "kind": "statement",
    "msc": [
      "40A05"
    ],
    "name": "Integral test",
    "role": "theorem",
    "same_as": {
      "wikidata": "Q1155313",
      "wikipedia": "Integral test for convergence"
    },
    "sources": [
      {
        "locator": "Statement of the test",
        "url": "https://en.wikipedia.org/wiki/Integral_test_for_convergence"
      }
    ],
    "tag": "019QZ6RRVH",
    "uses": [
      "0MX1HZBBXJ",
      "0VCTBJMEJF",
      "069HKV4X1E"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/019QZ6RRVH/",
  "links": [
    {
      "field": "uses",
      "target": "0MX1HZBBXJ"
    },
    {
      "field": "uses",
      "target": "0VCTBJMEJF"
    },
    {
      "field": "uses",
      "target": "069HKV4X1E"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/019QZ6RRVH.md",
  "msc": [
    "40A05"
  ],
  "name": "Integral test",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/019/019QZ6RRVH.md",
  "status": null,
  "tag": "019QZ6RRVH",
  "uri": "m2://019QZ6RRVH",
  "url": "https://math2.tamnd.com/wiki/integral-test/",
  "writing": {
    "tag": "019QZ6RRVH",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
