Example 1
Question: Let \( \mathbb{N} \) be the set of natural numbers. A relation R is defined on \( \mathbb{N} \) by \( R = \{(x, y) : y = 3x,\; x, y \in \mathbb{N}\} \). Find the domain, codomain, and range of R. Is R a function?
Solution: Step 1 — Write out several ordered pairs of R by substituting natural number values of x. For \( x = 1 \): \( y = 3(1) = 3 \), giving the pair \( (1, 3) \). For \( x = 2 \): \( y = 3(2) = 6 \), giving the pair \( (2, 6) \). For \( x = 3 \): \( y = 3(3) = 9 \), giving the pair \( (3, 9) \). So \( R = \{(1, 3),\, (2, 6),\, (3, 9),\, (4, 12),\, \ldots\} \). Step 2 — Identify the Domain. The domain is the set of all first elements of the ordered pairs in R. Since x ranges over all natural numbers, the domain is \( \mathbb{N} \) itself, i.e., \( \{1, 2, 3, 4, \ldots\} \). Step 3 — Identify the Codomain. The codomain is the set within which y is required to lie. Since the relation is defined with \( y \in \mathbb{N} \), the codomain is \( \mathbb{N} \). Step 4 — Identify the Range. The range is the set of all actual y-values produced. Since \( y = 3x \) and \( x \in \mathbb{N} \), the y-values are exactly the multiples of 3 that are natural numbers: \[ \text{Range} = \{3, 6, 9, 12, \ldots\} \] This is a proper subset of \( \mathbb{N} \), so the range is strictly smaller than the codomain. Step 5 — Check whether R is a function. For R to be a function from \( \mathbb{N} \) to \( \mathbb{N} \), every \( x \in \mathbb{N} \) must have a unique image \( y \in \mathbb{N} \). For any \( x \in \mathbb{N} \), \( y = 3x \) gives exactly one value of y, and since \( 3x \in \mathbb{N} \) whenever \( x \in \mathbb{N} \), each x has a unique image in \( \mathbb{N} \). Therefore R is a function.
Answer: Domain = \( \mathbb{N} \), Codomain = \( \mathbb{N} \), Range = \( \{3, 6, 9, 12, \ldots\} \) (multiples of 3). Yes, R is a function.
Example 2
Question: Let \( \mathbb{N} \) be the set of natural numbers. A relation R is defined by \( R = \{(x, y) : y = x^2 + 1,\; x, y \in \mathbb{N}\} \). Find the domain, codomain, and range of R. Is R a function?
Solution: Step 1 — Write out several ordered pairs by substituting natural number values of x. For \( x = 1 \): \( y = 1^2 + 1 = 2 \), giving \( (1, 2) \). For \( x = 2 \): \( y = 2^2 + 1 = 5 \), giving \( (2, 5) \). For \( x = 3 \): \( y = 3^2 + 1 = 10 \), giving \( (3, 10) \). For \( x = 4 \): \( y = 4^2 + 1 = 17 \), giving \( (4, 17) \). So \( R = \{(1, 2),\, (2, 5),\, (3, 10),\, (4, 17),\, \ldots\} \). Step 2 — Identify the Domain. The domain consists of all first elements used. Since x ranges over all of \( \mathbb{N} \), the domain is \( \mathbb{N} = \{1, 2, 3, 4, \ldots\} \). Step 3 — Identify the Codomain. The codomain is \( \mathbb{N} \), as the relation specifies \( y \in \mathbb{N} \). Step 4 — Identify the Range. The range is the set of all second elements actually produced. Since \( y = x^2 + 1 \) and \( x \in \mathbb{N} \), the range is: \[ \text{Range} = \{2, 5, 10, 17, 26, \ldots\} \] In general, the range is \( \{n^2 + 1 : n \in \mathbb{N}\} \). This is a proper subset of \( \mathbb{N} \) (for example, \( 3 \in \mathbb{N} \) but \( 3 \) is not in the range since \( x^2 + 1 = 3 \) gives \( x = \sqrt{2} \notin \mathbb{N} \)). Step 5 — Check whether R is a function. For R to be a function from \( \mathbb{N} \) to \( \mathbb{N} \), every \( x \in \mathbb{N} \) must map to exactly one \( y \in \mathbb{N} \). For any \( x \in \mathbb{N} \), the rule \( y = x^2 + 1 \) produces exactly one value of y. Moreover, since x is a natural number, \( x^2 \ge 1 \), so \( y = x^2 + 1 \ge 2 \), which means \( y \in \mathbb{N} \). Each element of the domain has a unique image in the codomain, so R is a function.
Answer: Domain = \( \mathbb{N} \), Codomain = \( \mathbb{N} \), Range = \( \{2, 5, 10, 17, 26, \ldots\} \) i.e. \( \{n^2 + 1 : n \in \mathbb{N}\} \). Yes, R is a function.