Mathematics · Ch 2 — Relations and Functions
Functions as a Special Kind of Relation; Pictorial Representation
Functions as a Special Kind of Relation; Pictorial Representation
Function. A relation from a non-empty set to a non-empty set is called a function (or mapping) from to if every element of appears as the first component of exactly one ordered pair of — that is, for every there is one and only one such that . This unique is written and called the image of under (or the value of at ); is called the pre-image of . A function from to is written .
So a function is a relation with two extra conditions layered on top of "any subset of ": (i) every element of must be used as a first component (nothing in is left unrelated — this is what makes the domain equal to the whole of , not merely a subset of it), and (ii) no element of 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 , these two conditions become a simple visual rule: exactly one arrow must leave every point of . Elements of , on the other hand, may receive no arrows, one arrow, or several arrows — there is no restriction on 's side. This single-arrow-out-of-every--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 :
- The domain of is itself (by the definition above, every element of is used, so the domain is never a proper subset of the way it can be for a general relation).
- The co-domain of is , again fixed as part of specifying .
- The range of is the set of images actually taken: , a subset of the co-domain that need not be all of . …