Skip to main content

Section 5.1 Sets and Operations on Sets

Beginning Activity Beginning Activity 1: Set Operations

Before beginning this section, it would be a good idea to review sets and set notation, including the roster method and set builder notation, in Section 2.3.

In Section 2.1, we used logical operators (conjunction, disjunction, negation) to form new statements from existing statements. In a similar manner, there are several ways to create new sets from sets that have already been defined. In fact, we will form these new sets using the logical operators of conjunction (and), disjunction (or), and negation (not). For example, if the universal set is the set of natural numbers \(\N\) and

\begin{equation*} A = \{ 1, 2, 3, 4, 5, 6 \} \qquad \text{ and } \qquad B = \{ 1, 3, 5, 7, 9 \}\text{,} \end{equation*}
  • The set consisting of all natural numbers that are in \(A\) and are in \(B\) is the set \(\{1, 3, 5 \}\text{;}\)

  • The set consisting of all natural numbers that are in \(A\) or are in \(B\) is the set \(\{ 1, 2, 3, 4, 5, 6, 7, 9 \}\text{;}\) and

  • The set consisting of all natural numbers that are in \(A\) and are not in \(B\) is the set \(\{ 2, 4, 6 \}\text{.}\)

These sets are examples of some of the most common set operations, which are given in the following definitions.

Definition.

Let \(A\) and \(B\) be subsets of some universal set \(U\text{.}\) The intersection of \(A\) and \(B\text{,}\) written \(A \cap B\) and read “\(A\) intersect \(B\text{,}\)” is the set of all elements that are in both \(A\) and \(B\text{.}\) That is,

\begin{equation*} A \cap B = \left\{ {x \in U} \mid {x \in A \text{ and } x \in B} \right\}\!\text{.} \end{equation*}

The union of \(A\) and \(B\text{,}\) written \(A \cup B\) and read “\(A\) union \(B\text{,}\)” is the set of all elements that are in \(A\) or in \(B\text{.}\) That is,

\begin{equation*} A \cup B = \left\{ {x \in U} \mid {x \in A \text{ or } x \in B} \right\}\text{.} \end{equation*}

Definition.

Let \(A\) and \(B\) be subsets of some universal set \(U\text{.}\) The set difference of \(A\) and \(B\text{,}\) or relative complement of \(B\) with respect to \(A\text{,}\) written \(A - B\) and read “\(A\) minus \(B\)” or “the complement of \(B\) with respect to \(A\text{,}\)” is the set of all elements in \(A\) that are not in \(B\text{.}\) That is,

\begin{equation*} A - B = \left\{ {x \in U} \mid {x \in A} \text{ and } {x \notin B} \right\}\!\text{.} \end{equation*}

The complement of the set \(A\text{,}\) written \(A^c\) and read “the complement of \(A\text{,}\)” is the set of all elements of \(U\) that are not in \(A\text{.}\) That is,

\begin{equation*} A^c = \left\{ {x \in U} \mid {x \notin A} \right\}\!\text{.} \end{equation*}

For the rest of this beginning activity, the universal set is \(U = \left\{ {0, 1, 2, 3, \ldots , 10} \right\}\text{,}\) and we will use the following subsets of \(U\text{:}\)

\begin{equation*} A = \left\{ {0, 1, 2, 3, 9} \right\} \qquad \text{ and } \qquad B = \left\{ {2, 3, 4, 5, 6} \right\}\text{.} \end{equation*}

So in this case, \(A \cap B = \left\{ {x \in U} \mid {x \in A \text{ and } x \in B} \right\} = \{2, 3 \}\text{.}\) Use the roster method to specify each of the following subsets of \(U\text{.}\)

1.

\(A \cup B\)

2.

\(A^c\)

3.

\(B^c\)

We can now use these sets to form even more sets. For example,

\begin{equation*} A \cap B^c = \{0, 1, 2, 3, 9 \} \cap \{0, 1, 7, 8, 9, 10 \} = \{0, 1, 9 \}\text{.} \end{equation*}

Use the roster method to specify each of the following subsets of \(U\text{.}\)

4.

\(A \cup B^c\)

5.

\(A^c \cap B^c\)

6.

\(A^c \cup B^c\)

7.

\((A \cap B)^c\)

Beginning Activity Beginning Activity 2: Venn Diagrams for Two Sets

In Beginning Activity 1, we worked with verbal and symbolic definitions of set operations. However, it is also helpful to have a visual representation of sets. Venn diagrams are used to represent sets by circles (or some other closed geometric shape) drawn inside a rectangle. The points inside the rectangle represent the universal set \(U\text{,}\) and the elements of a set are represented by the points inside the circle that represents the set. For example, Figure 5.1 is a Venn diagram showing two sets.

Venn Diagram with two circles A and B inside the universal set U. A overlaps B creating 3 inner-circle regions. The leftmost is labelled 1, the center 2, and the right 3. The area outside the circles but in U is labelled 4.
Figure 5.1. Venn Diagram for Two Sets

In Figure 5.1, the elements of \(A\) are represented by the points inside the left circle, and the elements of \(B\) are represented by the points inside the right circle. The four distinct regions in the diagram are numbered for reference purposes only. (The numbers do not represent elements in a set.) The following table describes the four regions in the diagram.

