Set Theory-1
Set Theory-1
Set Theory-1
Mr Vincent Mwai
Universal Set:
All sets under investigation in any application of set theory are assumed to be
contained in some larger fixed set called the universal set denoted by ⊔. The
elements of the universal set comprise of all elements in the sets of discussion
and possibly extra elements i.e. the universal set is a set such that all the sets
of discussion are its subsets.
Example:
1. Suppose that the sets of discussion are:
A = {a, b, c, d, e}
B = {a, e, i, o, u}
C = {g, k, p, t, s, a, m}
A convenient universal set ⊔ in this case would be the set of the letters of english
alphabet.
2. Suppose the sets of discussion are
A = set of all saloon cars
B = set of all buses
C = set of all lorries
D = set of all tractors
A convenient universal set ⊔ in this case would be the set of all motor vehicles.
Venn Diagrams:
Sets can be represented pictorially using venn diagrams. In venn diagrams the
universal set ⊔ is represented by a rectangle. Inside this rectangle, circles are
used to represent the subsets under consideration. Sometimes points are used
to represent particular elements of a set. For example the set V = {a,e,i,o,u} is
represented as:
Set Operations
We now define ways of constructing new sets from existing ones.
Set union
Let A and B be sets. The union of A and B, denoted by A ∪ B and read as “A
union B”, is the set of all elements that are either in A or in B, or in both, i.e.
A ∪ B = {x|x ∈ A or x ∈ B}
In this case “or” is used to sense of “and / or”
5
Example:
1. Let A={1, 2, 3} and B={1, 3, 5, 7, 8}. Then A ∪ B={1,2,3,5,7,8}
2. Let A={a,b,6,p,4} and B={1,k,t,2,-1,b}. Then A ∪ B ={a,b,6,p,4,1,k,t,2,-1}
Remark:
For any sets A, B, and C
(a) A ∪ ∅ = A (Identity law)
(b) If A ⊂ B, then A ∪ B = B
(c) (A ∪ B) ∪ C = A ∪ (B ∪ C) (Associative law)
(d) A ∪ B = B ∪ A (Commutative law)
(e) A ∪ A = A (Idempotent law)
(f) A ⊆ A∪B, B ⊆ A∪B,
The union of a finite
S collection A1 , A2 ,..., An , of sets is denoted by:
A1 ∪ A2 ... ∪ An = ni=1 Ai S∞
If the collection A1 ,A2 , A3 ,... is infinite then A1 ∪ A2 ∪ ... = i=1 Ai
Set Intersection:
Let A and B be sets. The intersection of A and B denoted by A ∩ B and read
as “A intersection B” is the set of all element that belong to both A and B, i.e.
x ∈ A ∩ B if and only if x ∈ A and x ∈ B. In other words,
A ∩ B={x|x ∈ A and x ∈ B}.
Definition: Two sets A and B are called disjoint if and only if they have no
element in common.
So, if A and B are disjoint, then A ∩ B = ∅.
6
Two disjoint sets A and B are represented in a venn diagram as two non-
intersective circles.
Disjoint sets
Set Intersection
Example
1. Let A={1, 2, 3} and B={1, 3, 5}. Then A ∩ B={1, 3}. So, A and B are not
disjoint.
2. Let A={1, 2, 3} and B={a, b, c, d}. Then A ∩ B=∅. Hence, A and B are
disjoint.
3. Let A={a, b, 1, 3, c, d} and B={1, 2, c, k, f}. Then A ∩ B = {1,c}.
4. Let
A = set of all JKUAT students.
B = set of all female students taking discrete mathematics
C = set of all male students taking discrete mathematics
Then,
A ∩ B = Set of all JKUAT female students taking discrete mathematics
A ∩ C = Set of all JKUAT male students taking discrete mathematics
B∩C =∅
Remarks:
For any sets A, B and C
(a) A ∩ ∅ = ∅ (Unity or identity laws)
(b) If A ⊆ B, then A ∩ B=A
(c) A ∩ B ⊆ A and A ∩ B ⊆ B
(d) (A ∩ B) ∩ C = A ∩ (B ∩ C)
7
(e) A ∩ B = B ∩ A
(f) A ∩ A = A (Indempotent law)
The intersection of a finite collection A1 , A2 ,..., An , of set as denoted by:
A1 ∩ A2 ... ∩ An = ∩ni=1 Ai
If the collection A1 ,A2 , A3 ,... is infinite then A1 ∩ A2 ∩ ... = ∩∞
i=1 Ai
Example
1. Let A={1, 3, 5} and B={1, 2, 3}. Then A-B={5} and B-A={2}.
2. Let X={a, b, c, d, e} and Y = {a, e, i, o, u}. Then X − Y = {b, c, d} and
Y − X = {i, o, u}.
3. Let A be the set of all JKUAT students and B the set of all JKUAT students
taking discrete mathematics. Then A-B is the set of all JKUAT Students who
don’t take Discrete Mathematics.
NB: If A and B are disjoint, then A-B=A and B-A=B.
Exampe:
Let A={1, 2, 3} and B={4, 5, 6}. Then A-B=A and B-A=B.
Remarks:
1. In general, A − B 6= B − A.
2. (A − B) ∩ (B − A) = ∅.
3. A − B = A ∩ B c
Complement of a Set
Let ⊔ be the universal set and let A ⊂ ⊔. The complement of the set A, also
′
called universal set A, denoted by Ac or A or Ā, is the set of elements in ⊔ but
not in A. Therefore, Ac = ⊔ − A. In other words:
Ac = {x|x ∈ ⊔ and x ∈ / A}
Example
1. Let A={x ∈ Z|x > 5} where the universal set ⊔ is Z+ , the set of positive
integers. then,
Ac = {x ∈ Z+ |x ≤ 5}
={1, 2, 3, 4, 5}
9
2. Let ⊔ = {a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z}
A={a, b, c, d}
B={e, f, g}
V={a, e, i, o, u}
Then
Ac = {e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z}
B c = {a, b, c, d, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z}
V c = {b, c, d, f, g, h, k, l, m, n, p, q, r, s, t, v, w, x, y, z}
In this case,
A ∪ B={a, b, c, d, e, f, g} and A ∩ B = ∅
Also
(A ∪ B)c = {h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z}
(A ∩ B)c = ∅c = ⊔ = ⊔ − ∅ = ⊔
Ac ∪ B c ={a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z} =⊔
Ac ∩ B c = {h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z}
Comparing we have (A ∪ B)c = Ac ∩ B c and (A ∩ B)c = Ac ∪ B c .
For any two sets A and B, these two are called the De Morgans laws for set
theory.
Symmetric Difference
Let A and B be sets. The symmetric difference of A and B denoted by A ⊕ B,
consists of those elements in either A or B, but not in both A and B, i.e.
A ⊕ B = {(A ∪ B) − (A ∩ B)}
or
A ⊕ B = {(A − B) ∪ (B − A)}
Example
1. Let A = {1, 2, 3, 4} and B = {3, 4, 5, 6, 7}. Then A − B = {1, 2} and
B − A = {5, 6, 7}
So,
A ⊕ B = (A − B) ∪ (B − A)
={1, 2, 5, 6, 7}
Alternatively, A ∪ B ={1, 2, 3, 4, 5, 6, 7} and A ∩ B = {3, 4}
so,
A ⊕ B = {(A ∪ B) − (A ∩ B)}
={1, 2, 5, 6, 7}
10
Reamarks
(a) A ⊕ A = ∅
(b) A ⊕ ∅ = A
(c) A ⊕ ⊔ = Ac
(d) A ⊕ Ac = ⊔
(e) A ⊕ B = B ⊕ A
(f) (A ⊕ B) ⊕ B = A
(g) A ⊕ B = A ∪ B if A ∩ B = ∅
Set Identities
1. Identity laws | unity laws
A∪∅ =A
A∩⊔ =A
2. Domination | Zero Laws
A∪⊔ =⊔
A∩∅ =∅
3. Commutative laws.
A∪B = B ∪A
A∩B = B ∩A
4. Associative laws
(A ∪ B) ∪ C = A ∪ (B ∪ C)
(A ∩ B) ∩ C = A ∩ (B ∩ C)
5. Distributive laws.
A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)
6. Idempotent Laws.
A∪A =A
A∩A =A
7. Absorption Laws.
A ∪ (A ∩ B) = A
A ∩ (A ∪ B) = A
8. Complementation Laws
A ∪ Ac = ⊔
A ∩ Ac = ∅
9. Double Complementation Law
(Ac )c = A
11
5. The set identities and propositional equivalences are special cases of iden-
tities for boolean algebra.
Proving Set Identities:
There are three methods of proving the set identities:
1. Use of Venn diagrams.
2. Showing that each of the sets is a subset of the other.
3. Using Boolean algebra.
Justification \ Illustration using Venn Diagram:
(a) Absorption Laws.
A ∪ (A ∩ B) = A
12
A ∩ (A ∪ B) = A
′ ′
A ∩B
13
(ii) (A ∩ B)c = Ac ∪ B c
(A ∩ B)c
Ac ∪ B c
⇒ x ∈ A ∩ Bc
So, A − B ⊂ A ∩ B c ............(I)
Now let y ∈ A ∩ B c . Then y ∈ A and y ∈ B c
⇒ y ∈ A and y ∈ /B
⇒y ∈A−B
So, A ∩ B c ⊂ A − B ..........(II)
From (i) and (II) ⇒ A − B = A ∩ B c
2. Show that (A ∩ B) ∩ C = A ∩ (B ∩ C)
Solution:
Suppose x ∈ (A ∩ B) ∩ C. Then x ∈ A ∩ B and x ∈ C
⇒ x ∈ A and x ∈ B and x ∈ C
⇒ x ∈ A and x ∈ B ∩ C
⇒ x ∈ A ∩(B ∩ C)
So, (A ∩ B) ∩ C ⊂ A ∩ (B ∩ C) ...........(I)
Now, suppose y ∈ A ∩ (B ∩ C). Then y ∈ A and y ∈ B ∩ C
⇒ y ∈ A and y ∈ B and y ∈ C
⇒ y ∈ A ∩ B and y ∈ C
⇒ y ∈ (A ∩ B) ∩ C
So, A ∩ (B ∩ C) ⊂ (A ∩ B) ∩ C ..........(II)
From (I) and (II) we have ⇒ (A ∩ B) ∩ C = A ∩ (B ∩ C)
3. Prove that if A ⊂ C and B ⊂ D, then A ∪ B ⊂ C ∪ D
Proof:
Let x ∈ A ∪ B. Then x ∈ A or x ∈ B
If x ∈ A, than x ∈ C since A ⊂ A
If x ∈ B, then x ∈ D since B ⊂ D
So, x ∈ C ∪ D
Thus A ∪ B ⊂ C ∪ D
4. Prove that if A ⊂ C and B ⊂ D, then A ∩ B ⊂ C ∩ D
Proof
Suppose x ∈ A ∩ B. Then x ∈ A and x ∈ B.
So, x ∈ C since A ⊂ C and x ∈ D since B ⊂ D
Hence, x ∈ C ∩ D
Therefore A ∩ B ⊂ C ∩ D
Exercise:
Prove that for any sets A, B and C.
(a) A ∪ (B ∪ C) = (A ∪ B) ∪ C
′ ′ ′ ′
(b) [A ∪ (B ∩ C)] = (C ∪ B ) ∩ A \
(c) A ∩ (A ∪ B) = A
(d) A ∪ (A ∩ B) = A
(e) (A − B) − C = (A − C) − (B − C)
(f) A ⊕ B = (A ∪ B) − (A ∩ C)
(g) A ⊕ B = (A − B) ∪ (B − A)
Using Boolean Algebra
1. Simplify A ∩ (Ac ∪ B)
Solution:
16
A ∩ (Ac ∪ B)
= (A ∩ Ac ) ∪ (A ∩ B) (By distributive laws)
= ∅ ∪ (A ∩ B) (By complement law)
= A ∩ B (By unity law)
2. Show that A − (B ∪ C) = (A − B) ∩ (A − C)
Solution:
A − (B ∪ C)
′
= A ∩ (B ∪ C)
′ ′
= A ∩ (B ∩ C ) (De Morgan’s law)
′ ′
= (A ∩ B ) ∩ (A ∩ C ) (By distributive law)
= (A − B) ∩ (A − C)
′ ′
3. Simplify A ∩ B ∩ (A ∪ B ∪ C)
Solution:
′ ′
A ∩ B ∩ (A ∪ B ∪ C)
′
= (A ∪ B) ∩ [(A ∪ B) ∪ C] (By De Morgan’s law)
′ ′
= [(A ∪ B) ∩ (A ∪ B)] ∪ [(A ∪ B) ∩ C] (by distributive law)
′ ′
= ∅ ∪ [A ∩ B ∩ C] (by complement law and De Morgan’s law)
′ ′
= A ∩ B ∩ C (by unity law)
4. Show that (A − C) − (B − C) = (A − B) − C
Solution:
′
(A − C) − (B − C) = (A − C) ∩ (B − C)
′ ′ ′
= (A ∩ C ) ∩ (B ∩ C )
′ ′ ′ ′
= (A ∩ C ) ∩ [B ∪ (C ) ] (By De Morgan’s law)
′ ′
= (A ∩ C ) ∩ (B ∪ C) (By double complementation law)
′ ′ ′
= (A ∩ C ∩ B ) ∪ (A ∩ C ∩ C) (by distributive law)
′ ′
= (A ∩ C ∩ B ) ∪ (A ∩ ∅) (By complement law)
′ ′
= A ∩ C ∩ B ∪ ∅ (by zero law)
′ ′
= A ∩ C ∩ B (by unity law)
′ ′
= A ∩ B ∩ C (by commutative law)
′ ′
= (A ∩ B ) ∩ C (By associative law)
= (A − B − C.
′ ′ ′ ′
5. Show that [A ∪ (B ∩ C)] = (C ∪ B ) ∩ A
Solution:
′
[A ∪ (B ∩ C)]
′ ′
= A ∩ (B ∩ C) (by De Morgan’s law)
′ ′ ′
= A ∩ (B ∪ C ) (by De Morgan’s law)
′ ′ ′
= A ∩ (C ∪ B ) (by commutative law)
′ ′ ′
= (C ∪ B ) ∩ A (by commutative law)
Exercise:
1. Let A, B and C be sets. Draw a Venn diagram for each of the following:
(a) A ∩ (B ∪ C)
′ ′ ′
(b) A ∩ B ∩ C
(c) (A − B) ∪ (A − C)
(d)A ∩ (B − C)
(e) (A ∩ B) ∪ (A ∩ C)
17
|A ∪ B| = |A| + |B| − |A ∩ B|
=50+20-10
=60
(A ∪ B is the set of integers between 1 and 100, inclusively, divisible by 2 or 5)
2. Determine the number of integers between 1 and 100, inclusively, that are
divisible by either 3, 5 or 7.
Solution:
Let A
= {x|1 ≤ x ≤ 100, x is divisible by 3}
={3, 6, 9, ..., 99}
= 3y|1 ≤ y ≤ 33}
⇒ |A| = 33
And B
= {x|1 ≤ x ≤ 100, x is divisible by 5}
={5, 10, 15, ..., 100}
= {5y|y ∈ Z, 1 ≤ y ≤ 20}
⇒ |B| = 20
And C,
= {x|1 ≤ x ≤ 100, x is divisible by 7}
={7, 14, 21, ..., 98}
= {7y|y ∈ Z, 1 ≤ y ≤ 14}
⇒ |C| = 14
A ∩ B =Set of integers between 1 and ∞, divisible by 15 ( the l.c.m of 3 and
5). So,
A∩B
= {x|1 ≤ x ≤ 100, x is divisible by 15}
={15, 30, 45, ..., 90}
= {15y|y ∈ Z, 1 ≤ y ≤ 6}
⇒ |A ∩ B| = 6
A ∩ C =Set of integers divisible by 21 ( the l.c.m of 3 and 7), between 1 and
100. So,
A∩C
= {x|1 ≤ x ≤ 100, x is divisible by 21}
={21, 42, ..., 84}
= {21y|y ∈ Z, 1 ≤ y ≤ 4}
⇒ |A ∩ C| = 4
B ∩ C =Set of integers divisible by 35 ( the l.c.m of 5 and 7), between 1 and
100. So,
B∩C
= {x|1 ≤ x ≤ 100, x is divisible by 35}
={35, 70}
⇒ |B ∩ C| = 2
A ∩ B ∩ C = Set of all integers between 1 and 100, divisible by 105 (the l.c.m
of 3, 5 and 7). Clearly, A ∩ B ∩ C = ∅.
Now, the required number is:
|A ∩ B ∩ C| = |A| + |B| + |C| − |A ∩ B| − |A ∩ C| − |B ∩ C| + |A ∩ B ∩ C|
19
= 33 + 20 + 14 − 6 − 4 − 2 − 0
= 55
3. In a survey including 60 people, 25 take water, 26 tea and 26 coffee, 9 take
both milk and tea, 11 take milk and coffee, 8 take coffee and tea and 8 take
none of the drinks.
(a) Find the number of people who take any of the three drinks.
(b) Find the number of people who take coffee, tea, milk alone.
Solution:
Let
M= Set of those taking milk.
T= Set of those taking tea
C=Set of those taking coffee.
Then,
|M | = 25, |T | = 26, |C| = 26, |M ∩ T | = 9, |M ∩ C| = 11, |C ∩ T | = 8
The number of those who take any of the three drinks is |M ∪T ∪C| = 60−8 = 52
Those who take all the three drinks are |M ∪ T ∪ C|.
|M ∪ T ∪ C| = |M | + |T | + |C| − |M ∩ T | − |M ∩ C| − |C ∩ T | + |M ∩ C ∩ T |
⇒ 52 = 25 + 26 + 26 − 9 − 11 − 8 + |M ∩ T ∩ C|
⇒ |M ∩ T ∩ C| = 3
Those who take,
Milk alone = |M | − |M ∩ T | − |M ∩ C| + |M ∩ T ∩ C|
= 25 − 9 − 11 − 3
=8
Tea alone = |T | − |M ∩ T | − |C ∩ T | + |M ∩ T ∩ C|
= 26 − 9 − 8 − 3
= 12
Coffee alone = |C| − |M ∩ C| − |C ∩ T | + |M ∩ T ∩ C|
= 26-11-8+3
= 10
Those who take exactly one drink is 8+12+10=30
Those who take milk and coffee but not tea is
|M ∩ C| − |M ∩ T ∩ C| = 11 − 3 = 8
We can also use a Venn diagram to solve the problem:
20
C alone = 26-11-8+x = 7 + x
M alone = 25-9-11-x= 5+ x
T alone = 26-9-8+x= 9+ x
⇒ 25 + 9 + x + 7 + x + 8 − x = 52
⇒ 49 + x = 52
x=3
So,
C alone =7 +3 =10
M alone = 5+3 =8
T alone = 9+ 3=12
⇒ Those taking exactly one drink are 10 + 8 +12=30
All the three drinks = |M ∩ T ∩ C| = x = 3
M $ T only= 9 - 3 = 6
M $ C only = 11 - 3 =8
T and C only = 8 - 3 =5
⇒ Number taking exactly 2 drinks is 6 + 8 +5 = 19
Those taking almost 2 drinks is:
(None of the drinks) or (exactly one drink) or (exactly 2 drinks)
⇒ Required number is 8 + (10 +8 +12) + (6 +8 +5) = 57
or
Total population - (number taking all the three drinks)
= 60 − 3
= 57
4. Out of a group of 85 people, 30 invested in the stock market, 45 has certificates
of deposits (CD’s) and 44 had savings bonds. Furthermore, 23 had both CD’s
and bonds, 13 had both CD’s and stocks, and 13 had stocks and bonds. Finally,
10 of them had no investments. Determine how many of the people had:
(a) all the three types of investment
(b) at least two investments
(c) at most two investments
(d) CD’s only.
Solution:
21
Let
S= set of those who invested in stock market.
C= set of those who invested in CD’s.
S= set of those who invested in saving Bonds.
Then,
|S| = 30, |C| = 45, |B| = 44, |C ∩ B| = 23, |C ∩ S| = B, |S ∩ B| = 13,
′
|(S ∪ B ∪ C) | = 10, |S ∪ B ∪ C| = 85 − 10 = 75
|S ∪ B ∪ C| = 75 = 30 + (x + 9) + (23 − x) + (x + 8)
⇒ 75 = 70 + x
⇒x=5
(a) |S ∩ B ∩ C| = x = 5
(b) (13 − x) + (13 − x) + (23 − x) + x
= 49 − 2x
= 49 − 10
= 39
(c) | ⊔ | − |S ∩ B ∩ C| = 85 − 5 = 80
(d) x + 9 = 5 + 9 = 14
Exercise:
In a survey of 500 people, 285 are interested in football game, 195 are inter-
ested in hockey game, 115 are interested in basketball game, 45 in football and
basketball, 70 in football and hockey and 50 in hockey and basketball games.
However, 50 are not interested in any of the three games. Determine the number
of people who are interested in:
(a) all the three games
(b) exactly one of the games.
(c) exactly two of the games .
(d) at least one of the games.
Cartesian Products of Sets:
The order of elements in a collection is often important. Since sets are un-
ordered, a different structure is needed to represent collections. This is provided
by ordered n-tuples.
22
Definition: The ordered n-tuple (a1 , a2 , ..., an ) is the ordered collection that
has a1 as its first element, a2 as its second element, ..., and an as its nth - element.
Two ordered n-tuples are said to be equal if and only if each corresponding pair
of their elements are equal. i.e. (a1 , a2 , ..., an ) = (b1 , b2 , ..., bn ) if anf only if
ai = bi for i = 1, 2, ..., n. In particular, ordered 2-tuples are called ordered pairs.
For instance, (a, b) = (c, d) if and only if a = c and b = d. It then follows that
(a, b) 6= (b, a) unless a = b. Further, ordered 3-tuples are called ordered triples
while ordered 4-tuples are called ordered quadruples.
Definition: Let A and B be sets. The cartesian product of A and B, denoted
by A × B, and read as “A cross B”, is the set of all ordered pairs (a, b), where
a ∈ A and b ∈ B. In other words:
A × B = {(a, b)|a ∈ A and b ∈ B}
Example:
1. Let A={1, 2} and B={a, b , c}. Then
Solution:
A × B={(1, a), (1, b), (1, c), (2, a), (2, b), (2, c)}
B × A= {(x, y), | x ∈ B and y ∈ A}
B × A= {(a, 1), (a, 2), (b, 1), (b, 2) , (c, 1), (c, 2)}
Clearly, A × B 6= B × A
2. Let A = {a, b, c, d} and B={1, 2, 3}. Then
solution:
A × B= {(a, 1), (a, 2), (a, 3), (b, 1), (b, 2), (b, 3), (c, 1), (c, 2), (c, 3), (d, 1),
(d, 2), (d, 3)}
B × A ={(1, a), (1, b), (1, c), (1, d), (2, a), (2, b), (2, c), (2, d), (3, a), (3, b),
(3, c), (3, d)}
Remarks:
1. For any set A, A × ∅ = ∅ × A = ∅
2. For any two sets A and B, A × B 6= B × A unless A=B, or A = ∅ or B = ∅.
3. If |A| = m and |B| = n, then |A × B| = mn
Now, the cartesian prosuct of more than two sets can also be defined by:
Defn: The Cartesian product of the sets A1 , A2 , ..., An denoted by A1 × A2 ×
... × An , is the set of ordered n-tuples (a1 , a2 , ..., an ) where ai belongs to Ai for
i = 1, 2, ..., n.
In other words:
A1 × A2 × ... × An = {(a1 , a2 , ..., an )}|ai ∈ Ai , i = 1, 2, ..., n}
Example:
Let A = {0, 1}, B = {0, 2} and C = {1, 2}. Then
Solution:
A × B × C ={(0, 0, 1), (0, 0, 2), (0, 2, 1), (0, 2, 2), (1, 0, 1), (1, 0, 2), (1, 2, 1)
, (1, 2, 2)}
If A1 = A2 = A3 = ... = An = A, then A1 × A2 × A3 × ... × An is denoted by
An i.e.
An = {(a1 , a2 , ...an ) |ai ∈ A, i = 1, 2, ..., n}
23
So, A × A = A2 , A × A × A = A3 , A × A × A × A = A4 etc.
In particular, for the set of all real numbers R, R × R = R2 is the Eucliclean
space of dimension 2, R× R × R is the eucliclean space of dimensions 3, ..., R×
R × ... × R = Rn is the eucliclean space of dimensions n.
Claim: For any three non-empty sets A, B and C
A × (B ∩ C) = (A × B) ∩ (A × C)
Proof:
Let (u, v) ∈ A × (B ∩ C).
Then u ∈ A and v ∈ B ∩ C
⇒ u ∈ A and v ∈ B and v ∈ C
⇒ (u, v) ∈ A × B and (u, v) ∈ A × C
⇒ (u, v) ∈ (A × B) ∩ (A × C)
So, A × (B ∩ C) ⊂ (A × B) ∩ (A × C).....................(1)
Now, let (x, y) ∈ (A × B) ∩ (A × C)
Then (x, y) ∈ A × B and (x, y) ∈ (A × C)
⇒ x ∈ A and y ∈ B and x ∈ A and y ∈ C
⇒ x ∈ A and y ∈ B and y ∈ C
⇒ x ∈ A and y ∈ B ∩ C
⇒ (x, y) ∈ A × (B ∩ C)
So, (A × B) ∩ (A × C) ⊂ (A × (B ∩ C)....................(2)
Therefore, from (1) and (2) A × (B∩) = (A × B) ∩ (A × C)
Exercise:
Let A, B, and C be sets. Prove that A × (B ∪ C) = (A × B) ∪ (A × C)
Claim: Let A, B, C and D be sets. If A × B 6= ∅ and A × B = C × D, then A
= C and B = D.
Proof:
We need to show that A ⊂ C and B ⊂ D and at the same time C ⊂ A and
D⊂B
Let a ∈ A and b ∈ B
Then (a, b) ∈ A × B
⇒ (a, b) ∈ C × D since A × B = C × D
⇒ a ∈ C and b ∈ D
⇒ A ⊂ C and B ⊂ D.....................(1)
Now, let c ∈ C and d ∈ D.
Then (c, d) ∈ C × D
⇒ (c, d) ∈ A × B since A × B = C × D
⇒ c ∈ A and d ∈ B
⇒ C ⊂ A and D ⊂ B....................(2)
From (1) and (2) A = C and B = D.
NB: The results above could not necessarily hold if A × B = ∅.
For instance, let A = D = ∅ and let B = {x} and C = {y} .
Then A × B = ∅ and C × D = ∅
⇒A×B =C ×D
However, B * D