{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\nWe trap the average value of $f$ between its minimum and maximum and apply the intermediate value theorem.\n\n1. Let $a \u003c b$ and let $f \\colon [a, b] \\to \\mathbb{R}$ be continuous. Since [[continuous functions are Riemann integrable|06SESV7GQY]], the integral $I = \\int_a^b f(x) \\, dx$ exists.\n2. By the [[extreme value theorem|0WS1A8E2P9]], there are $p, q \\in [a, b]$ with $m = f(p) \\le f(x) \\le f(q) = M$ for all $x \\in [a, b]$.\n3. Let $k$ be a real constant. Every [[Riemann sum|0HBY48G8G1]] of the constant function $k$ is $\\sum_{i} k (x_i - x_{i-1}) = k (b - a)$. So the constant $k$ is [[Riemann integrable|0N1JQXZXHC]] with integral $k (b - a)$.\n4. By step 2, $m \\le f \\le M$ on $[a, b]$. By the [[monotonicity of the integral|0MBWQKM8QR]] and step 3, $m (b - a) \\le I \\le M (b - a)$.\n5. Let $\\mu = \\frac{I}{b - a}$. Dividing step 4 by $b - a \u003e 0$ gives $f(p) = m \\le \\mu \\le M = f(q)$.\n6. If $p = q$, then $m = M = \\mu$, and $c = p$ satisfies $f(c) = \\mu$.\n7. If $p \\ne q$, let $[r, s]$ be the closed interval with endpoints $p$ and $q$. The restriction of $f$ to $[r, s]$ is continuous, and $\\mu$ lies between $f(r)$ and $f(s)$.\n   By the [[intermediate value theorem|00KAFBR32E]], there is $c \\in [r, s] \\subseteq [a, b]$ with $f(c) = \\mu$.\n8. In both cases $c \\in [a, b]$ and $\\int_a^b f(x) \\, dx = \\mu (b - a) = f(c)(b - a)$.\n\n## Idea\n\nThe average value $\\frac{1}{b - a} \\int_a^b f$ lies between the smallest and the largest value of $f$. A continuous function on an interval takes every value between two of its values. So it takes its average value somewhere.\n",
  "commit": "4a3290d299c8b2cd6493fce2296920ba7f82d942",
  "front": {
    "kind": "proof",
    "msc": [
      "26A42"
    ],
    "name": "Proof of the mean value theorem for integrals",
    "proves": "0N91N98EG5",
    "sources": [
      {
        "locator": "Theorem 1.29",
        "url": "https://www.math.ucdavis.edu/~hunter/m125b/ch1.pdf"
      }
    ],
    "tag": "F89W27S5QT",
    "uses": [
      "06SESV7GQY",
      "0WS1A8E2P9",
      "0HBY48G8G1",
      "0N1JQXZXHC",
      "0MBWQKM8QR",
      "00KAFBR32E"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/F89W27S5QT/",
  "links": [
    {
      "field": "proves",
      "target": "0N91N98EG5"
    },
    {
      "field": "uses",
      "target": "06SESV7GQY"
    },
    {
      "field": "uses",
      "target": "0WS1A8E2P9"
    },
    {
      "field": "uses",
      "target": "0HBY48G8G1"
    },
    {
      "field": "uses",
      "target": "0N1JQXZXHC"
    },
    {
      "field": "uses",
      "target": "0MBWQKM8QR"
    },
    {
      "field": "uses",
      "target": "00KAFBR32E"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/F89W27S5QT.md",
  "msc": [
    "26A42"
  ],
  "name": "Proof of the mean value theorem for integrals",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/F89/F89W27S5QT.md",
  "status": null,
  "tag": "F89W27S5QT",
  "uri": "m2://F89W27S5QT",
  "url": "https://math2.tamnd.com/wiki/proof-of-the-mean-value-theorem-for-integrals/",
  "writing": {
    "tag": "F89W27S5QT",
    "kind": "proof",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
