Relations
Relations and Binary Operations
Cartesian Products & Basic Relations
Ordered Pairs and Cartesian ProductsTopic 1
An ordered pair $(a, b)$ is a pair of elements where the order of components is strictly preserved, meaning $(a, b) = (c, d) \iff a = c$ and $b = d$. The Cartesian Product of two sets $A$ and $B$, denoted as $A \times B$, is the set of all possible ordered pairs such that the first component belongs to $A$ and the second belongs to $B$: $A \times B = \{(a, b) : a \in A \text{ and } b \in B\}$. Generally, $A \times B \neq B \times A$ unless $A = B$ or one of the sets is empty. If $|A| = m$ and $|B| = n$, the total cardinality of the Cartesian product is $|A \times B| = m \times n$.
If $A = \{1, 2, 3\}$ and $B = \{x \in \mathbb{R} : x^2 - 5x + 6 = 0\}$, find the Cartesian product set $A \times B$ and compute its cardinality.
Show solution
First, find the elements of set $B$ by solving the defining quadratic equation: \[ x^2 - 5x + 6 = 0 \implies (x-2)(x-3) = 0 \implies x = 2 \text{ or } x = 3 \] Since both roots are real numbers, write $B$ in roster form: \[ B = \{2, 3\} \] Now, construct the Cartesian product $A \times B$ by systematically pairing every element of $A = \{1, 2, 3\}$ with every element of $B = \{2, 3\}$: \[ A \times B = \{(1, 2), (1, 3), (2, 2), (2, 3), (3, 2), (3, 3)\} \] Calculate the cardnalities: $|A| = 3$ and $|B| = 2$. Using the product theorem: \[ |A \times B| = |A| \times |B| = 3 \times 2 = 6 \] This perfectly matches the number of ordered pairs listed explicitly above. Final Answer: $A \times B = \{(1, 2), (1, 3), (2, 2), (2, 3), (3, 2), (3, 3)\}$ with cardinality $6$.
Let $A$ and $B$ be two sets such that $A \times B$ contains exactly 6 elements. If three elements of $A \times B$ are known to be $(1, x)$, $(2, y)$, and $(3, x)$, determine the complete sets $A$ and $B$, and find the remaining elements of $A \times B$.
Show solution
- First coordinates: $1, 2, 3 \implies \{1, 2, 3\} \subseteq A$
- Second coordinates: $x, y \implies \{x, y\} \subseteq B$
Prove that for any three sets $A, B$, and $C$, the identity $A \times (B \cap C) = (A \times B) \cap (A \times C)$ holds true.
Show solution
Let us use logical containment steps to show that an arbitrary ordered pair $(r, s)$ belonging to the left-hand side implies it belongs to the right-hand side: \[ \text{Let } (r, s) \in A \times (B \cap C) \] By the definition of a Cartesian product, the first element belongs to the first set, and the second element belongs to the second set: \[ r \in A \quad \text{and} \quad s \in (B \cap C) \] Apply the definition of a set intersection to the second component: \[ r \in A \quad \text{and} \quad (s \in B \text{ and } s \in C) \] Using the logical laws of conjunction, we can distribute the statement $r \in A$ across both terms inside the parentheses: \[ (r \in A \text{ and } s \in B) \quad \text{and} \quad (r \in A \text{ and } s \in C) \] Convert these individual paired statements back into Cartesian product membership statements: \[ (r, s) \in A \times B \quad \text{and} \quad (r, s) \in A \times C \] By the definition of an intersection, since the ordered pair belongs to both product sets simultaneously, it belongs to their intersection: \[ (r, s) \in (A \times B) \cap (A \times C) \] Thus, the left-hand side is a subset of the right-hand side. Reversing the steps shows they are equal. Final Answer: Proved.
Mathematical Relation, Domain, Range & CodomainTopic 2
A relation $R$ from a set $A$ to a set $B$ is formally defined as any subset of the Cartesian product $A \times B$ (i.e., $R \subseteq A \times B$). The Domain of $R$ is the set of all first components of the ordered pairs belonging to $R$. The Range of $R$ is the set of all second components of those ordered pairs. Set $B$ itself is termed the Codomain of the relation. Crucially, the Range is always a subset of the Codomain ($\text{Range} \subseteq \text{Codomain}$). Since any subset of $A \times B$ is a relation, the total number of distinct relations that can be defined from $A$ to $B$ is given by $2^{|A| \times |B|}$.
Let $A = \{1, 2, 3, 4, 5\}$ and let a relation $R$ be defined on $A$ by the mathematical rule $R = \{(x, y) : y = x + 2\}$. Write $R$ in roster form, and find its domain and range.
Show solution
- For $x = 1$: $y = 1 + 2 = 3 \in A \implies (1, 3) \in R$
- For $x = 2$: $y = 2 + 2 = 4 \in A \implies (2, 4) \in R$
- For $x = 3$: $y = 3 + 2 = 5 \in A \implies (3, 5) \in R$
- For $x = 4$: $y = 4 + 2 = 6 \notin A \implies$ invalid pair.
- For $x = 5$: $y = 5 + 2 = 7 \notin A \implies$ invalid pair.
- Domain: The set of all first coordinates $\implies \text{Domain}(R) = \{1, 2, 3\}$.
- Range: The set of all second coordinates $\implies \text{Range}(R) = \{3, 4, 5\}$.
If $|A| = 3$ and $|B| = 2$, find (a) the total number of distinct relations from $A$ to $B$, and (b) the number of non-empty relations.
Show solution
Step 1: Compute the cardinality of the Cartesian product $A \times B$: \[ |A \times B| = |A| \times |B| = 3 \times 2 = 6 \] Step 2: A relation is defined as any subset of the Cartesian product. Therefore, the total number of relations equals the total number of subsets that can be formed from $A \times B$: \[ \text{Total Relations} = 2^{|A \times B|} = 2^6 = 64 \] Step 3: To find the number of non-empty relations, subtract the single empty relation ($\emptyset$) from the total count: \[ \text{Non-empty Relations} = 2^6 - 1 = 64 - 1 = 63 \] Final Answer: (a) Total Relations $= 64$, (b) Non-empty Relations $= 63$.
Find the domain of the real-valued relation $R = \{(x, y) : y = \log_{10}(x^2 - 4x + 3)\}$.
Show solution
For an ordered pair $(x, y)$ to be real and well-defined, the logarithmic function must exist. This requires the argument of the logarithm to be strictly positive: \[ x^2 - 4x + 3 > 0 \] Factor the quadratic expression: \[ (x-1)(x-3) > 0 \] Using the wavy-curve method, the product is strictly positive outside the roots $x = 1$ and $x = 3$. This gives the domain intervals: \[ x \in (-\infty, 1) \cup (3, \infty) \] Therefore, the domain of the relation is the set of all real numbers except the closed interval $[1, 3]$. Final Answer: Domain $\in (-\infty, 1) \cup (3, \infty)$.
Classification & Types of Relations
Core Trivial Relations (Empty, Universal & Identity)Topic 1
Every set admits three fundamental baseline relations. The Empty Relation ($\emptyset \subseteq A \times A$) contains zero elements, meaning no element is related to any other. The Universal Relation ($R_U = A \times A$) relates every element to every element in the set. The Identity Relation ($\mathcal{I}_A = \{(a, a) : \forall a \in A\}$) relates each element *only to itself*. A critical distinction in JEE is that an identity relation allows *only* diagonal pairs $(a, a)$, whereas a reflexive relation allows additional non-diagonal pairs as long as all diagonal pairs are present.
Let $A = \{1, 2, 3\}$. Write out explicitly in roster form: (a) the Identity relation $\mathcal{I}_A$, and (b) the Universal relation $R_U$ on set $A$.
Show solution
- Part (a): The identity relation requires every element of set $A$ to be mapped only to itself. Since the elements are $1, 2,$ and $3$, we construct the diagonal ordered pairs: \[ \mathcal{I}_A = \{(1, 1), (2, 2), (3, 3)\} \] No additional non-diagonal elements can be included in an identity relation.
- Part (b): The universal relation is the complete Cartesian product $A \times A$. It includes every possible pair that can be formed from the elements: \[ R_U = \{(1, 1), (1, 2), (1, 3), (2, 1), (2, 2), (2, 3), (3, 1), (3, 2), (3, 3)\} \]
Let a relation $R$ be defined on the set of all real numbers $\mathbb{R}$ by the rule $R = \{(x, y) : x^2 + y^2 + 1 = 0\}$. Prove that $R$ is an empty relation.
Show solution
For an ordered pair $(x, y)$ to belong to the relation $R$, the real coordinates must satisfy the algebraic condition: \[ x^2 + y^2 + 1 = 0 \implies x^2 + y^2 = -1 \] Let us analyze the values on the left-hand side. For any real numbers $x, y \in \mathbb{R}$, squares of real numbers are always non-negative ($x^2 \ge 0$ and $y^2 \ge 0$). Thus, their sum must be non-negative: \[ x^2 + y^2 \ge 0 \] However, the equation requires the sum to equal $-1$, which is strictly negative. This is a mathematical contradiction over the real field. Therefore, no ordered pairs of real numbers satisfy the condition, so the relation contains zero elements. \[ R = \emptyset \] This proves that $R$ is an empty relation. Final Answer: Proved ($R = \emptyset$).
Determine if the relation $R = \{(1, 1), (2, 2), (3, 3), (1, 2)\}$ defined on the set $A = \{1, 2, 3\}$ is an identity relation.
Show solution
Let us check the relation against the mathematical definition of an identity relation: An identity relation $\mathcal{I}_A$ on a set $A$ must contain exactly the ordered pairs $(a, a)$ for every $a \in A$, and no other pairs. For $A = \{1, 2, 3\}$, the required identity relation is: \[ \mathcal{I}_A = \{(1, 1), (2, 2), (3, 3)\} \] Let us look at the given relation $R$: it contains all the required diagonal elements, but it also contains the non-diagonal ordered pair $(1, 2)$. Because of the presence of $(1, 2)$, $R \neq \mathcal{I}_A$. Therefore, it is not an identity relation. (Note: It is, however, classified as a reflexive relation). Final Answer: No, $R$ is not an identity relation due to the presence of the pair $(1, 2)$.
Advanced Relational Properties (Reflexive, Symmetric & Transitive)Topic 2
- Reflexive: A relation $R$ on a set $A$ is reflexive if every element is related to itself: $(a, a) \in R$ for all $a \in A$.
- Symmetric: $R$ is symmetric if order can be reversed: if $(a, b) \in R \implies (b, a) \in R$ for all $a, b \in A$.
- Transitive: $R$ is transitive if relationships chain together: if $(a, b) \in R$ and $(b, c) \in R \implies (a, c) \in R$ for all $a, b, c \in A$.
Let $R$ be a relation defined on the set of all integers $\mathbb{Z}$ by the rule $R = \{(a, b) : a - b \text{ is divisible by } 3\}$. Determine if $R$ is reflexive, symmetric, and transitive.
Show solution
- Reflexive Test: Check if $(a, a) \in R$ for any integer $a \in \mathbb{Z}$. Calculate the defining difference: $a - a = 0$. Since $0$ is perfectly divisible by $3$ ($0 = 3 \times 0$), the condition is met. Thus, $R$ is Reflexive.
- Symmetric Test: Assume $(a, b) \in R$. This means $a - b$ is a multiple of $3$: \[ a - b = 3k \quad \text{where } k \in \mathbb{Z} \] Now analyze the reversed pair $(b, a)$ by factoring out $-1$: \[ b - a = -(a - b) = -3k = 3(-k) \] Since $-k$ is also an integer, $b - a$ is a multiple of 3, so $(b, a) \in R$. Thus, $R$ is Symmetric.
- Transitive Test: Assume $(a, b) \in R$ and $(b, c) \in R$ simultaneously. This gives two equations: \[ a - b = 3k_1 \quad \text{and} \quad b - c = 3k_2, \quad \text{where } k_1, k_2 \in \mathbb{Z} \] To find the relationship between $a$ and $c$, add the two equations together: \[ (a - b) + (b - c) = 3k_1 + 3k_2 \implies a - c = 3(k_1 + k_2) \] Since $k_1 + k_2$ is an integer, the difference $a - c$ is a multiple of $3$, which means $(a, c) \in R$. Thus, $R$ is Transitive.
Let $A = \{1, 2, 3\}$. Analyze the transitivity of the relation $R = \{(1, 2), (3, 4)\}$ defined on $A \cup \{4\}$.
Show solution
Let us test the pairs in our relation:
- We have the ordered pair $(1, 2) \in R$. Are there any ordered pairs in $R$ that start with the number 2? No.
- We have the ordered pair $(3, 4) \in R$. Are there any ordered pairs in $R$ that start with the number 4? No.
Determine if the relation $R = \{(a, b) : a \le b^2\}$ defined on the set of real numbers $\mathbb{R}$ is reflexive.
Show solution
- If $a = 2$: $2 \le 2^2 \implies 2 \le 4$ (True)
- If $a = 0.5$: Let us check a fractional value between 0 and 1: \[ 0.5 \le (0.5)^2 \implies 0.5 \le 0.25 \]
Equivalence Relations, Anti-Symmetry & Partial OrdersTopic 3
- Equivalence Relation: A relation that is Reflexive, Symmetric, and Transitive simultaneously. Equivalence relations partition a set into disjoint Equivalence Classes, where all elements in a class are related to each other.
- Anti-Symmetric: A relation is anti-symmetric if elements can only be related back-and-forth if they are the exact same element: if $(a, b) \in R$ and $(b, a) \in R \implies a = b$.
- Partial Order Relation: A relation that is Reflexive, Anti-Symmetric, and Transitive simultaneously (e.g., the ``less than or equal to'' relation $\le$ on real numbers).
Prove that the relation $R = \{(a, b) \in \mathbb{R} \times \mathbb{R} : a \le b\}$ is a partial order relation.
Show solution
- Reflexive: For any real number $a \in \mathbb{R}$, $a \le a$ is always true. Therefore, $(a, a) \in R$ for all $a$, so the relation is reflexive.
- Anti-Symmetric: Assume that $(a, b) \in R$ and $(b, a) \in R$ simultaneously. This gives two mathematical inequalities: \[ a \le b \quad \text{and} \quad b \le a \] The only way for both inequalities to be true at the same time is if the two numbers are exactly equal: \[ a = b \] This satisfies the definition of anti-symmetry.
- Transitive: Assume that $(a, b) \in R$ and $(b, a) \in R$. This gives: \[ a \le b \quad \text{and} \quad b \le c \implies a \le c \] This means $(a, c) \in R$, so the relation is transitive.
Let an equivalence relation $R$ be defined on the set of integers $\mathbb{Z}$ by the rule $a \equiv b \pmod 4$ (meaning $a-b$ is a multiple of 4). Find the equivalence class $[0]$.
Show solution
By definition, the equivalence class $[a]$ is the set of all elements in the domain that are related to $a$ under the relation $R$: \[ [0] = \{x \in \mathbb{Z} : (x, 0) \in R\} \] Substitute the given definition of the relation into this set format: \[ x - 0 = 4k \implies x = 4k, \quad \text{where } k \in \mathbb{Z} \] This means the equivalence class $[0]$ is the set of all integers that are multiples of $4$. Write this in roster form: \[ [0] = \{\dots, -8, -4, 0, 4, 8, \dots\} \] Notice that this relation partitions the integers into exactly four disjoint equivalence classes: $[0], [1], [2],$ and $[3]$. Final Answer: $[0] = \{4k : k \in \mathbb{Z}\} = \{\dots, -4, 0, 4, \dots\}$.
Determine if the identity relation $\mathcal{I}_A$ on a set $A$ is an equivalence relation and a partial order relation simultaneously.
Show solution
- It is Reflexive because $(a, a) \in \mathcal{I}_A$ for all $a \in A$.
- It is Symmetric because if $(a, a) \in \mathcal{I}_A$, its reversed pair is also $(a, a) \in \mathcal{I}_A$.
- It is Anti-Symmetric because if $(a, b) \in \mathcal{I}_A$ and $(b, a) \in \mathcal{I}_A$, the only elements present are diagonal pairs where $a=b$, which satisfies the condition.
- It is Transitive because if $(a, a) \in \mathcal{I}_A$ and $(a, a) \in \mathcal{I}_A$, chaining them together returns $(a, a) \in \mathcal{I}_A$.
Advanced Operations & Combinatorics
Inverse and Composition of RelationsTopic 1
Relations can be inverted or combined using composition rules. The Inverse Relation $R^{-1}$ is formed by swapping the coordinates of every ordered pair in $R$: $R^{-1} = \{(b, a) : (a, b) \in R\}$. This operation swaps the domain and range: $\text{Domain}(R^{-1}) = \text{Range}(R)$ and $\text{Range}(R^{-1}) = \text{Domain}(R)$. The Composition of two relations $R$ and $S$, denoted as $S \circ R$, chains pairs together through a shared intermediate element: $S \circ R = \{(a, c) : \exists b \text{ such that } (a, b) \in R \text{ and } (b, c) \in S\}$. Note the order of composition: $S \circ R$ means applying relation $R$ first, and then applying relation $S$.
Given the relation $R = \{(1, 2), (3, 4), (5, 6)\}$, find its inverse relation $R^{-1}$ and verify the domain-range swap property.
Show solution
Step 1: Find $R^{-1}$ by reversing the coordinates of each ordered pair in $R$: \[ R^{-1} = \{(2, 1), (4, 3), (6, 5)\} \] Step 2: Find the domain and range of the original relation $R$: \[ \text{Domain}(R) = \{1, 3, 5\} \quad \text{and} \quad \text{Range}(R) = \{2, 4, 6\} \] Step 3: Find the domain and range of the inverted relation $R^{-1}$: \[ \text{Domain}(R^{-1}) = \{2, 4, 6\} \quad \text{and} \quad \text{Range}(R^{-1}) = \{1, 3, 5\} \] Comparing the sets, we can see that $\text{Domain}(R^{-1}) = \text{Range}(R)$ and $\text{Range}(R^{-1}) = \text{Domain}(R)$. The swap property is verified. Final Answer: $R^{-1} = \{(2, 1), (4, 3), (6, 5)\}$.
Let two relations be defined as $R = \{(1, a), (2, b), (3, a)\}$ and $S = \{(a, \alpha), (b, \beta), (b, \gamma)\}$. Find the composition relation set $S \circ R$.
Show solution
- Start with $1 \in \text{Domain}(R)$: we have $(1, a) \in R$. Now look for pairs in $S$ that start with $a$: we find $(a, \alpha) \in S$. Chaining them together gives: $(1, \alpha) \in S \circ R$.
- Start with $2 \in \text{Domain}(R)$: we have $(2, b) \in R$. Look for pairs in $S$ that start with $b$: we find $(b, \beta) \in S$ and $(b, \gamma) \in S$. Chaining them together gives two pairs: $(2, \beta) \in S \circ R$ and $(2, \gamma) \in S \circ R$.
- Start with $3 \in \text{Domain}(R)$: we have $(3, a) \in R$. Look for pairs in $S$ that start with $a$: we find $(a, \alpha) \in S$. Chaining them together gives: $(3, \alpha) \in S \circ R$.
Prove that for any relation $R$, the identity property $(R^{-1})^{-1} = R$ holds true.
Show solution
Let us use double containment analysis based on the definition of coordinate swapping: \[ \text{Let } (a, b) \in (R^{-1})^{-1} \] By the definition of an inverse relation, if an ordered pair belongs to the inverse of a relation, its reversed pair must belong to the relation itself: \[ (b, a) \in R^{-1} \] Apply the inverse relation definition a second time to this statement: \[ (a, b) \in R \] This shows that any ordered pair belonging to $(R^{-1})^{-1}$ must also belong to $R$. Reversing the logical steps shows that any pair in $R$ belongs to $(R^{-1})^{-1}$. Therefore, the sets are identical. Final Answer: Proved.
Advanced Counting Combinatorics formulasTopic 2
- Total Relations: There are $n^2$ total positions in the grid layout, so the number of distinct relations is $2^{n^2}$.
- Reflexive Relations: The $n$ diagonal elements must be present ($1$ choice), and the remaining $n^2 - n$ non-diagonal entries can be independently included or excluded ($2$ choices). Thus, the number of reflexive relations is $2^{n^2 - n}$.
- Symmetric Relations: The $n$ diagonal elements have $2$ choices each, and the $\frac{n^2 - n}{2}$ pairs of symmetric non-diagonal blocks also have $2$ choices each. Thus, the number of symmetric relations is $2^{\frac{n(n+1)}{2}}$.
- Equivalence Relations: Counted using Bell Numbers ($B_n$), which are calculated using the recurrence relation $B_{n+1} = \sum_{k=0}^{n} \binom{n}{k} B_k$, where $B_0 = 1$.
Find the total number of (a) reflexive relations, and (b) symmetric relations that can be defined on a finite set containing exactly 3 elements.
Show solution
- Part (a): Apply the counting formula for reflexive relations: \[ \text{Reflexive Count} = 2^{n^2 - n} \] Substitute $n = 3$ into the exponent: \[ \text{Reflexive Count} = 2^{3^2 - 3} = 2^{9 - 3} = 2^6 = 64 \]
- Part (b): Apply the counting formula for symmetric relations: \[ \text{Symmetric Count} = 2^{\frac{n(n+1)}{2}} \] Substitute $n = 3$ into the formula: \[ \text{Symmetric Count} = 2^{\frac{3(3+1)}{2}} = 2^{\frac{3 \times 4}{2}} = 2^6 = 64 \]
Calculate the total number of distinct equivalence relations that can be formed on the set $A = \{1, 2, 3\}$ using Bell numbers properties.
Show solution
- For $n = 0$: $B_0 = 1$
- For $n = 1$: $B_1 = \binom{0}{0} B_0 = 1 \times 1 = 1$
- For $n = 2$: Compute $B_2$ using the values of $B_0$ and $B_1$: \[ B_2 = \binom{1}{0}B_0 + \binom{1}{1}B_1 = 1(1) + 1(1) = 2 \]
- For $n = 3$: Compute $B_3$ using the values of $B_0, B_1,$ and $B_2$: \[ B_3 = \binom{2}{0}B_0 + \binom{2}{1}B_1 + \binom{2}{2}B_2 \] Substitute the values of the binomial coefficients and the lower Bell numbers: \[ B_3 = 1(1) + 2(1) + 1(2) = 1 + 2 + 2 = 5 \]
Find the number of binary relations on a set with $n$ elements that are both reflexive and symmetric at the same time.
Show solution
- The relation must be reflexive: This means all $n$ diagonal elements $(a, a)$ must be included in the relation. There is exactly $1$ choice for each diagonal position.
- The relation must be symmetric: This means for any non-diagonal position $(a, b)$, its symmetrical counterpart $(b, a)$ must mirror its inclusion status. They must either be both included or both excluded. The total number of such non-diagonal pairs is given by: \[ \text{Number of Pairs} = \frac{n^2 - n}{2} \] Each pair has exactly $2$ choices (either both are in the relation, or both are out).
Ready to test yourself?
Attempt the full timed mock tests — Main & Advanced level.
Start Mock Test 1 →