Subject: Class 12 Mathematics Chapter: Relations Topic: 1.1 Relations – Understand relations between two sets
Relations form the mathematical foundation of pairing objects from two collections. In everyday life, we constantly describe relationships between people, places, and things: a student belongs to a class, a book is written by an author, a city is the capital of a country. In mathematics, we express all such ideas precisely using the language of sets and ordered pairs. A relation between two sets selects a definite collection of ordered pairs whose first element comes from the first set and whose second element comes from the second set.
The study of relations is important because it leads naturally to functions, which are special relations. Before we can talk about injective or surjective functions, equivalence classes, or invertibility, we must first understand how relations are defined, how they can be represented, and what their domain, range, and codomain are. This chapter establishes that groundwork in a clear and rigorous manner.
In this note, we will define ordered pairs and Cartesian products, describe relations using set-builder form, roster form, and arrow diagrams, and then find the domain and range of a relation. We will also work through several solved examples that show how to apply these ideas to problems asked in board examinations.
An ordered pair is a pair of elements written as (a, b), where the order of the elements matters. Two ordered pairs (a, b) and (c, d) are equal if and only if a = c and b = d. This is the key difference from an unordered set, where order does not matter. For example, (2, 3) and (3, 2) are different ordered pairs, even though the set {2, 3} equals the set {3, 2}.
The Cartesian product of two non-empty sets A and B, written as A × B, is the set of all ordered pairs (a, b) such that a is in A and b is in B. In symbols:
If A has m elements and B has n elements, then A × B has m × n elements. For example, if A = {1, 2} and B = {x, y, z}, then A × B = {(1, x), (1, y), (1, z), (2, x), (2, y), (2, z)}, which contains 2 × 3 = 6 ordered pairs.
Important properties of the Cartesian product include:
Example 1: Let A = {1, 2} and B = {3, 4}. Write A × B and B × A. Solution: - Step 1: Pair every element of A with every element of B. - Step 2: A × B = {(1, 3), (1, 4), (2, 3), (2, 4)}. - Step 3: B × A = {(3, 1), (3, 2), (4, 1), (4, 2)}. - Step 4: Observe that A × B has 2 × 2 = 4 elements and the two products are not equal.
Example 2: If A = {1, 2, 3} and B = {a, b}, how many ordered pairs are in A × B? Also write three of them. Solution: The number of ordered pairs is 3 × 2 = 6. Three examples are (1, a), (2, b) and (3, a). The full set A × B is {(1, a), (1, b), (2, a), (2, b), (3, a), (3, b)}.
A relation R from a set A to a set B is a subset of the Cartesian product A × B. In other words, R is a set of ordered pairs (a, b) where the first element belongs to A and the second element belongs to B. We write a R b if (a, b) is in R, and we say that a is related to b. If A and B are the same set, we say R is a relation on A, meaning R is a subset of A × A.
A relation can be expressed in three main forms:
The domain of a relation R is the set of all first elements of the ordered pairs in R. The range of R is the set of all second elements of the ordered pairs in R. The codomain is the set B into which the second elements are drawn. Note that the range is always a subset of the codomain, but it may not equal the codomain.
For example, take the relation R = {(x, y) : x, y are natural numbers less than 6 and y = 2x}. Then:
Example 3: Let A = {1, 2, 3, 4, 5} and B = {1, 4, 9, 16, 25}. Define the relation R from A to B by R = {(x, y) : y = x squared}. Write R in roster form and find its domain and range. Solution: - Step 1: Square each element of A: 1 squared = 1, 2 squared = 4, 3 squared = 9, 4 squared = 16, 5 squared = 25. - Step 2: Roster form: R = {(1, 1), (2, 4), (3, 9), (4, 16), (5, 25)}. - Step 3: Domain = set of first elements = {1, 2, 3, 4, 5}. - Step 4: Range = set of second elements = {1, 4, 9, 16, 25}.
Example 4: Let R be a relation on the set A = {1, 2, 3, 4} defined by R = {(a, b) : a divides b}. Write R in roster form. Solution: - Step 1: Check each ordered pair (a, b) with a, b in A where a divides b. - Step 2: 1 divides 1, 2, 3, 4; 2 divides 2, 4; 3 divides 3; 4 divides 4. - Step 3: Roster form: R = {(1, 1), (1, 2), (1, 3), (1, 4), (2, 2), (2, 4), (3, 3), (4, 4)}. - Step 4: Domain of R = {1, 2, 3, 4}, Range of R = {1, 2, 3, 4}.
To find the domain of a relation, collect all the first coordinates of the ordered pairs and remove any repetitions. To find the range, collect all the second coordinates and remove repetitions. When a relation is given in set-builder form, we must first generate the ordered pairs before we can list the domain and range.
A common examination problem is to build a relation from a given condition and then determine its domain and range. Another common problem asks whether a given collection of ordered pairs forms a valid relation, which is always true because any subset of A × B is a relation. The number of relations from a set with m elements to a set with n elements equals 2 raised to the power of (m × n), since every subset of A × B is a relation.
Example 5: Let R be a relation on the set of natural numbers defined by R = {(x, y) : y = 3x and x < 4}. Write R in roster form and find its domain and range. Solution: - Step 1: Since x is a natural number and x < 4, x can be 1, 2, or 3. - Step 2: Compute y = 3x for each value: x = 1 gives y = 3, x = 2 gives y = 6, x = 3 gives y = 9. - Step 3: Roster form: R = {(1, 3), (2, 6), (3, 9)}. - Step 4: Domain = {1, 2, 3} and Range = {3, 6, 9}.
Example 6: A relation R is defined on the set A = {1, 2, 3, 4, 5} by R = {(x, y) : x + y is even}. Write R in roster form. Solution: - Step 1: The sum x + y is even when x and y have the same parity, that is, both are even or both are odd. - Step 2: The odd elements are 1, 3, 5 and the even elements are 2, 4. - Step 3: Pairs of odds give even sums: (1, 1), (1, 3), (1, 5), (3, 1), (3, 3), (3, 5), (5, 1), (5, 3), (5, 5). - Step 4: Pairs of evens give even sums: (2, 2), (2, 4), (4, 2), (4, 4). - Step 5: R = {(1, 1), (1, 3), (1, 5), (3, 1), (3, 3), (3, 5), (5, 1), (5, 3), (5, 5), (2, 2), (2, 4), (4, 2), (4, 4)}.
Example 7: How many relations are possible from a set A of 3 elements to a set B of 2 elements? Solution: The number of elements in A × B is 3 × 2 = 6. Since every subset of A × B is a relation, the number of relations is 2 raised to the power of 6, which equals 64.
| Concept | Definition | Example |
|---|---|---|
| Ordered pair | Pair (a, b) where order matters | (2, 3) is not equal to (3, 2) |
| Cartesian product | A × B = {(a, b) : a in A, b in B} | A = {1, 2}, B = {x, y} gives 4 pairs |
| Relation | A subset of A × B | R = {(1, x), (2, y)} |
| Domain | Set of all first elements of R | For R = {(1, 3), (2, 6)}, domain is {1, 2} |
| Range | Set of all second elements of R | For R = {(1, 3), (2, 6)}, range is {3, 6} |
| Codomain | The full set B of second coordinates | B = {3, 6, 9} |
| Situation | Number of objects | Formula |
|---|---|---|
| Ordered pairs in A × B | m | |
| Relations from A to B | m and n elements | 2 raised to (m × n) |
| Relations on set A | m elements | 2 raised to (m squared) |
| Relations on the empty set | 0 elements | 1 relation only |
flowchart TD
A[Relations] --> B[Cartesian Product A x B]
A --> C[Forms of a Relation]
A --> D[Domain and Range]
B --> E[Ordered Pairs a, b]
B --> F[Number m x n]
C --> G[Roster Form]
C --> H[Set Builder Form]
C --> I[Arrow Diagram]
D --> J[Domain: First Elements]
D --> K[Range: Second Elements]
D --> L[Codomain: Set B]
C --> M[Number of Relations 2 to power m x n]
Relations are one of the most fundamental ideas in mathematics because they allow us to connect elements of one set to elements of another set in a precise way. By mastering ordered pairs, Cartesian products, and the roster, set-builder, and arrow diagram representations, a student gains the ability to model a wide variety of real-world situations mathematically. Finding the domain and range of a relation, and counting the number of possible relations, are skills that are tested repeatedly in Class 12 board examinations. Since functions are merely special relations, a solid understanding of this chapter directly prepares the student for the study of one-one and onto functions, composition, and invertibility. Revising the tables and mind map before the examination ensures quick recall of all the essential formulas and definitions.