Restriction of a function

A function obtained by limiting the domain to a subset
Restriction of a function

A restriction of a function is a new function obtained by limiting the domain: if f:ABf:A\to B is a and SAS\subseteq A, then the restriction fS:SBf|_S:S\to B is defined by

fS(s)=f(s)for all sS. f|_S(s)=f(s)\quad\text{for all }s\in S.

A restriction changes the while keeping the same . The of fSf|_S is obtained by intersecting the graph of ff with the subset S×BS\times B of the A×BA\times B.

Examples:

  • If f:RRf:\mathbb{R}\to\mathbb{R} is f(x)=x2f(x)=x^2 and S=ZRS=\mathbb{Z}\subseteq\mathbb{R}, then fS:ZRf|_S:\mathbb{Z}\to\mathbb{R} is the squaring function on integers.
  • If AA is a set and SAS\subseteq A, then idAS:SA\mathrm{id}_A|_S:S\to A is the inclusion map sss\mapsto s.