Chapter 2
Chapter 2
A set is a collection of objects, and these objects are called the elements of the set. Some sets
can be described by listing their elements within braces, for example, {1,2,3,4} or {all natural
number between 1 and 4} and a Venn diagram is a graphical presentation of how sets are related
Absolutely anything can be considered a set. Below you'll see just a sampling of items that
could be considered as sets:
A set could have as many entries as you would like. It could have 10, 15 or even an infinite
number of entries. For example, in the above list, the English alphabet would have 26 entries,
while the set of even numbers and the set [1,2] would have an infinite number of entries. Each
entry in a set is known as an element.
{a, b, c, d, e, f, g, h, I, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z}.
The order does not matter. This way of writing a set is called Roster Notation.
There are special symbols to learn so we don’t have to write it out every time. “3 is an element
of the set C” is written while we write when “3 is not an element of the set C”.
2.1 Operations on sets
A union of two or more sets is another set that contains everything contained in the previous
sets. The Union is designated by the symbol .
CD
Example 2: Find
A={1,2,3,4,5}
B={5,7,9,11,13}
Notice that when we write out the united set we do not write "5" twice. We simply list all of
the elements of the new set.
Example 3: Find
A={1,2,3,4,5}
B={6,7,8,9,10}
The intersection of two (or more) sets is those elements that they have in common.
The intersection is designated by the symbol . So if A and B are sets then the intersection (the
Venn diagrams also can illustrate the intersection of two sets. The left-hand circle again
represents C and the right-hand circle is D.
The shaded portion is C D , those points which belong to both C and D
CD
Example 1:
A={1,3,5,7,9}
B={2,3,4,5,6}
The elements they have in common are 3 and 5.
Example 2:
Example 3:
A={1,2,3,4,5} B={6,7,8,9,10}
In this case, A and B have nothing in common.
As usual, we have a symbol for this phenomenon: .
This is called the “empty set.”
Notice that this symbol has no set brackets around it. That is because literally means a set
with nothing in it: .
In this example .
These sets that we have been looking at are all finite sets. They only have a finite number of
elements.
2.1.3 B without A
This is written B-A or B\A It is the set of elements that are in B but are not in A.
b) Intersection
Set Difference: The relative complement or set difference of sets A and B, denoted A – B, is
the set of all elements in A that are not in B.
A= x R 2 x 4 means A consists of all the real numbers between 2 and 4 and including
2 and 4. The vertical line is read as “such that”. Note that A can also be written in interval
notation as [2, 4]. A has infinitely many elements. Suppose B = (1, 3)
C= x R x 2
− 25 = 0 is a set with only 2 elements. What are they? Since the equation
has solutions , the set can be written as .
Exercises 2.1:
2.2 Subsets
Let A be the set of objects that you own in your home and let B be the set of objects that you
own which are kept on the ground floor of your home. Let C be the set of objects that you
own which are kept in your bedroom [Note your bedroom is on the ground floor] and let D be
the set of objects that you own which are kept under your bed
Now we could say D is contained within C, which in turn is contained within B, which in turn
is contained within A.
and and
However, if even one element of one set is not contained within the other then they are not
subsets.
If A were defined as {1,2,3,4,5} and B as {3,4,5,6} then B would not be a subset of A since
but .
We would write B ⊈ A.
and .
In the case of B being a subset of A, but with A and B not being equal, we write and
Note:
1. If N is the set of all natural numbers, I represent the set of all integers, Q the set of all
rational numbers and R is the set of all real numbers, then N
2. Every set is a subset of itself; that is for any set A. However is not true.
3. An empty set is a subset of any set A: is for any set A. In order to explain this,
let us rephrase the definition of subset B is subset of A if and only if there is no object
that belongs to B and does not belong to A. It is clear that there exists no object that
belongs to and does not belong to A for the simple reason that there exists no object
that belongs to at all. Hence .
4. Two sets are equal if they contain the same elements. For example, A= {a, b, c, d} and
B = {d, a, b, c} i.e. and and therefore A = B.
The universal set U is represented by the interior of a rectangle and the other sets are
represented by circles or ellipses or small rectangles (or some curved figures!) lying within the
rectangle. Here is an example where every element of A is also in B.
Example 1:
A={1,2,3,4,5,6,7} and B={2,3,4}.
B is entirely within A (i.e. every element of B is also an element of A) so we can write
.
Also, since and A and B are not equal, B is a proper subset of A and we can write
Example 2:
A={1,2,3,4,5} and B={1,2,3,4,5}
Here and but A and B are not proper subsets as they are equal. That is we could
write and .
2.2.1 Sets of numbers
The sets that we will be concentrating on are sets of numbers. Below you will graphically see
the most common sets of numbers, along with brief descriptions of each major set.
List of Numbers
Symbol Name Sets
N Natural Numbers N={1,2,3,4,…}
Z Integers Z={…,-3, -2, -1, 0, 1, 2,
3,…}
Q Rational Numbers Q={a/b, b≠0 where a,b ∊ Z}
Q’ Irrational Numbers
R Real Numbers x∊(-∞, ∞)
Identity
Commutative
Associative
i. A (B C ) = ( A B ) C
ii. A (B C ) = ( A B ) C
Distributive
i. A (B C ) = ( A B ) ( A C )
ii. A (B C ) = ( A B ) ( A C )
We can also perform set operations on infinite sets of real numbers, usually written in interval
form by first representing the sets graphically on a number line and then performing the
required operations.
We also have:
SET-BUILDER INTERVAL FORM NUMBER LINE
NOTATION
A= {x∊R | a ≤ x ≤ b} A = [a, b]
E= {x∊R | x ≤ a} E = (-∞, a]
H= {x∊R | x ≥ a} H = [a, ∞)
Example 1:
Draw the line segments A = [1, 5]; B =(2,3) ; c=(3,∞) and D=(-∞, 4] on the same number line.
Example 2: Draw the line segments A=[2,7]; B=(3,6); U=(1,9). Then find AυB, A∩B, Ac, Bc,
B\A
Exercises:
1. Find , , Bc , Cc , U\A, ,
If U = R, A = (0, ∞), B = (-5, 10), C= {x∊R | x2 – 4 =0}
2. Draw the line segments A = [0,7], B=(3,2], U=[0,10]. Find AυB, A∩B, Ac, Bc, B\A
3. A= { x x 2 − 9 = 0} , B={1,2,3}, U = {-3,-2,-1,0,1,2,3}, Find AυB, A∩B, A’, B’, B\A