Solved Problems(Sets)
Solved Problems(Sets)
Observe that V 0 U consists precisely of those pairs (x, y) for which there exists, in
the above diagram, a "path" from x E A to y E C composed of two arrows, one fol-
lowing the other.
Example 9.3: Let N denote the set of positive integers, and let R denote the relation < in N, i.e.
(a, b) E R if a < b. Hence (a, b) E R -1 iff a> b. Then
Note that R 0 R -1 R -1 o R.
Solved Problems
SETS, ELEMENTS, SUBSETS
1. Let A = {x: 3x = 61. Does A= 2?
Solution:
A is the set which consists of the single element 2, i.e. A = {2}. The number 2 belongs to A; it
does not equal A. There is a basic difference between an element p and the singleton set { p).
3. Determine whether or not each of the following sets is the null set:
(i) X = {x: x 2 =9, 2x= 41, (ii) Y = fx : xx1, (iii) Z= {x: x +8 = 81.
Solution:
(1) There is no number which satisfies both x2 = 9 and 2x = 4; hence X = Q.
(11) We assume that any object is itself, so Y is empty. In fact, some texts define the null set by
—= {x : x x } .
(iii) The number zero satisfies x -I- 8 = 8; hence Z = {0}. Accordingly, Z Q.
SET OPERATIONS
9. Let U = {1, 2, . ., 8, 91, A = {1, 2, 3, 4 } , B = {2, 4, 6, 8 } and C = {3, 4, 5, 6 } .
Find: (i) Ac, (ii) (A n C )c , (iii) B \C , (iv) (Au By .
Solution:
(I) Ac consists of the elements in U that are not in A; hence Ac = {5, 6, 7, 8, 9).
Solution:
R consists of those ordered pairs (a, b) E A XB such that a < b; hence
R (1,5), (2, 3), (2, 5), (3, 5), (4, 5) 1
(ii) R is displayed on the coordinate diagram of A x B as shown above.
(iii) The domain of R is the set of first coordinates of the pairs in R; hence domain of R = {1, 2, 3, 41.
The range of R is the set of second coordinates of the pairs in R; hence range of R = 0,51.
R ' can be obtained from R by reversing the pairs in R; hence
R -1 = { (3, 1), (5, 1), (3, 2), (5, 2), (5, 3), (5,4) }
(iv) To find R0R -1 , construct diagrams of R -1 and R as shown below. Observe that R -1 , the
second factor in the product R 0R 1 , is constructed first. Then
2-
- 3 -2 -
20. Let T be the relation in the set of real numbers R defined by xTy if 0 x-y 1.
(i) Express T and T -1 as subsets of R x R and graph.'
(ii) Show that T 0T -1 = {(x, z) -
Solution:
(i) T = {(x,y): x,y E R, 0 x - y 1}
T-1 = ( (x, y) : (y, E T } = ((x, y) : x,y E R, 0 y - x 1}
The relations T and T -1 are graphed below,
-2 4,4.
I I
1 2
--2
Graph of T Graph of T - 1
12 SETS AND' RELATIONS [CHAP. 1
Also, 0 y - x, y - z = 1 y-x=1
• y-x=1-1-y- z
• -1 -= x - z
In other words, 0 = y - x, y - z = 1 -1 = x - z = 1 if x - zi -‹ 1
Accordingly, (x, z) E S, i.e. To T -1 C S.
21. Prove: For any two relations R cXx Y and ScYx Z, (S R) --1 = R -1 0S -- '.
Solution: (SoR) -1 = {(z,x): (x,z)E SoR)
= (z, x): 3y E Y s.t. (x, y) E R, (y, z) E S)
(z, : 3y E Y s.t. (z, y) E S -1 , (y, x) E R -1 }
= R-1 0 S -1
22. Prove: For any three relations RcWxX, ScXxY and Tc YxZ, (ToS)0.1? =
To (S o R).
Solution: (T 0 S) OR { (w, : 3x E X s.t. (w, x) E R, (x, z)E TOS}
• { (tv, 3x E X, 3y E Y s.t. x) E R, (x, y) E S, (y, z) E T }
• (w, : ay E Y s.t. (w, y) E S o R, (y, E T1
To(SoR)
(vi) Let (a,b), (b,c) E R 0 R. By (iii), R oR c R; hence (a,b), (b,c) E R. So (a, c) E R 0 R, i.e. R 0 R is
transitive.
24. Consider the relation R = (1,1), (2,3), (3,2)} in X = {1,2,31. Determine whether
or not R is (1) reflexive, (ii) symmetric, (iii) transitive.
Solution:
(i) R is not reflexive since 2 E X but (2, 2) E R.
(ii) R is symmetric since R -1 = R.
(iii) R is not transitive since (3, 2) E R and (2, 3) E R but (3, 3) E R.
25. Consider the set N x N, i.e. the set of ordered pairs of positive integers. Let R be the
relation = in N x N which is defined by
(a, b) (c, d) if ad = be
Prove that R is an equivalence relation.
Solution:
Note that, for every (a, b) E N X N, (a, b) (a, b) since ab = ba; hence R is reflexive.
Suppose (a, h) (c, d). Then ad be, which implies cb da. Hence (c, d) (a, b) and, therefore
R is symmetric.
Now suppose (a, h) (c, d) and (c, d)_^,z (e, f). Then ad = be and cf--=--- de. Thus
(ad)(cf) = (bc)(de)
and, by cancelling from both sides, af =- be. Accordingly, (a, h) (e, f) and R is transitive.
Since R is reflexive, symmetric and transitive, R is an equivalence relation.
a
Observe that if the ordered pair (a, b) is written as a fraction then the above relation R is,
a c
usual definition of the equality of two fractions, i.e. -b- = infact,he ad = be.
if
26. Prove Theorem 1.4: Let R be an equivalence relation in A and let [a] be the equivalence
class of a e A. Then:
(1) For every a E A, a E raj.
(ii) [a] = [b] if and only if (a, b) E R. ,
Supplementary Problems
SETS, ELEMENTS, SUBSETS
27. Determine which of the following sets is the empty set:
(i) {x:1<x< 2, xER} (iii) {x : x E
(ii) { x : 1 < x < 2, x E N } (iv) {x : x 2 < x, x E
28. Let A = {1, 2, ..., 8, 9 } , B = {2, 4, 6, 81, C = {1, 3, 5, 7, 9 } , D = {3, 4, 5} and E = {3, 5 } . Which
of these sets can equal X if we are given the following information?
(i) X and B are disjoint, (ii) XcD and X03, (iii) XcA and X4C, (iv) X c C and 2CA.
30. Discuss all inclusions and membership relations among the following three sets: (6, {0}, {0, {0}}.
31. Prove that the closed interval [a, b] is not a subset of the open interval (a, b).
32. Find the power set "P(U) of U =--- 21 and the power set P(V) of V = {0, { 1 , 2 } 1-
33. State whether each of the following is true or false. Here S is any non-empty set and 2s is the
power set of S.
(i) S E 2s (ii) S c 2s (iii) {S} E 2s (iv) {S} c 2s
SET OPERATIONS
34. Let A = {1, 2, 3, {1, 2, 3 } ), B = {1,2, {1, 2 } ). Find: A uB, A nB, A \ B, B \A.
35. In each of the Venn diagrams below shade: (i) A n (B u C), (ii) C\ (A nB).
(a) (b)
38. prove: 24c 213 2A n B ; 2A U2B C2AUB. Give an example to show that 2A u 2B 2A UB.
39. Prove Theorem 1.3: Each of the following conditions is equivalent to A cB:
(i) A nB = A, (ii) Au B = B, (iii) Be cile, (iv) A nBe =Ø, (y) B uAc U
(Note. A nB = A was already proven equivalent to A cB in Problem 15.)
42. Using the definition of ordered pair, i.e. (a, b) = {{a}, {a, b1), prove that (a, b) = (e, d) if
a= e and b= d.
43. Determine the number of distinct relations from a set with m elements to a set with n elements,
where m and n are positive integers.
CHAP. 11 SETS AND RELATIONS 15
45. Consider the relation R 1 (4, 5), (1, 4), (4, 6), (7, 6), (3, 7) in N.
(i) Find domain of R, range of R and R -1 . (ii) Find R 0 R. (iii) Find R -1 0R.
46. Let U and V be the relations in R defined by U = {(x, y) : x 2 + 2y = 5) and V = {(x, y) : 2x — y = 3).
(i) Find Vo U. (ii) Find U o V.
47. Consider the relations < and in R. Show that < u A = where A is the diagonal.
EQUIVALENCE RELATIONS
48. State whether each of the following statements is true or false. Assume R and S are (non-empty)
relations in a set A.
(1) If R is symmetric, then R -1 is symmetric.
(2) If R is reflexive, then RnR -1 Ç.
(3) If R is symmetric, then RnR -1
(4) If R and S are transitive, then RuS is transitive.
(5) If R and S are transitive, then RnS is transitive.
(6) If R and S are symmetric, then RuS is symmetric.
(7) If R and S are symmetric, then RnS is symmetric.
(8) If R and S are reflexive, then R nS is reflexive.
49. Consider N X N, the set of ordered pairs of positive integers. Let be the relation in N X N defined by
(a, b) (c,d) if a + d = b c
(i) Prove = is an equivalence relation. (ii) Find the equivalence class of (2, 5), i.e. [(2,
51. Let — be the relation in the Cartesian plane R2 defined by (x, y (w, z) if x = W.
Prove that — is an equivalence relation and graph several equivalence classes.
52. Let a and b be arbitrary real numbers. Furthermore, let — be the relation in R2 defined by
(x, — (w z) if 3k E Z s.t. x — w = ka, y — z = kb
,
34. AuB = (1, 2, 3, {1, 2 } , { 1, 2, 3 } 1, AnB = { 1, 2 } , A\B = (3, {1, 2, 33, B\A = ((1, 2 ) ).
16 SETS AND RELATIONS [CHAP. 1
35.
(i )
37. (ii) C = 0, A= B
38. Example: A = {1 } , B = ( 2)
43. 2inn
45. (i) domain of R = {4, 1, 7, 3}, range of R = {5, 4, 6, 7}, R -1 = { (5, 4), (4, 1), (6, 4), (6, 7), (7, 3) )
(ii) R 0 R = { (1, 5), (1, 6), (3, 6) 1
(iii) R -1 OR = { (4, 4), (1, 1), (4, 7), (7, 4), (7, 7), (3, 3) }
46. V 0 U = (x, y) : x2 + y = 2 1, U o V = (x, y) : 4x 2 - 12x + 2y + 4 = 0 1
49. (ii) [(2, 5)] = (1, 4), (2, 5), (3, 6), (4, 7), (n, n 3), .}
51.
52.
• •
• •
•
• • •
a
•
• •
The above gives a typical equivalence class. The distance between adjacent horizontal points is a and
the distance between adjacent vertical points is b.