Region Elements of \(U\) Set
1 In \(A\) and not in \(B\) \(A - B\)
2 In \(A\) and in \(B\) \(A \cap B\)
3 In \(B\) and not in \(A\) \(B - A\)
4 Not in \(A\) and not in \(B\) \(A^c \cap B^c\)
We can use these regions to represent other sets. For example, the set \(A \cup B\) is represented by regions 1, 2, and 3 or the shaded region in Figure 5.2.
Venn Diagram with two circles A and B inside the universal set U. A overlaps B creating 3 inner-circle regions. The leftmost is labelled 1, the center 2, and the right 3. The area outside the circles but in U is labelled 4. Areas 1, 2, and 3 shaded.
Figure 5.2. Venn Diagram for \(A \cup B\)

Let \(A\) and \(B\) be subsets of a universal set \(U\text{.}\) For each of the following, draw a Venn diagram for two sets and shade the region that represent the specified set. In addition, describe the set using set builder notation.

1.

\(A^c\)

2.

\(B^c\)

3.

\(A^c \cup B\)

4.

\(A^c \cup B^c\)

5.

\(\left( A \cap B \right)^c\)

6.

\(\left( A \cup B \right) - \left( A \cap B \right)\)

Subsection Set Equality, Subsets, and Proper Subsets

In Section 2.3, we introduced some basic definitions used in set theory, what it means to say that two sets are equal and what it means to say that one set is a subset of another set. See Definition. We need one more definition.

Definition.

Let \(A\) and \(B\) be two sets contained in some universal set \(U\text{.}\) The set \(A\) is a proper subset of \(B\) provided that \(A \subseteq B\) and \(A \ne B\text{.}\) When \(A\) is a proper subset of \(B\text{,}\) we write \(A \subset B\text{.}\)

One reason for the definition of proper subset is that each set is a subset of itself. That is, If \(A\) is a set, then \(A \subseteq A\text{.}\) However, sometimes we need to indicate that a set \(X\) is a subset of \(Y\) but \(X \ne Y\text{.}\) For example, if

\begin{equation*} X = \left\{ {1, 2} \right\}\text{ and } Y = \left\{ {0, 1, 2, 3} \right\}\!\text{,} \end{equation*}

then \(X \subset Y\text{.}\) We know that \(X \subseteq Y\) since each element of \(X\) is an element of \(Y\text{,}\) but \(X \ne Y\) since \(0 \in Y\) and \(0 \notin X\text{.}\) (Also, \(3 \in Y\) and \(3 \notin X\text{.}\)) Notice that the notations \(A \subset B\) and \(A \subseteq B\) are used in a manner similar to inequality notation for numbers (\(a \lt b\) and \(a \leq b\)).

It is often very important to be able to describe precisely what it means to say that one set is not a subset of the other. In the preceding example, \(Y\) is not a subset of \(X\) since there exists an element of \(Y\) (namely, 0) that is not in \(X\text{.}\)

In general, the subset relation is described with the use of a universal quantifier since \(A \subseteq B\) means that for each element \(x\) of \(U\text{,}\) if \(x \in A\text{,}\) then \(x \in B\text{.}\) So when we negate this, we use an existential quantifier as follows:

\begin{align*} A \subseteq B \amp \amp \text{ means } \amp \amp \left( {\forall x \in U} \right)\left[ {\left( {x \in A} \right) \to \left( {x \in B} \right)} \right]\\ A \not\subseteq B \amp \amp \text{ means } \amp \amp \mynot \left( {\forall x \in U} \right)\left[ {\left( {x \in A} \right) \to \left( {x \in B} \right)} \right]\\ \amp \amp \amp \amp \left( {\exists x \in U} \right) \mynot \left[ {\left( {x \in A} \right) \to \left( {x \in B} \right)} \right]\\ \amp \amp \amp \amp \left( {\exists x \in U} \right) \left[ {\left( {x \in A} \right) \wedge \left( {x \notin B} \right)} \right]\text{.} \end{align*}

So we see that \(A \not\subseteq B\) means that there exists an \(x\) in \(U\) such that \(x \in A\) and \(x \notin B\text{.}\)

Notice that if \(A = \emptyset\text{,}\) then the conditional statement, “For each \(x \in U\text{,}\) if \(x \in \emptyset\text{,}\) then \(x \in B\)” must be true since the hypothesis will always be false. Another way to look at this is to consider the following statement:

\(\emptyset \not \subseteq B\) means that there exists an \(x \in \emptyset\) such that \(x \notin B\text{.}\)
However, this statement must be false since there does not exist an \(x\) in \(\emptyset\text{.}\) Since this is false, we must conclude that \(\emptyset \subseteq B\text{.}\) Although the facts that \(\emptyset \subseteq B\) and \(B \subseteq B\) may not seem very important, we will use these facts later, and hence we summarize them in Theorem 5.3.

In Section 2.3, we also defined two sets to be equal when they have precisely the same elements. For example,

\begin{equation*} \left\{ {\left. {x \in \mathbb{R}\,} \right|\;x^2 = 4} \right\} = \left\{ { - 2,\;2} \right\}\!\text{.} \end{equation*}

If the two sets \(A\) and \(B\) are equal, then it must be true that every element of \(A\) is an element of \(B\text{,}\) that is, \(A \subseteq B\text{,}\) and it must be true that every element of \(B\) is an element of \(A\text{,}\) that is, \(B \subseteq A\text{.}\) Conversely, if \(A \subseteq B\) and \(B \subseteq A\text{,}\) then \(A\) and \(B\) must have precisely the same elements. This gives us the following test for set equality:

