Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1
LEARNING OUTCOMES
By the end of the topic, you should be able to:
1. Describe the concept of sets and subsets; and
2. Apply the operations on sets such as intersection, union, difference
and products.
X INTRODUCTION
Understanding of set is very important in understanding modern mathematics.
Prior to the introduction of the set theory, the main concerns of mathematics were
numbers and geometry. The concept of set was first introduced by Cantor in the
19th century.
There are a few types of set theory. The set theory, which will be the subject of
this topic, is called naïve set theory. Other set theories are ZF-set theory and
axiomatic set theory.
For example,
(a) the collection of all students taking this course.
(b) the collection of all lecturers at the university.
(c) the collection of real numbers between zero and one.
2 X TOPIC 1 SET
Notation
A= {elements of set A}
Where A is the name of the set. It could be any other variable name. Other
Example, C,D,E
Example 1.1a
The equation
A = {1, 2, 3, 4}
describes a set A made up of the four elements 1, 2, 3, and 4.
A set is determined by its elements and not by any particular order in which
the elements might be listed. Another way in writing the equation above is as follows:
A = {1, 3, 4, 2}
The elements comprised in a set are assumed to be distinct, and although for
some reason we may duplicate it out in a list, only one occurrence of each element
is in the set. For this reason, we may also describe the set A defined above as:
A = {1, 2, 2, 3, 4}
SELF-CHECK 1.1
Can you figure out how to read the set notation?
Example 1.1b
V = {a, e, i, o, u}
Example 1.1c
The equation
B = {x | x is a positive, even integer}
describes the set B made up of all positive, even integers; that is, B consists
of the integer 2, 4, 6, 8, and so on.
The vertical bar "|" is read "such that". Equation B above can be read as "B equals
the set of all x such that x is a positive, even integer".
Symbols Description
Is a member/element
Is not a member/element
Example 1.1d
Example 1.1e
Example 1.1f
Often, a set of elements with certain properties turns out to be the null set. For
example, the set of all positive integers that are greater than their squares is the
null set.
TOPIC 1 SET W 5
ACTIVITY 1.1
1. Let A = {1, 2, 4, a, b, c}. Identify each of the following as true or false:
(a) 2A
(b) 3A
(c) cA
(d) ±A
(e) {}A
(f) AA
6 X TOPIC 1 SET
This website provides detail information about the set theory. This will be
helpful for those who are still confused with sets and it is worth reading it.
Enjoy!
http://en.wikipedia.org/wiki/Naive_set_theory
Example 1.2a
Example 1.2b
If A = {BASIC, PASCAL, ADA} and B = {ADA, BASIC, PASCAL}, then A = B.
Example 1.2c
If A = {x | x2 + x -6 = 0},
B = {2, 3}
ACTIVITY 1.2
Figure 1.2
Subsets of the universal set are drawn as circles. The inside of a circle represents
the numbers of the set. See the following figure:
Figure 1.3
Figure 1.4
1.4 SUBSET
Definition 1.4a: If every element of A is also an element of B, that is if
whenever x A then x B, we say that A is a subset of B or A is contained in
B, and we write A B.
TOPIC 1 SET W 9
The Venn diagram below represents the subset for set A and B.
Example 1.4a
Then C is a subset of A, or C A
Example 1.4b
Let
A = {1, 2, 3, 4, 5, 6},
B = {2, 4, 5}, and
C = {1, 2, 3, 4, 5}.
B A, B C and C A
10 X TOPIC 1 SET
Example 1.4c
Let
A = {1,2,3,4,5,6}
B = {3,7}
ACTIVITY 1.3
1. Let A = {1, 2, 5, 8, 11}. Identify each of the following statements as
true or false.
(a) {5, 1} A
(b) {8, 1} A
(c) {1, 8, 2, 11, 5} A
(d) A
(e) {1, 6} A
(f) {2} A
(g) {3} A
(h) A {11, 2, 5, 1, 8, 4}
2. In each part, find the set of the smallest cardinality that contains the
given sets as subsets
(a) {a, b, c}, {a, d, e, f}, {b, c, e, g}
(b) {1, 2}, {1, 3},
(c) {1, a}, {b, 2}
3. Suppose that A = {2, 4, 6}, B = {2, 6}, C = {4, 6} and D = {4, 6, 8}.
Determine whether
(a) A B
(b) BC
(c) C D
Definition 1.5a: If A is a set, then the set of all subsets of A is called the
power set of A and is denoted by (A).
12 X TOPIC 1 SET
Example 1.5a
If A = {a, b, c}, the members of (A) are
(A) = { , {a}, {b}, {c}, {a, b}, {a, c}, {b, c}, {a, b, c} }
All but {a, b, c} are proper subset of A. You may also write (A) as ({a,b,c})
The number of elements in a power set is given by the following theorem.
Example 1.5b
| A | = 3, then | (A) | = 23 = 8
Example 1.5c
ACTIVITY 1.4
1. Find the power set of each of the following sets.
(a) {a}
(b) {a, b}
(c) {, {}}
2. Can you conclude that A = B if A and B are two sets with the same
power set?
(c) ( ())
TOPIC 1 SET W 13
1.6.1 Union
Definition 1.6a: If A and B are sets, their union can be defined as a set
consisting of all elements that belong to A or B and is denoted by A B. Thus
A B = {x | x A or x B}.
The union of two sets can be illustrated by using a Venn diagram as follows.
A B
Example 1.6a
Let A = {a, b, c, d, e} and B = {b, d, r, s}.
A B
a r
c b
s
e d
Figure 1.9: A B
1.6.2 Intersection
A B
Let
A = {a, b, c, d, e, f}
B = {b, e, f, r, s}
C = {a, t, u, v}.
A B
a b
r
c e
s
d f
Figure 1.11: A B
Similarly, A C = {a}.
A C
b
c t
d a u
e v
f
Figure 1.12: A C
B C
b c a t
d
e f u v
Figure 1.13: B C
16 X TOPIC 1 SET
Definition 1.6c: Two sets that have no common elements are called disjoint sets.
We can illustrate the disjoint of two sets with a Venn diagram as follows:
A B
Definition 1.6d: If A and B are sets, their difference can be defined as a set
consisting of all elements in A that are not in B. The difference between A and
B is denoted by A B. Thus A B = {x | x A and x B}.
Figure 1.15: B A
TOPIC 1 SET W 17
Definition 1.6e: Let E be a universal set and let A be a subset of E. The set of E A
consists of all elements of E that are not elements of A is called the complement of
A and is denoted by A .
Figure 1.16
Example 1.6c
A =EA
= {1,2,3,4,5,6} {1,2}
= {3,4,5,6}.
Figure 1.17
18 X TOPIC 1 SET
Theorem 1.6a: Let E be a universal set and let A, B, and C be subsets of E. The
following properties hold.
Laws
(a) Associative Laws (A B) C = A (B C)
(A B) C = A (B C)
(b) Commutative Laws A B=B A
A B=B A
(c) Distributive Laws A (B C) = (A B) (A C)
A (B C) = (A B) (A C)
(d) Identity Laws A =A
A A=A
(e) Complement Laws $$ (
$$
(f) Idempotent Laws A A=A
A A=A
(g) Bound Laws A E=E
A =
(h) Absorption Laws A (A B) = A
A (A B) = A
(i) De Morgan's Laws For Sets
$ % $%
$ % $%
TOPIC 1 SET W 19
ACTIVITY 1.5
In each statement below, write „ttrue‰ if the statement is true;
otherwise, give a counter example. The set X, Y, and Z are subsets of a
universal set E.
(a) X (Y Z) = (X Y) (X Z) for all sets X, Y, and Z.
(b) (X Y) (Y X) = for all sets X and Y
(c) X (Y Z) = (X Y) Z for all sets X, Y, and Z.
S = {x | x X for some X S}
Example 1.7a
Suppose A1 = {1,2}, A2 = {3,4} and A3 = {5,6} then
S = {A1, A2, A3}
= { {1,2} , {3,4} , {5,6} }
20 X TOPIC 1 SET
Therefore,
S = Ai = {1,2,3,4,5,6 }
S = Ai = { }
ACTIVITY 1.7
Let Ai be a set of integers from 1 to n for i = 1, 2, 3, , n. Find
n
(a) * Ai
i=1
n
(b) Ai
i=1
1.8 PARTITION
A partition of a set X divides n into non-overlapping subsets. More formally,
Example 1.8a
ACTIVITY 1.7
Y = {x | x is integer and 1 d x d 5}
(a) D = {{1}, {2, 3}, {4}, {5}}
(b) D = {{1, 4}, {2}, {3,5}}
(c) D = {{1}, {4}, {2}, {3,5}}
(d) D = {{1}, {4}, {2}, {3}, {5}}
(e) D = {{1, 3}, {2}, {4,5}}
(f) D = {{7, 4}, {2, 6}, {3,5}}
Definition 1.9a: If A and B are sets, we let A x B denote the set of all ordered
pairs (a, b) where a A and b B. We call A x B the Cartesian product of A
and B.
An ordered pair (a, b), is considered distinct from the ordered pair (b, a),
unless, of course a = b. To put it another way, (a, b) = (c, d) if and only if a = c
and b = d.
Example 1.9a
X x Y = {(1, a), (1, b), (2, a), (2, b), (3, a), (3, b)}
Y x X = {(a, 1), (b, 1), (a, 2), (b, 2), (a, 3), (b, 3)}
X x X = {(1, 1), (1, 2), (1, 3), (2, 1), (2, 2), (2, 3), (3, 1), (3, 2), (3, 3)}
Y x Y = {(a, a), (a, b), (b, a), (b, b)}
Definition 1.9b: The Cartesian product of sets X1, X2, Xn is defined to be the
set of all n-tuples (x1, x2,. xn) where xi Xi for i = 1, n; it is denoted X1 x
X2 x x Xn.
Example 1.9b
ACTIVITY 1.8
1. Find x or y so that the following statements are true.
(a) (x, 3) = (4, 3)
(b) (a, 3y) = (a, 9)
(c) (3x + 1, 2) = (7, 2)
(d) (C++, PASCAL) = (x, y)