Introduction to Relations
A relation R from a non-empty set A to a non-empty set B is a subset of the Cartesian product . If a relation is from a set A to itself, we call it a relation on A. An element 'a' is related to an element 'b' under the relation R if , which is written as .
- Example: If , a relation R on A can be defined as . Here, .
-Domain: The set of all first elements of the ordered pairs in a relation R. Domain .
-Range: The set of all second elements of the ordered pairs in a relation R. Range .
Types of Relations
1. Empty Relation
A relation R on a set A is an empty relation if no element of A is related to any other element of A. It is the empty set, , which is a subset of .
- Example: Let A be the set of all students in a boys' school. Let the relation R on A be defined as . Since no student can be a sister of another student in a boys' school, .
2. Universal Relation
A relation R on a set A is a universal relation if each element of A is related to every element of A. It is the entire Cartesian product, .
- Example: Let . Let R be defined as . Since the absolute difference between any two numbers in A is always greater than or equal to zero, R contains all possible ordered pairs. Thus, .
Core Types of Relations
For a relation R on a set A:
1. Reflexive Relation
A relation R is reflexive if every element of A is related to itself.
- Example: The relation 'is less than or equal to' () on the set of integers is reflexive since is always true.
- Non-Example: The relation 'is the father of' on a set of people is not reflexive as no person is their own father.
2. Symmetric Relation
A relation R is symmetric if whenever 'a' is related to 'b', then 'b' is also related to 'a'.
- Example: The relation 'is a cousin of' is symmetric. If A is B's cousin, B is A's cousin.
- Non-Example: The relation 'is greater than' () is not symmetric. If , it does not imply .
3. Transitive Relation
A relation R is transitive if whenever 'a' is related to 'b' and 'b' is related to 'c', then 'a' is also related to 'c'.
- Example: The relation 'is an ancestor of' is transitive. If A is an ancestor of B, and B is an ancestor of C, then A is an ancestor of C.
- Non-Example: The relation 'is the mother of' is not transitive. If A is the mother of B, and B is the mother of C, then A is the grandmother of C, not the mother.
Equivalence Relation
A relation R on a set A is an equivalence relation if it is reflexive, symmetric, and transitive.
Example: Let T be the set of all triangles. The relation R defined as 'is similar to' is an equivalence relation.
- Reflexive: Every triangle is similar to itself.
- Symmetric: If is similar to , then is similar to .
- Transitive: If is similar to and is similar to , then is similar to .
Example: The relation 'is congruent to' on the set of all triangles is also an equivalence relation.
Example: Let the relation R on the set of integers be defined by if is divisible by 3.
- Reflexive: , which is divisible by 3. So .
- Symmetric: If is divisible by 3, then . So , which is also divisible by 3. So .
- Transitive: If and , then adding them gives , which is divisible by 3. So .
- Since R is reflexive, symmetric, and transitive, it is an equivalence relation.
Example 1: Checking Properties for a Finite Set
Question: Let R be the relation in the set given by . Check if R is reflexive, symmetric, or transitive.
Explanation:
Reflexivity: A relation is reflexive if for every element .
- We must check for the pairs (1,1), (2,2), (3,3), and (4,4).
- Looking at the set R, we find that (1,1), (2,2), (3,3), and (4,4) are all present.
- Therefore, R is reflexive.
Symmetry: A relation is symmetric if for every , the pair must also be in R.
- Let's check the pair (1,2). We see that .
- For R to be symmetric, the pair (2,1) must also be in R.
- We check the set R and find that (2,1) is not in R.
- Therefore, R is not symmetric.
Transitivity: A relation is transitive if for every and , the pair must also be in R.
- We need to look for 'chains' of elements. Let's check the pair and .
- For transitivity, this requires the pair to be in R.
- We check the set R and find that (1,2) is in R.
- After checking all such possible chains (e.g., (1,1) and (1,2) implies (1,2) must be in R, which it is), we find no violations.
- Therefore, R is transitive.
Conclusion: R is reflexive and transitive, but not symmetric.
Example 2: Relation of Parallel Lines
Question: Show that the relation 'is parallel to' on the set L of all lines in a plane is an equivalence relation.
Explanation: An equivalence relation must be reflexive, symmetric, and transitive. Let R be the relation 'is parallel to' () on the set L of all lines.
Reflexivity:
- Condition: For any line , is ? (Is a line parallel to itself?)
- Check: Yes, by convention, every line is considered parallel to itself ().
- Result: The relation is reflexive.
Symmetry:
- Condition: If , does that imply ? (If , is ?)
- Check: Yes, this is a fundamental property of parallel lines.
- Result: The relation is symmetric.
Transitivity:
- Condition: If and , does that imply ? (If and , is ?)
- Check: Yes, this is another fundamental property of parallel lines in Euclidean geometry.
- Result: The relation is transitive.
Conclusion: Since the relation is reflexive, symmetric, and transitive, it is an equivalence relation.
Example 3: Relation of Perpendicular Lines
Question: Show that the relation 'is perpendicular to' on the set L of all lines in a plane is symmetric but neither reflexive nor transitive.
Explanation: Let R be the relation 'is perpendicular to' () on the set L of all lines.
Reflexivity:
- Condition: For any line , is ? (Is a line perpendicular to itself?)
- Check: No. A line cannot be perpendicular to itself, as the angle between a line and itself is 0°, not 90°.
- Result: The relation is not reflexive.
Symmetry:
- Condition: If , is ?
- Check: Yes. If the angle between line and is 90°, then the angle between and is also 90°.
- Result: The relation is symmetric.
Transitivity:
- Condition: If and , is ?
- Check: No. If line is perpendicular to , and is perpendicular to , then and must be parallel to each other (or be the same line). They are not perpendicular.
- Result: The relation is not transitive.
Conclusion: The relation is symmetric, but not reflexive or transitive.
Example 4: Relation on Integers (Divisibility)
Question: Let R be a relation on the set of integers defined by if is divisible by 5. Show that R is an equivalence relation.
Explanation: To be an equivalence relation, R must be reflexive, symmetric, and transitive.
Reflexivity:
- Condition: For any integer , is ? (Is divisible by 5?)
- Check: . Since , 0 is divisible by 5.
- Result: The relation is reflexive.
Symmetry:
- Condition: If , does that imply ?
- Check: Assume is true. This means is divisible by 5. So, we can write for some integer . Multiplying by -1 gives . Since is also an integer, is divisible by 5. This means is true.
- Result: The relation is symmetric.
Transitivity:
- Condition: If and , does that imply ?
- Check: Assume and are true. This means and for some integers . To check for , we need to look at . We can find this by adding the two equations: . Since is an integer, is divisible by 5. This means is true.
- Result: The relation is transitive.
Conclusion: Since R is reflexive, symmetric, and transitive, it is an equivalence relation.
Example 5: Inequality Relation
Question: Check the properties of the relation R defined by if on the set of real numbers.
Explanation:
Reflexivity:
- Condition: For any real number , is ?
- Check: Yes, any number is equal to itself, which satisfies the 'less than or equal to' condition.
- Result: The relation is reflexive.
Symmetry:
- Condition: If , does that imply ?
- Check: No. We can use a counterexample. Let and . is true, but is false.
- Result: The relation is not symmetric.
Transitivity:
- Condition: If and , does that imply ?
- Check: Yes, this is a fundamental property of inequalities.
- Result: The relation is transitive.
Conclusion: The relation is reflexive and transitive, but not symmetric.
Example 6: Relation on a Power Set
Question: Let A be a set. Let R be the relation 'is a subset of' () on the power set P(A). Is R an equivalence relation?
Explanation: The power set P(A) is the set of all subsets of A. The relation R is .
Reflexivity:
- Condition: For any set , is ?
- Check: Yes, by definition, any set is a subset of itself.
- Result: The relation is reflexive.
Symmetry:
- Condition: If , does that imply ?
- Check: No. This is only true if . For a counterexample, let . Let and . Then is true, but is false.
- Result: The relation is not symmetric.
Transitivity:
- Condition: If and , does that imply ?
- Check: Yes. If every element of X is in Y, and every element of Y is in Z, then it follows that every element of X must also be in Z.
- Result: The relation is transitive.
Conclusion: Since the relation is not symmetric, it is not an equivalence relation. It is, however, a partial ordering.
Example 7: Relation on Ordered Pairs
Question: Let R be a relation on defined by if . Prove R is an equivalence relation.
Explanation: The condition can be helpfully rearranged as . This means two pairs are related if the difference between their components is the same.
Reflexivity:
- Condition: Is ?
- Check: This requires checking if . This is true by the commutative property of addition.
- Result: R is reflexive.
Symmetry:
- Condition: If , does that imply ?
- Check: Assume . This means . We want to check if , which requires . Since is the same equation as , the implication is true.
- Result: R is symmetric.
Transitivity:
- Condition: If and , does that imply ?
- Check: Assume the first two relations are true: 1) 2) We want to show that . We can add the two assumed equations: Cancelling and from both sides gives . This is the condition for .
- Result: R is transitive.
Conclusion: Since R is reflexive, symmetric, and transitive, it is an equivalence relation.
Example 8: Counting Relations
Question: Let . How many symmetric relations can be defined on A?
Explanation: 1. Understand the Building Blocks: A relation on A is any subset of the Cartesian product . Here, .
2. Analyze the Condition of Symmetry: For a relation R to be symmetric, for any pair , if , then must also be in R.
- Diagonal Elements: Pairs like (1,1) and (2,2) are their own reverse. Their presence or absence does not affect the symmetry property. We can choose to include (1,1) or not (2 options). We can choose to include (2,2) or not (2 options).
- Off-Diagonal Elements: Pairs like (1,2) and (2,1) are reverses of each other. For symmetry, we cannot choose one without the other. They must be treated as a single unit. We can either include the pair
{(1,2), (2,1)}in our relation, or we can exclude it (2 options).
3. Count the Choices: We have three independent choices to make to build a symmetric relation:
- To include the element (1,1) or not? (2 choices)
- To include the element (2,2) or not? (2 choices)
- To include the set of elements {(1,2), (2,1)} or not? (2 choices)
4. Calculate the Total: By the multiplication principle, the total number of possible symmetric relations is: Total = .
Answer: There are 8 possible symmetric relations.
Example 9: A Non-Transitive Relation
Question: Let R be a relation on defined by if . Show that R is reflexive and symmetric but not transitive.
Explanation:
Reflexivity:
- Check: For any real number , is ? Yes, is true.
- Result: R is reflexive.
Symmetry:
- Check: If , is ? Yes, because . If one is less than or equal to 1, so is the other.
- Result: R is symmetric.
Transitivity:
- Condition: If and , does it always imply ?
- Check with a Counterexample: We need to find three numbers such that the distance from to is small, and the distance from to is small, but the distance from to is large.
Let's choose: , , and .
- Check : . Since , .
- Check : . Since , .
- Check : . Since is not , .
- Result: We found a case where and are true, but is false. Therefore, R is not transitive.
Conclusion: The relation is reflexive and symmetric, but not transitive.
Example 10: Finding Smallest Equivalence Relation
Question: Let . Find the smallest equivalence relation on A containing the element (1,2).
Explanation: An equivalence relation must be reflexive, symmetric, and transitive. We start with the given element and add the minimum number of other elements needed to satisfy these three properties.
Start: We are given that the relation R must contain (1,2).
Satisfy Reflexivity: For R to be reflexive on A={1,2,3}, it must contain all pairs of the form (a,a). We must add: (1,1), (2,2), (3,3). Our relation so far: .
Satisfy Symmetry: For every (a,b) in R, we must have (b,a). We currently have (1,2), so we must add its reverse: (2,1). Our relation so far: .
Satisfy Transitivity: We must check if any chains and require a new element .
- We have (1,2) and (2,1). This implies we need (1,1). It's already in our set. ✅
- We have (2,1) and (1,2). This implies we need (2,2). It's also already in our set. ✅ All other chains, like (1,1) and (1,2), also lead to elements that are already present. No new elements are needed to satisfy transitivity.
Final Smallest Relation: The smallest set that contains (1,2) and satisfies all three properties is the combination of all the elements we've gathered.
Answer: The smallest equivalence relation is .