Progress Check 5.5. Using Set Notation.

Let the universal set be \(U = \left\{ {1,2,3,4,5,6} \right\}\text{,}\) and let

\begin{equation*} A = \left\{ {1,2,4} \right\}\!, B = \left\{ {1,2,3,5} \right\}\!, C = \left\{ {\left. {x \in U} \right|x^2 \leq 2} \right\}\!\text{.} \end{equation*}

In each of the following, fill in the blank with one or more of the symbols \(\subset, \\ \subseteq, =, \ne, \in ,\text{ or } \notin\) so that the resulting statement is true. For each blank, include all symbols that result in a true statement. If none of these symbols makes a true statement, write nothing in the blank.

(a)

\(A\)\(B\)

Solution.

\(\not \subset, \not \subseteq \ne\)

(d)

\(\left\{ {1, 2} \right\}\)\(A\)

Solution.

\(\subset, \subseteq, \ne\)

(f)

\(\emptyset\)\(A\)

Solution.

\(\subset, \subseteq, \ne\)

(g)

\(\left\{ 5 \right\}\)\(B\)

Solution.

\(\subset, \subseteq, \ne\)

(h)

\(\left\{ {1, 2} \right\}\)\(C\)

Solution.

\(\ne\)

(i)

\(\left\{ {4, 2, 1} \right\}\)\(A\)

Solution.

\(\subseteq, =\)

Subsection More about Venn Diagrams

In Beginning Activity 2, we learned how to use Venn diagrams as a visual representation for sets, set operations, and set relationships. In that activity, we restricted ourselves to using two sets. We can, of course, include more than two sets in a Venn diagram. Figure 5.6 shows a general Venn diagram for three sets (including a shaded region that corresponds to \(A \cap C\)).

In this diagram, there are eight distinct regions, and each region has a unique reference number. For example, the set \(A\) is represented by the combination of regions 1, 2, 4, and 5, whereas the set \(C\) is represented by the combination of regions 4, 5, 6, and 7. This means that the set \(A \cap C\) is represented by the combination of regions 4 and 5. This is shown as the shaded region in Figure 5.6.

A Venn diagram for three sets, A, B, and C. The intersection of A and C is shaded.
Figure 5.6. Venn Diagram for \(A \cap C\)

Finally, Venn diagrams can also be used to illustrate special relationships between sets. For example, if \(A \subseteq B\text{,}\) then the circle representing \(A\) should be completely contained in the circle for \(B\text{.}\) So if \(A \subseteq B\text{,}\) and we know nothing about any relationship between the set \(C\) and the sets \(A\) and \(B\text{,}\) we could use the Venn diagram shown in Figure 5.7.

Venn Diagram with three circles A, B, and C. B and C overlap and A is completely inside B while overlapping C.
Figure 5.7. Venn Diagram Showing \(A \subseteq B\)

Progress Check 5.8. Using Venn Diagrams.

Let \(A\text{,}\) \(B\text{,}\) and \(C\) be subsets of a universal set \(U\text{.}\)

(a)

For each of the following, draw a Venn diagram for three sets and shade the region(s) that represent the specified set.

(i)

\((A \cap B) \cap C\)

Solution.

For the set \((A \cap B) \cap C\text{,}\) region 5 is shaded.

(ii)

\((A \cap B) \cup C\)

Solution.

For the set \((A \cap B) \cup C\text{,}\) the regions 2, 4, 5, 6, 7 are shaded.

(iii)

\(\left( A^c \cup B \right)\)

Solution.

For the set \((A^c \cup B)\text{,}\) the regions 2, 3, 5, 6, 7, 8 are shaded.

(iv)

\(A^c \cap (B \cup C)\)

Solution.

For the set \((A^c \cap (B \cup C))\text{,}\) the regions 3, 6, 7 are shaded.

(b)

Draw the most general Venn diagram showing \(B \subseteq (A \cup C)\text{.}\)

(c)

Draw the most general Venn diagram showing \(A \subseteq \left( B^c \cup C \right)\text{.}\)

Subsection The Power Set of a Set

The symbol \(\in\) is used to describe a relationship between an element of the universal set and a subset of the universal set, and the symbol \(\subseteq\) is used to describe a relationship between two subsets of the universal set. For example, the number 5 is an integer, and so it is appropriate to write \(5 \in \mathbb{Z}\text{.}\) It is not appropriate, however, to write \(5 \subseteq \mathbb{Z}\) since 5 is not a set. It is important to distinguish between 5 and \(\left\{ 5 \right\}\text{.}\) The difference is that 5 is an integer and \(\left\{ 5 \right\}\) is a set consisting of one element. Consequently, it is appropriate to write \(\left\{ 5 \right\} \subseteq \mathbb{Z}\text{,}\) but it is not appropriate to write \(\left\{ 5 \right\} \in \mathbb{Z}\text{.}\) The distinction between these two symbols \(\left( 5 \text{ and } \left\{ 5 \right\} \right)\) is important when we discuss what is called the power set of a given set.

Definition.

If \(A\) is a subset of a universal set \(U\text{,}\) then the set whose members are all the subsets of \(A\) is called the power set of \(A\text{.}\) We denote the power set of \(A\) by \(\mathcal{P}( A )\) . Symbolically, we write

\begin{equation*} \mathcal{P}( A ) = \left\{ {X \subseteq U \mid X \subseteq A} \right\}\text{.} \end{equation*}

