Skip to content

Mathematics · Ch 2 — Relations and Functions

Functions as a Special Kind of Relation; Pictorial Representation

2.4

Functions as a Special Kind of Relation; Pictorial Representation

Function. A relation ff from a non-empty set AA to a non-empty set BB is called a function (or mapping) from AA to BB if every element of AA appears as the first component of exactly one ordered pair of ff — that is, for every a∈Aa \in A there is one and only one b∈Bb \in B such that (a,b)∈f(a, b) \in f. This unique bb is written f(a)f(a) and called the image of aa under ff (or the value of ff at aa); aa is called the pre-image of bb. A function from AA to BB is written f:A→Bf : A \to B.

So a function is a relation with two extra conditions layered on top of "any subset of A×BA \times B": (i) every element of AA must be used as a first component (nothing in AA is left unrelated — this is what makes the domain equal to the whole of AA, not merely a subset of it), and (ii) no element of AA may be used as the first component of two different ordered pairs (this is what makes the image unique). A relation that fails either condition is a relation but not a function.

Pictorial representation. In an arrow diagram for a function f:A→Bf : A \to B, these two conditions become a simple visual rule: exactly one arrow must leave every point of AA. Elements of BB, on the other hand, may receive no arrows, one arrow, or several arrows — there is no restriction on BB's side. This single-arrow-out-of-every-AA-point picture is the quickest way to check, from a diagram, whether a given correspondence is a function.

Domain, co-domain and range of a function. For f:A→Bf : A \to B:

  • The domain of ff is AA itself (by the definition above, every element of AA is used, so the domain is never a proper subset of AA the way it can be for a general relation).
  • The co-domain of ff is BB, again fixed as part of specifying ff.
  • The range of ff is the set of images actually taken: Range(f)={f(a):a∈A}\text{Range}(f) = \{f(a) : a \in A\}, a subset of the co-domain BB that need not be all of BB. …