Relation
Relation
1.2.1 Definition.
    Let A and B be two non-empty sets, then every subset of A × B defines a relation from A to B and every
relation from A to B is a subset of A × B.
    Let R  A  B and (a, b)  R. Then we say that a is related to b by the relation R and write it as a R b . If
(a, b)  R , we write it as a R b .
   Example: Let A = {1, 2, 5, 8, 9}, B = {1, 3} we set a relation from A to B as: a R b iff a  b; a  A, b  B .
Then R = {(1, 1)}, (1, 3), (2, 3)}  A × B
    (1) Total number of relations : Let A and B be two non-empty finite sets consisting of m and n elements
respectively. Then A × B consists of mn ordered pairs. So, total number of subset of A × B is 2mn. Since each
                                                                            ps
subset of A × B defines relation from A to B, so total number of relations from A to B is 2mn. Among these 2mn
                                                                       te
relations the void relation  and the universal relation A × B are trivial relations from A to B.
                                                                   ys
   (2) Domain and range of a relation : Let R be a relation from a set A to a set B. Then the set of all first
components or coordinates of the ordered pairs belonging to R is called the domain of R, while the set of all
                                                                  ud
Example: 1       Let A = {1, 2, 3}. The total number of distinct relations that can be defined over A is
                 (a) 29                               (b) 6                      (c) 8                             (d) None of these
Solution: (a) n( A  A)  n( A).n( A)  3  92
                 So, the total number of subsets of A  A is 29 and a subset of A  A is a relation over the set A.
Example: 2       Let X  {1, 2, 3, 4, 5} and Y  {1, 3, 5, 7, 9} . Which of the following is/are relations from X to Y
                 (a) R1  {( x, y)| y  2  x, x  X, y  Y }                    (b) R2  {(1,1), (2,1), (3, 3), (4, 3), (5, 5)}
                 (c) R3  {(1,1), (1, 3)(3, 5), (3, 7), (5, 7)}                  (d) R4  {(1, 3), (2, 5), (2, 4), (7, 9)}
Solution: (a,b,c) R4 is not a relation from X to Y, because (7, 9)  R4 but (7, 9)  X  Y .
Example: 3       Given two finite sets A and B such that n(A) = 2, n(B) = 3. Then total number of relations from
A to B is
                 (a) 4                                (b) 8                      (c) 64                            (d) None of these
Solution: (c) Here n( A  B) = 2 × 3 = 6
                 Since every subset of A × B defines a relation from A to B, number of relation from A to B is
                 equal to number of subsets of A  B  26  64, which is given in (c).
                                                                       01
