{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "063W5JMY85"
    },
    {
      "field": "uses",
      "target": "07HF9YCWPP"
    },
    {
      "field": "uses",
      "target": "093CM69AGS"
    },
    {
      "field": "uses",
      "target": "0D2MXBV21T"
    },
    {
      "field": "uses",
      "target": "0DKRR22AEQ"
    },
    {
      "field": "uses",
      "target": "0E9GTAV478"
    },
    {
      "field": "uses",
      "target": "0F9JHP8AJN"
    },
    {
      "field": "uses",
      "target": "0FGCFY1AZX"
    },
    {
      "field": "uses",
      "target": "0FSNQ0GNCC"
    },
    {
      "field": "uses",
      "target": "0HTGB13FE2"
    },
    {
      "field": "uses",
      "target": "0PVG1CRAJN"
    },
    {
      "field": "uses",
      "target": "0Q3F20XB0A"
    },
    {
      "field": "uses",
      "target": "0QE5PFJY7V"
    },
    {
      "field": "uses",
      "target": "0VSB0XF4G7"
    },
    {
      "field": "uses",
      "target": "0WFF6AZPBP"
    },
    {
      "field": "uses",
      "target": "0XKH881BZ7"
    },
    {
      "field": "uses",
      "target": "0Y0KFHF47G"
    },
    {
      "field": "uses",
      "target": "0YXEQWRGP0"
    },
    {
      "field": "uses",
      "target": "0ZVHXDSZC7"
    }
  ],
  "body": "\n## Definition\n\nLet $A$ and $B$ be [[sets|0SJ3RX9TXA]].\nA function from $A$ to $B$ is a [[binary relation|08EJC6Q25H]] $f \\subseteq A \\times B$ such that, for each $a \\in A$, there is exactly one $b \\in B$ with $(a, b) \\in f$.\nThis $b$ is the value of $f$ at $a$, written $f(a)$.\nThe notation $f \\colon A \\to B$ says that $f$ is a function from $A$ to $B$.\n\n## Remarks\n\nThe set $A$ is the [[domain|093CM69AGS]] and the set $B$ is the [[codomain|0F9JHP8AJN]] of $f$.\nMany authors take the triple $(A, B, f)$ as the function. Then two functions with the same pairs but different codomains are different.\nTwo functions $f, g \\colon A \\to B$ are equal when $f(a) = g(a)$ for each $a \\in A$.\nOther names are map and mapping.\n\n## Explanations\n\n### L1 human\n\nA function is a machine: you put in an element $a$ of $A$, and it gives back one element $f(a)$ of $B$.\nEach input gives exactly one output, but two inputs can give the same output.\nFor example, $f(x) = x^2$ on $\\mathbb{R}$ sends both $2$ and $-2$ to $4$.\n",
  "commit": "545acf83a9b75c8ddc375ef8b23d2ae101a4d7e4",
  "front": {
    "defines": "0EPAT51DXQ",
    "kind": "definition",
    "msc": [
      "03E20"
    ],
    "name": "Function",
    "sources": [
      {
        "locator": "lead section",
        "url": "https://en.wikipedia.org/wiki/Function_(mathematics)"
      }
    ],
    "tag": "0XHDTE5YMZ",
    "uses": [
      "08EJC6Q25H",
      "0N3ADS4CHH"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0XHDTE5YMZ/",
  "links": [
    {
      "field": "defines",
      "target": "0EPAT51DXQ"
    },
    {
      "field": "uses",
      "target": "08EJC6Q25H"
    },
    {
      "field": "uses",
      "target": "0N3ADS4CHH"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0XHDTE5YMZ.md",
  "msc": [
    "03E20"
  ],
  "name": "Function",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0XH/0XHDTE5YMZ.md",
  "status": null,
  "tag": "0XHDTE5YMZ",
  "uri": "m2://0XHDTE5YMZ",
  "url": "https://math2.tamnd.com/wiki/function-definition/",
  "writing": {
    "tag": "0XHDTE5YMZ",
    "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
      }
    ]
  }
}
