2.2 Set Operations

Ex: 1-9, 13, 16, 17

  • Union - A∪B={x∣x∈A∨x∈B}A \cup B = \{x\mid x \in A \lor x \in B \}
  • Intersection - A∩B={x∣x∈A∧x∈B}A \cap B = \{x\mid x \in A \land x \in B \}
  • Difference - A−B={x∣x∈A∧x∉B}A - B = \{x\mid x \in A \land x \notin B \}
  • Complement - A‾={x∣x∉A}\overline A = \{x\mid x \notin A\}
  • Membership table and how to construct one
  • ⋃i=1nAi=A1∪A2∪⋯An\bigcup^{n}_{i=1} A_i= A_1 \cup A_2 \cup \cdots A_n
  • ⋂i=1nAi=A1∩A2∩⋯An\bigcap^{n}_{i=1} A_i= A_1 \cap A_2 \cap \cdots A_n

Homework

p157: 13, 15, 24, 30, 31, 47, 48

13. Prove the second absorption law from Table 1 by showing that if AA and BB are sets, then A∩(A∪B)=AA \cap (A \cup B) = A.

Solution

AA BB A∪BA \cup B A∩(A∪B)A \cap (A \cup B)
1 1 1 1
1 0 1 1
0 1 1 0
0 0 0 0

15. Prove the second De Morgan law in Table 1 by showing that if AA and BB are sets, then A∪B‾=A‾∩B‾\overline{A \cup B} = \overline A \cap \overline B
a) by showing each side is a subset of the other side.

Solution

A∪B‾={x∣x∉A∪B}={x∣¬(x∈A∪B)}={x∣¬(x∈A)∧¬(x∈B)}={x∣x∉A∧x∉B}={x∣x∈A‾∧x∈B‾}={x∣x∈A‾∩B‾}=A‾∩B‾\begin{aligned} \overline{A \cup B} &= \{x \mid x \notin {A \cup B} \} \\ &= \{x \mid \neg (x \in A \cup B) \} \\ &= \{x \mid \neg(x \in A) \land \neg(x \in B) \} \\ &= \{x \mid x \notin A \land x \notin B \} \\ &= \{x \mid x \in \overline A \land x \in \overline B \} \\ &= \{x \mid x \in \overline A \cap \overline B \} \\ &= \overline A \cap \overline B \end{aligned}

b) using a membership table.

Solution

AA BB A∪BA \cup B A∪B‾\overline {A \cup B} A‾\overline A B‾\overline B A‾∩B‾\overline A \cap \overline B
1 1 1 0 0 0 0
1 0 1 0 0 1 0
0 1 1 0 1 0 0
0 0 0 1 1 1 1

24. Let A, B, and C be sets. Show that (A−B)−C=(A−C)−(B−C)(A - B) - C = (A - C) - (B - C).

Solution

(A−C)−(B−C)=(A∩C‾)−(B∩C‾)=(A∩C‾)∩(B∩C‾‾)=(A∩C‾)∩(B‾∪C)=[(A∩C‾)∩B‾]∪[(A∩C‾)∩C]=[(A∩B‾)∩C‾)∪[A∩(C‾∩C)]=[(A∩B‾)∩C‾)∪(A∩∅)=[(A∩B‾)∩C‾)∪∅=(A∩B‾)∩C‾=(A−B)−C\begin{aligned} (A - C) - (B - C)&= (A \cap \overline C) - (B \cap \overline C)\\ &= (A \cap \overline C) \cap (\overline {B \cap \overline C})\\ &= (A \cap \overline C) \cap (\overline B \cup C)\\ &= [(A \cap \overline C) \cap \overline B] \cup [(A \cap \overline C) \cap C]\\ &= [(A \cap \overline B) \cap \overline C) \cup [A \cap (\overline C \cap C)]\\ &= [(A \cap \overline B) \cap \overline C) \cup (A \cap \emptyset)\\ &= [(A \cap \overline B) \cap \overline C) \cup \emptyset\\ &= (A \cap \overline B) \cap \overline C \\ &= (A - B) - C \end{aligned}

30. Can you conclude that A=BA = B if AA, BB, and CC are sets such that
a) A∪C=B∪CA \cup C = B \cup C?
b) A∩C=B∩CA \cap C = B \cap C?
c) A∪C=B∪CA \cup C = B \cup C and A∩C=B∩CA \cap C = B \cap C?

