ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Discrete Mathematics
    MATH2113
    Progress0 / 25 topics
    Topics
    1. Mathematical Reasoning: Sets, Subsets, Algebra of Sets2. Propositions and Compound Statements3. Basic Logical Operations4. Propositional Logic and its Applications with Statement Problems5. Propositions and Truth Tables6. Tautologies and Contradictions7. Conditional and Bi-conditional Statements8. Arguments in Propositional Logic9. Propositional Functions10. Quantifiers and Negation of Quantified Statements11. Relations and Equivalence Relations12. Partial Ordering Relations13. Functions and Recursively Defined Functions14. Combinatorics: Basics of Counting Methods15. Combinations and Permutations16. Pigeonhole Principle17. Graphs and its Types18. Graph Isomorphism19. Trees in Graph Theory20. Connectivity in Graphs21. Eulerian and Hamiltonian Paths22. Spanning Trees and Shortest Path Problem23. Revisiting Special Functions: Power, Floor, Increasing, Decreasing24. Big O, Little O and Omega Notations25. Orders of the Polynomial Functions
    MATH2113›Relations and Equivalence Relations
    Discrete MathematicsTopic 11 of 25

    Relations and Equivalence Relations

    10 minread
    1,764words
    Intermediatelevel

    Relations and Equivalence Relations


    1. What is a Relation?

    A relation on a set AAA is a collection of ordered pairs of elements from AAA. Formally, a relation RRR on a set AAA is a subset of the Cartesian product A×AA \times AA×A.

    For example, if A={1,2,3}A = \{1, 2, 3\}A={1,2,3}, a relation RRR on AAA could be:

    R={(1,2),(2,3)}R = \{(1, 2), (2, 3)\}R={(1,2),(2,3)}

    This means that 1 is related to 2, and 2 is related to 3.


    2. Types of Relations

    A relation RRR on a set AAA can have different properties. Some important ones are:

    a) Reflexive Relation

    A relation RRR on a set AAA is reflexive if for every element a∈Aa \in Aa∈A, the pair (a,a)(a, a)(a,a) is in the relation RRR.

    ∀a∈A,(a,a)∈R\forall a \in A, (a, a) \in R∀a∈A,(a,a)∈R

    Example:
    If A={1,2,3}A = \{1, 2, 3\}A={1,2,3}, the relation R={(1,1),(2,2),(3,3)}R = \{(1, 1), (2, 2), (3, 3)\}R={(1,1),(2,2),(3,3)} is reflexive.


    b) Symmetric Relation

    A relation RRR on a set AAA is symmetric if whenever (a,b)∈R(a, b) \in R(a,b)∈R, then (b,a)∈R(b, a) \in R(b,a)∈R.

    ∀a,b∈A, (a,b)∈R⇒(b,a)∈R\forall a, b \in A, \, (a, b) \in R \Rightarrow (b, a) \in R∀a,b∈A,(a,b)∈R⇒(b,a)∈R

    Example:
    If A={1,2,3}A = \{1, 2, 3\}A={1,2,3}, and R={(1,2),(2,1)}R = \{(1, 2), (2, 1)\}R={(1,2),(2,1)}, this relation is symmetric because if 1 is related to 2, then 2 is also related to 1.


    c) Transitive Relation

    A relation RRR on a set AAA is transitive if whenever (a,b)∈R(a, b) \in R(a,b)∈R and (b,c)∈R(b, c) \in R(b,c)∈R, then (a,c)∈R(a, c) \in R(a,c)∈R.

    ∀a,b,c∈A, (a,b)∈R and (b,c)∈R⇒(a,c)∈R\forall a, b, c \in A, \, (a, b) \in R \, \text{and} \, (b, c) \in R \Rightarrow (a, c) \in R∀a,b,c∈A,(a,b)∈Rand(b,c)∈R⇒(a,c)∈R

    Example:
    If A={1,2,3}A = \{1, 2, 3\}A={1,2,3}, and R={(1,2),(2,3),(1,3)}R = \{(1, 2), (2, 3), (1, 3)\}R={(1,2),(2,3),(1,3)}, the relation is transitive because if 1 is related to 2, and 2 is related to 3, then 1 is also related to 3.


    3. Equivalence Relations

    An equivalence relation is a relation on a set AAA that satisfies three specific properties:

    1. Reflexive: For all a∈Aa \in Aa∈A, (a,a)∈R(a, a) \in R(a,a)∈R.
    2. Symmetric: For all a,b∈Aa, b \in Aa,b∈A, if (a,b)∈R(a, b) \in R(a,b)∈R, then (b,a)∈R(b, a) \in R(b,a)∈R.
    3. Transitive: For all a,b,c∈Aa, b, c \in Aa,b,c∈A, if (a,b)∈R(a, b) \in R(a,b)∈R and (b,c)∈R(b, c) \in R(b,c)∈R, then (a,c)∈R(a, c) \in R(a,c)∈R.

    If a relation RRR satisfies all three properties, it is called an equivalence relation.


    4. Example of Equivalence Relation

    Let A={1,2,3,4}A = \{1, 2, 3, 4\}A={1,2,3,4} and define a relation RRR by:

    R={(1,1),(2,2),(3,3),(4,4),(1,2),(2,1),(3,4),(4,3)}R = \{(1, 1), (2, 2), (3, 3), (4, 4), (1, 2), (2, 1), (3, 4), (4, 3)\}R={(1,1),(2,2),(3,3),(4,4),(1,2),(2,1),(3,4),(4,3)}

    This relation RRR is:

    • Reflexive: Each element is related to itself.
    • Symmetric: If (1,2)∈R(1, 2) \in R(1,2)∈R, then (2,1)∈R(2, 1) \in R(2,1)∈R; similarly for (3,4)(3, 4)(3,4) and (4,3)(4, 3)(4,3).
    • Transitive: For example, (1,2)(1, 2)(1,2) and (2,1)(2, 1)(2,1) imply (1,1)(1, 1)(1,1), and so on.

    Thus, RRR is an equivalence relation.


    5. Equivalence Classes

    Given an equivalence relation RRR on a set AAA, the equivalence class of an element a∈Aa \in Aa∈A, denoted by [a][a][a], is the set of all elements that are related to aaa under RRR.

    [a]={b∈A∣(a,b)∈R}[a] = \{ b \in A \mid (a, b) \in R \}[a]={b∈A∣(a,b)∈R}

    Example:
    For the relation RRR defined on A={1,2,3,4}A = \{1, 2, 3, 4\}A={1,2,3,4}, the equivalence classes are:

    • [1]={1,2}[1] = \{1, 2\}[1]={1,2}
    • [3]={3,4}[3] = \{3, 4\}[3]={3,4}

    Each equivalence class groups elements that are "equivalent" to each other.


    6. Partition of a Set

    An equivalence relation on a set AAA partitions AAA into disjoint equivalence classes. This means that the equivalence classes form a partition of AAA, meaning that:

    • Every element of AAA belongs to exactly one equivalence class.
    • The equivalence classes are disjoint (no overlap).

    Example:
    Given A={1,2,3,4}A = \{1, 2, 3, 4\}A={1,2,3,4} and the relation RRR from earlier, the equivalence classes [1]={1,2}[1] = \{1, 2\}[1]={1,2} and [3]={3,4}[3] = \{3, 4\}[3]={3,4} form a partition of AAA, because each element of AAA is in exactly one equivalence class.


    7. Equivalence Relation Properties

    • Reflexivity: Every element is related to itself.
    • Symmetry: If aaa is related to bbb, then bbb is related to aaa.
    • Transitivity: If aaa is related to bbb and bbb is related to ccc, then aaa is related to ccc.

    These properties ensure that equivalence relations allow us to group elements of a set into classes that share some common property.


    Previous topic 10
    Quantifiers and Negation of Quantified Statements
    Next topic 12
    Partial Ordering Relations

    Past Papers

    Open this section to load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time10 min
      Word count1,764
      Code examples0
      DifficultyIntermediate