Skip to content

Mathematics · Ch 14 — Sets and Relations

Relation, Domain, Co-domain and Range

14.2.4

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 2R42R4, 3R63R6, 5R105R10.

Formally, a well-defined relation between elements of A and B is written aRbaRb for a∈A,b∈Ba\in A, b\in B, and this relation gives rise to the ordered pair (a,b)(a,b) — so the relation defines a SUBSET of A×BA\times B. Conversely, every subset of A×BA\times B defines a unique relation. So a RELATION FROM A TO B IS, BY DEFINITION, ANY SUBSET OF A×BA\times B. For example, if A={2,3,4,5,6}A=\{2,3,4,5,6\} and B={6,7,8,10}B=\{6,7,8,10\}, the relation 'a is a factor of b' gives the subset {(2,6),(2,8),(2,10),(3,6),(4,8),(5,10)}\{(2,6),(2,8),(2,10),(3,6),(4,8),(5,10)\} of A×BA\times B.

When A=BA=B (a relation among the elements of a single set A), it is a subset of A×AA\times A, and is called a BINARY RELATION on A (covered further in the next section).

WORKED EXAMPLE: let A={1,2,3,4,5}A=\{1,2,3,4,5\} and B={1,4,5}B=\{1,4,5\}, and let R be the relation where (x,y)∈R(x,y)\in R means x<yx<y. Listing all such pairs: R={(1,4),(1,5),(2,4),(2,5),(3,4),(3,5),(4,5)}R=\{(1,4),(1,5),(2,4),(2,5),(3,4),(3,5),(4,5)\} (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: domain(R)={a/(a,b)∈R}\text{domain}(R) = \{a/(a,b)\in R\}.

RANGE: the set of all SECOND components of the ordered pairs in R is called the range of R: range(R)={b/(a,b)∈R}\text{range}(R) = \{b/(a,b)\in R\}. …

Figure 1Fig. 5.19 — arrow diagram of a relation

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 …