Consider \(A=\{a,l,k,s\}\) and \(B=\{a,c,l,k\}\text{.}\)\(A \cup B = \{a,c,l,k,s \}\) because \(a \in A,\text{,}\)\(c \in B,\text{,}\)\(l \in A,\text{,}\)\(k \in A,\text{,}\) and \(s \in B\text{.}\) Note it does not matter if we say because \(a \in A\) or because \(a \in B\text{.}\) This is further discussed in SectionΒ 2.1
Union can be thought of as taking the elements of the first set and adding any elements of the second set that are different. Our question is how does union differ from addition?
The set \(C\) is the intersection of the sets \(A\) and \(B\text{,}\) denoted \(A \cap B,\) if and only if \(C=\{ x | x \in A \mbox{ and } x \in B \}.\)
Watch the video in FigureΒ 1.3.5 demonstrating reading the set intersection definition twice. The first time think about what set intersection is. The second time think about how it illustrates reading and understanding a definition.
The set \(C\) is the difference between the sets \(A\) and \(B\text{,}\) denoted \(A-B,\) if and only if \(C=\{ x | x \in A \mbox{ but } x \not\in B \}.\)
In many circumstance there is a universal set that is part of the context for a problem. It may or may not be explicitly stated. For example the set of all integers may be the universal set for discussion of even and odd numbers.
The set \(C\) is the complement of the set \(A\) with respect to the universal set \(U\text{,}\) denoted \(\neg A\) or \(\overline{A}\text{,}\) if and only if \(C=U-A.\)
Power sets are sets. This means they are unordered. However, to generate them it helps us list all subsets if we impose some convenient order. The following suggest parts of a heuristic for listing elements of power sets. We consider the power set of \(S=\{a,b,c\}\text{.}\)
There are an equal number of subsets of size 1 and size 2 for \(S\text{.}\) Find a logical correspondence between the subsets of size 1 and size 2 (pair each subset of size 1 with a subset of size 2).
The set \(C\) is the Cartesian product of the sets \(A\) and \(B,\) denoted \(A \times B,\) if and only if \(C=\{(a,b) | a \in A \mbox{ and } b \in B. \}.\)
Note for a set \(A\) and positive integer \(n \ge 1\) we use the notation \(A^n\) to mean \(n\) copies of \(A\) in a Cartesian product. For example, \(A^3 = A \times A \times A\text{.}\)