0% found this document useful (0 votes)
49 views7 pages

Lesson 4

This document covers set operations and identities, including union, intersection, complement, difference, and symmetric difference, along with their definitions and examples. It also discusses laws of set algebra, duality, and the inclusion-exclusion principle for counting elements in finite sets. Students will learn to apply these concepts using Venn diagrams and solve related problems.

Uploaded by

neyaxi9251
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views7 pages

Lesson 4

This document covers set operations and identities, including union, intersection, complement, difference, and symmetric difference, along with their definitions and examples. It also discusses laws of set algebra, duality, and the inclusion-exclusion principle for counting elements in finite sets. Students will learn to apply these concepts using Venn diagrams and solve related problems.

Uploaded by

neyaxi9251
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Degree of Bachelor of Information Technology 1

Lesson 4 - Set Operations and Identities


Learning Outcomes
By the end of this lesson, students will be able to;
• apply set operations over given sets.
• apply basic theorems in set theory for problem solving.
• apply duality principle for the sets.
• use Venn diagrammatic representation of sets for real world applications.

4.1 Set Operations


Given two sets A and B, there are various set operations involving A and B that can produce
a new set. There are several set operations. Some of them are union, intersection, difference,
complement and symmetric difference.

4.1.1 Union
The union of two sets A and B, denoted by A ∪ B, is the set of all elements which belong to
A or to B; that is

A ∪ B = {x : x ∈ A or x ∈ B} .

Figure 4.1 is a Venn diagram in which A ∪ B is shaded.

Figure 4.1: Venn diagram for A ∪ B

4.1.2 Intersection
The intersection of two sets A and B, denoted by A ∩ B, is the set of elements which belong
to both A and B; that is,

A ∩ B = {x : x ∈ A and x ∈ B} .

1
2 ITE 1812 - Mathematic for IT

Figure 4.2 is a Venn diagram in which A ∩ B is shaded.

Figure 4.2: Venn diagram for A ∩ B

Example 4.1

Let A = {1, 2, 3, 4}, B = {3, 4, 5, 6, 7} and C = {2, 3, 8, 9}. Then


A ∪ B = {1, 2, 3, 4, 5, 6, 7}, A ∪ C = {1, 2, 3, 4, 8, 9}, B ∪ C = {2, 3, 4, 5, 6, 7, 8, 9},
A ∩ B = {3, 4}, A ∩ C = {2, 3} and B ∩ C = {3}.

4.1.3 Complement
The complement of a set A, denoted by AC , is the set of elements which belong to U but which
do not belong to A.

AC = {x : x ∈ U, x 6∈ A} .

Figure 4.3 is a Venn diagram in which AC is shaded.

Figure 4.3: Venn diagram for AC

2
Degree of Bachelor of Information Technology 3

4.1.4 Difference
The difference of A and B, denoted by A \ B, is the set of elements which belong to A but
which do not belong to B.

A \ B = {x : x ∈ A, x 6∈ B} .

Figure 4.4 is a Venn diagram in which A \ B is shaded.

Figure 4.4: Venn diagram for A \ B

4.1.5 Symmetric Difference


The symmetric difference of sets A and B, denoted by A ⊕ B, consists of those elements which
belong to A or B but not to both.

A ⊕ B = (A ∪ B) \ (A ∩ B) or A ⊕ B = (A \ B) ∪ (B \ A) .

Figure 4.5 is a Venn diagram in which A ⊕ B is shaded.

Figure 4.5: Venn diagram for A ⊕ B

3
4 ITE 1812 - Mathematic for IT

Example 4.2

Suppose U = N = {1, 2, 3, . . . } is the universal set. Let

A = {1, 2, 3, 4} , B = {3, 4, 5, 6, 7} , C = {2, 3, 8, 9} and E = {2, 4, 6, . . . } .

Here E denote the set of even integers. Then

AC = {5, 6, 7, . . . } , B C = {1, 2, 8, 9, 10, . . . } and E C = {1, 3, 5, 7, . . . } .

That is, E C is the set of odd positive integers. Also:


A \ B = {1, 2}, A \ C = {1, 4}, B \ C = {4, 5, 6, 7}, A \ E = {1, 3},
B \ A = {5, 6, 7}, C \ A = {8, 9}, C \ B = {2, 8, 9} and E \ A = {6, 8, 10, 12, ...} .

Furthermore:

A⊕B = (A \ B) ∪ (B \ A) = {1, 2, 5, 6, 7} ,
B⊕C = (B \ C) ∪ (C \ B) = {2, 4, 5, 6, 7, 8, 9} ,
A⊕C = (A \ C) ∪ (B \ C) = {1, 4, 8, 9}
and A ⊕ E = (A \ E) ∪ (E \ A) = {1, 3, 6, 8, 10, . . . } .

4.2 Algebras of Sets and Duality

4.2.1 Laws of the Algebras


Sets under the operations of union, intersection and complement satisfy various laws which are
listed in Table 4.1.

Table 4.1: Laws of the algebra of sets


