👁 Preview — Study, Practice and Revise are open; mock tests and the rest of the syllabus unlock on subscription. Unlock all · ₹4,999
← Back to Algebra
Study mode

Relations

Learning objective
Learn the concept of relations, domain, range, and types of relations.

Understanding Relations in Algebra

In mathematics, particularly in set theory and algebra, a relation is a way to describe a connection or association between elements of two sets. Relations form the foundation for many advanced topics, including functions, equivalence relations, and orderings.

1. Definition of Relation

Given two sets \( A \) and \( B \), a relation \( R \) from \( A \) to \( B \) is a subset of the Cartesian product \( A \times B \). Formally,

\[R \subseteq A \times B\]

where

\[A \times B = { (a, b) : a \in A, b \in B }\]

Each element of \( R \) is an ordered pair \( (a, b) \) indicating that \( a \) is related to \( b \) under the relation \( R \).

2. Domain and Range of a Relation

- The domain of \( R \) is the set of all first elements of the ordered pairs in \( R \):

\[\text{Domain}(R) = { a \in A : \exists b \in B, (a, b) \in R }\]

- The range of \( R \) is the set of all second elements of the ordered pairs in \( R \):

\[\text{Range}(R) = { b \in B : \exists a \in A, (a, b) \in R }\]

3. Representation of Relations

Relations can be represented in multiple ways:

  • Set of ordered pairs: Explicitly listing all pairs in \( R \).
  • Matrix representation: Using a 0-1 matrix where rows correspond to elements of \( A \) and columns to elements of \( B \). A 1 indicates the pair is in the relation.
  • Graphical representation: Drawing arrows from elements of \( A \) to elements of \( B \) to indicate related pairs.
Example: Let \( A = {1, 2} \), \( B = {3, 4} \), and \( R = {(1, 3), (2, 4)} \).Matrix:   3 41 [1 0]2 [0 1]

4. Types of Relations

When \( A = B \), relations on \( A \) can have special properties:

  • Reflexive: \( \forall a \in A, (a, a) \in R \)
  • Symmetric: If \( (a, b) \in R \), then \( (b, a) \in R \)
  • Transitive: If \( (a, b) \in R \) and \( (b, c) \in R \), then \( (a, c) \in R \)

Relations satisfying all three properties are called equivalence relations. These partition the set into equivalence classes.

5. Set Operations Related to Relations

Relations are subsets of Cartesian products, so set operations apply:

  • Union: \( R_1 \cup R_2 \) contains pairs in either \( R_1 \) or \( R_2 \).
  • Intersection: \( R_1 \cap R_2 \) contains pairs common to both.
  • Difference: \( R_1 - R_2 \) contains pairs in \( R_1 \) but not in \( R_2 \).

Also, the power set \( \mathcal{P}(S) \) of a set \( S \) is the set of all subsets of \( S \). If \( S \) has \( n \) elements, then

\[|\mathcal{P}(S)| = 2^n\]

6. Important Properties of Sets and Relations

Some key properties and theorems useful in solving problems:

  • The null set \( \emptyset \) is a subset of every set.
  • Every set is a subset of itself.
  • If \( A \subseteq B \), then \( A \cup B = B \) and \( A \cap B = A \).
  • For finite sets, \( n(A \cup B) = n(A) + n(B) - n(A \cap B) \).
  • The maximum size of \( A \cap B \) is \( \min(n(A), n(B)) \).

7. Cartesian Product and Its Properties

The Cartesian product \( A \times B \) is the set of all ordered pairs \( (a, b) \) with \( a \in A \) and \( b \in B \). Its cardinality is

\[n(A \times B) = n(A) \times n(B)\]

Note that \( A \times B \neq B \times A \) in general, as ordered pairs are ordered.

8. Symmetric Difference of Sets

The symmetric difference \( A \oplus B \) is defined as

\[A \oplus B = (A - B) \cup (B - A)\]

It contains elements in either \( A \) or \( B \), but not in both.

--- A B A ∩ B---

9. Common Mistakes to Avoid

  • Confusing equality of sets with equivalence: sets are equal if they have exactly the same elements; they are equivalent if they have the same number of elements.
  • For power sets, remember the cardinality is \( 2^n \), not \( n^2 \) or any other formula.
  • When dealing with complements, always consider the universal set \( U \).
  • Remember that the null set \( \emptyset \) is a subset of every set, but it is not an element of every set.
---

Worked Examples

Example 1: Finding the domain and range of a relation

