Function (map)

An assignment that sends each input to a unique output.
Function (map)

A function (or map) from a XX to a set YY is a rule that assigns to each xXx\in X exactly one element of YY, denoted f(x)f(x). Formally, it is a subset fX×Yf\subseteq X\times Y (a ) such that:

  • for every xXx\in X there exists yYy\in Y with (x,y)f(x,y)\in f, and
  • if (x,y1)f(x,y_1)\in f and (x,y2)f(x,y_2)\in f, then y1=y2y_1=y_2.

One writes f:XYf:X\to Y and calls XX the and YY the . Functions are the primary objects of study in analysis: limits, , , and integrability are properties of functions.

Examples:

  • f:RRf:\mathbb{R}\to\mathbb{R}, f(x)=x2f(x)=x^2.
  • The projection π1:A×BA\pi_1:A\times B\to A given by π1(a,b)=a\pi_1(a,b)=a.
  • If X=X=\varnothing, there is exactly one function f:Yf:\varnothing\to Y for any set YY (the empty relation).