{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $D$ be a nonempty set, let $f \\colon D \\to \\R$ be a [[function|0XHDTE5YMZ]], and let $a \\in D$.\n\n1. The function $f$ attains its *maximum* at $a$ if $f(x) \\le f(a)$ for all $x \\in D$. Then $f(a)$ is the *maximum value* of $f$, written $\\max_{x \\in D} f(x)$.\n2. The function $f$ attains its *minimum* at $a$ if $f(x) \\ge f(a)$ for all $x \\in D$. Then $f(a)$ is the *minimum value* of $f$, written $\\min_{x \\in D} f(x)$.\n3. A point $a$ as in 1 or 2 is a *global extremum*, or *absolute extremum*, of $f$.\n\n## Remarks\n\nThe maximum value of $f$ is the [[greatest element|0Z7HDDXX3X]] of the image $f(D)$, when it exists.\nThen it equals the [[supremum|0BTMQ04556]] of $f(D)$, and the supremum is attained.\nThe maximum value is unique, but it can be attained at several points.\nFor $D \\subseteq \\R^n$, every global extremum is a [[local extremum|04CPG9K1C4]].\n\nExample: $f(x) = x^2$ on $D = [-1, 2]$ attains its maximum at $a = 2$.\nIndeed, for $x \\in [-1, 2]$ one has $\\abs{x} \\le 2$, so $x^2 \\le 4 = f(2)$.\n\nNon-example: $f(x) = x$ on $D = (0, 1)$ has no maximum.\nFor each $a \\in (0, 1)$, the point $x = (a + 1)/2$ lies in $D$ and $f(x) \u003e f(a)$.\nThe supremum of $f(D)$ is $1$, but it is not a value of $f$.\nThe [[extreme value theorem|0WS1A8E2P9]] gives a maximum and a minimum for every continuous function on a closed bounded interval.\n",
  "commit": "547b6eddb8f2feb8d579f2d633d22a27b7e132fc",
  "front": {
    "defines": "5X1YMSR204",
    "kind": "definition",
    "msc": [
      "26A06",
      "49K05"
    ],
    "name": "Maximum and minimum",
    "sources": [
      {
        "locator": "Definition",
        "url": "https://en.wikipedia.org/wiki/Maximum_and_minimum"
      }
    ],
    "tag": "SD649DT8VX",
    "uses": [
      "0XHDTE5YMZ",
      "0Z7HDDXX3X",
      "0BTMQ04556",
      "04CPG9K1C4",
      "0WS1A8E2P9"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/SD649DT8VX/",
  "links": [
    {
      "field": "defines",
      "target": "5X1YMSR204"
    },
    {
      "field": "uses",
      "target": "0XHDTE5YMZ"
    },
    {
      "field": "uses",
      "target": "0Z7HDDXX3X"
    },
    {
      "field": "uses",
      "target": "0BTMQ04556"
    },
    {
      "field": "uses",
      "target": "04CPG9K1C4"
    },
    {
      "field": "uses",
      "target": "0WS1A8E2P9"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/SD649DT8VX.md",
  "msc": [
    "26A06",
    "49K05"
  ],
  "name": "Maximum and minimum",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/SD6/SD649DT8VX.md",
  "status": null,
  "tag": "SD649DT8VX",
  "uri": "m2://SD649DT8VX",
  "url": "https://math2.tamnd.com/wiki/maximum-and-minimum-definition/",
  "writing": {
    "tag": "SD649DT8VX",
    "kind": "definition",
    "level": "W1",
    "next": [
      {
        "what": "edge instance_of in",
        "note": "one example",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge not_instance_of in",
        "note": "one non-example that fails one clause",
        "have": 0,
        "want": 1
      }
    ]
  }
}
