{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "0T2WYDTRP2"
    },
    {
      "field": "uses",
      "target": "0X52TNMTCJ"
    }
  ],
  "body": "\n## Definition\n\nLet $f \\colon A \\to B$ be a [[function|0XHDTE5YMZ]] and let $S$ be a [[subset|0FE8Q5S42Y]] of $A$.\nThe restriction of $f$ to $S$ is the function $f|_S \\colon S \\to B$ with $f|_S(s) = f(s)$ for each $s \\in S$.\n\n## Remarks\n\nThe graph of $f|_S$ is $\\{(s, f(s)) \\mid s \\in S\\}$, a subset of the graph of $f$.\nThe function $f$ is an extension of $f|_S$.\nExample: $x \\mapsto x^2$ on $\\mathbb{R}$ is not [[injective|0PVG1CRAJN]], but its restriction to $[0, \\infty)$ is injective.\n\n## Explanations\n\n### L1 human\n\nTo restrict a function, you keep its rule and allow fewer inputs.\nRestrictions often make a function injective, so that it has an inverse on a smaller domain.\n",
  "commit": "545acf83a9b75c8ddc375ef8b23d2ae101a4d7e4",
  "front": {
    "defines": "0NF1KGDXX3",
    "kind": "definition",
    "msc": [
      "03E20"
    ],
    "name": "Restriction of a function",
    "sources": [
      {
        "locator": "lead section",
        "url": "https://en.wikipedia.org/wiki/Restriction_(mathematics)"
      }
    ],
    "tag": "0D2MXBV21T",
    "uses": [
      "0XHDTE5YMZ",
      "0FE8Q5S42Y"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0D2MXBV21T/",
  "links": [
    {
      "field": "defines",
      "target": "0NF1KGDXX3"
    },
    {
      "field": "uses",
      "target": "0XHDTE5YMZ"
    },
    {
      "field": "uses",
      "target": "0FE8Q5S42Y"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0D2MXBV21T.md",
  "msc": [
    "03E20"
  ],
  "name": "Restriction of a function",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0D2/0D2MXBV21T.md",
  "status": null,
  "tag": "0D2MXBV21T",
  "uri": "m2://0D2MXBV21T",
  "url": "https://math2.tamnd.com/wiki/restriction-of-a-function-definition/",
  "writing": {
    "tag": "0D2MXBV21T",
    "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
      }
    ]
  }
}
