Function

A relation that assigns each input exactly one output
Function

A function is a fA×Bf\subseteq A\times B between AA and BB such that for every aAa\in A there exists a unique bBb\in B with (a,b)f(a,b)\in f; we write this bb as f(a)f(a) and denote the function by f:ABf:A\to B.

The set AA is called the and the set BB the . Functions allow you to form and of subsets and to build new functions via .

Examples:

  • The squaring map f:NNf:\mathbb{N}\to\mathbb{N} given by f(n)=n2f(n)=n^2 is a function on the .
  • If SS is a of a set AA, the inclusion map i:SAi:S\to A defined by i(s)=si(s)=s is a function.