Solution

a. No. Consider A={1},B={2},C={1,2,3}A = \{1\}, B = \{2\}, C = \{1, 2, 3\}, A∪C=B∪CA \cup C = B \cup C, but A≠BA \ne B.
b. No. Consider A={1},B={2},C=∅A = \{1\}, B = \{2\}, C = \emptyset.
c. True. To prove two sets A,BA, B are equal, we need to prove A⊆BA \subseteq B, and B⊆AB \subseteq A.
1. Show A⊆BA \subseteq B. Let x∈Ax \in A,

case 1: (1)x∈A∧x∈C⇒x∈A∩C(2)A∩C=B∩C⇒x∈B∩C(3)⇒x∈Bcase 2: (1)x∉C⇒x∈A∪C(2)A∪C=B∪C⇒x∈B∪C(3)x∉C⇒x∈B\begin{aligned} & \text{case 1: } \\ & (1) \quad x \in A \land x \in C \To x \in A \cap C\\ & (2) \quad A \cap C = B \cap C \To x \in B \cap C\\ & (3) \quad \To x \in B\\ & \text{case 2: } \\ & (1) \quad x \notin C \To x \in A\cup C\\ & (2) \quad A \cup C = B \cup C \To x \in B \cup C\\ & (3) \quad x \notin C \To x \in B \end{aligned}

2. Show B⊆AB \subseteq A. Let y∈By \in B,

case 1: (1)y∈C⇒y∈B∩C(2)B∩C=A∩C⇒y∈A∩C(3)y∈C⇒y∈Acase 2: (1)y∉C⇒y∈B∪C(2)B∪C=A∪C⇒y∈A∪C(3)y∉C⇒y∈A\begin{aligned} &\text{case 1: } \\ &(1) \quad y \in C \To y \in B \cap C\\ &(2) \quad B \cap C = A \cap C \To y \in A \cap C\\ &(3) \quad y \in C \To y \in A\\ &\text{case 2: } \\ &(1) \quad y \notin C \To y \in B\cup C\\ &(2) \quad B \cup C = A \cup C \To y \in A \cup C\\ &(3) \quad y \notin C \To y \in A \end{aligned}

31. Let AA and BB be subsets of a universal set UU. Show that A⊆BA \subseteq B if and only if B‾⊆A‾\overline B \subseteq \overline A.

Solution

A⊆B≡{x∣x∈A→x∈B}≡{x∣x∉B→x∉A}≡{x∣x∈B‾→x∈A‾}≡B‾⊆A‾\begin{aligned} A \subseteq B &\equiv \{x \mid x \in A \to x \in B\}\\ &\equiv \{x \mid x \notin B \to x \notin A\}\\ &\equiv \{x \mid x \in {\overline B} \to x \in {\overline A}\}\\ &\equiv \overline B \subseteq \overline A \end{aligned}

47. Let Ai={1,2,3,⋯,i}A_i = \{1, 2, 3, \cdots,i\} for i=1,2,3,⋯i = 1, 2, 3, \cdots Find
a) ⋃i=1nAi\bigcup\limits_{i=1}^n A_i   b) ⋂i=1nAi\bigcap\limits_{i=1}^n A_i

Solution

a. ⋃i=1nAi={1,2,3,⋯,n}\bigcup\limits_{i=1}^n A_i = \{1, 2, 3, \cdots, n\}
b. ⋂i=1nAi={1}\bigcap\limits_{i=1}^n A_i = \{1\}

48. Let Ai=⋯,−2,−1,0,1,⋯,iA_i = {\cdots, -2, -1, 0, 1, \cdots ,i}. Find
a) ⋃i=1nAi\bigcup\limits_{i=1}^n A_i   b) ⋂i=1nAi\bigcap\limits_{i=1}^n A_i

Solution

a. ⋃i=1nAi={⋯,−2,−1,0,1,⋯,n}\bigcup\limits_{i=1}^n A_i = \{\cdots, -2, -1, 0, 1, \cdots ,n\}
b. ⋂i=1nAi={⋯,−2,−1,0,1}\bigcap\limits_{i=1}^n A_i = \{\cdots, -2, -1, 0, 1\}