{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\n1. By the [[extreme value theorem|0WS1A8E2P9]], there are $c, d \\in [a, b]$ with $f(c) \\le f(x) \\le f(d)$ for all $x \\in [a, b]$.\n2. Case 1: both $c$ and $d$ lie in $\\set{a, b}$. Since $f(a) = f(b)$, we get $f(c) = f(d) = f(a)$. So $f(x) = f(a)$ for all $x \\in [a, b]$, by step 1.\n3. In Case 1, let $x_0 = \\frac{a + b}{2} \\in (a, b)$. For $h \\ne 0$ with $x_0 + h \\in (a, b)$, the difference quotient of $f$ at $x_0$ is $\\frac{f(a) - f(a)}{h} = 0$.\n4. By the [[epsilon-delta form of limits|0GBZDAFPX8]], these quotients tend to $0$. So $f'(x_0) = 0$ by the definition of the [[derivative|0F1WR9C83K]], and $x_0$ works.\n5. Case 2: $d \\in (a, b)$. Let $g$ be the restriction of $f$ to the open interval $(a, b)$. Then $g$ is differentiable at $d$, by hypothesis.\n6. For all $x \\in (a, b)$, $g(x) \\le g(d)$ by step 1. So $g$ has a [[local maximum|00999TYPXB]] at $d$, with any $\\delta \u003e 0$.\n7. By [[Fermat's theorem on stationary points|0PCVBRV9VJ]], $f'(d) = g'(d) = 0$. So $d$ works.\n8. Case 3: $c \\in (a, b)$. In the same way, $g(x) \\ge g(c)$ for all $x \\in (a, b)$, so $g$ has a [[local minimum|0NS8BP96QX]] at $c$. Fermat's theorem gives $f'(c) = 0$.\n9. If Case 1 fails, then $c$ or $d$ lies in $(a, b)$, so Case 2 or Case 3 applies. In every case there is a point of $(a, b)$ where $f'$ vanishes.\n\n## Idea\n\nA continuous function on $[a, b]$ attains a maximum and a minimum. If both sit at the endpoints, the equal end values force $f$ to be constant. Otherwise one extremum is inside the interval, and there the derivative must be $0$.\n",
  "commit": "4a3290d299c8b2cd6493fce2296920ba7f82d942",
  "front": {
    "kind": "proof",
    "msc": [
      "26A24"
    ],
    "name": "Proof of Rolle's theorem",
    "proves": "0194DY35BG",
    "sources": [
      {
        "locator": "Proof of the generalized version",
        "url": "https://en.wikipedia.org/wiki/Rolle%27s_theorem"
      }
    ],
    "tag": "2ESE9EE9G7",
    "uses": [
      "0WS1A8E2P9",
      "0PCVBRV9VJ",
      "00999TYPXB",
      "0NS8BP96QX",
      "0F1WR9C83K",
      "0GBZDAFPX8"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/2ESE9EE9G7/",
  "links": [
    {
      "field": "proves",
      "target": "0194DY35BG"
    },
    {
      "field": "uses",
      "target": "0WS1A8E2P9"
    },
    {
      "field": "uses",
      "target": "0PCVBRV9VJ"
    },
    {
      "field": "uses",
      "target": "00999TYPXB"
    },
    {
      "field": "uses",
      "target": "0NS8BP96QX"
    },
    {
      "field": "uses",
      "target": "0F1WR9C83K"
    },
    {
      "field": "uses",
      "target": "0GBZDAFPX8"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/2ESE9EE9G7.md",
  "msc": [
    "26A24"
  ],
  "name": "Proof of Rolle's theorem",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/2ES/2ESE9EE9G7.md",
  "status": null,
  "tag": "2ESE9EE9G7",
  "uri": "m2://2ESE9EE9G7",
  "url": "https://math2.tamnd.com/wiki/proof-of-rolles-theorem/",
  "writing": {
    "tag": "2ESE9EE9G7",
    "kind": "proof",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