Problem: Let \( A = {1, 2, 3} \), \( B = {4, 5} \), and relation \( R = {(1, 4), (2, 5), (3, 4)} \). Find the domain and range of \( R \).

Solution:

Domain is the set of all first elements of ordered pairs:

\[ \text{Domain}(R) = {1, 2, 3} \]

Range is the set of all second elements:

\[ \text{Range}(R) = {4, 5} \]

Thus, domain = \( {1, 2, 3} \), range = \( {4, 5} \).

Difficulty: Easy

Example 2: Power set cardinality

Problem: Find the number of subsets of \( S = {a, b, c, d} \).

Solution:

Since \( n(S) = 4 \), the number of subsets is

\[ |\mathcal{P}(S)| = 2^4 = 16 \]

Difficulty: Easy

Example 3: Finding \( n(A \cap B) \) given \( n(A), n(B), n(A \cup B) \)

Problem: If \( n(A) = 37 \), \( n(B) = 25 \), and \( n(A \cup B) = 50 \), find \( n(A \cap B) \).

Solution: Using the formula

\[ n(A \cup B) = n(A) + n(B) - n(A \cap B) \]

Substitute values:

\[ 50 = 37 + 25 - n(A \cap B) \] \[ n(A \cap B) = 37 + 25 - 50 = 12 \]

Difficulty: Medium

Example 4: Maximum size of intersection

Problem: If \( n(A) = 4 \) and \( n(B) = 3 \), what is the maximum value of \( n(A \cap B) \)?

Solution:

The intersection cannot have more elements than the smaller set:

\[ \max n(A \cap B) = \min(n(A), n(B)) = 3 \]

Difficulty: Easy

Example 5: Finding complement of union

Problem: Let \( U = {1, 2, 3, 4, 5, 6, 7, 8, 9} \), \( A = {1, 2, 3, 4} \), and \( B = {2, 4, 6, 8} \). Find \( (A \cup B)' \) (complement relative to \( U \)).

Solution:

First find \( A \cup B \):

\[ A \cup B = {1, 2, 3, 4, 6, 8} \]

Complement relative to \( U \) is elements in \( U \) not in \( A \cup B \):

\[ (A \cup B)' = U - (A \cup B) = {5, 7, 9} \]

Difficulty: Medium

Example 6: Intersection of Cartesian products

Problem: If \( A = {1, 2, 5, 6} \) and \( B = {1, 2, 3} \), find \( (A \times B) \cap (B \times A) \).

Solution:

Pairs in \( A \times B \) are all \( (a,b) \) with \( a \in A \), \( b \in B \).

Pairs in \( B \times A \) are all \( (b,a) \) with \( b \in B \), \( a \in A \).

The intersection contains pairs \( (x,y) \) such that \( (x,y) \in A \times B \) and \( (x,y) \in B \times A \).

But \( (x,y) \in B \times A \) means \( x \in B \) and \( y \in A \).

So for \( (x,y) \) to be in both, \( x \in A \cap B \) and \( y \in A \cap B \).

Find \( A \cap B = {1, 2} \).

Thus, intersection is

\[ (A \times B) \cap (B \times A) = {(1,1), (1,2), (2,1), (2,2)} \]

Difficulty: Medium

Formula Bank

  • Relation: \( R \subseteq A \times B \)
  • Domain of \( R \): \( { a \in A : \exists b \in B, (a,b) \in R } \)
  • Range of \( R \): \( { b \in B : \exists a \in A, (a,b) \in R } \)
  • Power set cardinality: \( |\mathcal{P}(S)| = 2^{n(S)} \)
  • Union cardinality: \( n(A \cup B) = n(A) + n(B) - n(A \cap B) \)
  • Maximum intersection size: \( \max n(A \cap B) = \min(n(A), n(B)) \)
  • Cartesian product cardinality: \( n(A \times B) = n(A) \times n(B) \)
  • Symmetric difference: \( A \oplus B = (A - B) \cup (B - A) \)
  • Subset properties:
    \( \emptyset \subseteq A \), \( A \subseteq A \), \( A \subseteq B \Rightarrow A \cup B = B \), \( A \subseteq B \Rightarrow A \cap B = A \)
Curated videos per subtopic
Top YouTube explainers, AI-ranked for your exam and language. Unlocks with subscription.
Unlock

Try Practice next.

Progress tracking is paywalled — subscribe to mark subtopics as understood and save your streak.

Go to practice →
Ask a doubt
Relations · 10 free messages
Ask me anything about this subtopic. You have 10 free messages this session — chat history isn't saved in preview.