That is, \(X \in \mathcal{P}( A )\) if and only if \(X \subseteq A\text{.}\)

When dealing with the power set of \(A\text{,}\) we must always remember that \(\emptyset \subseteq A\) and \(A \subseteq A\text{.}\) For example, if \(A = \left\{ {a,b} \right\}\text{,}\) then the subsets of \(A\) are

\begin{equation} \emptyset,\left\{ a \right\}\!,\left\{ b \right\}\!,\left\{ {a,b} \right\}\!\text{.}\tag{37} \end{equation}

We can write this as

\begin{equation*} \mathcal{P}( A ) = \left\{ {\emptyset,\left\{ a \right\}\!,\left\{ b \right\}\!, \left\{ {a,b} \right\}} \right\}\!\text{.} \end{equation*}

Now let \(B = \left\{ {a, b, c} \right\}\text{.}\) Notice that \(B = A \cup \{ c \}\text{.}\) We can determine the subsets of \(B\) by starting with the subsets of \(A\) in (37). We can form the other subsets of \(B\) by taking the union of each set in (37) with the set \(\{c \}\text{.}\) This gives us the following subsets of \(B\text{.}\)

\begin{equation} \{ c \},\left\{ a, c \right\}\!,\left\{ b, c \right\}\!,\left\{ {a,b, c} \right\}\!\text{.}\tag{38} \end{equation}

So the subsets of \(B\) are those sets in (37) combined with those sets in (38). That is, the subsets of \(B\) are

\begin{equation} \emptyset,\left\{ a \right\}\!,\left\{ b \right\}\!,\left\{ {a,b} \right\}, \{ c \}, \left\{ a, c \right\}\!,\left\{ b, c \right\}\!,\left\{ {a,b, c} \right\}\!\text{,}\tag{39} \end{equation}

which means that

\begin{equation*} \mathcal{P}( B ) = \left\{ {\emptyset,\left\{ a \right\}\!, \left\{ b \right\}\!, \left\{ {a, b} \right\}\!,\left\{ c \right\}\!,\left\{ {a,c} \right\}\!,\left\{ {b,c} \right\}\!,\left\{ {a,b,c} \right\}} \right\}\!\text{.} \end{equation*}

Notice that we could write

\begin{equation*} \left\{ {a,c} \right\} \subseteq B \text{ or that } \left\{ {a,c} \right\} \in \mathcal{P}( B )\text{.} \end{equation*}

Also, notice that \(A\) has two elements and \(A\) has four subsets, and \(B\) has three elements and \(B\) has eight subsets. Now, let \(n\) be a nonnegative integer. The following result can be proved using mathematical induction. (See Activity 29.)

Subsection The Cardinality of a Finite Set

In our discussion of the power set, we were concerned with the number of elements in a set. In fact, the number of elements in a finite set is a distinguishing characteristic of the set, so we give it the following name.

Definition.

The number of elements in a finite set \(A\) is called the cardinality of \(A\) and is denoted by \(\card(A)\text{.}\)

For example, \(\card (\emptyset) = 0\text{;}\) \(\card (\left\{ {a,b} \right\}) = 2\text{;}\) \(\card \left( \mathcal{P}( \left\{ {a,b} \right\}) \right) = 4\text{.}\)

Theoretical Note.

There is a mathematical way to distinguish between finite and infinite sets, and there is a way to define the cardinality of an infinite set. We will not concern ourselves with this at this time. More about the cardinality of finite and infinite sets is discussed in Chapter 9.

Subsection Standard Number Systems

We can use set notation to specify and help describe our standard number systems. The starting point is the set of natural numbers, for which we use the roster method.

\begin{equation*} \N = \left\{ 1, 2, 3, 4, \ldots \;\right\} \end{equation*}

The integers consist of the natural numbers, the negatives of the natural numbers, and zero. If we let \(\N^- = \left\{ \ldots, -4, -3, -2, -1 \right\}\text{,}\) then we can use set union and write

\begin{equation*} \Z = \N^- \cup \left\{ 0 \right\} \cup \N\text{.} \end{equation*}

So we see that \(\N \subseteq \Z\text{,}\) and in fact, \(\N \subset \Z\text{.}\)

We need to use set builder notation for the set \(\Q\) of all rational numbers, which consists of quotients of integers.

\begin{equation*} \Q = \left\{ \left. \frac{m}{n} \right| m, n \in \Z \text{ and } n \ne 0 \right\} \end{equation*}

Since any integer \(n\) can be written as \(n = \dfrac{n}{1}\text{,}\) we see that \(\Z \subseteq \Q\text{.}\)

We do not yet have the tools to give a complete description of the real numbers. We will simply say that the real numbers consist of the rational numbers and the irrational numbers. In effect, the irrational numbers are the complement of the set of rational numbers \(\Q\) in \(\R\text{.}\) So we can use the notation \(\Q^c = \left\{ x \in \R \mid x \notin \Q \right\}\) and write

\begin{equation*} \R = \Q \cup \Q^c \qquad \text{ and } \qquad \Q \cap \Q^c = \emptyset\text{.} \end{equation*}

A number system that we have not yet discussed is the set of complex numbers. The complex numbers, \(\mathbb{C}\text{,}\) consist of all numbers of the form \(a + bi\text{,}\) where \(a, b \in \R\) and \(i = \sqrt{-1}\) (or \(i^2 = -1\)). That is,

