Mathematics · Ch 14 — Sets and Relations
Relation, Domain, Co-domain and Range
Relation, Domain, Co-domain and Range
The everyday word 'relation' — two objects or quantities are 'related' if there is a recognisable link between them (A is a friend of B, F is the father of S, P is the sister of Q) — is formalised in mathematics as follows. Among integers, for instance, we might define a relation R by 'm is a factor of n', writing , , .
Formally, a well-defined relation between elements of A and B is written for , and this relation gives rise to the ordered pair — so the relation defines a SUBSET of . Conversely, every subset of defines a unique relation. So a RELATION FROM A TO B IS, BY DEFINITION, ANY SUBSET OF . For example, if and , the relation 'a is a factor of b' gives the subset of .
When (a relation among the elements of a single set A), it is a subset of , and is called a BINARY RELATION on A (covered further in the next section).
WORKED EXAMPLE: let and , and let R be the relation where means . Listing all such pairs: (Fig. 5.19 shows this as an arrow diagram from A to B).
DOMAIN: the set of all FIRST components of the ordered pairs in a relation R is called the domain of R: .
RANGE: the set of all SECOND components of the ordered pairs in R is called the range of R: . …
What this figure shows. An arrow diagram with the set A={1,2,3,4,5} drawn as dots on the left and the set B={1,4,5} drawn as dots on the right, with an arrow drawn from each first-component dot in A to its matching second-component dot in B for every pair in the worked relation R={(1,4),(1,5),(2,4),(2,5),(3,4),(3,5),(4,5)} — visually showing which elements of A connect to which elements of B …