Sets
Sets
𝑎∈𝑋
𝑎∉𝑋
e.g.
ℕ0 is the set of natural numbers including zero: ℕ0 = {0,1,2,3, … , ∞}. Also called
whole numbers.
ℚ is the set of all rational numbers. I.e., numbers that can be written as the ratio of
integers, a/b, (fractions) where a and b≠0 are integers.
Irrational numbers are numbers that cannot be written as the ration of integers. E.g., 𝜋
and √2.
̅ = ℝ−ℚ
ℚ
All the above sets are infinite sets: they have an infinite number of members.
Examples.
3
3. 𝑀 = {1, 4 , 𝜋, 4, … }.
a. Is 5 ∈ 𝑀?
b. Is M a set?
a. Undetermined.
b. No. No precise rule for forming the set.
2. Predicate: Members of the set are stated by compliance with some property or rule.
This is called set-builder notation.
We can also specify the domain of the variable, x (values for which P(x) exists).
𝐴 = {𝑥 ∈ ℝ: 𝑃(𝑥)} or 𝐴 = {𝑥 ∈ ℝ|𝑃(𝑥)}.
𝐴 = {𝑥: 𝑥 ∈ ℝ ∧ 𝑃(𝑥)}.
This reads, ‘A is the set of all x such that x is a real number and P(x) is true.’
This says that x is a real number, and the set A is the range of P(x).
E.g.
𝑎
Rational numbers: ℚ = {𝑥 = 𝑏 : 𝑎, 𝑏 ∈ ℤ ∧ 𝑏 ≠ 0}.
̅ = {𝑥: 𝑥 ∈ ℝ ∧ 𝑥 ∉ ℚ}.
Irrational numbers: ℚ
Examples.
a. 𝐴 = {𝑥 ∈ ℤ: −3 < 𝑥 ≤ 4}.
b. 𝐵 = {𝑥 ∈ ℤ: −3 ≤ 𝑥 < 4}.
𝑛
c. 𝐶 = {𝑥 ∈ ℚ: 𝑥 = 3 ∧ 𝑛 ∈ ℕ}.
d. 𝐷 = {𝑥 ∈ ℕ0 : 𝑥 = 𝑛2 + 1 ∧ 𝑛 ∈ ℕ0 }.
e. 𝐸 = {𝑥 ∈ ℕ0 : 𝑥 = 2𝑛 − 1 ∧ 𝑛 ∈ ℕ0 ∧ 𝑛 < 4}.
a. 𝐴 = {−2, −1,0,1,2,3,4}
b. 𝐵 = {−3, −2, −1,0,1,2,3}
1 2 3 4 5
c. 𝐶 = {3 , 3 , 3 , 3 , 3 , … }
d. 𝐷 = {1,2,5,10,17, … }
e. 𝐸 = {−1,1,3,5,7}
a. 𝐴 = {1,3,5,7,9}
b. 𝐵 = {1,3,5,7,9, … }
c. 𝐶 = {1,4,9,16, 25,36, … }
d. 𝐷 = {0,2,4,6,8,10}
e. 𝐸 = {0,2,6,8,10, … }
a. 𝐴 = {𝑥 ∈ ℕ0 : 𝑥 = 2𝑛 + 1 ∧ 𝑛 ∈ ℕ0 ∧ 𝑛 ≤ 4}. 𝐴 = {𝑥 ∈ ℕ: 𝑥 = 2𝑛 − 1 ∧ 𝑛 ∈ ℕ0 ∧
1 ≤ 𝑛 ≤ 5}.
b. 𝐵 = {𝑥 ∈ ℕ0 : 𝑥 = 2𝑛 + 1 ∧ 𝑛 ∈ ℕ0 }. All positive odd numbers.
c. 𝐶 = {𝑥 ∈ ℕ: 𝑥 = 𝑛2 ∧ 𝑛 ∈ ℕ}.
d. 𝐷 = {𝑥 ∈ ℕ0 : 𝑥 = 2𝑛 ∧ 𝑛 ∈ ℕ0 ∧ 𝑛 < 6}.
e. 𝐸 = {𝑥 ∈ ℕ0 : 𝑥 = 2𝑛 ∧ 𝑛 ∈ ℕ0 }. All positive even numbers including zero.
={ } is the empty set: Contains no elements. It is a mathematical object: the set containing no
members.
Equivalence of sets.
Two sets, A and B, are equal iff (if and only if) all members of A are also members of B and
vice versa.
Note: { } ≠ {}
{ } has zero elements. {} has one element: the empty set. A set that has only one element is
called a singleton.
Note: { } ≠ {0}
Both contain one element, but they are not the same.
Examples.
1. Is A=B?
2. Is B=C?
3. Is 1 ∈ 𝐴?
4. Is 1 ∈ 𝐶?
5. Is 3 ∈ 𝐶?
6. Is {3} ∈ 𝐶?
7. Is A=D?
8. Is 3 ∈ 𝐷?
9. Is {3} ∈ 𝐷?
E.g. 𝐴 = {1,2,3,4}.
Note: Two sets having the same cardinality may not necessarily be equal.
a. 0. It has no members.
b. 1. It has one member: the empty set.
E.g.
ℤ is infinite.
Countable sets are those whose members can be listed. They are either finite or have a one-to-
one mapping with the natural numbers, ℕ.
𝐴 = {1,2,3,4} is countable. 𝐵 = {𝑎, 𝑒, 𝑖, 𝑜, 𝑢} is countable.
|ℕ| = א0
|ℕ| ≠ |ℝ|
The universal set is a set that contains all the elements related to a specific context. It is denoted
by the letter U. The universal set is a superset of all subsets in a given context.
E.g. In the context of numbers, the real numbers is the universal set.
ℕ ⊆ ℕ0 ⊆ ℤ ⊆ ℚ ⊆ ℝ
Subsets.
Given two sets, A and B, A is a subset of B if all members of A are also members of B. We say
that A is contained in B.
If A is a subset of B, we write
𝐴⊆𝐵
𝐴⊆𝐴
If B is a superset of A, we write
𝐵⊇𝐴
Note: ℕ ⊆ ℕ0 ⊆ ℤ ⊆ ℚ ⊆ ℝ
̅ ⊆ℝ
ℚ
The irrational numbers are not a subset of the rational numbers, the integers, the whole
numbers, or the natural numbers.
̅ ⊈ℚ
ℚ
E.g. If 𝐴 = {1,2,3,4} and 𝐵 = {1,2,3,4,5}, then all elements of A are contained in B. So, A is a
subset of B.
Example.
a. Is 𝐶 = {2,3} a subset of A?
b. Is 𝐶 = {2,3} a subset of B?
c. Is ⊆ 𝐴?
a. Is 𝐵 ⊆ 𝐴?
b. Is ∈ 𝐴?
c. Is 𝐵 ∈ 𝐴?
d. Is A=C?
e. Is 𝐷 ⊆ 𝐴?
f. Is ∈ 𝐶?
g. Is ∈ 𝐷?
a. Yes. It is contained in A.
b. Yes. It is in the list.
c. No. It is not in the list.
d. No. They don’t have the same members.
e. Yes. D is contained in A.
f. No. It is not in the list. { } ≠ {}.
g. Yes. = { }.
a. Is 𝐵 ∈ 𝐴?
b. Is 𝐵 ⊆ 𝐴?
c. Is 𝐶 ⊆ 𝐷?
d. Is 𝐸 ⊆ 𝐷?
e. Is 𝐸 ⊆ 𝐹?
f. Is 𝐸 ∈ 𝐹?
g. Is 𝐷 ⊆ 𝐹?
The Power Set of a set, A, is the set containing all subsets of a given set plus the empty set and
the set itself.
It is denoted as 𝑃(𝐴).
E.g. Given 𝐴 = {1,2,3}, the subsets of A are { }, {1}, {2}, {3}, {1,2}, {1,3}, {2,3}, {1,2,3}.
|𝑃(𝐴)| = 2𝑛
For the set, A, above, there are 3 members, so, n=3. |𝑃(𝐴)| = 23 = 2.2.2 = 8.
|𝑃(𝐴)| = 2𝑛 = 22 = 4
Example. Find the power set of 𝐴 = {1,3,5, 𝑎}. What is its cardinality?
|𝑃(𝐴)| = 2𝑛 = 24 = 2.2.2.2 = 16
Subsets:
{ }, {1}, {3}, {5}, {𝑎}, {1,3}, {1,5}, {1, 𝑎}, {3,5}, {3, 𝑎}, {5, 𝑎}, {1,3,5}, {1,3, 𝑎}, {1,5, 𝑎}, {3,5, 𝑎}, {1,3,5, 𝑎}
𝑃(𝐴){{ }, {1}, {3}, {5}, {𝑎}, {1,3}, {1,5}, {1, 𝑎}, {3,5}, {3, 𝑎}, {5, 𝑎}, {1,3,5}, {1,3, 𝑎}, {1,5, 𝑎}, {3,5, 𝑎}, {1,3,5, 𝑎}}
Example: What is the power set of the empty set? What is its cardinality?
|𝑃()| = 20 = 1
Subset: = { }
𝑃() = {} = {{ }}
Example. Given 𝐴 = {1,2,3} and 𝑃(𝐴) = {{ }, {1}, {2}, {3}, {1,2}, {1,3}, {2,3}, {1,2,3}},
find
a. 𝐵 = {𝑥 ∈ 𝑃(𝐴): |𝑥| = 1}
b. 𝐶 = {𝑥 ⊆ 𝐴: |𝑥| ≥ 2}
c. 𝐷 = {𝑥 ∈ 𝑃(𝐴): |𝑥| = 2 ∧ 3 ∉ 𝑥}
d. 𝐸 = {𝑥 ⊆ 𝑃(𝐴): |𝑥| = 1}
Proper subsets.
We write
𝐴⊂𝐵⇒𝐴≠𝐵
Any set that doesn’t include the set itself is a proper subset.
Note: Now ℕ ⊂ ℕ0 ⊂ ℤ ⊂ ℚ ⊂ ℝ
Disjoint sets.
A and B have the element 2 in common. B and C have the elements 4 and 6 in common. But A
and C have no elements in common. A and C are disjoint.
Note: If two sets are disjoint then neither is a subset of the other, unless one is the empty set.
Venn Diagrams
A Venn diagram is a pictorial representation of sets where the sets are represented by enclosed
areas in a plane. The universal set, U, is represented by a rectangle and the other sets are
represented by circles in the rectangle.
If A is a subset of B, then the circle representing A will lie within the circle representing set B.
Note: Some elements of the universal set could be in A and not in B. Some elements of the
universal set could be in B but not in A, and some could be in neither A or B.
Intersection.
If A and B are not disjoint, and if one is not a subset of the other, then they will have some
elements of the universal set in common. This is called the intersection of A and B.
The intersection of two or more sets is the set of all elements that are common to all sets.
Intersection of A and B.
Formal definition:
𝐴∩𝐵 =
Union.
The union of two or more sets is the set of all elements that are common to all sets.
Formal definition.
𝐴 ∩ 𝐵 = {3}
𝐴 ∪ 𝐵 = {1,2,3,4,5,6}
Find 𝑃 ∩ 𝑄 and 𝑃 ∪ 𝑄
𝑃 ∩ 𝑄 = {6,12,18}, 𝑃 ∪ 𝑄 = {2,3,4,6,8,9,10,12,14,15,16,18}.
Intersection. Union.
𝐴 ∩ 𝐵 = {2,4,6} 𝐴 ∪ 𝐵 = {0,1,2,3,4,6}.
𝐴 ∩ 𝐵 = {𝑎, 𝑒} 𝐴 ∪ 𝐵 = {𝑎, 𝑏, 𝑐, 𝑑, 𝑒, 𝑖, 𝑜, 𝑢}
𝐴 ∩ 𝐵 = {3,12} 𝐴 ∪ 𝐵 = {0,3,5,6,8,9,12}
Example. Given the following Venn diagram and 𝑈 = ℕ0, find 𝐴 ∩ 𝐵 and 𝐴 ∪ 𝐵.
𝐴 ∩ 𝐵 = {2,3,4,6,8,9,10,12,14,15,16,18}, 𝐴 ∪ 𝐵 = {6,12,18}.
𝑋 ∩ 𝑌 = {1,6,9} = 𝑋, 𝑋 ∪ 𝑌 = {1,6,9} = 𝑋.
Note: 𝑋 ⊆ 𝑌
𝐴 = {1,2,3,4,5,6}
𝐵 = {3,4,5,7,8,9,10}
𝐶 = {4,5,6,7,8,11,12}
𝐴 ∩ 𝐵 = {3,4,5}
𝐴 ∩ 𝐶 = {4,5,6}
𝐵 ∩ 𝐶 = {4,5,7,8}
𝐴 ∪ 𝐵 = {1,2,3,4,5,6,7,8,9,10}
𝐴 ∪ 𝐶 = {1,2,3,4,5,6,7,8,11,12}
𝐵 ∪ 𝐶 = {3,4,5,6,7,8,9,10,11,12}
𝐴 ∩ (𝐵 ∩ 𝐶) = {4,5}
𝐴 ∪ (𝐵 ∪ 𝐶) = {1,2,3,4,5,6,7,8,9,10,11,12}
𝐴 ∩ (𝐵 ∪ 𝐶) = {3,4,5,6}
𝐴 ∪ (𝐵 ∩ 𝐶) = {1,2,3,4,5,6,7,8}
(𝐴 ∩ 𝐵) ∩ 𝐶 = {4,5}
(𝐴 ∪ 𝐵) ∪ 𝐶 = {1,2,3,4,5,6,7,8,9,10,11,12}
(𝐴 ∩ 𝐵) ∪ 𝐶 = {3,4,5,6,7,8,11,12}
(𝐴 ∪ 𝐵) ∩ 𝐶 = {4,5,6,7,8,11,12}
(𝐴 ∪ 𝐵) ∩ (𝐴 ∪ 𝐶) = {1,2,3,4,5,6,7,8}
(𝐴 ∩ 𝐵) ∪ (𝐴 ∩ 𝐶) = {3,4,5,6}
1. Commutative law.
𝐴 ∪ 𝐵 = 𝐵 ∪ 𝐴 and
𝐴∩𝐵 =𝐵∩𝐴
2. Associative law.
𝐴 ∩ (𝐵 ∩ 𝐶) = (𝐴 ∩ 𝐵) ∩ 𝐶 and
𝐴 ∪ (𝐵 ∪ 𝐶) = (𝐴 ∪ 𝐵) ∪ 𝐶
3. Distributive law.
(𝐴 ∪ 𝐵) ∪ 𝐶 = (𝐴 ∪ 𝐵) ∩ (𝐴 ∪ 𝐶) and
(𝐴 ∩ 𝐵) ∪ 𝐶 = (𝐴 ∩ 𝐵) ∪ (𝐴 ∩ 𝐶) .
𝐴 = {1,2,3,4,5,6}
𝐵 = {3,4,5,7,8,9,10}
𝐴 ∪ 𝐵 = {1,2,3,4,5,6,7,8,9,10}
𝐴 ∩ 𝐵 = {3,4,5}
A is contained in 𝐴 ∪ 𝐵.
B is contained in 𝐴 ∪ 𝐵.
𝐴 ∩ 𝐵 is contained in 𝐴 ∪ 𝐵.
Note: 𝐴 ∩ = 𝐴 = 𝐴 ∪ .
Difference of sets.
The difference between two sets, A and B, (also called the relative compliment) is the set of
elements that belong to A, but which do not belong to B.
𝐴 − 𝐵 = 𝐴\𝐵 = {𝑥: 𝑥 ∈ 𝐴 ∧ 𝑥 ∉ 𝐵}
𝐵 − 𝐴 = 𝐵\𝐴 = {𝑥: 𝑥 ∈ 𝐵 ∧ 𝑥 ∉ 𝐴}
To find 𝐴\𝐵, remove the elements from A that are in A and B. The elements that are left in A
is the difference.
𝐴\𝐵 = {1,2}
a. 𝑃\𝑄
b. 𝑄\𝑅
c. 𝑅\𝑃
d. 𝑄\𝑃
𝑃 = {10,11,12,13,14,15,16}, 𝑄 = {10,12,14,16}.
a. 𝑃\𝑄 = {11,13,15}
b. 𝑄\𝑅 = {10,12,16}
c. 𝑅\𝑃 = {7,9,18,20}
d. 𝑄\𝑃 = { }
a. 𝑃\𝑄
b. 𝑄\𝑅
c. 𝑅\𝑃
d. 𝑄\𝑃
𝑃 = {7,8,9,10,11,12,13,14,15,16,17,18,19,20,21}, 𝑄 = {5,7,9,11,13,15,17,19,21}.
a. 𝑃\𝑄 = {8,10,12,14,16,18,20}
b. 𝑄\𝑅 = {5,13,15,17,19}
c. 𝑅\𝑃 = {22,23}
d. 𝑄\𝑃 = {5}
Symmetric Difference.
The symmetric difference of two sets, A and B, denoted by 𝐴∆𝐵 or 𝐴⨁𝐵, is the set of those
elements that belong to A or B, but not to both A and B.
It is the set containing the elements of either A or B, but not their intersection.
𝐴∆𝐵 = (𝐴 ∪ 𝐵)\(𝐴 ∩ 𝐵) = (𝐴\𝐵) ∪ (𝐵\𝐴)
𝐴∆𝐵 = (𝐴 ∪ 𝐵)\(𝐴 ∩ 𝐵)
(𝐴 ∪ 𝐵) = {2,4,5,6,7,8}
(𝐴 ∩ 𝐵) = {2,8}
𝐵∆𝐴 = (𝐵 ∪ 𝐴)\(𝐵 ∩ 𝐴)
(𝐵 ∪ 𝐴) = {2,4,5,6,7,8}
(𝐵 ∩ 𝐴) = {2,8}
𝐴∆𝐵 = (𝐴 ∪ 𝐵)\(𝐴 ∩ 𝐵)
(𝐴 ∪ 𝐵) = {2,4,6,7,9,10}
(𝐴 ∩ 𝐵) = {2,6}
𝐵∆𝐴 = (𝐵 ∪ 𝐴)\(𝐵 ∩ 𝐴)
(𝐵 ∪ 𝐴) = {2,4,6,7,9,10}
(𝐵 ∩ 𝐴) = {2,6}
𝐵∆𝐴 = (𝐵 ∪ 𝐴)\(𝐵 ∩ 𝐴) = { 4,7,9,10}
Example. 𝐴 = {2,4,6,7}, 𝐵 = {2,4,8,10}. Find 𝐴∆𝐵 and draw the Venn diagram.
𝐴∆𝐵 = (𝐴 ∪ 𝐵)\(𝐴 ∩ 𝐵)
(𝐴 ∪ 𝐵) = {2,4,6,7,8,10}
(𝐴 ∩ 𝐵) = {2,4}
𝑃 = {10,11,12,13,14,15,16}, 𝑄 = {10,12,14,16}.
𝑃∆𝑄 = (𝑃 ∪ 𝑄)\(𝑃 ∩ 𝑄)
(𝑃 ∪ 𝑄) = {10,11,12,13,14,15,16}
(𝑃 ∩ 𝑄) = {10,12,14,16}
𝑃 = {7,8,9,10,11,12,13,14,15,16,17,18,19,20,21}, 𝑄 = {5,7,9,11,13,15,17,19,21}.
𝑃∆𝑄 = (𝑃 ∪ 𝑄)\(𝑃 ∩ 𝑄)
(𝑃 ∪ 𝑄) = {5,7,9,10,11,12,13,14,15,16,17,18,19,20,21}
(𝑃 ∩ 𝑄) = {7,9,11,13,15,17,19,21}
Compliment of a set.
The compliment of a set, A, written 𝐴́, 𝐴𝑐 or 𝐴̅, is the set of elements that are members of the
universal set, but which are not members of A.
𝐴𝑐 = 𝑈\𝐴 = 𝑈 − 𝐴
𝐴 ∪ 𝐴𝑐 = 𝑈
𝐴 ∩ 𝐴𝑐 = { }
(𝐴𝑐 )𝑐 = 𝐴
𝑈𝑐 = { }
𝑐 = 𝑈
De Morgan’s laws.
(𝐴 ∪ 𝐵)𝑐 = 𝐴𝑐 ∩ 𝐵 𝑐
(𝐴 ∩ 𝐵)𝑐 = 𝐴𝑐 ∪ 𝐵 𝑐
(𝐴 ∪ 𝐵)𝑐 = 𝐴𝑐 ∩ 𝐵 𝑐
𝐴𝑐 = 𝑈 − 𝐴 = {𝑒, 𝑓, 𝑔}
𝐵 𝑐 = 𝑈 − 𝐵 = {𝑎, 𝑓, 𝑔}
(𝐴 ∪ 𝐵) = {𝑎, 𝑏, 𝑐, 𝑑, 𝑒}
𝐴𝑐 ∩ 𝐵 𝑐 = {𝑓, 𝑔}
(𝐴 ∩ 𝐵)𝑐 = 𝐴𝑐 ∪ 𝐵 𝑐
(𝐴 ∩ 𝐵) = {𝑏, 𝑐, 𝑑}
(𝐴 ∩ 𝐵)𝑐 = {𝑎, 𝑏, 𝑐, 𝑑, 𝑒, 𝑓, 𝑔} − {𝑏, 𝑐, 𝑑} = {𝑎, 𝑒, 𝑓, 𝑔}
𝐴𝑐 ∪ 𝐵 𝑐 = {𝑎, 𝑒, 𝑓, 𝑔}
(𝐴 ∪ 𝐵)𝑐 = 𝐴𝑐 ∩ 𝐵 𝑐
𝐴𝑐 = 𝑈 − 𝐴 = {0,1,3,5,7,9,10}
𝐵 𝑐 = 𝑈 − 𝐵 = {0,2,4,8,10}
(𝐴 ∪ 𝐵) = {1,2,3,4,5,6,7,8,9}
𝐴𝑐 ∩ 𝐵 𝑐 = {2,10}
(𝐴 ∩ 𝐵)𝑐 = 𝐴𝑐 ∪ 𝐵 𝑐
(𝐴 ∩ 𝐵) = {6}
𝐴𝑐 ∪ 𝐵 𝑐 = {0,1,2,3,4,5,7,8,9,10}
Cartesian Product.
For two sets, A and B, the cartesian product, 𝐴 × 𝐵, is the set of all ordered pairs, (a,b), where
a comes from set A and b comes from set B. They are coordinates of a point in a plane.
Cardinality.
𝐴×𝐵 ≠ 𝐵×𝐴
Number of ordered pairs is 9: (1,1), (1,2), (1,3), (2,1), (2,2), (2,3), (3,1), (3,2), (3,3).
𝐵 = {0,1,2}.
|𝐴 × 𝐵| = 12.
(𝑎, 0), (𝑎, 1), (𝑎, 2), (𝑏, 0), (𝑏, 1), (𝑏, 2), (𝑐, 0), (𝑐, 1), (𝑐, 2), (𝑑, 0), (𝑑, 1), (𝑑, 2).
𝐴 × 𝐵 = {(𝑎, 0), (𝑎, 1), (𝑎, 2), (𝑏, 0), (𝑏, 1), (𝑏, 2), (𝑐, 0), (𝑐, 1), (𝑐, 2), (𝑑, 0), (𝑑, 1), (𝑑, 2)}.
𝐵 × 𝐴 = {(0, 𝑎), (1, 𝑎), (2, 𝑎), (0, 𝑏), (1, 𝑏), (2, 𝑏), (0, 𝑐), (1, 𝑐), (2, 𝑐), (0, 𝑑), (1, 𝑑), (2, 𝑑)}.
|𝐴| = 2, |𝐵| = 3.
|𝐴 × 𝐵| = 6
𝐴 × 𝐵 = {({1,2}, 5), ({1,2}, 3), ({1,2}, {𝑎, 𝑏, 𝑐}), ({ }, 5), ({ }, 3), ({ }, {𝑎, 𝑏, 𝑐})}
Intervals.
An interval is a subset of the real numbers that lies between two points. These points are called
the endpoints of the interval. The endpoints, a and b, are written in brackets:
(𝑎, 𝑏), [𝑎, 𝑏], (𝑎, 𝑏], [𝑎,𝑏).
Geometrically, it can be regarded as a line segment, or portion, of the real number line.
Types of intervals.
1. Closed interval.
[𝑎, 𝑏] = {𝑥 ∈ ℝ: 𝑎 ≤ 𝑥 ≤ 𝑏}
2. Open interval.
An open-closed does not include the left endpoint, but includes the right endpoint.
(𝑎, 𝑏] = {𝑥 ∈ ℝ: 𝑎 < 𝑥 ≤ 𝑏}
4. Closed-open interval.
A closed-open interval includes the left endpoint but does not include the right
endpoint.
[𝑎,𝑏) = {𝑥 ∈ ℝ: 𝑎 ≤ 𝑥 < 𝑏}
5. Infinite intervals.
(−∞, 𝑎] = {𝑥 ∈ ℝ: −∞ < 𝑥 ≤ 𝑎} = {𝑥 ∈ ℝ: 𝑥 ≤ 𝑎}
Example.
Example.
[−2,2] = {𝑥 ∈ ℝ: −2 ≤ 𝑥 ≤ 2}
Example.
(−3, 1] = {𝑥 ∈ ℝ: −3 < 𝑥 ≤ 1}
Example.
Example.
(−∞, 2] = {𝑥 ∈ ℝ: −∞ < 𝑥 ≤ 2} = {𝑥 ∈ ℝ: 𝑥 ≤ 2}
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
Questions.
1. Is ℝ an interval?
2. What integer comes immediately after 4?
3. What real number comes immediately after 4?
4. Can [0,1] = {𝑥 ∈ ℝ: 0 ≤ 𝑥 ≤ 1} be written in list form?
5. Can [0,1] = {𝑥 ∈ ℕ0 : 0 ≤ 𝑥 ≤ 4} be written in list form?
Given
𝑈 = ℝ,
𝐴 = [2, 9)
𝐵 = [1, 6)
𝐶 = (3, ∞).
Find
1. 𝐴∩𝐵
2. 𝐵𝑐 ∩ 𝐶
3. 𝐶𝑐 ∪ 𝐵
4. (𝐴 ∪ 𝐵)𝑐 \𝐶
5. 𝐶 𝑐 \𝐴𝑐
6. (𝐵 ∩ 𝐴𝑐 )\𝐶
1. 𝐴 ∩ 𝐵 = [2,6]
𝐵 𝑐 ∩ 𝐶 = (6, ∞)
3. 𝐶 𝑐 = 𝑈\𝐶 = (−∞, 3]
𝐶 𝑐 ∪ 𝐵 = (−∞, 6]
4. 𝐴 ∪ 𝐵 = [1, 9)
𝐴 ∪ 𝐵 = [2, 9)
(𝐴 ∪ 𝐵)𝑐 \𝐶 = (−∞, 1)
5. 𝐶 𝑐 = (−∞, 3]
𝐴𝑐 = (−∞, 2) ∪ [9, ∞)
𝐶 𝑐 \𝐴𝑐 = [2, 9)
6. 𝐵 ∩ 𝐴𝑐 = [1, 2)
(𝐵 ∩ 𝐴𝑐 ) − 𝐶 = [1, 2)
Cartesian product intervals.
ℝ × ℕ0 = {(𝑥, 𝑦): 𝑥 ∈ ℝ ∧ 𝑦 ∈ ℕ0 }
ℕ0 × ℕ0 = {(𝑥, 𝑦): 𝑥 ∈ ℕ0 ∧ 𝑦 ∈ ℕ0 }
The ordered pairs are the x and y coordinates of the corners of a square.
Example.
𝐴 = [1,5], 𝐵 = [3,4]. 𝐴 × 𝐵 = [1,5] × [3,4] = {(𝑥, 𝑦) ∈ ℝ2 : 𝑥 ∈ [1,5] ∧ 𝑦 ∈ [3,4]}
Example.
Example.