{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\nWe take the supremum of the set where $f$ is below $y$.\n\n1. Let $a \u003c b$, let $f \\colon [a, b] \\to \\R$ be [[continuous|0P27W9RW0G]], and let $y$ lie between $f(a)$ and $f(b)$.\n2. If $y = f(a)$, take $c = a$. If $y = f(b)$, take $c = b$. So we may assume that $y$ lies strictly between $f(a)$ and $f(b)$.\n3. If $f(a) \u003e y \u003e f(b)$, replace $f$ by $-f$ and $y$ by $-y$. Since $\\abs{-f(x) - (-f(z))} = \\abs{f(x) - f(z)}$, the [[epsilon-delta form|0W8YHHGCJG]] shows that $-f$ is continuous. A point with $-f(c) = -y$ has $f(c) = y$.\n4. So we may assume $f(a) \u003c y \u003c f(b)$. Let $S = \\set{x \\in [a, b] : f(x) \u003c y}$.\n5. The set $S$ contains $a$, and $b$ is an [[upper bound|0B5H2V4JW8]] of $S$. By the [[completeness axiom|0AXWET80YW]], $S$ has a [[supremum|0BTMQ04556]] $c$. Since $a \\in S$ and $b$ is an upper bound, $a \\le c \\le b$.\n6. Suppose that $f(c) \u003c y$. Then $c \\ne b$, since $f(b) \u003e y$. So $c \u003c b$.\n7. In this case, the epsilon-delta form with $\\varepsilon = y - f(c)$ gives $\\delta \u003e 0$ with $f(x) \u003c f(c) + \\varepsilon = y$ for all $x \\in [a, b]$ with $\\abs{x - c} \u003c \\delta$.\n8. Let $x = \\min(c + \\delta/2, b)$. Then $c \u003c x \\le b$ and $\\abs{x - c} \u003c \\delta$, so $f(x) \u003c y$ and $x \\in S$. This contradicts $x \u003e c = \\sup S$. Hence $f(c) \\ge y$.\n9. Suppose that $f(c) \u003e y$. The epsilon-delta form with $\\varepsilon = f(c) - y$ gives $\\delta \u003e 0$ with $f(x) \u003e y$ for all $x \\in [a, b]$ with $\\abs{x - c} \u003c \\delta$.\n10. By the [[approximation property of the supremum|0M8TGGP9JP]], there is $s \\in S$ with $c - \\delta \u003c s \\le c$. Then $s \\in [a, b]$ and $\\abs{s - c} \u003c \\delta$, so $f(s) \u003e y$.\n11. But $s \\in S$ means $f(s) \u003c y$. This contradiction shows $f(c) \\le y$.\n12. By steps 8 and 11, $f(c) = y$, with $c \\in [a, b]$.\n\n## Idea\n\nLet $c$ be the last point up to which $f$ can still be below $y$, namely the supremum of the set where $f \u003c y$. If $f(c) \u003c y$, continuity would push the set past $c$. If $f(c) \u003e y$, continuity would keep the set away from $c$. So $f(c) = y$, and completeness of $\\R$ is what makes $c$ exist.\n",
  "commit": "4a3290d299c8b2cd6493fce2296920ba7f82d942",
  "front": {
    "kind": "proof",
    "msc": [
      "26A15"
    ],
    "name": "Proof of the intermediate value theorem by the supremum",
    "proves": "00KAFBR32E",
    "sources": [
      {
        "locator": "Proof version A",
        "url": "https://en.wikipedia.org/wiki/Intermediate_value_theorem"
      }
    ],
    "tag": "P54346XMQQ",
    "uses": [
      "0P27W9RW0G",
      "0W8YHHGCJG",
      "0AXWET80YW",
      "0BTMQ04556",
      "0M8TGGP9JP",
      "0B5H2V4JW8"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/P54346XMQQ/",
  "links": [
    {
      "field": "proves",
      "target": "00KAFBR32E"
    },
    {
      "field": "uses",
      "target": "0P27W9RW0G"
    },
    {
      "field": "uses",
      "target": "0W8YHHGCJG"
    },
    {
      "field": "uses",
      "target": "0AXWET80YW"
    },
    {
      "field": "uses",
      "target": "0BTMQ04556"
    },
    {
      "field": "uses",
      "target": "0M8TGGP9JP"
    },
    {
      "field": "uses",
      "target": "0B5H2V4JW8"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/P54346XMQQ.md",
  "msc": [
    "26A15"
  ],
  "name": "Proof of the intermediate value theorem by the supremum",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/P54/P54346XMQQ.md",
  "status": null,
  "tag": "P54346XMQQ",
  "uri": "m2://P54346XMQQ",
  "url": "https://math2.tamnd.com/wiki/proof-of-the-intermediate-value-theorem-by-the-supremum/",
  "writing": {
    "tag": "P54346XMQQ",
    "kind": "proof",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
