{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\n1. Let $A_N = \\sum_{n=0}^{N} a_n$ and $B_N = \\sum_{n=0}^{N} b_n$ be the [[partial sums|0NB643K60Q]]. Since $a_n \\le b_n$ for every $n$, we have $A_N \\le B_N$ for every $N$.\n2. Assume that $\\sum b_n$ converges, with sum $B$. Since $b_n \\ge 0$, the [[criterion for nonnegative series|0MX1HZBBXJ]] gives $B = \\sup_N B_N$. So $B_N \\le B$ for all $N$.\n3. By steps 1 and 2, $A_N \\le B$ for all $N$. So the partial sums of $\\sum a_n$ are bounded above.\n4. Since $a_n \\ge 0$, the same criterion shows that $\\sum a_n$ converges, with sum $\\sup_N A_N$.\n5. By step 3, $B$ is an upper bound of the $A_N$. So $\\sum a_n = \\sup_N A_N \\le B = \\sum b_n$.\n6. Now assume that $\\sum a_n$ diverges. If $\\sum b_n$ converged, then $\\sum a_n$ would converge by steps 2 to 4. So $\\sum b_n$ diverges.\n\n## Idea\n\nThe partial sums of the smaller series stay below those of the larger one. For nonnegative terms, convergence means bounded partial sums, so a bound for the larger series is also a bound for the smaller one.\n",
  "commit": "4a3290d299c8b2cd6493fce2296920ba7f82d942",
  "front": {
    "kind": "proof",
    "msc": [
      "40A05"
    ],
    "name": "Proof of the comparison test",
    "proves": "04Z5G0THN6",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Direct_comparison_test"
      }
    ],
    "tag": "JVHCSNBVGQ",
    "uses": [
      "0MX1HZBBXJ",
      "0NB643K60Q"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/JVHCSNBVGQ/",
  "links": [
    {
      "field": "proves",
      "target": "04Z5G0THN6"
    },
    {
      "field": "uses",
      "target": "0MX1HZBBXJ"
    },
    {
      "field": "uses",
      "target": "0NB643K60Q"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/JVHCSNBVGQ.md",
  "msc": [
    "40A05"
  ],
  "name": "Proof of the comparison test",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/JVH/JVHCSNBVGQ.md",
  "status": null,
  "tag": "JVHCSNBVGQ",
  "uri": "m2://JVHCSNBVGQ",
  "url": "https://math2.tamnd.com/wiki/proof-of-the-comparison-test/",
  "writing": {
    "tag": "JVHCSNBVGQ",
    "kind": "proof",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      },
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
