Emzini weCodeUmhlahlandlelaMathematics 15.1 · Sets, Logic and Counting NoticesAll books

Chapter 15/15.1Foundationabout 2 min

Sets and their notation

Try this first

Sort these into groups in any sensible way: 2, 9, 15, 17, 21, 23, 25. Is 9 in the group "odd numbers"? Is it in the group "primes"? Which numbers belong to both groups?

Mathematicians call a well defined collection a set. "Well defined" means that for any object we can say clearly whether it belongs.

Definition

set A set is a collection of objects, called its elements, described so clearly that every object either belongs to it or does not. Sets are written with curly brackets: {2, 3, 5, 7}.

We write 3 ∈ A to say "3 is an element of A", and 4 ∉ A to say "4 is not an element of A". The number of elements in A is written n(A). The order of the elements does not matter, and each element is listed only once, so {1, 2, 3} and {3, 1, 2} are the same set.

A set can be listed, as in {2, 4, 6, 8}, or described, as in {even numbers between 1 and 9}. Some sets are infinite, such as {1, 2, 3, ...}, and must be described.

Definition

subset A is a subset of B, written A ⊆ B, if every element of A is also an element of B. For example, {2, 4} ⊆ {1, 2, 3, 4}.

Definition

empty set The empty set, written ∅ or { }, is the set with no elements. For example, {even primes greater than 2} = ∅.

Definition

universal set The universal set, written U, is the set of all the objects being considered in a problem.

Common mistake

Writing 2 ⊆ {1, 2, 3}. The number 2 is an element, so 2 ∈ {1, 2, 3}. The set {2} is a subset, so {2} ⊆ {1, 2, 3}.

Check your understanding 15.1

  1. List the set {prime numbers less than 20} and give its number of elements.
    Show answerHide answer
    {2, 3, 5, 7, 11, 13, 17, 19}, with 8 elements.
  2. True or false:
    1. (a)9 ∈ {odd numbers}
    2. (b){1, 3} ⊆ {1, 2, 3}
    3. (c)∅ ⊆ {1, 2}
    Show answerHide answer
    1. (a)True
    2. (b)True
    3. (c)True: the empty set has no elements, so all of them are in {1, 2}.
  3. List all the subsets of {a, b, c}. How many are there?
    Show answerHide answer
    ∅, {a}, {b}, {c}, {a, b}, {a, c}, {b, c}, {a, b, c}: 8 subsets.