Skip to main content

Section 3.2 Set Operations

Definition 3.16.

Let \(A\) and \(B\) be sets. The union of \(A\) and \(B\text{,}\) denoted \(A \cup B\text{,}\) is the set defined by
\begin{equation*} A \cup B = \{x | x\in A \text{ or } x\in B\}\text{.} \end{equation*}
The intersection of \(A\) and \(B\text{,}\) denoted \(A \cap B\text{,}\) is the set defined by
\begin{equation*} A \cap B = \{x | x\in A \text{ and }x\in B\}\text{.} \end{equation*}

Definition 3.18.

Let \(A\) and \(B\) be sets. The sets \(A\) and \(B\) are disjoint if \(A \cap B = \emptyset\text{.}\)

Example 3.19.

Let \(\E\) be the set of even integers, let \(\O\) be the set of odd integers and let \(\P\) be the set of prime numbers. Then \(\E\) and \(\O\) are disjoint, whereas \(\E\) and \(\P\) are not disjoint (because \(\E \cap\P = \{2\}\)).

Definition 3.20.

Let \(A\) and \(B\) be sets. The set difference (also called the difference) of \(A\) and \(B\text{,}\) denoted \(A \sm B\text{,}\) is the set defined by \(A \sm B = \{x | x\in A \text{ and }x \not\in B\}\text{.}\)

Convention 3.21.

Some books use the notation \(A - B\) instead of \(A \sm B\text{.}\) Though the notation \(A - B\) may seem intuitive, there are situations where it can become misleading or confusing.

Definition 3.23.

Let \(A\) and \(B\) be sets. The product (also called the Cartesian product) of \(A\) and \(B\text{,}\) denoted \(A \times B\text{,}\) is the set
\begin{equation*} A \times B = \{(a, b) | a\in A and b\in B\}\text{,} \end{equation*}
where \((a, b)\) denotes an ordered pair.

Example 3.24.

We can think of \(\R^2\text{,}\) which is defined in terms of ordered pairs of real numbers, as \(\R^2 = \R \times\R\text{.}\) Similarly, we think of \(\R^n\) as
\begin{equation*} \R^n = \underbrace{\R \times \cdots \times \R}_{n \text{ times}}. \end{equation*}

Remark 3.26.

Observe that \(A \times B\) is not the same as \(B \times A\text{,}\) unless \(A\) and \(B\) happen to be equal.
Let \(A\) and \(B\) be sets. Prove that \((A\cup B)\sm A = B \sm (A \cap B)\)
Let \(A\text{,}\) \(B\) and \(C\) be sets. Suppose that \(C \subset A \cup B\text{,}\) and that \(C \cap A = \emptyset\text{.}\) Prove that \(C \subseteq B\text{.}\)
For real numbers \(a\text{,}\) \(b\) and \(c\text{,}\) we know that \(a - (b - c) = (a - b) + c\text{.}\) Let \(A\text{,}\) \(B\) and \(C\) be sets.
  1. Suppose that \(C \subseteq A\text{.}\) Prove that \(A \sm (B \sm C) = (A \sm B) \cup C\text{.}\)
  2. Does \(A \sm (B \sm C) = (A \sm B) \cup C\) hold for all sets \(A\text{,}\) \(B\) and \(C\text{?}\) Prove or give a counterexample for this formula. If the formula is false, find and prove a modification of this formula that holds for all sets.