{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\nWe work directly with Riemann sums.\n\n1. Let $a \u003c b$, let $f, g \\colon [a, b] \\to \\mathbb{R}$ be [[Riemann integrable|0N1JQXZXHC]], and let $\\alpha, \\beta \\in \\mathbb{R}$. Let $I_f$ and $I_g$ be their [[integrals|0QM4TXT3DR]], and let $h = \\alpha f + \\beta g$.\n2. For each tagged partition $(P, t)$ with $P = (x_0, \\dots, x_n)$, the [[Riemann sums|0HBY48G8G1]] satisfy\n   $$S(h, P, t) = \\sum_{i=1}^{n} \\big(\\alpha f(t_i) + \\beta g(t_i)\\big)(x_i - x_{i-1}) = \\alpha S(f, P, t) + \\beta S(g, P, t).$$\n3. Let $\\varepsilon \u003e 0$. Take $\\delta_f \u003e 0$ with $|S(f, P, t) - I_f| \u003c \\frac{\\varepsilon}{2(|\\alpha| + 1)}$ for all tagged partitions of [[mesh|04GM4NYXJB]] less than $\\delta_f$.\n   Take $\\delta_g \u003e 0$ in the same way for $g$, with $\\frac{\\varepsilon}{2(|\\beta| + 1)}$. Let $\\delta = \\min(\\delta_f, \\delta_g)$.\n4. Let $(P, t)$ be a tagged partition of mesh less than $\\delta$. By step 2, the [[triangle inequality|03HF5PMY5T]] and [[multiplicativity of the absolute value|0GMV7GP8W0]],\n   $$\\big|S(h, P, t) - (\\alpha I_f + \\beta I_g)\\big| \\le |\\alpha| \\, |S(f, P, t) - I_f| + |\\beta| \\, |S(g, P, t) - I_g|.$$\n5. By step 3, the right side is at most $\\frac{|\\alpha| \\varepsilon}{2(|\\alpha| + 1)} + \\frac{|\\beta| \\varepsilon}{2(|\\beta| + 1)} \u003c \\frac{\\varepsilon}{2} + \\frac{\\varepsilon}{2} = \\varepsilon$.\n6. So the number $\\alpha I_f + \\beta I_g$ has the property in the definition of integrability for $h$. Hence $h$ is Riemann integrable, and $\\int_a^b h(x) \\, dx = \\alpha \\int_a^b f(x) \\, dx + \\beta \\int_a^b g(x) \\, dx$.\n\n## Idea\n\nA Riemann sum is a finite sum, so it is linear in the function. If the sums of $f$ and of $g$ are close to their integrals for fine partitions, then the sums of $\\alpha f + \\beta g$ are close to $\\alpha I_f + \\beta I_g$ for the same partitions.\n",
  "commit": "68a8c3dc73fd55004b2796431c607c30960d1a85",
  "front": {
    "kind": "proof",
    "msc": [
      "26A42"
    ],
    "name": "Proof of the linearity of the integral",
    "proves": "080RWVVSB6",
    "sources": [
      {
        "locator": "Theorems 1.23, 1.24 and Definition 1.85",
        "url": "https://www.math.ucdavis.edu/~hunter/m125b/ch1.pdf"
      }
    ],
    "tag": "MVNYPYMTG4",
    "uses": [
      "0N1JQXZXHC",
      "0QM4TXT3DR",
      "0HBY48G8G1",
      "04GM4NYXJB",
      "03HF5PMY5T",
      "0GMV7GP8W0"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/MVNYPYMTG4/",
  "links": [
    {
      "field": "proves",
      "target": "080RWVVSB6"
    },
    {
      "field": "uses",
      "target": "0N1JQXZXHC"
    },
    {
      "field": "uses",
      "target": "0QM4TXT3DR"
    },
    {
      "field": "uses",
      "target": "0HBY48G8G1"
    },
    {
      "field": "uses",
      "target": "04GM4NYXJB"
    },
    {
      "field": "uses",
      "target": "03HF5PMY5T"
    },
    {
      "field": "uses",
      "target": "0GMV7GP8W0"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/MVNYPYMTG4.md",
  "msc": [
    "26A42"
  ],
  "name": "Proof of the linearity of the integral",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/MVN/MVNYPYMTG4.md",
  "status": null,
  "tag": "MVNYPYMTG4",
  "uri": "m2://MVNYPYMTG4",
  "url": "https://math2.tamnd.com/wiki/proof-of-the-linearity-of-the-integral/",
  "writing": {
    "tag": "MVNYPYMTG4",
    "kind": "proof",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
