Lecture 1.1
Lecture 1.1
• Examples:
– Vowels in the English alphabet
V = { 𝑎, 𝑒, 𝑖, 𝑜, 𝑢 }
Representing sets
Representing a set by:
1) Listing (enumerating) the members of the set. (Roster form)
2) Definition by property, using the set builder notation. (Set – builder form)
{𝑥 | 𝑥 ℎ𝑎𝑠 𝑝𝑟𝑜𝑝𝑒𝑟𝑡𝑦 𝑃} 𝑜𝑟 {𝑥 ∶ 𝑥 ℎ𝑎𝑠 𝑝𝑟𝑜𝑝𝑒𝑟𝑡𝑦 𝑃}.
Example:
• Even integers between 30 and 45.
1) E = {30, 32, 34, 36, 38, 40, 42, 44}
2) E = {x | x, 30 <= x < 45, x is an even integer}
If enumeration of the members is hard we often use ellipses (“…”).
Example: a set of integers between 1 and 100
• A = {1,2,3, … , 100}
𝐷 = {1,2,3} , 𝐸 = {𝑎, 𝑏, 𝑐} .
• Special sets:
– The universal set is denoted by U: the set of all objects under the consideration.
– The empty set is denoted as ∅ or { }.
A Subset
• Definition: A set A is said to be a subset of B if and only if every element of
A is also an element of B. We use 𝐀 ⊆ 𝐁 to indicate A is a subset of B.
U
B
Infinite set
Definition: A set is infinite if it is not finite.
Examples:
a) The set of natural numbers is an infinite set. 𝑁 = {1, 2, 3, . . . }
b) The set of reals is an infinite set.
c) Let A and B be two sets where
A = {𝑥 ∶ 𝑥 is a natural number}
B = {𝑥 ∶ 𝑥 is a student of your classroom}
As it is clear that the number of elements in set A is not finite (infinite) while
number of elements in set B is finite. A is said to be an infinite set and B is
said to be is finite set.
Set operations
Union
Definition: Let A and B be sets. The union of A and B, denoted by A ∪ B, is
the set that contains those elements that are either in A or in B, or in both.
• Alternate: A ∪ B = { 𝑥 | 𝑥 ∈ A ∨ 𝑥 ∈ B }.
• Example:
• A = {1, 2, 3, 6}, B = { 2,4,6,9}
• A ∪ B = {1, 2, 3, 4, 6, 9}
Intersection
Definition: Let A and B be sets. The intersection of A and B, denoted by A ∩ B,
is the set that contains those elements that are in both A and B.
• Alternate: A ∩ B = { 𝑥 | 𝑥 ∈ A ∧ 𝑥 ∈ B }.
Example:
• A = {1, 2, 3, 6} B = { 2, 4, 6, 9}
• A ∩ B = { 2, 6 }
Disjoint sets
Definition: Two sets are called disjoint if their intersection is empty.
• Alternate: A and B are disjoint if and only if A ∩ B = ∅.
U A
B
Example:
• A = {1, 2, 3, 6} B = {4, 7, 8} Are these disjoint?
• Yes.
•A∩B = ∅
Examples:
1. {1, 2} ∪ {red, white} = {1, 2, red, white}.
2. {1, 2, green} ∪ {red, white, green} = {1, 2, red, white, green}.
3. {1, 2} ∪ {1, 2} = {1, 2}.
4. {1, 2} ∩ {red, white} = ∅.
5. {1, 2, green} ∩ {red, white, green} = {green}.
5) Write each of the following sets are in the set builder form?
(i) A = {2, 4, 6, 8, 10} (ii) B = {3, 6, 9, . . . , ∞}
(iii) C = {2, 3, 5, 7} (iv) D = {−√2, √2}
6) In the following check whether A = B or A ≈ B .
(i) A = {a}, B = {𝑥 ∶ 𝑥 is an even prime number}.
(ii) A = {1, 2, 3, 4}, B = {𝑥 ∶ 𝑥 is a letter of the word guava}.
(iii) A = {𝑥 ∶ 𝑥 is a solution of 𝑥 2 − 5x + 6 = 0 }, B = {2 , 3}.