Professional Documents
Culture Documents
Sets Operations and Venn Diagrams: Anna Charisma F. Dechavez, Mit
Sets Operations and Venn Diagrams: Anna Charisma F. Dechavez, Mit
AND VENN
DIAGRAMS
ANNA CHARISMA F. DECHAVEZ, MIT
Every set A exists within some universe U
Universal Set
■UNION
■INTERSECTION
■COMPLEMENTATION
■DIFFERENCE
UNION
■ The set operation union brings together all of the
elements of both sets whether those elements are in
one or both of the sets.
■ In set-builder notation,
A ∪ B = {x ∈ U : x ∈ A or x ∈ B}
■ The Venn diagram for A ∪ B is shown to the right
where the shaded region represents the set A ∪ B.
Example:
■ Example: Let A = {a, b, c, d}
and B = {b, d, e}.
■ Then A ∪ B = {a, b, c, d, e}.
■ The Venn diagram illustrates the
result.
INTERSECTION
■ The set operation intersection takes only the elements that are
in both sets.
■ The intersection contains the elements that the two sets have in
common. The intersection is where the two sets overlap. Two
sets whose intersection is the empty set are called disjoint sets.
■ In set-builder notation, A ∩ B = {x ∈ U : x ∈ A and x ∈ B}.
■ The Venn diagram for A ∩ B is shown to the right where the
shaded region represents the set A ∩ B.
EXAMPLE:
■ Example: Let A = {a, b,
c, d} and B = {b, d, e}.
■ Then A ∩ B = {b, d}.
The elements b and d are
the only elements that are
in both sets A and B.
Example : Disjoint sets
■ Let E = {d, a, y} and F = {n, i, g, h,
t}. Then E ∩ F = ∅.
■ Since E ∩ F = ∅, the sets E and F are
disjoint sets.
COMPLEMENT OF A SET
■ The complement of a set, denoted A',
is the set of all elements in the given
universal set U that are not in A.
■ In set- builder notation,
A' = {x ∈ U : x ∉ A}
■ The Venn diagram for the
complement of set A is shown below
where the shaded region
represents A'.
EXAMPLE:
■ The relative complement or set
difference of sets A and B,
denoted A – B, is the set of all elements
in A that are not in B.
■ In set-builder notation,
A – B =
{x ∈ U : x ∈ A and x ∉ B}= A ∩ B'
■ The Venn diagram for the set difference
of sets A and B is shown below where
the shaded region represents A – B.
EXAMPLE:
(a) A ∪ B = {2,3,4,5,6,7}
(b) A ∪ C = {2,3,4,5,6,7,8,9}
(c) B ∪ C = {4,5,6,7,8,9}
(d) B ∪ D = {4,5,6,7,8,9,10,11}
Exercises #2
■ If A = {4, 6, 8, 10, 12} B = {8, 10, 12, 14} C = {12, 14, 16} D = {16, 18}, find
(b) B ∩ C = {12,14}
(d) A ∩ C = {12}
Exercises #3
■ If A = {4, 7, 10, 13, 16, 19, 22} B = {5, 9, 13, 17, 20}
C = {3, 5, 7, 9, 11, 13, 15, 17} D = {6, 11, 16, 21} then find
(b) D - A
(c) D - B
(d) A - D
Exercises #4
■ Find the union, intersection and the difference (A - B) of the following pairs of sets.