BMMT110 Topic 1A Notes Set Theory
BMMT110 Topic 1A Notes Set Theory
SET THEORY
1 Set Theory
In mathematics, all concepts are governed by the principle of sets. For example, solving an equation x + 1 = 2
gives an answer 1; also, the solution of the equation x + 2 = 1 yields −1. The number 1 can be categorised, but
not limited to be called a natural number, and also as an integer. On the other hand, −1 does not qualify to
be called a natural number, but is a valid integer. Further, the linear inequality x + 3 ≥ 1 gives the solution
x ≥ −2, which is a set of possible solutions of the given problem. From the above simple illustrations, it is
worth noting that all numbers are categorised in what we call “sets”; and thus, it becomes essential to explore
this concept, even before any actual mathematics can be done.
A set has its complete meaning if it is well defined. That is, if all required rules are followed.
Example 1.1.1. Let us have a glance at the two sets described below:
We note from Example 1.1.1 above that Case (i) is a defined set, while Case (ii) represents a well defined set.
To denote a set, upper case letters are used; and lower case letters are used to denote elements belonging to a
set. For example, A, B, G, . . . can denote sets, and p, q, r, . . . can denote elements of a set.
Note 1.1.1. Elements of a set need not be restricted to alphabet letters only. A set can contain “anything” as
its elements.
1. Roster form: Elements of a set are listed down in the set. Examples include
and so on.
2. Set Builder notation: Here, a set is represented by describing its elements that all satisfy a given property.
That is, a set of the form
Task 1.1.1. Try the task below on your own, making sure you give it a good attempt.
1. Empty set: This describes a set with zero or no elements in it. We denote it by ∅ or { }. E.g
A = {x : x ∈ R, x2 + 1 = 0}
B = {y : y ∈ N, y + 2 = 0}
2. Singleton set: Describes a set with only one element contained in it. E.g
Q = {g}
T = {v : v ∈ N, v 2 − 1 = 0}
3. Universal set: This is the set containing all elements of a given set(s).
We denote it as U or E. E.g, Given sets A = {2} and U = {1, 2}, this would visually be represented in a
venn diagram as shown below;
U A
1. Finite set: Refers to a set whose elements are countable. For example, M = {h, u, e, y} is a finite set since
its elements are countable; in this case, set M has 4 elements.
Note 1.2.1. The empty set is a finite set. Why? Try to investigate!!
Further, the number of elements in a given set is called the Cardinality of a set. For set M above, we
would denote it as |M | = 4 or n(M ) = 4.
2. Infinite set: Refers to a set whose elements are not countable. In other words, a set is said to be infinite if
it has an unlimited number of elements. E.g the set V = {1, 2, 3, . . .} is infinite because it is not countable.
In other words, its cardinality is infinite; that is, |V | = ∞.
Note 1.2.2. The universal set can either be finite or infinite. Why? Give it a try!!
Task 1.2.1. Classify each of the given sets below as either finite or infinite, and clearly demonstrate your
reasoning with an explanation;
A = {1, 3, 5, . . .}
S = {e, i, j, d}
A ∪ B = {x : x ∈ A or x ∈ B}.
2. We define an Intersection of sets A and B as the set of elements in both A and B. That is,
A ∩ B = {x : x ∈ A and x ∈ B}.
U U
A B A B
Figure 1.3.1: Venn diagram shading of A ∪ B Figure 1.3.2: Venn diagram shading of A ∩ B
1. The Complement of a set A, is the set of all elements in the universal set U except those in A itself. That
is,
A′ = {x : x ∈ U and x ∈
/ A}.
Note 1.3.1. The complement of the complement of any set A is the set itself. That is, (A′ )′ = A. Why
? Try it !!
2. The complement of set A relative to set B defines the Set Difference of A from B, which is the intersection
of sets B and A′ . Mathematically, we write this as
B − A ≡ B ∩ A′ = {x : x ∈ B and x ∈ A′ }.
Note 1.3.2. B − A ̸= A − B, and other notations used to denote the complement of a set are Ac and Ā.
U A U
A B
Figure 1.3.3: Venn diagram shading of A′ Figure 1.3.4: Venn diagram shading of B − A
Definition 1.3.1. Two sets A and B are said to be Disjoint if their intersection is empty. In simpler terms,
they are disjoint if they do not cross each other.
U
A B
Definition 1.3.2. Any given set A is termed a Subset of another given set B if every element in A is also
found in B. We denote this as A ⊂ B, or alternatively write B ⊃ A to say B contains A. We have its venn
diagram representation shown below:
A subset of the form described in Definition 1.3.2 is known as a Proper subset. E.g, if
Any given set A is an Improper subset of a set B if it has the same or identical elements as B. E.g, if
then A ⊆ B and B ⊆ A =⇒ A = B.
A
B
1. Two sets are said to be equal if they are subsets of each other.
2. If any two given sets have the same exact elements, regardless of how the elements are ordered or arranged,
they are said to be equal.
3. Every set has two trivial subsets; the empty set and itself.
Note 1.3.3. Statements “same number of elements” and “same exact or identical elements” are not the same.
Why? Give it a try !!
1. Identity Laws:
A∪∅=A
A∩U =A
A∩∅=∅
A∪U =U
2. Idempotent Laws:
A∩A=A
A∪A=A
3. Commutativity Laws:
A∩B =B∩A
A∪B =B∪A
4. Associativity Laws:
(A ∪ B) ∪ C = A ∪ (B ∪ C)
(A ∩ B) ∩ C = A ∩ (B ∩ C)
5. Distributivity Laws:
A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)
6. De Morgan’s Laws:
(A ∪ B)′ = A′ ∩ B ′
(A ∩ B)′ = A′ ∪ B ′
The above set laws (and other set relations) can be verified by applying the algebra of sets. There are two
methods which can be used to achieve this;
1. Element Method: Arbitrary sets of elements are assumed, and the given relation is verified by showing
equivalence of set expressions in the relation.
2. Proof Method: In this approach, a general proof for any given set(s) of elements is used. We do not
assume a particular example of a set/sets to verify equivalence of the given set relation.
(A ∪ B)′ = A′ ∩ B ′
Solution. To answer Part 1, let A = {2, 4, 8} , B = {3, 6, 2} and C = {1, 3}. Then
Conversely,
Since Equation (1.1) = Equation (1.2), then by the element method, we verify that
A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C),
Now moving to Part 2, let us have x ∈ (A ∪ B)′ , where x is an arbitrary element. Then,
=⇒ x ∈
/ (A ∪ B)
=⇒ x ∈
/A or x ∈
/B
′
=⇒ x ∈ A and x ∈ B ′
=⇒ x ∈ A′ ∩ B ′
∴ (A ∪ B)′ ⊆ A′ ∩ B ′ (1.3)
=⇒ y ∈ A′ and y ∈ B ′
=⇒ y ∈
/A or y ∈
/B
=⇒ y ∈
/ (A ∪ B)
=⇒ y ∈ (A ∪ B)′
∴ A′ ∩ B ′ ⊆ (A ∪ B)′ (1.4)
By applying the property of subsets, from Equations (1.3) and (1.4), we deduce that
(A ∪ B)′ = A′ ∩ B ′ ,
In set theory, Union ′′ ∪′′ means or, then Intersection ′′ ∩′′ means and.
When intersecting sets, we are finding common elements in all the given sets, while when taking the union
of sets, we are adding or putting together elements of the given sets.
Task 1.4.1. Apply both the element method and the proof method to verify the following set laws:
1. (A′ )′ = A
2. (A ∩ B)′ = A′ ∪ B ′
Proposition 1.5.1. Given two sets A and B, we count elements of their union usiing the counting principle
below;
Example 1.5.1. Given that n(A) = 120, n(B) = 80 and n(A ∩ B) = 60, then;
1.6.1 Hierarchy
There are many sets of numbers defined in number theory; but for this course, we shall only look at a major
few that highlight the beginning to understanding sets of numbers. Defined below are the said sets of numbers;
1. Natural Numbers: These are also referred to as counting numbers, and their set is given by
N = {1, 2, 3, 4, 5, 6, . . .}.
2. Integers: It combines whole numbers and their negative equivalents. This set is defined as
In some cases, we may only be interested in positive integers (denoted Z+ ), or negative integers (denoted
Z− ). We also note that zero (0) is a neutral integer; it is neither negative nor positive.
1 2
Some examples are 2, , , 2.1, and so on.
3 7
Note 1.6.2. We note the following about this set;
4. Real Numbers: The set of real numbers defines all numbers on the real number line. They are defined in
intervals and their sets are given by
R is a set of real numbers x, such that x ∈ (Lℓ , Uℓ ), or Lℓ < x < Uℓ (open real interval).
R is a set of real numbers x, such that x ∈ [Lℓ , Uℓ ], or Lℓ ≤ x ≤ Uℓ (closed real interval).
R is a set of real numbers x, such that x ∈ (Lℓ , Uℓ ], or Lℓ < x ≤ Uℓ (half open/closed real interval).
R is a set of real numbers x, such that x ∈ [Lℓ , Uℓ ), or Lℓ ≤ x < Uℓ (half closed/open real interval).
where Lℓ and Uℓ denote the lower and upper limits of the intervals respectively. Examples of real intervals
include (−3, 9), [2, 6], (−∞, 6] and [0, ∞).
Note 1.6.3. Infinity (−∞ or ∞) is not a number, it only denotes an endless continuity of numbers.
Thus, we do not close an interval on the side that has an infinity sign.
5. Complex Numbers: These numbers are also called imaginary numbers. They have the real part (a real
number) and imaginary part (real number with an i); and these are defined as
C = {z : z = a + bi, a, b ∈ R}
N⊂Z⊂Q⊂R⊂C
Just as in the case of finite sets, sets of real numbers (which are infinite) can also be operated on. The algebra
of sets and set laws also hold.
Example 1.6.1. Let U = R, A = [0, 6], B = (−2, ∞) and C = (−3, 4]. Find the following sets and display them
on the real line.
1. A ∩ C
2. B ∩ U
3. C ′ ∩ (A ∩ B)
4. C − (B ∪ C)
Solution. For Part 1, We first display the sets A and C on the real line as follows:
C
A
-3 0 4 6
Now taking the intersection of the above two sets we have the result as shown below:
A∩C
0 4
Task 1.6.1. Find the sets in questions 2, 3, and 4 of Example 1.6.1 and display them on the real number line.
1