Skip to main content
Mathematics LibreTexts

4.3: Equivalence Relations

  • Page ID
    88862
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    With modulo arithmetic any number that is equivalent to another can be substituted in arithmetic without changing the result. In an error-correcting code any strings that are equivalent are interpreted as the same data. This section develops the properties that define equivalence in a general sense.

    Definition \(\PageIndex{1}\): Equivalence Relation.

    A relation is an equivalence relation if and only if the relation is reflexive, symmetric, and transitive.

    Checkpoint \(\PageIndex{2}\)

    Determine whether the following relation is an equivalence relation. Consider the set \(P(X)\) for the set \(X=\{a,b,c\}.\) Let the relation \(R\) be defined by \(A\) is related to \(B\) if and only if \(A \subseteq B.\) It may help to list all the elements of \(P(X)\) first using the definition of power set.

    Checkpoint \(\PageIndex{3}\)

    Determine whether the following relation is an equivalence relation. Let the relation \(R\) on the set of integers be defined by \(aRb\) if and only if \(a \equiv b \pmod n.\) Note the value of \(n\) is irrelevant here.

    Checkpoint \(\PageIndex{4}\)

    Determine whether the following relation is an equivalence relation. Let the relation \(R\) on the set of integers be defined by \(aRb\) if and only if \(a|b.\)

    Checkpoint \(\PageIndex{5}\)

    Determine whether the following relation is an equivalence relation. Let the relation \(R\) on the set of real numbers be defined by \(aRb\) if and only if \(a \le b.\)

    Equivalence Classes

    Definition \(\PageIndex{6}\): Equivalence Class.

    For an equivalence relation \(R\text{,}\) a set of elements, denoted \([y]\text{,}\) is an equivalence class if and only if \([y]=\{ x \: | \: xRy \}.\)

    The two questions we ask are

    1. What are the equivalence classes?
    2. What are the elements of an equivalence class.

    Questions asking about elements of an equivalence class may be phrased any of the following ways.

    • List elements from the equivalence class \([a]\)
    • Find elements of the equivalence class \([a]\)
    • Find the equivalence class \([a]\)
    Example \(\PageIndex{7}\): Find an Equivalence Class.

    Consider the equivalence relation defined by \(aRb\) if and only if \(a \cong b \pmod 5\text{.}\) Find the equivalence class \([0]\text{.}\) List at least four elements.

    Solution

    \([0]\) is the set of all integers \(n\) such that \(n \cong 0 \pmod 5.\) We calculated some of these before: \(0,5,10,-5,\ldots\) Thus \([0]=\{\ldots, -5, 0, 5, 10, \ldots \}.\)

    Example \(\PageIndex{8}\): Find an Equivalence Class.

    Consider the relation \(R\) on \(Z^+ \times Z^+\) defined by \((a,b)R(c,d)\) if and only if \(ad=bc.\) Find the equivalence class \([(1,2)]\text{.}\) List at least four elements.

    Solution

    Based on previous calculations we know \((2,4)R(1,2),\text{,}\) \((3,6)R(1,2),\) and \((-1,-2)R(1,2).\) Thus \([(1,2)]=\{\ldots, (-1,-2), (1,2), (2,4), (3,6), \ldots \}.\)

    Example \(\PageIndex{9}\): Find Distinct Equivalence Classes.

    Consider the equivalence relation defined by \(aRb\) if and only if \(a \cong b \pmod 5\text{.}\) List multiple, distinct equivalence classes.

    Solution

    Note \(5 \not| (1-0)\) so \([0]\) and \([1]\) are distinct equivalence classes. Also \(5 \not| (2-0)\) and \(5 \not|(2-1).\) Thus \([2]\) is a third, distinct equivalence class.

    Example \(\PageIndex{10}\): Find Distinct Equivalence Classes.

    Consider the relation \(R\) on \(Z^+ \times Z^+\) defined by \((a,b)R(c,d)\) if and only if \(ad=bc.\) List multiple, distinct equivalence classes.

    Solution

    Consider (1,2) and (3,5). Note \(1 \cdot 5 \ne 2 \cdot 3.\) Thus \([(1,2)]\) and \([(3,5)]\) are distinct equivalence classes. Also consider (1,7). Note \(1 \cdot 7 \ne 2 \cdot 4\) and \(3 \cdot 7 \ne 5 \cdot 4.\) Thus \([(4,7)]\) is a third, distinct equivalence class.

    Checkpoint \(\PageIndex{11}\)

    Find the equivalence class of 0 and the class of 1 for the relation \(a \equiv b \pmod 6. \)

    Checkpoint \(\PageIndex{12}\)

    List every equivalence class for the relation \(a \equiv b \pmod 6. \)

    Checkpoint \(\PageIndex{13}\)

    Two five bit, binary code words are equivalent if they are distance two or less from one of the selected code words. List all the code words equivalent to 00000.

    Checkpoint \(\PageIndex{14}\)

    For the code word problem above, what is the maximum number of equivalence classes possible?

    Checkpoint \(\PageIndex{15}\)

    Consider the following equivalence relation. \(X=\{mx+b \: | \: m,b \in R \},\) the set of all 2D lines. \(R\) is defined by \(\ell_1(x)=m_1x+b_1 \equiv \ell_2(x)=m_2x+b_2\) if and only if \(m_1=m_2.\)

    Find the equivalence class of \(y=5x+3\) and the class of \(y=\frac{11}{7}x+\frac{13}{208}.\)

    Checkpoint \(\PageIndex{16}\)

    Consider the following equivalence relation. \(X=\{mx+b \: | \: m,b \in R \},\) the set of all 2D lines. \(R\) is defined by \(\ell_1(x)=m_1x+b_1 \equiv \ell_2(x)=m_2x+b_2\) if and only if \(m_1=m_2.\)

    List four distinct equivalence classes for this relation.

    Characterizing Equivalence Classes

    The following questions draw attention to properties of equivalence classes

    Checkpoint \(\PageIndex{17}\)

    Suppose the equivalence class \([a]=\{a,c,e\}.\) What is the equivalence class \([c]\text{?}\)

    Checkpoint \(\PageIndex{18}\)

    Suppose the equivalence class \([a]\) contains \(a,c,e,g\) and \([i]\) contains \(g\text{.}\) What else do we know is in \([i]\text{.}\)

    Checkpoint \(\PageIndex{19}\)

    If two equivalence classes share one element, how many elements do they share?

    Checkpoint \(\PageIndex{20}\)

    Prove no even number is odd.

    Checkpoint \(\PageIndex{21}\)

    Explain how even/odd defines an equivalence relation on the integers.

    Checkpoint \(\PageIndex{22}\)

    Why does major not define an equivalence relation on the set of current students at UAA?


    This page titled 4.3: Equivalence Relations is shared under a GNU Free Documentation License 1.3 license and was authored, remixed, and/or curated by Mark A. Fitch via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.