\begin{equation*} \mathbb{C} = \left\{ a + bi \left| a, b \in \R \text{ and } i = \sqrt{-1} \right. \right\}\!\text{.} \end{equation*}

We can add and multiply complex numbers as follows: If \(a, b, c, d \in \R\text{,}\) then

\begin{align*} \left( a + bi \right) + \left( c + di \right) \amp = \left(a + c \right) + \left(b + d \right)i, \text{ and }\\ \left( a + bi \right) \left( c + di \right) \amp = ac + adi + bci + bdi^2\\ \amp = \left(ac - bd \right) + \left(ad + bc \right)i\text{.} \end{align*}

Exercises Exercises

1.

Assume the universal set is the set of real numbers. Let

\begin{align*} A \amp = \left\{ { - 3, - 2,2,3} \right\}\!, \amp B \amp = \left\{ {\left. {x \in \mathbb{R}} \right|x^2 = 4\text{ or } x^2 = 9} \right\}\!,\\ C \amp = \left\{ {x \in \mathbb{R}\left. \right|x^2 + 2 = 0} \right\}\!, \amp D \amp = \left\{ {x \in \mathbb{R}\left. \right|x > 0} \right\}\!\text{.} \end{align*}

Respond to each of the following questions. In each case, explain your answer.

(a)

Is the set \(A\) equal to the set \(B\text{?}\)

Answer.

\(A = B\)

(b)

Is the set \(A\) a subset of the set \(B\text{?}\)

Answer.

\(A \subseteq B\)

(c)

Is the set \(C\) equal to the set \(D\text{?}\)

Answer.

\(C \ne D\)

(d)

Is the set \(C\) a subset of the set \(D\text{?}\)

Answer.

\(C \subseteq D\)

(e)

Is the set \(A\) a subset of the set \(D\text{?}\)

Answer.

\(A \not \subseteq D\)

2.

Explain why

(a)

the set \(\left\{ {a,b} \right\}\) is equal to the set \(\left\{ {b,a} \right\}\text{.}\)

Answer.

The two sets have precisely the same elements.

(b)

the set \(\left\{ {a,b,b,a,c} \right\}\) is equal to the set \(\left\{ {b,c,a} \right\}\text{.}\)

Answer.

The two sets have precisely the same elements.

3.

Assume that the universal set is the set of integers. Let

\begin{align*} A \amp = \left\{ { - 3, - 2,2,3} \right\}\!, \amp B \amp = \left\{ {x \in \mathbb{Z}\left. \right|x^2 \leq 9} \right\}\!,\\ C \amp = \left\{ {\left. {x \in \mathbb{Z}} \right|x \geq - 3} \right\}\!, \amp D \amp = \left\{ {1,2,3,4} \right\}\!\text{.} \end{align*}

In each of the following, fill in the blank with one or more of the symbols \(\subset\) , \(\subseteq\) , \(\not \subseteq\text{,}\) \(=\) , \(\ne\text{,}\) \(\in\text{,}\) \(\text{ or } \notin\) so that the resulting statement is true. For each blank, include all symbols that result in a true statement. If none of these symbols makes a true statement, write nothing in the blank.

(a)

\(A\)\(B\)

Answer.

\(A \subset, \subseteq, \ne B\)

(c)

\(A\)\(C\)

Answer.

\(A \subset, \subseteq, \ne C\)

(d)

\(\left\{ 1, 2 \right\}\)\(A\)

Answer.

\(\left\{ 1, 2 \right\} \not \subseteq, \ne A\)

(e)

4\(B\)

Answer.

\(4 \not \in B\)

(f)

\(\card(A)\)\(\card(D)\)

Answer.

\(\card(A) = \card(D)\)

(g)

\(A\)\(\mathcal{P}(A)\)

Answer.

\(A \in \mathcal{P}(A)\)

(h)

\(\emptyset\)\(A\)

Answer.

\(\emptyset, \subset \subseteq, \ne A\)

(i)

\(\left\{ 5 \right\}\)\(C\)

Answer.

\(\left\{ 5 \right\} \subset, \subseteq, \ne C\)

(j)

\(\left\{ 1, 2 \right\}\)\(B\)

Answer.

\(\left\{ 1, 2 \right\} \subset, \subseteq, \ne B\)

(k)

\(\left\{ 3, 2, 1 \right\}\)\(D\)

Answer.

\(\left\{ 3, 2, 1 \right\} \subset, \subseteq, \ne D\)

(l)

\(D\)\(\emptyset\)

Answer.

\(D \not \subseteq, \ne \emptyset\)

(m)

\(\card(A)\)\(\card(B)\)

Answer.

\(\card(A) \ne \card(B)\)

(n)

\(A\)\(\mathcal{P}(B)\)

Answer.

\(A \in \mathcal{P}(B)\)

4.

Write all of the proper subset relations that are possible using the sets of numbers \(\mathbb{N}\text{,}\) \(\mathbb{Z}\text{,}\) \(\mathbb{Q}\text{,}\) and \(\mathbb{R}\text{.}\)

Answer.
\begin{align*} \N \amp \subset \Z \amp \N \amp \subset \Q \amp \N \amp \subset \R\\ \Z \amp \subset \Q \amp \Z \amp \subset \R \amp \Q \amp \subset \R \end{align*}

5.

For each statement, write a brief, clear explanation of why the statement is true or why it is false.

(a)

The set \(\left\{ {a,b} \right\}\) is a subset of \(\left\{ {a,c,d,e} \right\}\text{.}\)

