Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

0.2: Relations

  • Page ID
    131014
  • ( \newcommand{\kernel}{\mathrm{null}\,}\)

    Definition: Binary Relation

    Let S be a nonempty set. Then any subset R of S×S is said to be a relation over S. In other words, a relation is a rule that is defined between two elements in S. Intuitively, if R is a relation over S, then the statement aRb is either true or false for all a,bS.

    If the statement aRb is false, we denote this by ab.

    Example 0.2.1:

    Let S={1,2,3}. Define R by aRb if and only if a<b, for a,bS.

    Then 1R2,1R3,2R3 and 21.

    We can visualize the above binary relation as a graph, where the vertices are the elements of S, and there is an edge from a to b if and only if aRb, for abS.

    sog8mVfmrjo7_-GoB-mBjEQ.png
    Figure 0.2.1: Relation as a graph. (Copyright: Pamini Thangarajah)

    The following are some examples of relations defined on Z.

    Example 0.2.2:

    1. Define R by aRb if and only if a<b, for a,bZ.
    2. Define R by aRb if and only if a>b, for a,bZ.
    3. Define R by aRb if and only if ab, for a,bZ.
    4. Define R by aRb if and only if ab, for a,bZ.
    5. Define R by aRb if and only if a=b, for a,bZ.

    Definition: Divisor/Divides

    Let a and b be integers. We say that a divides b is denoted ab, provided we have an integer m such that b=am. In this case we can also say the following:

    • b is divisible by a
    • a is a factor of b
    • a is a divisor of b
    • b is a multiple of a 

    If a  does not divide b, then it is  is denoted by ab.

    Properties of binary relation:

    Definition: Reflexive

    Let S be a set and R be a binary relation on S. Then R is said to be reflexive if aRa,aS.

     

    We will follow the template below to answer the question about reflexive.

    alt

    Example 0.2.7:

    Define R by aRb if and only if a<b, for a,bZ. Is R reflexive?

    Counter Example:

    Choose a=2.

    Since 22, R is not reflexive.

    Example 0.2.8:

    Define R by aRb if and only if ab, for a,bZ. Is R reflexive?

    Proof:

    Let aZ. Since a=(1)(a), aa.

    Thus R is reflexive.

    Definition: Symmetric

    Let S be a set and R be a binary relation on S. Then R is said to be symmetric if the following statement is true:

    a,bS, if aRb then bRa, in other words, a,bS,aRbbRa.

    Example 0.2.8: Visually

    alt

    a,bS,aRbbRa. holds!

    We will follow the template below to answer the question about symmetric.

    stXO_6c-DcCh0t5duFY2Ejw.png

    Example 0.2.9:

    Define R by aRb if and only if a<b, for a,bZ. Is R symmetric?

    Counter Example:

    1<2 but 21.

    Example 0.2.10:

    Define R by aRb if and only if ab, for a,bZ. Is R symmetric?

    Counter Example:

    24 but 42.

     

    Definition: Transitive

    Let S be a set and R be a binary relation on S. Then R is said to be transitive if the following statement is true

    a,b,cS, if aRb and bRc, then aRc.

    In other words, a,b,cS, aRbbRcaRc.

    Example 0.2.14: VISUALLY

    alt

    a,b,cS, aRbbRcaRc holds!

    We will follow the template below to answer the question about transitive.

    ssUmTK4d9hHGQc-mZjO6p5g.png

    Example 0.2.15:

    Define R by aRb if and only if a<b, for a,bZ. Is R transitive?

    Example 0.2.16:

    Define R by aRb if and only if ab, for a,bZ+. Is R transitive?

     

    Definition: Equivalence Relation

    A binary relation is an equivalence relation on a nonempty set S if and only if the relation is reflexive(R), symmetric(S) and transitive(T).

    Definition: Equivalence Relation

    Example 0.2.1: =

     

    Let S=R and R be =. Is the relation a) reflexive, b) symmetric, c) antisymmetric, d) transitive, e) an equivalence relation, f) a partial order.

    Solution:

    1. Yes R is reflexive.

      Proof:

      Let aR.

      Then a=a.

      Hence R is reflexive.

       

      Yes R is symmetric.

      Proof:

      Let (a,b)R  such that a=b.

      Clearly b=a.

      Hence R is symmetric.

       

    Yes R is antisymmetric.

    Proof:

    Let a,bR s.t. a=b and b=a. Then clearly a=ba,bR.

     

    Yes R is transitive.

    Proof:

    Let a,b,cR s.t. a=b and b=c.

    We shall show that aRc.

    Since a=b and b=c it follows that a=c

    Thus aRc.

     

    Yes R is an equivalence relation.

    Proof:

    Since R is reflexive, symmetric and transitive, it is an equivalence relation.

     

    Yes R is a partial order.

    Proof:

    Since R is a partial order since R is reflexive, antisymmetric and transitive.

    Example 0.2.2: Less than or equal to

    Let S=R and R be . Is the relation a) reflexive, b) symmetric, c) antisymmetric, d) transitive, e) an equivalence relation, f) a partial order.

    Solution

    Proof:

    We will show that is true.

    Let that is .

    Since , is reflexive.◻

    Counterexample:

    Let and which are both .

    It is true that , but it is not true that .

    Thus is not symmetric.◻

    Proof:

    We will show that given and that .

    Since , s.t. .

    Further, since , , .

    Then .

    Thus, .

    Since, , thus .◻

    4. Yes, is transitive.

    Proof:

    We will show that given and that .

    Since , s.t. .

    Further, since , , .

    Then .

    Since, , thus .◻

    Definition: Equivalence Class

    Given an equivalence relation R over a set S, for any aS the equivalence class of a is the set [a]R={bSaRb}, that is
    [a]R is the set of all elements of S that are related to a.

    Example 0.2.3: Equivalence relation

    Define a relation that two shapes are related iff they are the same color. Is this relation an equivalence relation?

    Equivalence classes are:

    alt

    Example 0.2.4:

    Define a relation that two shapes are related iff they are similar. Is this relation an equivalence relation?

    Equivalence classes are:

    alt

    Definition: Partition

    Let A be a nonempty set. A partition of A is a set of nonempty pairwise disjoint sets whose union is A.

     

    Note

    For every equivalence relation over a nonempty set S, S has a partition.

     

    Theorem 0.2.1

    If is an equivalence relation over a nonempty set S. Then the set of all equivalence classes is denoted by {[a]|aS} forms a partition of S.

    This means

    1. Either [a][b]= or [a]=[b], for all a,bS.

    2. S=aS[a].

    Proof

    Assume is an equivalence relation on a nonempty set .

    Let . If , then we are done. Otherwise,

    assume .

    Let be the common element between them.

    Let .

    Then and , which means that and .

    Since is an equivalence relation and .

    Since and (due to transitive property), .

    Thus and .

    Hence .

    Next, we will show that .

    First we shall show that .

    Let .

    Then exists and .

    Hence .

    Thus .

    Conversely, we shall show that .

    Let .

    Then for some .

    Thus .

    Thus .

    Since and , then .◻

     

     

    For the following examples, determine whether or not each of the following binary relations on the given set is reflexive, symmetric, antisymmetric, or transitive. If a relation has a certain property, prove this is so; otherwise, provide a counterexample to show that it does not. If is an equivalence relation, describe the equivalence classes of .

    Example 0.2.5:

    Let S={0,1,2,3,4,5,6,7,8,9}. Define a relation R on A=S×S by (a,b)R(c,d)  if and only if 10a+b10c+d. 

     

    Solution

    1. is reflexive on .

    Proof:

    Let .

    We will show that .

    Since , then .

    Since is reflexive on .◻

    2. is not symmetric on .

    Counter Example:

    Let .

    Note , specifically, is true.

    However, , is false.

    Since , is not symmetric on .◻

    3. is antisymmetric on .

    Proof:

    Let s.t. and .

    Since and , .

    We will show that and .

    by definition.

    Since and , thus .

    Since , .

    Thus is antisymmetric on .◻​​​​

    5. is transitive on .

    Proof:

    Let s.t. and .

    We will show that .

    Since , .

    Thus is transitive on .◻

    6. is not an equivalence relation since it is not reflexive, symmetric, and transitive.

    Example 0.2.6:

    Let . Define a relation on , by if and only if

    Solution

    1. is reflexive on .

    Proof:

    Let we will show that .

    Clearly since and a negative integer multiplied by a negative integer is a positive integer in .

    Since , is reflexive on .◻​​​​​

     

    2. is symmetric on .

    Proof:

    We will show that if , then .

    Let s.t. , that is .

    Since , .

    Since , is symmetric on .◻

    3. is not antisymmetric on .

    Counter Example:

    Let and then and .

    Since , is not antisymmetric on .◻

    4. is transitive on .

    Proof:

    Let s.t and s.t. .

    There are two cases to be examined:

    Case 1: and .

    Since , thus .

    Case 2: and .

    Since , thus .

    Since in both possible cases is transitive on .◻

     

    5. Since is reflexive, symmetric and transitive, it is an equivalence relation. Equivalence classes are and .

    Let , then

    .

    Case 1: , then .

    .

    .

    Case 2: , then .

    .

    .

    Note this is a partition since or . So we have all the intersections are empty.

    .

    Further, we have . Note that is excluded from .

    Recall:

    Let m,nZ.

    We say that m divides n (written as m|n) if n=mk for some kZ.

     

    Example 0.2.7

    Let S=Z,mZ+.  Define aRb if and only if m|(ab),a,bZ.

    Note that m is a positive integer.

    Let m=3.  Choose a=1 and b=2.

    Are 1 and 2 related? i.e. does 3|12?  Does 12=3k,kZ?  Since there is no integer k s.t. 1=3k, ∴ 1 is not related to 2.

     

    However, we can see that we have three groups, as shown in the image below:

     

     Screen Shot 2023-06-28 at 2.41.58 PM.png

     

    Definition: Modulo

    Let m Z+.

    a is congruent to b modulo m denoted as ab(modn), if a and b  have the remainder when they are divided by n, for  a,bZ.

    Properties

    Let nZ+. Then

    Theorem 1 :

    Two integers a and b are said to be congruent modulo n, ab(modn), if all of the following are true:

    a) m(ab).

    b) both a and b have the same remainder when divided by n.

    c) ab=kn, for some kZ.

    NOTE: Possible remainders of n are 0,...,n1.

    Reflexive Property

    Theorem 2:

    The relation " " over Z is reflexive.

    Proof: Let aZ.

    Then aa=0(n), and 0Z.

    Hence aa(modn).

    Thus congruence modulo n is Reflexive.

    Symmetric Property

    Theorem 3:

    The relation " " over Z is symmetric.

    Proof: Let a,bZ such that ab (mod n).

    Then ab=kn, for some kZ.

    Now ba=(k)n and kZ.

    Hence ba(modn).

    Thus the relation is symmetric.

    Antisymmetric Property

    Is the relation " " over Z antisymmetric?

    Counter Example: n is fixed

    choose: a=n+1,b=2n+1, then

    ab(modn) and ba(modn)

    but ab.

    Thus the relation " "on Z is not antisymmetric.

    Transitive Property

    Theorem 4 :

    The relation " " over Z is transitive.

    Proof: Let a,b,c Z, such that ab(modn) and bc(modn).

    Then a=b+kn,k Z and b=c+hn,h Z.

    We shall show that ac(modn).

    Consider a=b+kn=(c+hn)+kn=c+(hn+kn)=c+(h+k)n,h+k Z.

    Hence ac(modn).

    Thus congruence modulo n is transitive.

    Theorem 5:

    The relation " " over Z is an equivalence relation.

    Modulo classes

    Let . The relation on by ab if and only if , is an equivalence relation. The Classes of have the following equivalence classes:

    .

     

    Example of writing equivalence classes:

    Example 0.2.3:

    The equivalence classes for (mod3) are (need to show steps):

    .

    .

    .

     Modulo Arithmetic

    In this section, we will explore arithmetic operations in a modulo world.

    Let nZ+.

    Theorem 5 :

    Let a,b,c,d,Z such that ab(modn) and cd(modn). Then (a+c)(b+d)(modn).

    Proof:

    Let a,b,c,dZ, such that ab(modn) and cd(modn).

    We shall show that (a+c)(b+d)(modn).

    Since ab(modn) and cd(modn),n(ab) and n(cd)

    Thus a=b+nk, and c=d+nl, for k and lZ.

    Consider(a+c)(b+d)=ab+cd=n(k+l),k+lZ.

    Hence (a+c)(b+d)(modn).

    Theorem 6:

    Edit section

    Let a,b,c,d,Z such that ab(modn) and cd(modn). Then (ac)(bd)(modn).

    Proof:

    Let a,b,c,dZ, such that ab(modn) and cd(modn).

    We shall show that (ac)(bd)(modn).

    Since ab(modn) and cd(modn),n(ab) and n(cd)

    Thus a=b+nk, and c=d+nl, for k and lZ.

    Consider (ac)(bd)=(b+nk)(d+nl)bd=bnl+dnk+n2lk=n(bl+dk+nlk), where (bl+dk+nlk)Z.

    Hence (ac)(bd)(modn).

    Theorem 7:

    Let a,b Z such that ab(modn). Then a2b2(modn).

    Proof:

    Let a,b Z, and n Z+, such that ab(modn).

    We shall show that a2b2(modn).

    Since ab(modn),n(ab).

    Thus (ab)=nx, where x Z.

    Consider (a2b2)=(a+b)(ab)=(a+b)(nx),=n(ax+bx),ax+bxZ.

    Hence na2b2, therefore a2b2(modn).

    Theorem 8:

    Let a,b Z such that ab(modn). Then ambm(modn), Z.

    Proof:

    Exercise.

    By using the above result, we can solve many problems. Some of them are discussed below: 

    Example 0.2.1: mod3 Arithmetic

    Let n=3.

    Addition

    + [0] [1] [2]
    [0] [0] [1] [2]
    [1] [1] [2] [0]
    [2] [2] [0] [1]

    Multiplication

    x [0] [1] [2]
    [0] [0] [0] [0]
    [1] [0] [1] [2]
    [2] [0] [2] [1]

    Example 0.2.2: mod4 Arithmetic

    Let n=4.

    x [0] [1] [2] [3]
    [0] [0] [0] [0] [0]
    [1] [0] [1] [2] [3]
    [2] [0] [2] [0] [2]
    [3] [0] [3] [2] [1]

    Example 0.2.3:

    Find the remainder when (101)(103)(107)(109) is divided by 11.

    Answer

    1012(mod11)

    1034(mod11)

    1078(mod11)

    10910(mod11).

    Therefore,

    (101)(103)(107)(109)(2)(4)(8)(10)(mod11)2(mod11).

    Example 0.2.4:

    Find the remainder when71453 is divided by 8.

    Answer

    701(mod8)

    717(mod8)

    721(mod8)

    737(mod8),

    As there is a consistent pattern emerging and we know that 1453 is odd, then 714537(mod8). Thus the remainder is 7.

    Example 0.2.5:

    Find the remainder when 72020 is divided by 18.

    Answer

    701(mod18)

    717(mod18)

    7213(mod18)

    731(mod18),

    As there is a consistent pattern emerging and we know that 2020=(673)3+172020=7(673)3+1=(73)673717(mod18). Thus the remainder is 7.

    Example 0.2.6:

    Find the remainder when 261453 is divided by 3.


    This page titled 0.2: Relations is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Pamini Thangarajah.