John Karlo S. Mendoza BS Mechanical Engineering University of The Philippines Diliman
John Karlo S. Mendoza BS Mechanical Engineering University of The Philippines Diliman
Example
A = {1,3,5,7,9}
Ways to Describe a Set
2. Rule Method/Set Builder Notation
- enclosed in braces a descriptive phrase
and agreeing that those objects and only
those with the described property are
elements of the set
Example
A = {x|x is an odd integer between 0 and 10}
*Note: In the notation, x is a dummy variable.
Remark
Example
A = {guava, PolSci, Engg, chalk}
B = {x|x is a star in the universe}
Definitions
Finite Set – number of elements countable
Infinite Set – number of elements uncountable
Empty Set/Null Set – set containing no element
Notation: , { }
*Note: {} is not the null set.
Universal Set – set consisting of all elements in
a particular discussion
Relations Between Sets
1. Equality
A = B if A and B have exactly the same
elements.
Example
A = {1,3,5,7,9}
B = {x|x is a positive odd integer less than 10}
A=B
Relations Between Sets
2. Equivalence
Two sets A and B are in one-to-one (1-1)
correspondence if to each element of A
therecorresponds exactly one element of B,
and vice versa. The sets A and B are
equivalent if the set A and B are in a 1-1
correspondence.
Relations Between Sets
Example
A = {1,2,3}
B = {a,b,c}
C = {c,d}
A B but A has no 1-1 correspondence to C
Relations Between Sets
Remark
Two finite sets are equivalent if they have
the same cardinality.
Relations Between Sets
3. Disjoint
A and B are disjoint if they have no common
element.
Relations Between Sets
Example
E = {2,4,6,8,10}
F = {1,3,5,7,9}
G = {x|x is an integer greater than 9}
E & F and F & G are disjoint
E & G are not disjoint since 10 E and 10
G
Relations Between Sets
4. Subset
A is a subset of B (A B) if every element
of A is an element of B.
[A B if (for every) a A then a B]
Example
H = {1,7}
F = {1,3,5,7,9}
HF
Theorems
1. A, A A
(Reflexive Property of Set Inclusion)
2. A, A
3. A, B, C, if A B, B C, then A C
[Transitive Property of Set Inclusion]
4. If A B and B A, then A = B
Example
A = {3,6,9,12,15}
B = {1,2,4,6,9,10}
A B = {1,2,3,4,6,9,10,12,15}
Operations on Sets
2. Intersection
The intersection of A and B is the set of
elements that belong to both A and B.
[A B = {x|x A (and) x B}]
Example
A = {3,6,9,12,15}
B = {1,2,4,6,9,10}
A B = {6,9}
Operations on Sets
3. Difference
The difference of B from A is the set of
elements of A that do not belong to B.
[A – B = A\B = {x|x A x B}]
Example
A = {3,6,9,12,15}
B = {1,2,4,6,9,10}
A - B = {3,12,15}
B - A = {1,2,4,10}
Operations on Sets
4. Complement
The complement of A in U is the set of
elements in U that is not in A.
[A’ = AC = {x|x U x A}]
Example
U = {x|x is a letter in the English alphabet}
A = {x|x is a vowel}
AC = {x|x is a consonant}
Exercise
Let
U = {0,1,2,3,...,7,8,9}
A = {1,3,5,9}
B = {2,3,5,7,9}
C = {x|x is a digit in the number 11201}
Find. 1) A B 4) A’ 7) B - A
2) A B 5) B’
3) (A B) C 6) A - B
Answers
1) A B = {1,2,3,5,7,9}
2) A B = {3,5,9}
3) (A B) C = {1,2}
4) A’ = {0,2,4,6,7,8}
5) B’ = {0,1,4,6,8}
6) A - B = {1}
7) B - A = {2,7}
Remarks
1. A, B, A B = B A, A B = B A
2. A, A A = A, A A = A, A\A =
3. Distribution Laws
(A B) C = (A C) (B C)
(A B) C = (A C) (B C)
Remarks
4. De Morgan’s Laws
(A B)’ = A’ B’
(A B)’ = A’ B’
5. A, A = A, A =
6. If A and B are disjoint, A B =
Venn Diagrams
These are used to visualize sets, their relations
and operations.
U
A
x y
Venn Diagrams
U
A
x y
U = rectangle
x U, y U = points
A = circle/closed region
Venn Diagrams
AU
x A, x U
y U, y A
U
A
x y
Venn Diagrams
Equality (A = B)
A=B
Venn Diagrams
Subset (A B)
U
B
A
Venn Diagrams
Disjoint
U
A B
Venn Diagrams
Union (A B)
U
A B
(A B)
Venn Diagrams
Intersection (A B)
U
A B
(A B)
Venn Diagrams
Complement (AC)
AU
C
A
Venn Diagrams
First De Morgan’s Law ((A B)’ = A’ B’)
(A B)C
U
A B
(A B)
(A B)’
Venn Diagrams
First De Morgan’s Law ((A B)’ = A’ B’)
B’ (A’ A’
B’)
U
A B
(A’ B’)
Venn Diagrams
(A B)C
First De Morgan’s Law
((A B)’ = A’ B’)
(A B)
(A’ B’)
A B
(A B)’
(A’ B’)
Set Product
A B = {(a,b)|a A and b B}
Set Product
Example
If A = {0,1}
B = {1,2,3}
Then
A B = {(0,1),(0,2),(0,3),(1,1),(1,2),(1,3)}
B A = {(1,0),(1,1),(2,0),(2,1),(3,0),(3,1)}
Remarks
1. A B B A
2. A, A = = A
Cardinality
Recall
n(A) = number of elements of A
Cardinality
n(A B) = n(A) + n(B) – n(A B)
n(U)
n(A) n(B)
n(A B)
n(A B)
Cardinality
n(A’) = n(U) – n(A)
n(A
n(U)C
)
n(A)
Cardinality
If A and B are disjoint, then
n(A B) = n(A) + n(B)
n(A B) = 0
n(U)
n(A) n(B)
Cardinality