Example: 4          The relation R defined on the set of natural numbers as {(a, b) : a differs from b by 3}, is given
by
                    (a) {(1, 4, (2, 5), (3, 6),.....} (b)                                           {(4, 1), (5, 2), (6, 3),.....}   (c){(1, 3), (2, 6), (3, 9),..}
Solution: (b) R  {(a, b) : a, b  N , a  b  3} = {((n  3), n) : n  N }  {(4, 1), (5, 2), (6, 3).....}
     Clearly (a, b)  R  (b, a)  R–1 .                Also, Dom (R) = Range (R 1 ) and Range (R) = Dom (R 1 )
     Example : Let A = {a, b, c}, B = {1, 2, 3} and R = {(a, 1), (a, 3), (b, 3), (c, 3)}.
                   –1
     Then, (i) R = {(1, a), (3, a), (3, b), (3, c)}
             (ii) Dom (R) = {a, b, c} = Range (R 1 )
Example: 5          Let A = {1, 2, 3}, B = {1, 3, 5}. A relation R : A  B is defined by R = {(1, 3), (1, 5), (2, 1)}. Then R 1 is
defined by
                    (a) {(1,2), (3,1), (1,3), (1,5)}               (b)
                                                                                               ps   {(1, 2), (3, 1), (2, 1)}    (c) {(1, 2), (5, 1), (3, 1)}(d)
                                                                                       te
                                                1           1
Solution: (c)        ( x, y)  R  (y, x)  R        ,  R         {(3,1), (5,1), (1, 2)} .
                                                                                 ys
Example: 6          The relation R is defined on the set of natural numbers as {(a, b) : a = 2b}. Then R 1 is given by
                                                                            ud
                    (a) {(2, 1), (4, 2), (6, 3).....}              (b)                              {(1, 2), (2, 4), (3, 6)....} (c) R 1 is not defined (d)
                                                                      St
Solution: (b) R = {(2, 1), (4, 2), (6, 3),......} So, R 1 = {(1, 2), (2, 4), (3, 6),.....}.
               A relation R on a set A is not a symmetric relation if there are at least two elements a, b  A such that
                (a, b)  R but (b, a)  R.
              A reflexive relation on a set A is not necessarily symmetric.
                                                                                     02
    (3) Anti-symmetric relation : Let A be any set. A relation R on set A is said to be an anti-symmetric relation
iff (a, b)  R and (b, a)  R  a = b for all a, b  A.
    Thus, if a  b then a may be related to b or b may be related to a, but never both.
    Example: Let N be the set of natural numbers. A relation R  N  N is defined by xRy iff x divides y(i.e., x/y).
            The universal relation on a set A containing at least two elements is not anti-symmetric, because if
             a  b are in A, then a is related to b and b is related to a under the universal relation will imply that
             a = b but a  b.
            The set {(a, a) : a  A}  D is called the diagonal line of A  A . Then “the relation R in A is
                antisymmetric iff R  R 1  D ”.
    (4) Transitive relation : Let A be any set. A relation R on set A is said to be a transitive relation iff
    (a, b)  R and (b, c)  R  (a, c)  R for all a, b, c  A i.e., aRb and bRc  aRc for all a, b, c  A.
    In other words, if a is related to b, b is related to c, then a is related to c.
                                                                   ps
    Transitivity fails only when there exists a, b, c such that a R b, b R c but a R c.
                                                               te
    R1  {(1, 2),(1, 3)} ; R 2 = {(1, 2)}; R3 = {(1, 1)}; R 4 = {(1, 2), (2, 1), (1, 1)}
                                                         ud
                                                        St
Then R1 , R 2 , R3 are transitive while R4 is not transitive since in R 4 ,(2, 1) R 4 ;(1, 2) R 4 but (2, 2)  R4 .
            The relation ‘is congruent to’ on the set T of all triangles in a plane is a transitive relation.
    (5) Identity relation : Let A be a set. Then the relation IA = {(a, a) : a  A} on A is called the identity relation on A.
    In other words, a relation IA on A is called the identity relation if every element of A is related to itself only. Every
identity relation will be reflexive, symmetric and transitive.
    Example: On the set = {1, 2, 3}, R = {(1, 1), (2, 2), (3, 3)} is the identity relation on A .
    Note :     It is interesting to note that every identity relation is reflexive but every reflexive relation need not be
               an identity relation.
             Also, identity relation is reflexive, symmetric and transitive.
    (6) Equivalence relation : A relation R on a set A is said to be an equivalence relation on A iff
    (i) It is reflexive i.e. (a, a)  R for all a  A
    (ii) It is symmetric i.e. (a, b)  R  (b, a)  R, for all a, b  A
    (iii) It is transitive i.e. (a, b)  R and (b, c)  R  (a, c)  R for all a, b, c  A.
    Note :  Congruence modulo (m) : Let m be an arbitrary but fixed integer. Two integers a and b are said to
               be congruence modulo m if a  b is divisible by m and we write a  b (mod m).
                                                              03
                Thus a  b (mod m)  a  b is divisible by m. For example, 18  3 (mod 5) because 18 – 3 = 15
                which is divisible by 5. Similarly, 3  13 (mod 2) because 3 – 13 = –10 which is divisible by 2. But 25
                 2 (mod 4) because 4 is not a divisor of 25 – 3 = 22.
                The relation “Congruence modulo m” is an equivalence relation.
                                                              Important Tips
   If R and S are two equivalence relations on a set A , then R  S is also an equivalence relation
    on A.
   The union of two equivalence relations on a set is not necessarily an equivalence relation on the
    set.
   The inverse of an equivalence relation is an equivalence relation.
    As an example we consider a very important equivalence relation x  y(mod n) iff n divides ( x  y), n is a fixed
positive integer. Consider n  5. Then
                                                              ud
                                                          St
One can easily see that there are only 5 distinct equivalence classes viz. [0], [1], [2], [3] and [4], when n = 5.
Example: 7        Given the relation R = {(1, 2), (2, 3)} on the set A = {1, 2, 3}, the minimum number of ordered pairs which
                  when added to R make it an equivalence relation is
                  (a) 5                           (b) 6                               (c) 7                         (d) 8
Solution: (c)     R is reflexive if it contains (1, 1), (2, 2), (3, 3)
                   (1, 2)  R, (2, 3)  R
 R is symmetric if (2, 1), (3, 2)  R. Now, R  {(1, 1), (2, 2), (3, 3), (2, 1), (3, 2), (2, 3), (1, 2)}
                  R will be transitive if (3, 1); (1, 3)  R. Thus, R becomes an equivalence relation by adding (1, 1) (2, 2) (3,
                  3) (2, 1) (3,2) (1, 3) (3, 1). Hence, the total number of ordered pairs is 7.
Example: 8        The relation R = {(1, 1), (2, 2), (3, 3), (1, 2), (2, 3), (1, 3)} on set A = {1, 2, 3} is
                  (a) Reflexive but not symmetric                                          (b)                      Reflexive       but     not
transitive
                  (c) Symmetric and Transitive                                             (d)                      Neither     symmetric   nor
                  transitive
Solution: (a)     Since (1, 1); (2, 2); (3, 3)  R therefore R is reflexive. (1, 2)  R but (2, 1)  R, therefore R is not
                  symmetric. It can be easily seen that R is transitive.
Example: 9        Let R be the relation on the set R of all real numbers defined by a R b iff | a  b | 1 . Then R is
                                                                      04
                 (a) Reflexive and Symmetric (b)                                    Symmetric only               (c) Transitive only     (d)
Solution: (a)    | a  a | 0  1 a R a  a  R
                                                      1    1      1
                  R is symmetric, Again 1R             and R1 but  1
                                                      2    2      2
                  R is not anti-symmetric
                 Further, 1 R 2 and 2 R 3 but 1 R 3
                 [ |1  3| 2  1 ]
                  R is not transitive.
Example: 10      The relation "less than" in the set of natural numbers is                                       [UPSEAT 1994, 98; AMU
1999]
                 (a) Only symmetric                (b) Only transitive              (c) Only reflexive           (d) Equivalence relation
Solution: (b)    Since x  y, y  z  x  z  x, y, z  N
                 Since A  B, B  C  A  C
                                                               ud
Example: 12 Let A  {2, 4, 6, 8} . A relation R on A is defined by R  {(2, 4), (4, 2), (4, 6), (6, 4)} . Then R is
                                                                          05
Example: 16     Let N denote the set of all natural numbers and R be the relation on N  N defined by (a, b) R (c, d) if
                ad(b  c)  bc(a  d), then R is                                                      [Roorkee 1995]
                (a) Symmetric only                 (b) Reflexive only                   (c) Transitive only         (d) An           equivalence
                relation
Solution: (d)   For (a, b), (c, d)  N × N
                (a, b)R(c, d)  ad(b  c)  bc(a  d)
                 R is symmetric
                Transitive: For (a, b), (c, d), (e, f )  N  N , Let (a, b)R(c, d), (c, d)R(e, f )
                 adb  adc  bca  bcd                .....(i)      and           cfd  cfe  dec  def      .......(ii)
                (i) × ef  (ii) × ab gives, adbef  adcef  cfdab  cfeab = bcaef  bcdef  decab  defab
                                                                               ps
                 adcf (b  e)  bcde(a  f )  af (b  e)  be(a  f )  (a, b)R (e, f ) .  R is transitive. Hence R is an equivalence
                                                                            te
                relation.
                                                                     ys
Example: 17     For real numbers x and y, we write x Ry  x  y  2 is an irrational number. Then the relation R is
                                                                  ud
R is not symmetric, because 2R1 but 1 R 2 , R is not transitive also because 2 R 1 and 1R 2 2
but 2 R 2 2 .
Example: 18     Let X be a family of sets and R be a relation on X defined by ‘A is disjoint from B’. Then R is
                (a) Reflexive                      (b) Symmetric                        (c) Anti-symmetric          (d) Transitive
Solution: (b)   Clearly, the relation is symmetric but it is neither reflexive nor transitive.
Example: 19     Let R and S be two non-void relations on a set A. Which of the following statements is false
                (a) R and S are transitive  R  S is transitive                        (b) R and S are transitive  R  S is transitive
                (c) R and S are symmetric  R  S is symmetric                          (d) R and S are reflexive  R  S is reflexive
Solution: (a)   Let A  {1, 2, 3} and R = {(1, 1), (1, 2)}, S = {(2, 2) (2, 3)} be transitive relations on A.
                (a) [8]  [6]                      (b) [8]  [14]                       (c) [6]  [13]              (d) [8]  [6]  [13]
                                                   1
Solution: (c)   8 x  6  14 P (P  Z )  x           [14 P  6] , x  Z
                                                   8
                          1
                x =        (7 P  3)    x = 6, 13, 20, 27, 34, 41, 48,.......
                          4
                                                                        06
                   Solution set = {6, 20, 34, 48,.....}  {13, 27, 41, ......} = [6]  [13].
                  Where [6], [13] are equivalence classes of 6 and 13 respectively.
Example: 21       If R is a relation from a set A to a set B and S is a relation from B to a set C, then the relation SoR
                  (a) Is from A to C                 (b) Is from C to A                     (c) Does not exist                  (d) None of these
Solution: (a)     It is obvious.
Example: 22       If R  A  B and S  B  C be two relations, then (SoR)1      ps
                                                                             te
                  (a) S 1oR 1                      (b) R 1oS 1                          (c) SoR                             (d) RoS
                                                                        ys
Example: 23       If R be a relation < from A = {1,2, 3, 4} to B = {1, 3, 5} i.e., (a, b)  R  a  b, then RoR 1 is
                                                               St
                  (a) {(1, 3), (1, 5), (2, 3), (2, 5), (3, 5), (4, 5)}
                  (b) {(3, 1) (5, 1), (3, 2), (5, 2), (5, 3), (5, 4)}
                  (c) {(3, 3), (3, 5), (5, 3), (5, 5)}
                  (d) {(3, 3) (3, 4), (4, 5)}
Solution: (c)     We have, R = {(1, 3); (1, 5); (2, 3); (2, 5); (3, 5); (4, 5)}
                              R 1  {(3, 1), (5, 1), (3, 2), (5, 2); (5, 3); (5, 4)}
                  Hence RoR 1 = {(3, 3); (3, 5); (5, 3); (5, 5)}
Example: 24       Let a relation R be defined by R = {(4, 5); (1, 4); (4, 6); (7, 6); (3, 7)} then R 1oR is
                  (a) {(1, 1), (4, 4), (4, 7), (7, 4), (7, 7), (3, 3)}                      (b) {(1, 1), (4, 4), (7, 7), (3, 3)}
                  (c) {(1, 5), (1, 6), (3, 6)}                                              (d) None of these
                                     1                  1
Solution: (a)     We first find R , we have R                  {(5, 4); (4, 1); (6, 4); (6, 7); (7, 3)} we now obtain the elements of R 1 oR we first
pick the element of R and then of R 1 . Since (4, 5)  R and (5, 4)  R 1 , we have (4, 4)  R 1oR
Hence R 1oR  {(1, 1); (4, 4); (4, 7); (7, 4), (7, 7); (3, 3)}.
                                                                             07
1.2.6 Axiomatic Definitions of the Set of Natural Numbers (Peano's Axioms).
    The set N of natural numbers (N = {1, 2, 3, 4......}) is a set satisfying the following axioms (known as peano's axioms)
    (1) N is not empty.
(2) There exist an injective (one-one) map S : N  N given by S(n)  n  , where n is the immediate successor of
n in N i.e., n  1  n .
    (3) The successor mapping S is not surjective (onto).
    (4) If M  N such that,
(i) M contains an element which is not the successor of any element in N, and
    (ii) m  M  m   M , then M  N
    This is called the axiom of induction. We denote the unique element which is not the successor of any element is 1.
Also, we get 1  2, 2  3 .
n  1  n
                  n  m   (n  m)
            Multiplication in N is defined by,
                                                                 ps
                                                             te
                    n .1  n
                                                         ys
                  n.m   n.m  n
                                                     ud
                                                  St
                                                            08
                                       Assignment
                                                                Level-1
1.    A relation from P to Q is                                                                                                 [AMU 1998]
      (a) A universal set of P × Q (b) P × Q                                (c) An equivalent set of P × Q (d)           A subset of P × Q
2.    Let R be a relation from a set A to set B, then
      (a) R = A  B                     (b) R = A  B                       (c) R  A × B                    (d) R  B × A
3.    Let A = {a, b, c} and B = {1, 2}. Consider a relation R defined from set A to set B. Then R is equal to set[Kurukshetra CEE 1995
      (a) A                             (b) B                               (c) A × B                        (d) B × A
4.    Let n(A) = n. Then the number of all relations on A is
                                                                                     2
      (a) 2n                            (b) 2(n)!                           (c) 2n                           (d) None of these
5.
      relations from A to B is
                                                                            ps
      If R is a relation from a finite set A having m elements to a finite set B having n elements, then the number of
                                                                       te
6.    Let R be a reflexive relation on a finite set A having n-elements, and let there be m ordered pairs in R. Then
                                                             ud
      (a) {(1, 1), (2, 1), (3, 1), (4, 1), (2, 3)}                          (b) {(2, 2), (3, 2), (4, 2), (2, 4)}
      (c) {(3, 3), (3, 4), (5, 4), (4, 3), (3, 1)}                          (d) None of these
8.    A relation R is defined from {2, 3, 4, 5} to {3, 6, 7, 10} by; xRy  x is relatively prime to y. Then domain of R is
      (a) {2, 3, 5}                     (b) {3, 5}                          (c) {2, 3, 4}                    (d) {2, 3, 4, 5}
9.    Let R be a relation on N defined by x  2y  8 . The domain of R is
      (a) {2, 4, 8}                     (b) {2, 4, 6, 8}                    (c) {2, 4, 6}                    (d) {1, 2, 3, 4}
10.   If R  {( x, y)| x, y  Z, x 2  y 2  4} is a relation in Z, then domain of R is
      (a) {0, 1, 2}                     (b) {0, – 1, – 2}                   (c) {– 2, – 1, 0, 1, 2}          (d) None of these
11.   If A = {1, 2, 3} , B = {1, 4, 6, 9} and R is a relation from A to B defined by ‘x is greater than y’. The range of R is
      (a) {1, 4, 6, 9}                  (b) {4, 6, 9}                       (c) {1}                          (d) None of these
12.   R is a relation from {11, 12, 13} to {8, 10, 12} defined by y  x  3 . Then R 1 is
      (a) {(8, 11), (10, 13)}           (b) {(11, 18), (13, 10)}            (c) {(10, 13), (8, 11)}          (d) None of these
13.   Let A = {1, 2, 3}, B = {1, 3, 5}. If relation R from A to B is given by R ={(1, 3), (2, 5), (3, 3)}. Then R 1 is
      (a) {(3, 3), (3, 1), (5, 2)}      (b) {(1, 3), (2, 5), (3, 3)}        (c) {(1, 3), (5, 2)}             (d) None of these
14.   Let R be a reflexive relation on a set A and I be the identity relation on A. Then
      (a) R  I                         (b) I  R                           (c) R  I                        (d) None of these
15.   Let A = {1, 2, 3, 4} and R be a relation in A given by R = {(1, 1), (2, 2), (3, 3), (4, 4), (1, 2), (2, 1), (3, 1), (1, 3)}. Then
      R is
      (a) Reflexive                     (b) Symmetric                       (c) Transitive                   (d) An equivalence relation
                                                                       09
16.   An integer m is said to be related to another integer n if m is a multiple of n. Then the relation is
      (a) Reflexive and symmetric    (b)                               Reflexive and transitive          (c) Symmetric             and
      transitive                 (d) Equivalence relation
23.
24.   Let A = {1, 2, 3, 4} and let R= {(2, 2), (3, 3), (4, 4), (1, 2)} be a relation on A. Then R is
                                                      St
                                                                10
33.   Solution set of x  3 (mod 7), x  Z, is given by
      (a) {3}                            (b) {7 p  3 : p  Z}               (c) {7 p  3 : p  Z}            (d) None of these
34.   Let R and S be two equivalence relations on a set A. Then
      (a) R  S is an equivalence relation on A                              (b) R  S is an equivalence relation on A
      (c) R  S is an equivalence relation on A                              (d) None of these
35.   Let R and S be two relations on a set A. Then
      (a) R and S are transitive, then R  S is also transitive              (b) R and S are transitive, then R  S is also transitive
      (c) R and S are reflexive, then R  S is also reflexive                (d) R and S are symmetric then R  S is also symmetric
36.   Let R = {(1, 3), (2, 2), (3, 2)} and S = {(2, 1), (3, 2), (2, 3)} be two relations on set A = {1, 2, 3}. Then RoS =
      (a) {(1, 3), (2, 2), (3, 2), (2, 1), (2, 3)}                           (b) {(3, 2), (1, 3)}
      (c) {(2, 3), (3, 2), (2, 2)}                                           (d) {(2, 3), (3, 2)}
37.   In problem 36, RoS 1 
      (a) {(2, 2), (3, 2)                (b) {(1, 2), (2, 2), (3, 2)}        (c) {(1, 2), (2, 2)}             (d) {(1, 2), (2, 2), (3, 2), (2,
      3)}
                                                                 Level-2
38.   Let R be a relation on the set N be defined by {(x, y)| x, y  N, 2x + y = 41}. Then R is
      (a) Reflexive                      (b) Symmetric                       ps
                                                                             (c) Transitive                   (d) None of these
                                                                        te
39.   Let L denote the set of all straight lines in a plane. Let a relation R be defined by R   , ,   L . Then R is
                                                                  ys
40.   Let T be the set of all triangles in the Euclidean plane, and let a relation R be defined on T by aRb iff a  b, a, b  T . Then R is
                                                         St
      (a) Reflexive but not transitive (b) Transitive but not symmetric (c) Equivalence                       (d) None of these
41.   Two points P and Q in a plane are related if OP = OQ, where O is a fixed point. This relation is
      (a) Partial order relation         (b) Equivalence relation            (c) Reflexive but not symmetric       (d)Reflexive but not transitive
42.   Let r be a relation over the set N × N and it is defined by (a, b)r(c, d)  a  d  b  c. Then r is
      (a) Reflexive only                 (b) Symmetric only                  (c) Transitive only              (d) An equivalence relation
43.   Let L be the set of all straight lines in the Euclidean plane. Two lines l1 and l 2 are said to be related by the relation R iff l1 is
      parallel to l 2 . Then the relation R is
                                                                        11
                           Answersheet
1    2    3     4     5    6    7    8    9     10    11   12   13   14    15     16   17   18   19   20
d    c    c     c     a    a    d    d    c     c     c    a    a    b    a,b     b    a    b    c    b
21   22   23    24    25   26   27   28   29    30    31   32   33   34    35     36   37   38   39   40
c    c    b,c   c     b    b    d    a    c     d     d    d    c    b    b,c,d   c    b    d    b    c
41   42   43    44                                        ps
                                                     te
b    d    a,b   a,b
                                                ys
          ,c,   ,c,
           d     d
                                               ud
                                          St
12