Answer.

The set \(\left\{ {a, b} \right\}\) is a not a subset of \(\left\{ {a, c, d, e} \right\}\) since \(b \in \left\{ {a, b} \right\}\) and \(b \notin \left\{ {a, c, d, e} \right\}\text{.}\)

(b)

The set \(\left\{ { - 2,0,2} \right\}\) is equal to \(\left\{ {x \in \mathbb{Z} \mid x\text{ is even and } x^2 \lt 5} \right\}\text{.}\)

Answer.

\(\left\{ { - 2,0,2} \right\} = \left\{ {x \in \mathbb{Z} \mid x\text{ is even and } x^2 \lt 5} \right\}\) since both sets have precisely the same elements.

(c)

The empty set \(\emptyset\) is a subset of \(\left\{ 1 \right\}\text{.}\)

Answer.

\(\emptyset \subseteq \left\{ 1 \right\}\) since the following statement is true: For every \(x \in U\text{,}\) if \(x \in \emptyset\text{,}\) then \(x \in \left\{ 1 \right\}\text{.}\)

(d)

If \(A = \left\{ {a,b} \right\}\text{,}\) then the set \(\left\{ a \right\}\) is a subset of \(\mathcal{P}( A )\text{.}\)

Answer.

The statement is false. The set \(\left\{ a \right\}\) is an element of \(\mathcal{P} \left( A \right)\text{.}\)

6.

Use the definitions of set intersection, set union, and set difference to write useful negations of these definitions. That is, complete each of the following sentences

(a)

\(x \notin A \cap B\) if and only if \(\ldots \text{.}\)

Answer.

\(x \notin A \cap B\) if and only if \(x \notin A\) or \(x \notin B\text{.}\)

(b)

\(x \notin A \cup B\) if and only if \(\ldots \text{.}\)

(c)

\(x \notin A - B\) if and only if \(\ldots \text{.}\)

7.

Let \(U = \left\{ {1,2,3,4,5,6,7,8,9,10} \right\}\text{,}\) and let

\begin{align*} A \amp = \left\{ {3,4,5,6,7} \right\}\!, \amp B \amp = \left\{ {1,5,7,9} \right\}\!,\\ C \amp = \left\{ {3,6,9} \right\}\!, \amp D \amp = \left\{ {2,4,6,8} \right\}\!\text{.} \end{align*}

Use the roster method to list all of the elements of each of the following sets.

(a)

\(A \cap B\)

Answer.

\(A \cap B = \left\{ 5, 7 \right\}\)

(b)

\(A \cup B\)

Answer.

\(A \cup B = \left\{ 1, 3, 4, 5, 6, 7, 9 \right\}\)

(c)

\(\left( {A \cup B} \right)^c\)

Answer.

\(\left( {A \cup B} \right)^c = \left\{ 2, 8, 10 \right\}\)

(d)

\(A^c \cap B^c\)

Answer.

\(A^c \cap B^c = \left\{ 2, 8, 10 \right\}\)

(e)

\(\left( {A \cup B} \right) \cap C\)

Answer.

\(( {A \cup B} ) \cap C = \left\{ {3, 6, 9} \right\}\)

(f)

\(A \cap C\)

Answer.

\(A \cap C = \left\{ 3, 6 \right\}\)

(g)

\(B \cap C\)

Answer.

\(B \cap C = \left\{ 9 \right\}\)

(h)

\(\left( {A \cap C} \right) \cup \left( {B \cap C} \right)\)

Answer.

\(( {A \cap C} ) \cup ( {B \cap C} ) = \left\{ 3, 6, 9 \right\}\)

(i)

\(B \cap D\)

Answer.

\(B \cap D = \emptyset\)

(j)

\(\left( {B \cap D} \right)^c\)

Answer.

\(\left( {B \cap D} \right)^c = U\)

(k)

\(A - D\)

Answer.

\(A - D = \left\{ 3, 5, 7 \right\}\)

(l)

\(B - D\)

Answer.

\(B - D = \left\{ 1, 5, 7, 9 \right\}\)

(m)

\(\left( A - D \right) \cup \left( B - D \right)\)

Answer.

\(\left( {A - D} \right) \cup \left( {B - D} \right) = \left\{ 1, 3, 5, 7, 9 \right\}\)

(n)

\(\left( A \cup B \right) - D\)

Answer.

\(\left( {A \cup B} \right) - D = \left\{ 1, 3, 5, 7, 9 \right\}\)

8.

Let \(U = \N\text{,}\) and let

\begin{align*} A \amp = \left\{ x \in \N \mid x \geq 7 \right\}\!, \amp B \amp = \left\{ x \in \N \mid x \text{ is odd } \right\}\!,\\ C \amp = \left\{ x \in \N \mid x \text{ is a multiple of 3 } \right\}\!, \amp D \amp = \left\{ x \in \N \mid x \text{ is even } \right\}\!\text{.} \end{align*}

Use the roster method to list all of the elements of each of the following sets.

(a)

\(A \cap B\)

(b)

\(A \cup B\)

(c)

\(\left( {A \cup B} \right)^c\)

(d)

\(A^c \cap B^c\)

(e)

\(\left( {A \cup B} \right) \cap C\)

(f)

\(\left( {A \cap C} \right) \cup \left( {B \cap C} \right)\)

(g)

\(B \cap D\)

(h)

\(\left( {B \cap D} \right)^c\)

