Hw2-Solutions 0
Hw2-Solutions 0
Set Theory
1. Let A = {1, 5, −12, 100, 1/3, π}, B = {5, 1, −12, 18, −1/3}, C = {10, −1, 0},
D = {1, 2}, and E = {1, −1}. Calculate the following:
(a) A ∪ B
Solution: {1, 5, −12, 100, 1/3, π, 18, −1/3}
(b) A ∩ B
Solution: {1, 5, −12}
(c) A ∩ C
Solution: ∅
(d) A ∩ ∅
Solution: ∅
(e) B ∪ ∅
Solution: B
(f) D × E
Solution: {(1, 1), (1, −1), (2, 1), (2, −1)}
(g) (D ∩ A) × (E ∪ D)
Solution: D ∩ A = {1}, E ∪ D = {1, 2, −1}, (D ∩ A) × (E ∪ D) =
{(1, 1), (1, 2), (1, −1)}
(h) C × D
Solution: {(10, 1), (−1, 1), (0, 1), (10, 2), (−1, 2), (0, 2)}
(i) A − B
Solution: {100, 1/3, π}
(j) C − A
Solution: C
(k) A − ∅
Solution: A
Proof. Let x ∈ A − C.
We will show that x ∈ B − C.
We know that x ∈ A and x ∈
/ C, because x ∈ A − C.
Since x ∈ A and A ⊆ B we have that x ∈ B.
Since x ∈ B and x ∈
/ C it follows that x ∈ B − C.
Therefore A − C ⊆ B − C.
Proof. Suppose x ∈ A ∪ C.
We will show that x ∈ B ∪ C.
We know that x ∈ A or x ∈ C.
Case 1: Suppose that x ∈ A.
Since A ⊆ B we have that x ∈ B.
Thus x ∈ B and x ∈ C.
So x ∈ B ∪ C.
Case 2: Suppose that x ∈ C.
Then x ∈ B ∪ C.
In either case above, we get that x ∈ B ∪ C.
So A ∪ C ⊆ B ∪ C.
Proof. (⊆)
First, we will show that A × (B ∩ C) ⊆ (A × B) ∩ (A × C).
Suppose that (x, y) ∈ A × (B ∩ C).
Then x ∈ A and y ∈ B ∩ C.
Since y ∈ B ∩ C, we have that y ∈ B and y ∈ C.
Since x ∈ A and y ∈ B, we have that (x, y) ∈ A × B.
Since x ∈ A and y ∈ C, we have that (x, y) ∈ A × C.
So (x, y) ∈ (A × B) ∩ (A × C).
Therefore A × (B ∩ C) ⊆ (A × B) ∩ (A × C).
(⊇)
Next, we will show that (A × B) ∩ (A × C) ⊆ A × (B ∩ C).
Suppose that (x, y) ∈ (A × B) ∩ (A × C).
Then (x, y) ∈ A × B and (x, y) ∈ A × C.
Since (x, y) ∈ A × B we get that x ∈ A and y ∈ B.
Since (x, y) ∈ A × C we get that x ∈ A and y ∈ C.
So y ∈ B ∩ C, because y ∈ B and y ∈ C.
Thus (x, y) ∈ A × (B ∩ C), because x ∈ A and y ∈ B ∩ C.
Ergo, (A × B) ∩ (A × C) ⊆ A × (B ∩ C).
(a) Calculate ∞
S T∞
n=1 An and n=1 An where An = (−n, n).
Solution:
S∞
An = R
Tn=1
∞
n=1 An = (−1, 1)
(b) Calculate ∞
S T∞
n=2 An and n=2 An where An = (1/n, 1).
Solution:
S∞
An = (0, 1)
Tn=2
∞
n=2 An = (1/2, 1)
(c) Calculate ∞
S T∞
n=3 An and n=3 An where An = (2 + 1/n, n).
Solution:
S∞
An = (2, ∞)
Tn=3
∞
n=3 An = (2 + 1/3, 3) = (7/3, 3)
13. Let A = {1, x, 5}. List the elements of the power set P(A).
Solution:
∅, {1}, {x}, {5}, {1, x}, {1, 5}, {x, 5}, A
Solution:
A = {1}, B = {2}
P(A) = {∅, {1}}
P(B) = {∅, {2}}
P(A) ∪ P(B) = {∅, {1}, {2}}
A ∪ B = {1, 2}
P(A ∪ B) = {∅, {1}, {2}, {1, 2}}