Definition of a Relation
A relation R from a non-empty set A to a non-empty set B is a subset of the Cartesian product . This subset is created by defining a relationship between the first element and the second element of the ordered pairs in .
If an element 'a' from set A is related to an element 'b' from set B, we write . Here, 'b' is called the image of 'a'.
Domain, Range, and Codomain
A relation has three important components:
- Domain: The set of all first elements of the ordered pairs in a relation R is called the domain.
- Range: The set of all second elements (images) of the ordered pairs in a relation R is called the range.
- Codomain: The entire set B is called the codomain of the relation R from A to B.
- An important point is that the Range is always a subset of the Codomain (Range Codomain).
Total Number of Relations
The total number of relations that can be defined from a set A to a set B is the number of possible subsets of . If and , then . The total number of relations is .
Example 1: Finding Domain and Range
Question: Let . Define a relation R from A to A by . Write down the domain, codomain, and range of R.
Solution:
By the definition, we find the pairs where the second element is one more than the first:
(Note: is not included because 7 is not in set A).
- Domain: The set of all first elements is .
- Range: The set of all second elements is .
- Codomain: The entire set A is the codomain, which is .