(i)

\(A - D\)

(j)

\(B - D\)

(k)

\(\left( A - D \right) \cup \left( B - D \right)\)

(l)

\(\left( A \cup B \right) - D\)

9.

Let \(P\text{,}\) \(Q\text{,}\) \(R\text{,}\) and \(S\) be subsets of a universal set \(U\text{.}\) Assume that \(\left( P - Q \right) \subseteq \left( R \cap S \right)\text{.}\)

(a)

Complete the following sentence:

For each \(x \in U\text{,}\) if \(x \in \left( P - Q \right)\text{,}\) then \(\ldots \text{.}\)

(b)

Write a useful negation of the statement in Task 9.a.

Answer.

There exists an \(x \in U\) such that \(x \in (P - Q)\) and \(x \notin (R \cap S)\text{.}\) This can be written as, There exists an \(x \in U\) such that \(x \in P\text{,}\) \(x \notin Q\text{,}\) and \(x \notin R\) or \(x \notin S\text{.}\)

(c)

Write the contrapositive of the statement in Task 9.a.

10.

Let \(U\) be the universal set. Consider the following statement:

For all \(A\) and \(B\) that are subsets of \(U\text{,}\) if \(A \subseteq B\text{,}\) then \(B^c \subseteq A^c\text{.}\)

(a)

Identify three conditional statements in the given statement.

Answer.

The given statement is a conditional statement. We can rewrite the subset relations in terms of conditional sentences: \(A \subseteq B\) means, “For all \(x \in U\text{,}\) if \(x \in A\text{,}\) then \(x \in B\text{,}\)” and \(B^c \subseteq A^c\) means, “For all \(x \in U\text{,}\) if \(x \in B^c\text{,}\) then \(x \in A^c\text{.}\)”

(b)

Write the contrapositive of this statement.

(c)

Write the negation of this statement.

11.

Let \(A\text{,}\) \(B\text{,}\) and \(C\) be subsets of some universal set \(U\text{.}\) Draw a Venn diagram for each of the following situations.

(a)

\(A \subseteq C\)

(b)

\(A \cap B = \emptyset\)

(c)

\(A \not \subseteq B,B \not \subseteq A,C \subseteq A,\text{ and } C \not \subseteq B\)

(d)

\(A \subseteq B,C \subseteq B,\text{ and } A \cap C = \emptyset\)

12.

Let \(A\text{,}\) \(B\text{,}\) and \(C\) be subsets of some universal set \(U\text{.}\) For each of the following, draw a general Venn diagram for the three sets and then shade the indicated region.

(a)

\(A \cap B\)

(b)

\(A \cap C\)

(c)

\(\left( {A \cap B} \right) \cup \left( {A \cap C} \right)\)

(d)

\(B \cup C\)

(e)

\(A \cap \left( {B \cup C} \right)\)

(f)

\(\left( {A \cap B} \right) - C\)

13.

We can extend the idea of consecutive integers (See Exercise 10 in Section 3.5) to represent four consecutive integers as \(m\text{,}\) \(m + 1\text{,}\) \(m + 2\text{,}\) and \(m + 3\text{,}\) where \(m\) is an integer. There are other ways to represent four consecutive integers. For example, if \(k \in \Z\text{,}\) then \(k - 1\text{,}\) \(k\text{,}\) \(k + 1\text{,}\) and \(k + 2\) are four consecutive integers.

(a)

Prove that for each \(n \in \Z\text{,}\) \(n\) is the sum of four consecutive integers if and only if \(n \equiv 2 \pmod 4\text{.}\)

(b)

Use set builder notation or the roster method to specify the set of integers that are the sum of four consecutive integers.

(c)

Specify the set of all natural numbers that can be written as the sum of four consecutive natural numbers.

(d)

Prove that for each \(n \in \Z\text{,}\) \(n\) is the sum of eight consecutive integers if and only if \(n \equiv 4 \pmod 8\text{.}\)

(e)

Use set builder notation or the roster method to specify the set of integers that are the sum of eight consecutive integers.

(f)

Specify the set of all natural numbers can be written as the sum of eight consecutive natural numbers.

14.

One of the properties of real numbers is the so-called Law of Trichotomy, which states that if \(a, b \in \R\text{,}\) then exactly one of the following is true:

  • \(a \lt b\text{;}\)

  • \(a = b\text{;}\)

  • \(a > b\text{.}\)

Is the following proposition concerning sets true or false? Either provide a proof that it is true or a counterexample showing it is false. If \(A\) and \(B\) are subsets of some universal set, then exactly one of the following is true:

  • \(A \subseteq B\text{;}\)

  • \(A = B\text{;}\)

  • \(B \subseteq A\text{.}\)

Activity 27. Intervals of Real Numbers.

In previous mathematics courses, we have frequently used subsets of the real numbers called intervals. There are some common names and notations for intervals. These are given in the following table, where it is assumed that \(a\) and \(b\) are real numbers and \(a \lt b\text{.}\)

