Mathematics · Ch 2 — Relations and Functions
Relations — Definition, Pictorial Diagrams, Domain, Co-domain and Range
Relations — Definition, Pictorial Diagrams, Domain, Co-domain and Range
Relation. Let and be two non-empty sets. A relation from to is any subset of the Cartesian product . If , we say is related to under , and write .
Since itself has elements when are finite, and a relation is any subset of it, the total number of possible relations from to is (the number of subsets of a set with elements) — including the empty relation and the universal relation itself.
Ways to describe a relation. A relation can be given (i) as a set of ordered pairs (roster form), e.g. ; (ii) by a defining rule/condition on (set-builder form), e.g. ; or (iii) pictorially, by an arrow diagram.
Arrow (pictorial) diagram. Sets and are each drawn as a closed curve with their elements marked as points inside. For every ordered pair , an arrow is drawn from the point in to the point in . Unlike a function's diagram, an element of under a general relation may have no arrow leaving it, exactly one arrow, or more than one arrow — there is no restriction at all on how many times an element of can appear as a first component.
Domain, co-domain and range of a relation. Let be a relation from to .
- The domain of is the set of all first components of the ordered pairs in : . It is a subset of (not necessarily equal to ).
- The co-domain of is the set itself, fixed in advance as part of specifying the relation — it need not consist only of elements that are actually related to something. …