Idempotent law A∪A=A A∩A=A
Associative law (A ∪ B) ∪ C = A ∪ (B ∪ C) (A ∩ B) ∩ C = A ∩ (B ∩ C)
Commutative law A∪B =B∪A A∩B =B∩A
Distributive law A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C) A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)
A∪∅=A A∩U =A
Identity law
A∪U =U A∩∅=∅
 C
Involution law AC =A
A∪A =U C
A ∩ AC = ∅
Complement law
UC = ∅ ∅C = U
DeMorgan’s law (A ∪ B)C = AC ∩ B C (A ∩ B)C = AC ∪ B C

4
Degree of Bachelor of Information Technology 5

4.2.2 Duality
Suppose E is an equation of set algebra. The dual E ∗ of E is the equation obtained by replacing
each occurrence of ∪, ∩, U and ∅ in E by ∩, ∪, ∅, and U respectively.

For example, the dual of

(U ∩ A) ∪ (B ∩ A) = A is (∅ ∪ A) ∩ (B ∪ A) = A.

Note that the pairs of laws in Table 4.1 are duals of each other.

4.3 Counting Elements in Finite Sets


Lemma 4.1
Suppose A and B are finite disjoint sets. Then A ∪ B is finite and

n (A ∪ B) = n(A) + n(B).

Proof
In counting the elements of A ∪ B, first count those that are in A. There are n(A) of these.
The only other elements of A ∪ B are those that are in B but not in A. But since A and B
are disjoint, no element of B is in A, so there are n(B) elements that are in B but not in A.
Therefore, n(A ∪ B) = n(A) + n(B).

For any sets A and B, the set A is the disjoint union of A \ B and A ∩ B. This leads to the
Corollary 4.1.

Corollary 4.1
Let A and B be finite sets. Then

n(A \ B) = n(A) − n(A ∩ B).

Given any set A, recall that the universal set U is the disjoint union of A and AC . Accord-
ingly, Lemma 4.1 we can prove the Corollary 4.2.

Corollary 4.2
Let A be a subset of a finite universal set U . Then

n(AC ) = n(U ) − n(A).

There is a expression for n(A ∪ B) even when they are not disjoint, called the inclusion-
exclusion principle.

5
6 ITE 1812 - Mathematic for IT

4.1 Theorem (Inclusion-Exclusion Principle): Suppose A and B are finite sets.


Then A ∪ B and A ∩ B are finite and

n(A ∪ B) = n(A) + n(B) − n(A ∩ B).

That is, we find the number of elements in A or B by first adding n(A) and n(B) (inclusion)
and then subtracting n(A ∩ B) (exclusion) since its elements were counted twice.

We can apply this result to obtain a similar expression for three sets.

Corollary 4.3
Suppose A, B and C are finite sets. Then A ∪ B ∪ C is finite and

n(A ∪ B ∪ C) = n(A) + n(B) + n(C) − n(A ∩ B) − n(A ∩ C) − n(B ∩ C) + n(A ∩ B ∩ C).

Example 4.3
Suppose a list A contains the 30 students in a mathematics class and a list B contains
the 35 students in an English class and suppose there are 20 names on both lists. Find
the number of students:

(a) only on list A.

(b) only on list B.

(c) on list A or B.

(d) on exactly one list.

Solution.
We can draw a Venn diagram for the problem as in Figure 4.6.

Figure 4.6: Venn diagram for the Example 9.3

Given that n(A) = 30, n(B) = 35 and n(A ∩ B) = 20.

(a) The number of students only on list A = n(A) − n(A ∩ B) = 30 − 20 = 10.

(b) The number of students only on list B = n(B) − n(A ∩ B) = 35 − 20 = 15.

6
Degree of Bachelor of Information Technology 7

(c) By inclusion-exclusion principle

n(A ∪ B) = n(A) + n(B) − n(A ∩ B)


= 30 + 35 − 20
= 45

Therefore, the number of students on list A or B is 45.

(d) By using (a) and (b), 10 + 15 = 25. Therefore number of students on exactly one
list is 25.

Self-Assessment Exercises
1. Draw the Venn diagrams and shade the regions representing each of the following sets:

(a) (A ∪ B) \ C
(b) AC ∩ (B C ∪ C)
(c) (B C ∩ C C ) ∪ (AC ∩ B C ) ∪ (C C ∩ AC )

2. In a class of 80 students, 50 students know English, 55 know French and 46 know German
language. 37 students know English and French, 28 students know French and German,
25 students know English and German and 7 students know none of the languages. Find
out

(a) How many students know all the 3 languages?


(b) How many students know exactly 2 languages?
(c) How many know only one language?

3. It is known that in university 60% of the students play tennis, 50% of them play netball,
70% badminton, 20% play tennis and netball, 40% play netball and badminton and 30%
play tennis and badminton. If someone claimed that 20% students play badminton and
tennis and netball, would you believe his claim? Why?

Suggested Reading
Chapter 2: Kenneth Rosen, (2011) Discrete Mathematics and Its Applications, 7th Edition,
McGraw-Hill Education.

You might also like