4.1 Defining and Writing Sets
Definition 4.1 (Set).
A collection of objects is called a set11 1 This definition is adequate for now but we shall see that it requires subtle refinement. A complete definition (and there are a few equivalent options) is covered in logic or the foundations of mathematics later. See Russell’s Paradox for more details..
-
1.
The objects within a set are called its elements.
-
2.
If the element belongs to the set , we write . If the element is not in the set , we write .
-
3.
Two sets are equal if they contain exactly the same elements.
-
4.
Sets do not contain identical repeated elements.
-
5.
We use curly brackets (also called braces) to indicate that we are defining a set. For example, {Monday, Tuesday, Wednesday} indicates the set consisting of the elements Monday, Tuesday and Wednesday.
It is important to note that symbols in mathematics form part of an English sentence. The symbol stands for “is an element of”. So, in a sentence, is read as “ is an element of ”.
Example 4.2.
Some sets of numbers are so important they get their own name:
-
is the set of strictly positive integers or natural numbers.
-
is the set of all integers,
-
is the set of rational numbers, and
-
is the set of all real numbers.
Note that in this course does not include 0. Other mathematicians sometimes consider 0 to be a natural number so may say . It is therefore always worth checking which definition you are working with. You may also see the notation .
Sets can consist of anything, including other sets. All elements within a set don’t have to be the same type of object. For example, is a set containing 2 and the set . Therefore, but .
Sets can also contain nothing. The set with no elements is called the empty set and is written .
Sometimes it is not helpful or possible to list all the objects within a set. For example, we know there are infinitely many prime numbers but we don’t know of any clear patterns to them so writing the set of prime numbers as a list within braces would not be feasible.
Instead, we can express the elements of a set in terms of the criteria they must satisfy to be in that set. So if my set consists of all elements of a set that satisfy a particular criteria, I could write
Thus, we can write the set of prime numbers as
and read this as "the set of all real numbers such that is prime". This way of writing a set is known as set-builder notation.
If a set consists of elements from the set , we call the universal set for . For example, the universal set for
is .
Example 4.3.
We’ve already seen that the rational numbers are the set of all real numbers which can be written as a fraction. Using set-builder notation, we can express the set as:
Another useful form of notation lets us define intervals of the real number line.
Definition 4.4 (Interval Notation).
Let and be two real numbers such that . Then
Example 4.5.
The set of positive real numbers less than or equal to 2 can be written as .
We can extend this notation to also define real intervals with no upper or lower bound:
Definition 4.6.
Let be a real number. Then
Note that we never use a square bracket immediately before or after the symbol which represents “infinity”.