Example 1
Question: Let \( B = \{2, 3, 4, 5, 6, 7, 8\} \). Define a relation \( R \) from \( B \) to \( B \) by \[ R = \{(x, y) : y = x + 2,\; x \in B,\; y \in B\} \] Write down the domain, codomain, and range of \( R \).
Solution: We need to find all ordered pairs \( (x, y) \) such that \( y = x + 2 \), where both \( x \) and \( y \) belong to \( B = \{2, 3, 4, 5, 6, 7, 8\} \). Checking each element of \( B \) as \( x \): For \( x = 2 \): \( y = 2 + 2 = 4 \), and \( 4 \in B \), so \( (2, 4) \in R \). For \( x = 3 \): \( y = 3 + 2 = 5 \), and \( 5 \in B \), so \( (3, 5) \in R \). For \( x = 4 \): \( y = 4 + 2 = 6 \), and \( 6 \in B \), so \( (4, 6) \in R \). For \( x = 5 \): \( y = 5 + 2 = 7 \), and \( 7 \in B \), so \( (5, 7) \in R \). For \( x = 6 \): \( y = 6 + 2 = 8 \), and \( 8 \in B \), so \( (6, 8) \in R \). For \( x = 7 \): \( y = 7 + 2 = 9 \), but \( 9 \notin B \), so this pair is excluded. For \( x = 8 \): \( y = 8 + 2 = 10 \), but \( 10 \notin B \), so this pair is excluded. Therefore: \[ R = \{(2, 4),\,(3, 5),\,(4, 6),\,(5, 7),\,(6, 8)\} \] Domain of \( R \) = set of all first elements \[ = \{2, 3, 4, 5, 6\} \] Codeomain of \( R \) = the full set \( B \) \[ = \{2, 3, 4, 5, 6, 7, 8\} \] Range of \( R \) = set of all second elements \[ = \{4, 5, 6, 7, 8\} \]
Answer: Domain \( = \{2, 3, 4, 5, 6\} \), Codomain \( = \{2, 3, 4, 5, 6, 7, 8\} \), Range \( = \{4, 5, 6, 7, 8\} \)
Example 2
Question: Let \( C = \{1, 2, 3, 4, 5, 6, 7, 8, 9\} \). Define a relation \( R \) from \( C \) to \( C \) by \[ R = \{(x, y) : y = 2x - 1,\; x \in C,\; y \in C\} \] Write down \( R \) as a set of ordered pairs, and state the domain, codomain, and range of \( R \).
Solution: We need all ordered pairs \( (x, y) \) with \( y = 2x - 1 \) and both \( x, y \in C = \{1, 2, 3, 4, 5, 6, 7, 8, 9\} \). Checking each element of \( C \) as \( x \): For \( x = 1 \): \( y = 2(1) - 1 = 1 \), and \( 1 \in C \), so \( (1, 1) \in R \). For \( x = 2 \): \( y = 2(2) - 1 = 3 \), and \( 3 \in C \), so \( (2, 3) \in R \). For \( x = 3 \): \( y = 2(3) - 1 = 5 \), and \( 5 \in C \), so \( (3, 5) \in R \). For \( x = 4 \): \( y = 2(4) - 1 = 7 \), and \( 7 \in C \), so \( (4, 7) \in R \). For \( x = 5 \): \( y = 2(5) - 1 = 9 \), and \( 9 \in C \), so \( (5, 9) \in R \). For \( x = 6 \): \( y = 2(6) - 1 = 11 \), but \( 11 \notin C \), so excluded. For \( x = 7 \): \( y = 2(7) - 1 = 13 \), but \( 13 \notin C \), so excluded. For \( x = 8 \): \( y = 2(8) - 1 = 15 \), but \( 15 \notin C \), so excluded. For \( x = 9 \): \( y = 2(9) - 1 = 17 \), but \( 17 \notin C \), so excluded. Therefore: \[ R = \{(1, 1),\,(2, 3),\,(3, 5),\,(4, 7),\,(5, 9)\} \] Domain of \( R \) = set of all first elements \[ = \{1, 2, 3, 4, 5\} \] Codomain of \( R \) = the full set \( C \) \[ = \{1, 2, 3, 4, 5, 6, 7, 8, 9\} \] Range of \( R \) = set of all second elements \[ = \{1, 3, 5, 7, 9\} \]
Answer: Domain \( = \{1, 2, 3, 4, 5\} \), Codomain \( = \{1, 2, 3, 4, 5, 6, 7, 8, 9\} \), Range \( = \{1, 3, 5, 7, 9\} \)