Interval
Notation
Set Notation Name
\(\left( {a,b} \right) =\) \(\left\{ {x \in \mathbb{R}\left. \right|a \lt x \lt b} \right\}\) Open interval from \(a\) to \(b\)
\(\left[ {a,b} \right] =\) \(\left\{ {x \in \mathbb{R}\left. \right|a \leq x \leq b} \right\}\) Closed interval from \(a\) to \(b\)
\(\left[ {a,b} \right) =\) \(\left\{ {x \in \mathbb{R}\left. \right|a \leq x \lt b} \right\}\) Half-open interval
\(\left( {a,b} \right] =\) \(\left\{ {x \in \mathbb{R}\left. \right|a \lt x \leq b} \right\}\) Half-open interval
\(\left( {a, + \infty } \right) =\) \(\left\{ {\left. {x \in \mathbb{R}} \right|x > a} \right\}\) Open ray
\(\left( { - \infty ,b} \right) =\) \(\left\{ {\left. {x \in \mathbb{R}} \right|x \lt b} \right\}\) Open ray
\(\left[ {a, + \infty } \right) =\) \(\left\{ {\left. {x \in \mathbb{R}} \right|x \geq a} \right\}\) Closed ray
\(\left( { - \infty ,b} \right] =\) \(\left\{ {\left. {x \in \mathbb{R}} \right|x \leq b} \right\}\) Closed ray
(a)

Is \(\left( {a,b} \right)\) a proper subset of \(\left( {a,b} \right]\text{?}\) Explain.

(b)

Is \(\left[ {a,b} \right]\) a subset of \(\left( {a, + \infty } \right)\text{?}\) Explain.

(c)

Use interval notation to describe

(i)

the intersection of the interval \(\left[ { - 3,7} \right]\) with the interval \(\left( {5,9} \right]\text{;}\)

(ii)

the union of the interval \(\left[ { - 3,7} \right]\) with the interval \(\left( {5,9} \right]\text{;}\)

(iii)

the set difference \(\left[ -3, 7 \right] - \left( 5, 9 \right]\text{.}\)

(d)

Write the set \(\left\{ {x \in \mathbb{R}} \mid \left| x \right| \leq 0.01 \right\}\) using interval notation.

(e)

Write the set \(\left\{ x \in \mathbb{R} \mid \left| x \right| > 2 \right\}\) as the union of two intervals.

Activity 28. More Work with Intervals.

For this exercise, use the interval notation described in Activity 27.

(a)

Determine the intersection and union of \([2, 5]\) and \([-1, +\infty)\text{.}\)

(b)

Determine the intersection and union of \([2, 5]\) and \([3.4, +\infty)\text{.}\)

(c)

Determine the intersection and union of \([2, 5]\) and \([7, +\infty)\text{.}\)

(d)

Now let \(a\text{,}\) \(b\text{,}\) and \(c\) be real numbers with \(a \lt b\text{.}\)

Explain why the intersection of \([a, b]\) and \([c, +\infty)\) is either a closed interval, a set with one element, or the empty set.

(e)

Explain why the union of \([a, b]\) and \([c, +\infty)\) is either a closed ray or the union of a closed interval and a closed ray.

Activity 29. Proof of Theorem 5.9.

To help with the proof by induction of Theorem 5.9, we first prove the following lemma. (The idea for the proof of this lemma was illustrated with the discussion of power set after Definition.)

Proof.

Let \(A\) and \(B\) be subsets of some universal set, and assume that \(A = B \cup \left\{ x \right\}\) where \(x \notin B\text{.}\) Let \(Y\) be a subset of \(A\text{.}\) We need to show that \(Y\) is a subset of \(B\) or that \(Y = C \cup \left\{ x \right\}\text{,}\) where \(C\) is some subset of \(B\text{.}\) There are two cases to consider: (1) \(x\) is not an element of \(Y\text{,}\) and (2) \(x\) is an element of \(Y\text{.}\)

Case 1: Assume that \(x \notin Y\text{.}\) Let \(y \in Y\text{.}\) Then \(y \in A\) and \(y \ne x\text{.}\) Since

\begin{equation*} A = B \cup \left\{ x \right\}\!\text{,} \end{equation*}

this means that \(y\) must be in \(B\text{.}\) Therefore, \(Y \subseteq B\text{.}\)

Case 2: Assume that \(x \in Y\text{.}\) In this case, let \(C = Y - \left\{ x \right\}\text{.}\) Then every element of \(C\) is an element of \(B\text{.}\) Hence, we can conclude that \(C \subseteq B\) and that \(Y = C \cup \left\{ x \right\}\text{.}\)

Cases (1) and (2) show that if \(Y \subseteq A\text{,}\) then \(Y \subseteq B\) or \(Y = C \cup \left\{ x \right\}\text{,}\) where \(C \subseteq B\text{.}\)

To begin the induction proof of Theorem 5.9, for each nonnegative integer \(n\text{,}\) we let \(P ( n )\) be, “If a finite set has exactly \(n\) elements, then that set has exactly \(2^n\) subsets.”

(a)

Verify that \(P ( 0 )\) is true. (This is the basis step for the induction proof.)

(b)

Verify that \(P( 1 )\) and \(P( 2 )\) are true.

(c)

Now assume that \(k\) is a nonnegative integer and assume that \(P( k )\) is true. That is, assume that if a set has \(k\) elements, then that set has \(2^k\) subsets. (This is the inductive assumption for the induction proof.) Let \(T\) be a subset of the universal set with \(\card (T) = k + 1\text{,}\) and let \(x \in T\text{.}\) Then the set \(B = T - \left\{ x \right\}\) has \(k\) elements. Now use the inductive assumption to determine how many subsets \(B\) has. Then use Lemma 5.10 to prove that \(T\) has twice as many subsets as \(B\text{.}\) This should help complete the inductive step for the induction proof.