Sets and Relations
Sets and Relations
Sets and Relations
1.2.2 Is {1, 2} ∈ {{1, 2, 3}, {1, 3}, 1, 2}? Justify your answer.
Solution: {1, 2} ∈ / {{1, 2, 3}, {1, 3}, 1, 2} since it does not appear as a member of the
given set.
1
(g) {(x, y) ∈ R2 | x2 + y 2 = 1}
Solution: All points on the unit circle.
(h) {(x, y) ∈ R2 | y = 2x and y = 3x}
Solution: The single point (0,0).
1.2.6 Prove that if a, b, c, and d are any objects, not necessarily distinct from one another,
then {{a}, {a, b}} = {{c}, {c, d}} iff both a = c and b = d.
Solution: (⇒) Let {{a}, {a, b}} = {{c}, {c, d}}. Then {{a}, {a, b}} ⊆ {{c}, {c, d}}
and so in particular {a} ∈ {{c}, {c, d}}. Suppose c = d. Then {{c}, {c, d}} =
{{c}, {c, c}} = {{c}, {c}} = {{c}} and therefore {a} ∈ {{c}} ⇒ {a} = {c} ⇒ {a} ⊆
{c} ⇒ a ∈ {c} ⇒ a = c. Then since {{a}, {a, b}} ⊆ {{c}, {c, d}} = {{c}} = {{a}} we
also have that {a, b} ∈ {{a}} ⇒ {a, b} = {a} ⇒ {a, b} ⊆ {a} ⇒ b ∈ {a} ⇒ a = b.
Now suppose c 6= d. Since {a} ∈ {{c}, {c, d}} ⇒ {a} = {c} ⇒ a = c. By
{{a}, {a, b}} ⊆ {{c}, {c, d}} we also have that {a, b} = {c, b} ∈ {{c}, {c, d}} and
so {c, b} = {c, d} ⇒ b = d.
(⇐) Let a = c and b = d. Then {{a}, {a, b}} = {{c}, {c, d}}.
1.3.1 Prove each of the following, using any properties of numbers that may be needed.
(a) {x ∈ Z | for an integer y, x = 6y} = {x ∈ Z | for integers u and v, x =
2u and x = 3v}.
Solution: Let a ∈ {x ∈ Z | for an integer y, x = 6y}. Then a = 6b for an integer
b. Then a = 2 · 3b and a = 3 · 2b. Since b is an integer, 3b and 2b are also integers.
Therefore a ∈ {x ∈ Z | for integers u and v, x = 2u and x = 3v} and so {x ∈ Z |
for an integer y, x = 6y} ⊆ {x ∈ Z | for integers u and v, x = 2u and x = 3v}.
Now let a ∈ {x ∈ Z | for integers u and v, x = 2u and x = 3v}. Then there
is an m and n such that a = 2m and a = 3n. Then m − n = a6 and so
a = 6(m − n). Since m and n are integers, m − n is also an integer and so a ∈
{x ∈ Z | for an integer y, x = 6y}. Therefore {x ∈ Z | for integers u and v, x =
2u and x = 3v} ⊆ {x ∈ Z | for an integer y, x = 6y}.
Thus {x ∈ Z | for an integer y, x = 6y} = {x ∈ Z | for integers u and v, x =
2u and x = 3v}.
(b) {x ∈ R | for a real number y, x = y 2 } = {x ∈ R | x ≥ 0}
Solution: Let a ∈ {x ∈ R | for a real number y, x = y 2 }. Then a = b2 for
some b ∈ R. If b = 0 then a = 0. Otherwise, a > 0 since the square of a
nonzero real number is positive. Thus a ∈ {x ∈ R | x ≥ 0} and therefore
{x ∈ R | for a real number y, x = y 2 } ⊆ {x ∈ R | x ≥ 0}.
Now let a ∈ {x ∈ R | x ≥ 0}. √ Then a ≥ 0. Then we may find a b ∈ R such
that a = b2 : simply pick b = a ∈ R. (The square root of any nonnegative real
number is again a real number.) Then a ∈ {x ∈ R | for a real number y, x = y 2 }
and therefore {x ∈ R | x ≥ 0} ⊆ {x ∈ R | for a real number y, x = y 2 }.
Thus {x ∈ R | for a real number y, x = y 2 } = {x ∈ R | x ≥ 0}.
2
(c) {x ∈ Z | for an integer y, x = 6y} ⊆ {x ∈ Z | for an integer y, x = 2y}.
Solution: Let a ∈ {x ∈ Z | for an integer y, x = 6y}. Then a = 6b for some
integer b. Then a = 2 · 3b. Since b is an integer, 3b is also an integer. Therefore
a ∈ {x ∈ Z | for an integer y, x = 2y}. Thus {x ∈ Z | for an integer y, x =
6y} ⊆ {x ∈ Z | for an integer y, x = 2y}.
1.3.3 Give an example of sets A, B, C, D, and E which satisfy the following conditions si-
multaneously: A ⊂ B, B ∈ C, C ⊂ D, and D ⊂ E.
Solution: Let A = ∅, B = {∅}, C = {{∅}}, D = {∅, {∅}}, and E = {∅, {∅}, {{∅}}}.
1.3.4 Which of the following are true for all sets A, B, and C?
(a) If A ∈
/ B and B ∈/ C, then A ∈
/ C.
Solution: False: Let A = ∅, B = {0} and C = {∅}.
(b) If A 6= B and B 6= C, then A 6= C.
Solution: False: Let A = R, B = Z and C = R.
(c) If A ∈ B and B 6⊆ C, then A ∈
/ C.
Solution: False: Let A = ∅, B = {∅, 0} and C = {∅, 1}.
3
(d) If A ⊂ B and B ⊆ C, then C 6⊆ A.
Solution: True: Suppose A ⊂ B and B ⊆ C. Since A ⊂ B, there is some b ∈ B
such that b ∈
/ A. Since B ⊆ C we have that this b ∈ C and thus there is a c ∈ C
such that c ∈
/ A. Therefore C 6⊆ A.
(e) If A ⊂ B and B ⊂ C, then A ⊂ C.
Solution: True: Suppose A ⊂ B and B ⊂ C. Then for any a ∈ A we have that
a ∈ B. Since a ∈ B we have that a ∈ C. Therefore A ⊆ C. Since B ⊂ C we
have that there is some c ∈ C such that c ∈
/ B. Since A ⊂ B we have that c ∈
/ A.
Therefore A 6= C and so A ⊂ C.
A1 ⊆ A2 ⊆ · · · ⊆ An ⊆ A1 iff A1 = A2 = · · · = An .
1.3.7 Give several examples of a set X such that each element of X is a subset of X.
Solution: X1 = ∅. X2 = {∅}. X3 =?
1.3.9 For each positive integer n, give an example of a set An of n elements such that for
each pair of elements of An , one member is an element of the other.
Solution: Let A0 = ∅ and A1 = {A0 }. For n ≥ 2, let An = {A0 , A1 , . . . , An−1 }.
4
that for all x ∈ ∅ we have that x ∈ C for any set C. Since A ∩ B is a set, we have that
∅ ⊆ A ∩ B. Now take any x ∈ A ∩ B. Then x ∈ A and x ∈ B and so, clearly, x ∈ A
or x ∈ B. Therefore x ∈ A ∪ B and so A ∩ B ⊆ A ∪ B. Thus ∅ ⊆ A ∩ B ⊆ A ∪ B.
• A = {x ∈ Z | x < 1} ∪ B
• A ∪ B = {x ∈ Z | x < 1}
• A − C = {2, 3, 6, 8}
• C − (A ∪ B) = {x ∈ Z | x < 1}
5
x ∈ A ∩ C since x ∈ A. In both cases we know that x ∈ (A ∩ B) ∪ (A ∩ C) since
both A ∩ B ⊆ (A ∩ B) ∪ (A ∩ C) and A ∩ C ⊆ (A ∩ B) ∪ (A ∩ C). Therefore
A ∩ (B ∪ C) ⊆ (A ∩ B) ∪ (A ∩ C). Now assume x ∈ (A ∩ B) ∪ (A ∩ C). By the
definition of set union, x ∈ A∩B or x ∈ A∩C. If x ∈ A∩B then by the definition
of set intersection, we have that x ∈ A and x ∈ B. Since B ⊆ B ∪ C we know that
x ∈ B ∪ C. Thus x ∈ A ∩ (B ∪ C). Otherwise if x ∈ A ∩ C then by the definition
of set intersection, we have that x ∈ A and x ∈ C. Since C ⊆ B ∪ C we know that
x ∈ B ∪ C. Thus x ∈ A ∩ (B ∪ C). Therefore (A ∩ B) ∪ (A ∩ C) ⊆ A ∩ (B ∪ C).
Therefore (A ∩ B) ∪ (A ∩ C) = A ∩ (B ∪ C).
1.4.4 If A is any set, what are each of the following sets? A ∩ ∅, A ∪ ∅, A − ∅, A − A, ∅ − A.
Solution:
• A ∩ ∅ = {x | x ∈ A and x ∈ ∅} = ∅.
• A ∪ ∅ = {x | x ∈ A or x ∈ ∅} = A.
• A − ∅ = {x | x ∈ A and x ∈
/ ∅} = A.
• A − A = {x | x ∈ A and x ∈
/ A} = ∅.
• ∅ − A = {x | x ∈ ∅ and x ∈
/ A} = ∅.
1.4.5 Determine ∅ ∩ {∅}, {∅} ∩ {∅}, {∅, {∅}} − ∅, {∅, {∅}} − {∅}, {∅, {∅}} − {{∅}}
Solution:
• ∅ ∩ {∅} = {x | x ∈ ∅ and x ∈ {∅}} = ∅.
• {∅} ∩ {∅} = {x | x ∈ {∅} and x ∈ {∅}} = {x | x ∈ {∅}} = {∅}.
• {∅, {∅}} − ∅ = {x | x ∈ {∅, {∅}} and x ∈
/ ∅} = {∅, {∅}}.
• {∅, {∅}} − {∅} = {x | x ∈ {∅, {∅}} and x ∈
/ {∅}} = {{∅}}.
• {∅, {∅}} − {{∅}} = {x | x ∈ {∅, {∅}} and x ∈
/ {{∅}}} = {∅}.
1.4.6 Suppose A and B are subsets of U . Show that in each of (a), (b), and (c) below, if any
one of the relations stated holds, then each of the others holds.
(a) A ⊆ B, A ⊇ B, A ∪ B = B, A ∩ B = A.
(b) A ∩ B = ∅, A ⊆ B, B ⊆ A.
(c) A ∪ B = U, A ⊆ B, B ⊆ A.
Solution:
(a) i. Assume A ⊆ B.
• Take x ∈
/ B. Assume x ∈ A. Since A ⊆ B we have that x ∈ B. Then by
contradiction we must have that x ∈
/ A. Therefore B ⊆ A or A ⊇ B.
• Take x ∈ A ∪ B. Then x ∈ A or x ∈ B. Assume x ∈ A. Then since
A ⊆ B we have that x ∈ B. Therefore A ∪ B ⊆ B. But since B ⊆ A ∪ B
we have that A ∪ B = B.
6
• Take x ∈ A. Because A ⊆ B we have that x ∈ B. Since x ∈ A and x ∈ B
we have that x ∈ A ∩ B and therefore A ⊆ A ∩ B. But since A ∩ B ⊆ A,
we have A ∩ B = A.
ii. Assume A ⊇ B.
• Take x ∈ A. Assume x ∈ / B. Then because A ⊇ B we have that x ∈ / A.
Then by contradiction we must have that x ∈ B. Therefore A ⊆ B.
• Take x ∈ A ∪ B. Then by the definition of set union, x ∈ A or x ∈ B.
Assume x ∈ / B. Then because A ⊇ B we have that x ∈ / A. But then
since x ∈
/ A and x ∈ / B we have that x ∈/ A ∪ B. By contradiction we
must have that x ∈ B and thus A ∪ B ⊆ B. But since B ⊆ A ∪ B we
have A ∪ B = B.
• Take x ∈ A. Assume x ∈ / B. Then because A ⊇ B we have that x ∈ / A.
By contradiction, x ∈ B. Thus A ⊆ A ∩ B. But since A ∩ B ⊆ A we have
A ∩ B = A.
iii. Assume A ∪ B = B.
• Take x ∈ A. Then x ∈ A ∪ B = B and therefore A ⊆ B.
• Take x ∈/ B. Then x ∈/ A ∪ B and so x ∈
/ A. Therefore A ⊇ B.
• Take x ∈ A. Then x ∈ A∪B = B. Since x ∈ A and x ∈ B then x ∈ A∩B
and so A ⊆ A ∩ B. But since A ∩ B ⊆ A we have A ∩ B = A.
iv. Assume A ∩ B = A.
• Take x ∈ A. Then x ∈ A ∩ B and so x ∈ B. Therefore A ⊆ B.
• Take x ∈/ B. Then x ∈/ A ∩ B and so x ∈
/ A. Therefore A ⊇ B.
• Take x ∈ A ∪ B. Then x ∈ A or x ∈ B. Assume x ∈ / B. Then
x∈ / A ∩ B = A and so x ∈ / A ∪ B. By contradiction, we must have the
x ∈ B. Then A ∪ B ⊆ B. But since B ⊆ A ∪ B we have that A ∪ B = B.
(b) i. Assume A ∩ B = ∅.
• Take x ∈ A. Since A ∩ B = ∅, x ∈
/ B. Then A ⊆ B.
• Take x ∈ B. Since A ∩ B = ∅, x ∈
/ A. Then B ⊆ A.
ii. Assume A ⊆ B.
• Take x ∈ A. Then since A ⊆ B we have x ∈/ B. Now take x ∈ B. Assume
x ∈ A. But then since A ⊆ B we have x ∈/ B. By contradiction we must
have that x ∈
/ A. Thus x ∈ A ⇒ x ∈ / B and x ∈ B ⇒ x ∈ / A and so
A ∩ B = ∅.
• Take x ∈ B. Assume x ∈ A. Then since A ⊆ B we have that x ∈ / B.
Then by contradiction, we must have x ∈
/ A and so B ⊆ A.
iii. Assume B ⊆ A.
• Take x ∈ B. Then since B ⊆ A we have x ∈ / A. Now take x ∈ A and
assume x ∈ B. But since B ⊆ A we have x ∈ / A. Then by contradiction,
we must have that x ∈/ B. Thus x ∈ A ⇒ x ∈ / B and x ∈ B ⇒ x ∈ / A
and so A ∩ B = ∅.
7
• Take x ∈ A. Assume x ∈ B. Then since B ⊆ A we have x ∈ / A. Then by
contradiction we must have that x ∈
/ B. Therefore A ⊆ B.
(c) i. Assume A ∪ B = U .
• Take x ∈/ A. Assume x ∈/ B. Then since x ∈
/ A and x ∈
/ B, we have that
x∈/ A ∪ B = U . But since A ⊆ U this is a contradiction. So we must
have that x ∈ B. Therefore A ⊆ B.
• Take x ∈/ B. Assume x ∈/ A. Then since x ∈
/ A and x ∈
/ B, we have that
x∈/ A ∪ B = U . But since B ⊆ U this is a contradiction. So we must
have that x ∈ A. Therefore B ⊆ A.
ii. Assume A ⊆ B.
• Take x ∈ U . Then either x ∈ A or x ∈ / A. Assume that x ∈ A. Then
x ∈ A ∪ B. Now assume that x ∈ / A. Then since A ⊆ B we have that
x ∈ B. Then x ∈ A ∪ B. Therefore U ⊆ A ∪ B. But since A ∪ B ⊆ U we
must have that A ∪ B = U .
• Take x ∈/ B. AssumeB ⊆ A
iii. Assume B ⊆ A.
• Take x ∈ U . Then x ∈ B or x ∈/ B. If x ∈ B then x ∈ A ∪ B. If x ∈
/B
then since B ⊆ A we have that x ∈ A and so x ∈ A ∪ B. Therefore
U ⊆ A ∪ B. But since A ∪ B ⊆ U we must have that A ∪ B = U .
• Take x ∈/ A and assume x ∈/ B. Then since B ⊆ A we have that x ∈ A.
Then by contradiction we must have that x ∈ B and so A ⊆ B.
(A ∩ B) ∪ C = A ∩ (B ∪ C) iff C ⊆ A.
(A − B) − C = (A − C) − (B − C).
8
Solution: Let x ∈ (A − B) − C. Then x ∈ A − B and x ∈ / C. Since x ∈ A − B we
have that x ∈ A and x ∈/ B. Then since x ∈ A and x ∈/ C we have that x ∈ A − C.
Since x ∈
/ B we have that x ∈
/ B − C. Then since x ∈ A − C and x ∈/ B − C we have
that x ∈ (A − C) − (B − C). Now let x ∈ (A − C) − (B − C). Then x ∈ A − C and
x∈/ B − C. Then since x ∈ A − C we have that x ∈ A and x ∈/ C. Since x ∈/ B−C
we have that either x ∈
/ B or x ∈ C. But x ∈ C is a contradiction because x ∈
/ C.
Therefore x ∈
/ B. Then since x ∈ A and x ∈ / B we have that x ∈ A − B and since
x∈/ C we have that x ∈ (A − B) − C. Therefore (A − C) − (B − C) ⊆ (A − B) − C
and thus (A − B) − C = (A − C) − (B − C).
1.4.9 (a) Draw the Venn diagram of the symmetric difference, A + B, of sets A and B.
Solution: ... TO DO ...
(b) Using a Venn diagram, show that the symmetric difference is a commutative and
associative operation.
Solution: ... TO DO ...
(c) Show that for every set A, A + A = ∅ and A + ∅ = A
Solution: Let A be a set. Let x ∈ A + A = (A − A) ∪ (A − A). Then x ∈ A − A =
{x | x ∈ A and x ∈
/ A} = ∅. Therefore A + A ⊆ ∅. Then since ∅ ⊆ A + A we have
that A + A = ∅.
Let x ∈ A + ∅ = (A − ∅) ∪ (∅ − A). Then x ∈ A − ∅ or x ∈ ∅ − A. Assume
x ∈ ∅ − A. Then x ∈ ∅. But this is a contradiction and so we have that x ∈ A − ∅.
Then x ∈ A. Therefore A + ∅ ⊆ A. Now let x ∈ A. Since x ∈ / ∅ we have that
x ∈ A − ∅. Then x ∈ (A − ∅) ∪ (∅ − A) = A + ∅. Thus A ⊆ A + ∅ and therefore
A + ∅ = A.
1.4.10 The Venn diagram for subsets A, B, and C of U , in general, divides the rectangle
representing U into eight nonoverlapping regions. Label each region with a combination
of A, B, and C which represents exactly that region.
Solution: ... TO DO ...
1.4.11 With the aid of a Venn diagram investigate the validity of each of the following infer-
ences:
(a) If A, B, and C are subsets of U such that A ∩ B ⊆ C and A ∪ C ⊆ B, then
A ∩ C = ∅.
Solution: ... TO DO ...
(b) If A, B, and C are subsets of U such that A ⊆ B ∪ C and B ⊆ A ∪ C, then B = ∅.
Solution: ... TO DO ...
1.5.1 Prove that parts 3’, 4’, and 5’ of Theorem 5.1 are identities
Solution:
9
3’. Assume x ∈ A ∩ (B ∪ C). Then x ∈ A and x ∈ B ∪ C. If x ∈ B then since
x ∈ A we have x ∈ A ∩ B and so x ∈ (A ∩ B) ∪ (A ∩ C). Otherwise if x ∈ C
then since x ∈ A we have x ∈ A ∩ C and so x ∈ (A ∩ B) ∪ (A ∩ C). Therefore
A ∩ (B ∪ C) ⊆ (A ∩ B) ∪ (A ∩ C). Now assume x ∈ (A ∩ B) ∪ (A ∩ C). Then
x ∈ A ∩ B or x ∈ A ∩ C. If x ∈ A ∩ B then x ∈ A and x ∈ B. Since x ∈ B we
have x ∈ B ∪ C. Since we also have x ∈ A then x ∈ A ∩ (B ∪ C). Otherwise if
x ∈ A ∩ C then x ∈ A and x ∈ C. Since x ∈ C we have x ∈ B ∪ C. Since we also
have x ∈ A then x ∈ A ∩ (B ∪ C). Therefore (A ∩ B) ∪ (A ∩ C) ⊆ A ∩ (B ∪ C).
Hence A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C).
1.5.2 Prove the unprimed parts of Theorem 5.2 using the membership relations. Try to prove
the same results using only Theorem 5.1. In at least one such proof write out the dual
of each step to demonstrate that a proof of the dual results.
Solution:
B =B∪∅ (5.1.4)
=∅∪B (5.1.2)
= ∅. (Consequence of assumption)
Therefore B = ∅.
dual proof: Assume that A ∩ B = A for all A. Then, in particular, U ∩ B = U .
Then
B =B∩U (5.1.4’)
=U ∩B (5.1.2’)
= U. (Consequence of assumption)
Therefore B = U .
10
7. using membership: Assume A ∪ B = U and A ∩ B = ∅. Take x ∈ B. Assume
x ∈ A. Then x ∈ A ∩ B = ∅. By contradiction, x ∈ / A and so x ∈ {y ∈ U | y ∈
/
A} = U − A = A. Therefore B ⊆ A. Now take x ∈ A. Then x ∈ / A. Assume
x∈/ B. Then x ∈/ A ∪ B = U . By contradiction, x ∈ B and so A ⊆ B. Therefore
B = A.
using Thm 5.1: Assume A ∪ B = U and A ∩ B = ∅. Then we have
B =B∩U (5.1.4’)
= B ∩ (A ∪ A) (5.1.5)
= (B ∩ A) ∪ (B ∩ A) (5.1.3’)
= (A ∩ B) ∪ (B ∩ A) (5.1.2’)
= (A ∩ B) ∪ (A ∩ B) (5.1.2’)
= ∅ ∪ (A ∩ B) (Assumption)
= (A ∩ A) ∪ (A ∩ B) (5.1.5’)
= (A ∩ A) ∪ (A ∩ B) (5.1.2’)
= A ∩ (A ∪ B) (5.1.3’)
=A∩U (Assumption)
= A. (5.1.4’)
(self-dual)
8. using membership: Take x ∈ A. Then x ∈ U − A = {y ∈ U | y ∈
/ A} = {y ∈ U |
y ∈ A} = A. Therefore A ⊆ A. Now take x ∈ A. Then x ∈
/ A and so x ∈ A.
Then A ⊆ A and so A = A.
using Thm 5.1:
A=A∩U (5.1.4’)
= A ∩ (A ∪ A) (5.1.5)
= (A ∩ A) ∪ (A ∩ A) (5.1.3’)
= (A ∩ A) ∪ (A ∩ A) (5.1.2’)
= (A ∩ A) ∪ ∅ (5.1.5’)
= ∅ ∪ (A ∩ A) (5.1.2)
= (A ∩ A) ∪ (A ∩ A) (5.1.5’)
= (A ∩ A) ∪ (A ∩ A) (5.1.2’)
= A ∩ (A ∪ A) (5.1.3’)
=A∩U (5.1.5)
= A. (5.1.4’)
11
(self-dual)
9. using membership: Take x ∈ ∅. Then x ∈ U − ∅ = {y ∈ U | y ∈
/ ∅} = {y ∈ U } =
U . Therefore ∅ ⊆ U . Now take x ∈ U . Then x ∈/ ∅ and so x ∈ ∅. Therefore
U ⊆ ∅. Thus ∅ = U .
using Thm 5.1:
∅=∅∪∅ (5.1.4)
=∅∪∅ (5.1.2)
= U. (5.1.5)
A ∪ A = (A ∪ A) ∩ U (5.1.4’)
= (A ∩ A) ∩ (A ∪ A) (5.1.5)
= A ∪ (A ∩ A) (5.1.3)
=A∪∅ (5.1.5’)
= A. (5.1.4)
A ∪ U = (A ∪ U ) ∩ U (5.1.4’)
= U ∩ (A ∪ U ) (5.1.2’)
= (A ∪ A) ∩ (A ∪ U ) (5.1.5)
= A ∪ (A ∩ U ) (5.1.3)
=A∪A (5.1.4’)
= U. (5.1.5)
12
13. using membership: Take x ∈ A ∪ B. Then x ∈ / A ∪ B. Then x ∈/ A and x ∈/ B
and so x ∈ A and x ∈ B and therefore x ∈ A∩B. Thus A ∪ B ⊆ A∩B. Now take
x ∈ A ∩ B. Then x ∈ A and x ∈ B and so x ∈/ A and x ∈
/ B. Therefore x ∈
/ A∪B
and so x ∈ A ∪ B. Then we have A ∩ B ⊆ A ∪ B. Thus A ∪ B = A ∩ B.
using Thm 5.1:
A ∪ (A ∩ B) = (A ∩ U ) ∪ (A ∩ B) (5.1.4’)
= (A ∩ (B ∪ B)) ∪ (A ∩ B) (5.1.5)
= ((A ∩ B) ∪ (A ∩ B)) ∪ (A ∩ B) (5.1.3’)
= (A ∩ B) ∪ ((A ∩ B) ∪ (A ∩ B)) (5.1.1)
= (A ∩ B) ∪ ((A ∩ B) ∪ (A ∩ B)) (5.1.2)
= ((A ∩ B) ∪ (A ∩ B)) ∪ (A ∩ B) (5.1.1)
= (((A ∩ B) ∪ (A ∩ B)) ∩ U ) ∪ (A ∩ B) (5.1.4’)
= (((A ∩ B) ∪ (A ∩ B)) ∩ ((A ∩ B) ∪ (A ∩ B))) ∪ (A ∩ B) (5.1.5)
= ((A ∩ B) ∪ ((A ∩ B) ∩ (A ∩ B))) ∪ (A ∩ B) (5.1.3)
= ((A ∩ B) ∪ ∅) ∪ (A ∩ B) (5.1.5’)
= (A ∩ B) ∪ (A ∩ B) (5.1.4)
= A ∩ (B ∪ B) (5.1.3’)
=A∩U (5.1.5)
= A. (5.1.4’)
1.5.3 Using only the identities in Theorems 5.1 and 5.2, show that each of the following
equations is an identity.
(a) (A ∩ B ∩ X) ∪ (A ∩ B ∩ C ∩ X ∩ Y ) ∪ (A ∩ X ∩ A) = A ∩ B ∩ X.
Solution:
(A ∩ B ∩ X) ∪ (A ∩ B ∩ C ∩ X ∩ Y ) ∪ (A ∩ X ∩ A)
= [(A ∩ B ∩ X) ∪ (A ∩ B ∩ C ∩ X ∩ Y )] ∪ (A ∩ X ∩ A)
= [(A ∩ B ∩ X) ∪ (A ∩ B ∩ X ∩ C ∩ Y )] ∪ (A ∩ X ∩ A)
= [(A ∩ B ∩ X) ∪ ((A ∩ B ∩ X) ∩ (C ∩ Y ))] ∪ (A ∩ X ∩ A)
= (A ∩ B ∩ X) ∪ (A ∩ X ∩ A)
= (A ∩ B ∩ X) ∪ (A ∩ A ∩ X)
= (A ∩ B ∩ X) ∪ (∅ ∩ X)
= (A ∩ B ∩ X) ∪ (X ∩ ∅)
= (A ∩ B ∩ X) ∪ ∅
= A ∩ B ∩ X.
13
(b) (A ∩ B ∩ C) ∪ (A ∩ B ∩ C) ∪ B ∪ C = U .
Solution:
(A ∩ B ∩ C) ∪ (A ∩ B ∩ C) ∪ B ∪ C
= (B ∩ C ∩ A) ∪ (B ∩ C ∩ A) ∪ B ∪ C
= [(B ∩ C) ∩ A] ∪ [(B ∩ C) ∩ A] ∪ B ∪ C
= [(B ∩ C) ∩ (A ∪ A)] ∪ B ∪ C
= [(B ∩ C) ∩ U ] ∪ B ∪ C
= (B ∩ C) ∪ B ∪ C
= (B ∩ C) ∪ (B ∩ C)
= U.
(c) (A ∩ B ∩ C ∩ X) ∪ (A ∩ C) ∪ (B ∩ C) ∪ (C ∩ X) = C.
Solution:
(A ∩ B ∩ C ∩ X) ∪ (A ∩ C) ∪ (B ∩ C) ∪ (C ∩ X)
= (C ∩ A ∩ B ∩ X) ∪ (C ∩ A) ∪ (C ∩ B) ∪ (C ∩ X)
= (C ∩ A ∩ B ∩ X) ∪ (C ∩ (A ∪ B)) ∪ (C ∩ X)
= (C ∩ A ∩ B ∩ X) ∪ (C ∩ [(A ∪ B) ∪ X])
= (C ∩ A ∩ B ∩ X) ∪ (C ∩ (A ∪ B ∪ X))
= (C ∩ A ∩ B ∩ X) ∪ (C ∩ (A ∩ B ∪ X))
= (C ∩ (A ∩ B ∩ X)) ∪ (C ∩ (A ∩ B ∪ X))
= C ∩ [(A ∩ B ∩ X) ∪ (A ∩ B ∪ X)]
=C ∩U
= C.
14
(d) [(A ∩ B) ∪ (A ∩ C) ∪ (A ∩ X ∩ Y )] ∩ [(A ∩ B ∩ C) ∪ (A ∩ X ∩ Y ) ∪ (A ∩ B ∩ Y )] =
(A ∩ B) ∪ (A ∩ B ∩ X ∩ Y ).
Solution: In the words of George Costanza: “Let’s get nuts!”
[(A ∩ B) ∪ (A ∩ C) ∪ (A ∩ X ∩ Y )] ∩ [(A ∩ B ∩ C) ∪ (A ∩ X ∩ Y ) ∪ (A ∩ B ∩ Y )]
= [(A ∩ B) ∪ (A ∩ C) ∪ (A ∩ X ∩ Y )] ∩ [(A ∩ B ∩ C) ∪ (A ∩ X ∩ Y ) ∩ (A ∩ B ∩ Y )]
(5.2.13)
= [(A ∩ B) ∪ (A ∩ C) ∪ (A ∩ X ∩ Y )] ∩ [(A ∩ B ∩ C) ∩ (A ∩ X ∩ Y ) ∩ (A ∩ B ∩ Y )]
(5.2.13)
= [(A ∩ B) ∪ (A ∩ C) ∪ (A ∩ X ∩ Y )] ∩ [(A ∪ B ∪ C) ∩ (A ∪ X ∪ Y ) ∩ (A ∪ B ∪ Y )]
(5.2.13’)
= [(A ∩ B) ∪ (A ∩ C) ∪ (A ∩ X ∩ Y )] ∩ [(A ∪ B ∪ C) ∩ (A ∪ X ∪ Y ) ∩ (A ∪ B ∪ Y )]
(5.2.8)
= [(A ∩ B) ∪ (A ∩ C) ∪ (A ∩ X ∩ Y )] ∩ [(A ∪ B ∪ C) ∩ (A ∪ B ∪ Y ) ∩ (A ∪ X ∪ Y )]
(5.1.2’)
= [(A ∩ B) ∪ (A ∩ C) ∪ (A ∩ X ∩ Y )] ∩ [(A ∪ B ∪ Y ) ∩ (A ∪ B ∪ C) ∩ (A ∪ X ∪ Y )]
(5.1.2’)
= [(A ∩ B) ∪ (A ∩ C) ∪ (A ∩ X ∩ Y )] ∩ [(A ∪ B ∪ Y ) ∩ (A ∪ X ∪ Y ) ∩ (A ∪ B ∪ C)]
(5.1.2’)
= [[[(A ∩ B) ∪ (A ∩ C) ∪ (A ∩ X ∩ Y )] ∩ (A ∪ B ∪ Y )] ∩ (A ∪ X ∪ Y )] ∩ (A ∪ B ∪ C)
(5.1.1’)
I will now break the derivation into three parts, taking care of each of the nested
intersections, and taking some reasonable shortcuts along the way. In most places,
I’ve gone above and beyond to make sure that every step appeals to theorem 5.1
or 5.2.
15
[(A ∩ B) ∪ (A ∩ C) ∪ (A ∩ X ∩ Y )] ∩ (A ∪ B ∪ Y )
= (A ∪ B ∪ Y ) ∩ [(A ∩ B) ∪ (A ∩ C) ∪ (A ∩ X ∩ Y )]
= [(A ∪ B ∪ Y ) ∩ (A ∩ B)] ∪ [(A ∪ B ∪ Y ) ∩ (A ∩ C)] ∪ [(A ∪ B ∪ Y ) ∩ (A ∩ X ∩ Y )]
= [((A ∪ B ∪ Y ) ∩ A) ∩ B] ∪ [((A ∪ B ∪ Y ) ∩ A) ∩ C)] ∪ [(A ∪ B ∪ Y ) ∩ (A ∩ X ∩ Y )]
= [(A ∩ (A ∪ B ∪ Y )) ∩ B] ∪ [(A ∩ (A ∪ B ∪ Y )) ∩ C)] ∪ [(A ∪ B ∪ Y ) ∩ (A ∩ X ∩ Y )]
= [(A ∩ (A ∪ (B ∪ Y ))) ∩ B] ∪ [(A ∩ (A ∪ (B ∪ Y ))) ∩ C)] ∪ [(A ∪ B ∪ Y ) ∩ (A ∩ X ∩ Y )]
= (A ∩ B) ∪ (A ∩ C) ∪ [(A ∪ B ∪ Y ) ∩ (A ∩ X ∩ Y )]
= (A ∩ B) ∪ (A ∩ C) ∪ [((A ∪ B ∪ Y ) ∩ A) ∩ X ∩ Y )]
= (A ∩ B) ∪ (A ∩ C) ∪ [(A ∩ (A ∪ B ∪ Y )) ∩ X ∩ Y )]
= (A ∩ B) ∪ (A ∩ C) ∪ [((A ∩ A) ∪ (A ∩ B) ∪ (A ∩ Y )) ∩ X ∩ Y )]
= (A ∩ B) ∪ (A ∩ C) ∪ [((A ∩ A) ∪ (A ∩ B) ∪ (A ∩ Y )) ∩ X ∩ Y )]
= (A ∩ B) ∪ (A ∩ C) ∪ [(∅ ∪ (A ∩ B) ∪ (A ∩ Y )) ∩ X ∩ Y )]
= (A ∩ B) ∪ (A ∩ C) ∪ [((A ∩ B) ∪ (A ∩ Y ) ∪ ∅) ∩ X ∩ Y )]
= (A ∩ B) ∪ (A ∩ C) ∪ [((A ∩ B) ∪ (A ∩ Y )) ∩ X ∩ Y )]
= (A ∩ B) ∪ (A ∩ C) ∪ [((A ∩ B) ∪ A) ∩ ((A ∩ B) ∪ Y )) ∩ X ∩ Y )]
= (A ∩ B) ∪ (A ∩ C) ∪ [(A ∪ (A ∩ B)) ∩ (Y ∪ (A ∩ B)) ∩ X ∩ Y )]
= (A ∩ B) ∪ (A ∩ C) ∪ [(A ∩ (Y ∪ (A ∩ B)) ∩ X ∩ Y )]
= (A ∩ B) ∪ (A ∩ C) ∪ [(A ∩ (Y ∪ A) ∩ (Y ∪ B)) ∩ X ∩ Y )]
= (A ∩ B) ∪ (A ∩ C) ∪ [(A ∩ (A ∪ Y ) ∩ (Y ∪ B)) ∩ X ∩ Y )]
= (A ∩ B) ∪ (A ∩ C) ∪ [(A ∩ (Y ∪ B)) ∩ X ∩ Y )]
= (A ∩ B) ∪ (A ∩ C) ∪ [A ∩ ((Y ∪ B) ∩ X) ∩ Y )]
= (A ∩ B) ∪ (A ∩ C) ∪ [A ∩ (X ∩ (Y ∪ B)) ∩ Y )]
= (A ∩ B) ∪ (A ∩ C) ∪ [A ∩ X ∩ ((Y ∪ B) ∩ Y )]
= (A ∩ B) ∪ (A ∩ C) ∪ [A ∩ X ∩ (Y ∩ (Y ∪ B))]
= (A ∩ B) ∪ (A ∩ C) ∪ [A ∩ X ∩ ((Y ∩ Y ) ∪ (Y ∩ B))]
= (A ∩ B) ∪ (A ∩ C) ∪ [A ∩ X ∩ (∅ ∪ (Y ∩ B))]
= (A ∩ B) ∪ (A ∩ C) ∪ [A ∩ X ∩ ((Y ∩ B) ∪ ∅)]
= (A ∩ B) ∪ (A ∩ C) ∪ [A ∩ X ∩ (Y ∩ B)]
= (A ∩ B) ∪ (A ∩ C) ∪ [A ∩ X ∩ (B ∩ Y )]
= (A ∩ B) ∪ (A ∩ C) ∪ [A ∩ (X ∩ B) ∩ Y ]
= (A ∩ B) ∪ (A ∩ C) ∪ [A ∩ (B ∩ X) ∩ Y ]
= (A ∩ B) ∪ (A ∩ C) ∪ (A ∩ B ∩ X ∩ Y ).
16
[(A ∩ B) ∪ (A ∩ C) ∪ (A ∩ B ∩ X ∩ Y )] ∩ (A ∪ X ∪ Y )
= (A ∪ X ∪ Y ) ∩ [(A ∩ B) ∪ (A ∩ C) ∪ (A ∩ B ∩ X ∩ Y )]
= [(A ∪ X ∪ Y ) ∩ (A ∩ B)] ∪ [(A ∪ X ∪ Y ) ∩ (A ∩ C)] ∪ [(A ∪ X ∪ Y ) ∩ (A ∩ B ∩ X ∩ Y )]
= [((A ∪ X ∪ Y ) ∩ A) ∩ B] ∪ [((A ∪ X ∪ Y ) ∩ A) ∩ C)] ∪ [(A ∪ X ∪ Y ) ∩ (A ∩ B ∩ X ∩ Y )]
= [(A ∩ (A ∪ X ∪ Y )) ∩ B] ∪ [(A ∩ (A ∪ X ∪ Y )) ∩ C)] ∪ [(A ∪ X ∪ Y ) ∩ (A ∩ B ∩ X ∩ Y )]
= (A ∩ B) ∪ (A ∩ C) ∪ [(A ∪ X ∪ Y ) ∩ (A ∩ B ∩ X ∩ Y )]
= (A ∩ B) ∪ (A ∩ C) ∪ [(A ∪ X ∪ Y ) ∩ (Y ∩ A ∩ B ∩ X)]
= (A ∩ B) ∪ (A ∩ C) ∪ [((A ∪ X ∪ Y ) ∩ Y ) ∩ A ∩ B ∩ X]
= (A ∩ B) ∪ (A ∩ C) ∪ [(Y ∩ (A ∪ X ∪ Y )) ∩ A ∩ B ∩ X]
= (A ∩ B) ∪ (A ∩ C) ∪ [(Y ∩ (Y ∪ A ∪ X)) ∩ A ∩ B ∩ X]
= (A ∩ B) ∪ (A ∩ C) ∪ (Y ∩ A ∩ B ∩ X)
= (A ∩ B) ∪ (A ∩ C) ∪ (A ∩ B ∩ X ∩ Y ).
17
[(A ∩ B) ∪ (A ∩ C) ∪ (A ∩ B ∩ X ∩ Y )] ∩ (A ∪ B ∪ C)
= [(A ∩ B) ∩ (A ∪ B ∪ C)] ∪ [(A ∩ C) ∩ (A ∪ B ∪ C)] ∪ [(A ∩ B ∩ X ∩ Y ) ∩ (A ∪ B ∪ C)]
= [A ∩ (B ∩ (A ∪ B ∪ C))] ∪ [(A ∩ C) ∩ (A ∪ B ∪ C)] ∪ [(A ∩ B ∩ X ∩ Y ) ∩ (A ∪ B ∪ C)]
= [A ∩ (B ∩ (B ∪ A ∪ C))] ∪ [(A ∩ C) ∩ (A ∪ B ∪ C)] ∪ [(A ∩ B ∩ X ∩ Y ) ∩ (A ∪ B ∪ C)]
= (A ∩ B) ∪ [(A ∩ C) ∩ (A ∪ B ∪ C)] ∪ [(A ∩ B ∩ X ∩ Y ) ∩ (A ∪ B ∪ C)]
= (A ∩ B) ∪ [(A ∩ C) ∩ (A ∪ C ∪ B)] ∪ [(A ∩ B ∩ X ∩ Y ) ∩ (A ∪ B ∪ C)]
= (A ∩ B) ∪ [(A ∩ C) ∩ (A ∩ C ∪ B)] ∪ [(A ∩ B ∩ X ∩ Y ) ∩ (A ∪ B ∪ C)]
= (A ∩ B) ∪ [((A ∩ C) ∩ (A ∩ C)) ∪ ((A ∩ C) ∩ B)] ∪ [(A ∩ B ∩ X ∩ Y ) ∩ (A ∪ B ∪ C)]
= (A ∩ B) ∪ [∅ ∪ ((A ∩ C) ∩ B)] ∪ [(A ∩ B ∩ X ∩ Y ) ∩ (A ∪ B ∪ C)]
= (A ∩ B) ∪ [((A ∩ C) ∩ B) ∪ ∅] ∪ [(A ∩ B ∩ X ∩ Y ) ∩ (A ∪ B ∪ C)]
= (A ∩ B) ∪ ((A ∩ C) ∩ B) ∪ [(A ∩ B ∩ X ∩ Y ) ∩ (A ∪ B ∪ C)]
= (A ∩ B) ∪ (A ∩ (C ∩ B)) ∪ [(A ∩ B ∩ X ∩ Y ) ∩ (A ∪ B ∪ C)]
= (A ∩ B) ∪ (A ∩ (B ∩ C)) ∪ [(A ∩ B ∩ X ∩ Y ) ∩ (A ∪ B ∪ C)]
= (A ∩ B) ∪ ((A ∩ B) ∩ C) ∪ [(A ∩ B ∩ X ∩ Y ) ∩ (A ∪ B ∪ C)]
= (A ∩ B) ∪ [(A ∩ B ∩ X ∩ Y ) ∩ (A ∪ B ∪ C)]
= (A ∩ B) ∪ [((A ∩ B ∩ X ∩ Y ) ∩ A) ∪ ((A ∩ B ∩ X ∩ Y ) ∩ B) ∪ ((A ∩ B ∩ X ∩ Y ) ∩ C)]
= (A ∩ B) ∪ [(A ∩ (A ∩ B ∩ X ∩ Y )) ∪ (B ∩ (A ∩ B ∩ X ∩ Y )) ∪ (C ∩ (A ∩ B ∩ X ∩ Y ))]
= (A ∩ B) ∪ [((A ∩ A) ∩ B ∩ X ∩ Y ) ∪ (B ∩ (A ∩ B ∩ X ∩ Y )) ∪ (C ∩ (A ∩ B ∩ X ∩ Y ))]
= (A ∩ B) ∪ [(A ∩ B ∩ X ∩ Y ) ∪ (B ∩ (A ∩ B ∩ X ∩ Y )) ∪ (C ∩ (A ∩ B ∩ X ∩ Y ))]
= (A ∩ B) ∪ [(A ∩ B ∩ X ∩ Y ) ∪ (B ∩ (B ∩ A ∩ X ∩ Y )) ∪ (C ∩ (A ∩ B ∩ X ∩ Y ))]
= (A ∩ B) ∪ [(A ∩ B ∩ X ∩ Y ) ∪ ((B ∩ B) ∩ A ∩ X ∩ Y ) ∪ (C ∩ (A ∩ B ∩ X ∩ Y ))]
= (A ∩ B) ∪ [(A ∩ B ∩ X ∩ Y ) ∪ (∅ ∩ A ∩ X ∩ Y ) ∪ (C ∩ (A ∩ B ∩ X ∩ Y ))]
= (A ∩ B) ∪ [(A ∩ B ∩ X ∩ Y ) ∪ (A ∩ X ∩ Y ∩ ∅) ∪ (C ∩ (A ∩ B ∩ X ∩ Y ))]
= (A ∩ B) ∪ [(A ∩ B ∩ X ∩ Y ) ∪ ∅ ∪ (C ∩ (A ∩ B ∩ X ∩ Y ))]
= (A ∩ B) ∪ [(A ∩ B ∩ X ∩ Y ) ∪ (C ∩ (A ∩ B ∩ X ∩ Y )) ∪ ∅]
= (A ∩ B) ∪ [(A ∩ B ∩ X ∩ Y ) ∪ (C ∩ (A ∩ B ∩ X ∩ Y ))]
= (A ∩ B) ∪ [(A ∩ B ∩ X ∩ Y ) ∪ ((A ∩ B ∩ X ∩ Y ) ∩ C)]
= (A ∩ B) ∪ (A ∩ B ∩ X ∩ Y ).
1.5.4 Rework Exercise 4.9(b), using solely the algebra of sets developed in this section.
Solution: Exercise 4.9(b) states: Using a Venn diagram, show that the symmetric
difference is a commutative and associative operation. In the language of the algebra
of sets, this translates to: For all sets A, B and C show that A + B = B + A and that
A + (B + C) = (A + B) + C.
18
• Theorem: A + B = B + A.
Proof:
• Theorem: A + (B + C) = (A + B) + C.
In order to prove the theorem, the following few lemmas will be useful:
Lemma 1: (A − B) − C = A − (B ∪ C).
Proof:
Lemma 2: (A − C) ∪ (B − C) = (A ∪ B) − C.
Proof:
Lemma 3: (A ∪ B) ∩ (A ∪ B) = (A ∩ B) ∪ (A ∩ B).
Proof:
19
Proof of theorem:
20
= [(A ∩ B ∩ C) ∪ (A ∩ B ∩ C)] ∪ (A ∩ B ∩ C) ∪ (A ∩ B ∩ C) (5.1.1’)
= (A ∩ B ∩ C) ∪ (A ∩ B ∩ C) ∪ (A ∩ B ∩ C) ∪ (A ∩ B ∩ C) (5.1.1)
= (A ∩ B ∩ C) ∪ (A ∩ B ∩ C) ∪ (A ∩ B ∩ C) ∪ (A ∩ B ∩ C) (5.1.2)
= (A ∩ B ∩ C) ∪ (A ∩ B ∩ C) ∪ (A ∩ B ∩ C) ∪ (A ∩ B ∩ C)
= [(A ∩ B ∩ C) ∪ (A ∩ B ∩ C)] ∪ [(A ∩ B ∩ C) ∪ (A ∩ B ∩ C)] (5.1.1)
= [(A ∩ B ∩ C) ∪ (A ∩ B ∩ C)] ∪ [(C ∩ A ∩ B) ∪ (C ∩ A ∩ B)] (5.1.2’)
= [(A ∩ B ∩ C) ∪ (A ∩ B ∩ C)] ∪ [C ∩ [(A ∩ B) ∪ (A ∩ B)]] (5.1.3’)
= [(A ∩ B ∩ C) ∪ (A ∩ B ∩ C)] ∪ [C ∩ [(A ∪ B) ∩ (A ∪ B)]] (Lemma 3)
= [(A ∩ B ∩ C) ∪ (A ∩ B ∩ C)] ∪ [[C ∩ (A ∪ B)] ∩ (A ∪ B)] (5.1.1’)
= [(A ∩ B ∩ C) ∪ (A ∩ B ∩ C)] ∪ [[C ∩ (A ∪ B)] ∩ (A ∪ B)] (5.1.2’)
= [(A ∩ B ∩ C) ∪ (A ∩ B ∩ C)] ∪ [[C ∩ (A ∪ B)] ∩ (A ∪ B)] (5.2.8)
= [(A ∩ B ∩ C) ∪ (A ∩ B ∩ C)] ∪ [[C ∩ (A ∪ B)] ∩ (A ∩ B)] (5.2.13’)
= [(A ∩ B ∩ C) ∪ (A ∩ B ∩ C)] ∪ [[C ∩ (A ∪ B)] − (A ∩ B)]
(Definition of relative complement)
= [(A ∩ B ∩ C) ∪ (A ∩ B ∩ C)] ∪ [[C ∩ (A ∪ B)] − (A ∩ B)] (5.2.8)
= [(A ∩ B ∩ C) ∪ (A ∩ B ∩ C)] ∪ [[C ∩ (A ∩ B)] − (A ∩ B)] (5.2.13’)
= [(A ∩ B ∩ C) ∪ (A ∩ B ∩ C)] ∪ [[C − (A ∩ B)] − (A ∩ B)]
(Definition of relative complement)
= [(A ∩ B ∩ C) ∪ (A ∩ B ∩ C)] ∪ [[C − (A ∩ B)] − (B ∩ A)] (5.1.2’)
= [(A ∩ B ∩ C) ∪ (A ∩ B ∩ C)] ∪ [[C − (A − B)] − (B − A)]
(Definition of relative complement)
= [(A ∩ B ∩ C) ∪ (A ∩ B ∩ C)] ∪ [C − [(A − B) ∪ (B − A)]] (Lemma 1)
= [((A ∩ B) ∩ C) ∪ ((A ∩ B) ∩ C)] ∪ [C − [(A − B) ∪ (B − A)]] (5.1.1’)
= [((A ∩ B) − C) ∪ ((A ∩ B) − C)] ∪ [C − [(A − B) ∪ (B − A)]]
(Definition of relative complement)
= [((A ∩ B) − C) ∪ ((B ∩ A) − C)] ∪ [C − [(A − B) ∪ (B − A)]] (5.1.2’)
= [((A − B) − C) ∪ ((B − A) − C)] ∪ [C − [(A − B) ∪ (B − A)]]
(Definition of relative complement)
= [[(A − B) ∪ (B − A)] − C] ∪ [C − [(A − B) ∪ (B − A)]] (Lemma 2)
= [(A + B) − C] ∪ [C − (A + B)] (Definition of symmetric difference)
= (A + B) + C (Definition of symmetric difference)
21
1.5.5 Let A1 , A2 , . . . , An be sets, and define Sk to be A1 ∪ A2 ∪ · · · ∪ Ak for k = 1, 2, . . . , n.
Show that
A = {A1 , A2 − S1 , A3 − S2 , . . . , An − Sn }
is a disjoint collection of sets and that
When is A a partition of Sn ?
Solution: First we will extend the definition of Sk to include the case of
k = 0: Define S0 = ∅. Then we may write A1 = A1 − S0 .
Now take any two distinct elements B1 = Ai − Si−1 and B2 = Aj − Sj−1 of A where,
without loss of generality, 1 ≤ i < j ≤ n. Then Sj−1 = A1 ∪ · · · ∪ Ai ∪ · · · ∪ Aj−1 and
so we have
A1 ∪ (A2 − S1 ) = A1 ∪ (A2 ∩ S1 )
= A1 ∪ (A2 ∩ A1 )
= (A1 ∪ A2 ) ∩ (A1 ∩ A1 )
= (A1 ∪ A2 ) ∩ ∅
= A1 ∪ A2 .
22
A is a partition of Sn as long as all of Ai for 1 ≤ i ≤ n are nonempty. (This is all we need
since we already have that A is a disjoint collection of sets.) We have that Ai is empty
whenever Ai ⊆ Aj for some j < i since Ai − Si−1 = Ai ∩ (A1 ∩ · · · ∩ Aj ∩ · · · ∩ Ai−1 ) =
Ai ∩ Aj ∩ · · · = ∅ ∩ · · · = ∅.
1.5.6 Prove that for arbitrary sets A1 , A2 , . . . , An (n ≥ 2),
A1 ∪ A2 ∪ · · · ∪ An = (A1 − A2 )∪(A2 − A3 ) ∪ · · · ∪ (An−1 − An )
∪ (An − A1 ) ∪ (A1 ∩ A2 ∩ · · · ∩ An ).
23
(d) The equation (A ∩ X) ∪ (B ∩ X) = ∅ has a solution iff B ⊆ A, and then any X
such that B ⊆ X ⊆ A is a solution.
Solution: (⇒) Suppose there exists a set X for which (A ∩ X) ∪ (B ∩ X) = ∅.
Now consider some x ∈ B and assume x ∈ A. Then if x ∈ X we have x ∈
A ∩ X ⊆ (A ∩ X) ∪ (B ∩ X) = ∅, a contradiction. Otherwise, x ∈ X and so
x ∈ B ∩ X ⊆ (A ∩ X) ∪ (B ∩ X) = ∅, another contradiction. Therefore, x ∈/A
and so B ⊆ A.
(⇐) Now assuming B ⊆ A consider a set X such that B ⊆ X ⊆ A. Then for any
x ∈ X, x ∈ A ⇒ x ∈/ A ⇒ X ∩ A = ∅. Also, for any x ∈ B, x ∈ X. Therefore
x∈/ X and so B ∩ X = ∅. Therefore (A ∩ X) ∪ (B ∩ X) = ∅.
24
Solution:
1.5.9 Using the results in Exercises 5.7 and 5.8, prove that the equation
(A ∩ X) ∪ (B ∩ X) = (C ∩ X) ∪ (D ∪ X)
1.6.2 Write the members of {1, 2}×{2, 3, 4}. What are the domain and range of the relation?
What is its graph?
Solution: ρ = {1, 2} × {2, 3, 4} = {h1, 2i, h1, 3i, h1, 4i, h2, 2i, h2, 3i, h2, 4i}
Dρ = {1, 2} ∧ Rρ = {2, 3, 4}
1.6.3 State the domain and range of each of the following relations then draw its graph.
(a) {hx, yi ∈ R × R | x2 + 4y 2 = 1}
Solution: D = {x ∈ R | |x| ≤ 1} ∧ R = {y ∈ R | |y| ≤ 21 }
(b) {hx, yi ∈ R × R | x2 = y 2 }
Solution: D = R = R.
25
(c) {hx, yi ∈ R × R | |x| + 2|y| = 1}
Solution: ...
(d) {hx, yi ∈ R × R | x2 + y 2 < 1 ∧ x > 0}
Solution: D = {x ∈ R | 0 < x < 1} ∧ R = {y ∈ R | |y| < 1}
(e) {hx, yi ∈ R × R | y ≥ 0 ∧ y ≤ x ∧ x + y ≤ 1}
Solution: D = {x ∈ R | 0 ≤ x ≤ 1} ∧ R = {y ∈ R | 0 ≤ y ≤ 21 }.
1.6.4 Write the relation in Exercise 6.3(c) as the union of four relations and that in Exercise
6.3(e) as the intersection of three relations.
Solution: ρ6.3c = {hx, yi ∈ R × R | y = 21 (1 + x)} ∪ {hx, yi ∈ R × R | y = 21 (1 − x)} ∪
{hx, yi ∈ R × R | y = 12 (−1 + x)} ∪ {hx, yi ∈ R × R | y = 12 (−1 − x)}.
ρ6.3e = {hx, yi ∈ R×R | y ≥ 0}∩{hx, yi ∈ R×R | y ≤ x}∩{hx, yi ∈ R×R | x+y ≤ 1}.
1.6.5 The formation of the cartesian product of two sets is a binary operation for sets. Show
by examples that this operation is neither commutative nor associative.
Solution: Define sets A = {1}, B = {2}, C = {3}. Then A × B = {h1, 2i} while
B × A = {h2, 1i}. Therefore the cartesian product is not commutative. Turning
to associativity, (A × B) × C = {h1, 2i} × {3} = {hh1, 2i, 3i} but A × (B × C) =
{1} × {h2, 3i} = {h1, h2, 3ii}. Therefore the cartesian product is not associative.
1.6.6 Let β be the relation “is a brother of”, and let σ be the relation “is a sister of”. Describe
β ∪ σ, β ∩ σ, and β − σ.
Solution: β ∪ σ corresponds to “is a brother or a sister of”, namely every pair of
siblings. β ∩ σ = ∅ since someone who is a brother cannot be a sister and vice versa.
Because of this we have β − σ = β.
1.6.7 Let β and σ have the same meaning as in Exercise 6.6. Let A be the set of students
now in the reader’s school. What is β[A]? What is (β ∪ σ)[A]?
Solution: β[A] is the set of all the students’ brothers. (β ∪ σ)[A] is the set of all the
students’ siblings.
1.6.8 Prove that if A, B, C, and D are sets, then (A∩B)×(C∩D) = (A×C)∩(B×D). Deduce
that the cartesian multiplication of sets distributes over the operation of intersection,
that is, that (A ∩ B) × C = (A × C) ∩ (B × C) and A × (B ∩ C) = (A × B) ∩ (A × C)
for all A, B, and C.
Solution: Let A, B, C, D be arbitrary sets. Then (A ∩ B) × (C ∩ D) = {hx, yi | x ∈
A ∩ B ∧ y ∈ C ∩ D} = {hx, yi | x ∈ A ∧ x ∈ B ∧ y ∈ C ∧ y ∈ D} = {hx, yi |
x ∈ A ∧ y ∈ C} ∩ {hx, yi | x ∈ B ∧ y ∈ D} = (A × C) ∩ (B × D). Then as a
direct corollary, we have that the cartesian product distributes over set intersection
since (A ∩ B) × C = (A ∩ B) × (C ∩ C) = (A × C) ∩ (B × C) and A ∩ (B × C) =
(A × A) ∩ (B × C) = (A × B) ∩ (A × C).
26
{0, 1}×{0, 1} = {h0, 0i, h0, 1i, h1, 0i, h1, 1i} but (A×C)∪(B×D) = {h0, 0i}∪{h1, 1i} =
{h0, 0i, h1, 1i} and so (A ∪ B) × (C ∪ D) 6= (A × C) ∪ (B × D).
1.6.10 In spite of the result in the preceding exercise, cartesian multiplication distributes over
the operation of union. Prove this.
Solution: A × (B ∪ C) = {ha, ui | a ∈ A ∧ u ∈ B ∪ C} = {ha, ui | a ∈ A ∧ (u ∈ B ∨ u ∈
C)} = {ha, bi | a ∈ A ∧ b ∈ B} ∪ {ha, ci | a ∈ A ∧ c ∈ C} = (A × B) ∪ (A × C).
(A ∪ B) × C = {hu, ci | u ∈ A ∪ B ∧ c ∈ C} = {hu, ci | (u ∈ A ∨ u ∈ B) ∧ c ∈ C} =
{ha, ci | (a ∈ A ∧ c ∈ C} ∪ {hb, ci | (b ∈ B ∧ c ∈ C} = (A × C) ∪ (B × C).
1.6.11 Investigate whether union and intersection distribute over cartesian multiplication.
Solution: Set union fails to distribute over cartesian multiplication. Take sets A =
B = C = {0}. Then A ∪ (B × C) = {0} ∪ {h0, 0i} = {0, h0, 0i} but (A ∪ B) × (A ∪ C) =
{0} × {0} = {h0, 0i} and therefore A ∪ (B × C) 6= (A ∪ B) × (A ∪ C). A similar
derivation will show that (A × B) ∪ C 6= (A ∪ C) × (B ∪ C). Set intersection also fails
to distribute over cartesian multiplication. We have A∩(B×C) = {0}∩{h0, 0i} = ∅ but
(A∩B)×(A∩C) = {0}×{0} = {h0, 0i} and therefore A∩(B ×C) 6= (A∩B)×(A∩C).
1.7.1 If ρ is a relation in R+ , then its graph is a set of points in the first quadrant of a
coordinate plane. What is the characteristic feature of such a graph if (a) ρ is reflexive,
(b) ρ is symmetric, (c) ρ is transitive?
Solution: (a) ρ contains all points for which y = x (b) all points either exist on the
line y = x or have a complementary point reflected about y = x (c) how to describe??...
1.7.2 Using the results of Exercise 7.1, try to formulate a compact characterization of the
graph of an equivalence relation on R+ .
Solution: ...
1.7.3 The collection of sets {{1, 3, 4}, {2, 7}, {5, 6}} is a partition of {1, 2, 3, 4, 5, 6, 7}. Draw
the graph of the accompanying equivalence relation.
Solution: ...
27
hy, xi ∈ ρ and hy, xi ∈ σ and therefore hy, xi ∈ ρ ∩ σ hence ρ ∩ σ is symmetric. For all
hx, yi, hy, zi ∈ ρ ∩ σ we have hx, yi, hy, zi ∈ ρ and hx, yi, hy, zi ∈ σ since ρ and σ are
transitive we have hx, zi ∈ ρ and hx, zi ∈ σ and therefore hx, zi ∈ ρ ∩ σ and so ρ ∩ σ is
transitive. Therefore ρ ∩ σ is an equivalence relation.
1.7.10 Let ρ be a relation which is reflexive and transitive in the set A. For a, b ∈ A, define
a ∼ b iff aρb and bρa.
28
∼ is symmetric. Assume a ∼ b and b ∼ c. Then aρb and bρc and by the transitivity
of ρ, we have aρc. By symmetry of ρ we also have cρa. Therefore a ∼ c and so ∼
is transitive. Hence ∼ is an equivalence relation.
(b) For [a], [b] ∈ A/ ∼, define [a]ρ0 [b] iff aρb. Show that this definition is independent
of a and b in the sense that if a0 ∈ [a], b0 ∈ [b], and aρb, then a0 ρb0 .
Solution: Take any a0 ∈ [a] and b0 ∈ [b] and assume aρb. Then [a]ρ0 [b]. Then
since [a] = [a0 ] and [b] = [b0 ] we have [a0 ]ρ0 [b] and therefore a0 ρb0 .
(c) Show that ρ0 is reflexive and transitive. Further, show that if [a]ρ0 [b] and [b]ρ0 [a],
then [a] = [b].
Solution: Since ρ is transitive, we have aρa for all a ∈ A. Therefore [a]ρ0 [a]
for all [a] ∈ A/ ∼ by definition and so ρ0 is reflexive. Now assume [a]ρ0 [b] and
[b]ρ0 [c]. Then aρb and bρc. By the transitivity of ρ we have aρc and thus [a]ρ0 [c].
Therefore ρ0 is transitive. Now assume [a]ρ0 [b] and [b]ρ0 [a]. Then aρb and bρa and
so a ∼ b. Then we must have that a and b are in the same equivalence class mod
∼. Since a ∈ [a] and b ∈ [b] we must have [a] = [b].
1.7.11 In the set Z+ × Z+ define ha, bi ∼ hc, di iff a + d = b + c. Show that ∼ is an equivalence
relation on this set. Indicate the graph of Z+ × Z+ , and describe the ∼-equivalence
classes.
Solution: For any x, y ∈ Z+ we have x + y = y + x and so hx, yi ∼ hx, yi. Therefore
∼ is reflexive. By commutativity, a + d = b + c ⇔ d + a = c + b ⇔ c + b = d + a. Thus
whenever ha, bi ∼ hc, di, we also have hc, di ∼ ha, bi and therefore ∼ is symmetric. Now
assume ha, bi ∼ hc, di and hc, di ∼ he, f i. Then we have a + d = b + c and c + f = d + e.
Then (a + d − b) + f = d + e ⇒ a + f = b + e ⇔ ha, bi ∼ he, f i and so ∼ is transitive.
Therefore ∼ is an equivalence relation on Z+ × Z+ .
1.8.3 If X and Y are sets of n and m elements, respectively, Y X has how many elements?
How many members of P(X × Y ) are functions?
Solution: If X and Y are sets of n and m elements, then we have m distinct ways
to map each of the n distinct elements of X. This amounts to mn possible maps as
the notation Y X suggests. The members of P(X × Y ) that are functions are those
relations which map all members of X to a member of Y and for which no member of
29
X is mapped to more than one member of Y . This is precisely Y X . Thus only mn out
n
of 2m (only |Y X | = lg |P(X × Y )|) relations in P(X × Y ) are functions.
1.8.4 Using only mappings of the form f : Z+ → Z+ , give an example of a function which
(a) is one-to-one but not onto
Solution: f (x) = 2x.
(b) is onto but not one-to-one
Solution: f (x) = b x+2
2
c.
1.8.5 Let A = {1, 2, . . . , n}. Prove that if a map f : A → A is onto, then it is one-to-one,
and if a map g : A → A is one-to-one, then it is onto.
Solution: Let f be a map on A onto itself and assume f (a1 ) = f (a2 ) for some
a1 , a2 ∈ A. If a1 6= a2 then we have two distinct elements in A corresponding to only
one element under f . This leaves n − 2 elements to be mapped onto n − 1 elements.
Even if f |A − (a1 ∪ a2 ) is an onto map, we have one element of A which doesn’t get
mapped. Then f is not onto, a contradiction. We must have f (a1 ) = f (a2 ) ⇒ a1 = a2
which means that f is one-to-one.
Now let g be a one-to-one map on A into itself. Then for any element b ∈ A we can
find a corresponding element a ∈ A such that f (a) = b because if such an a did not
exist, we would have that the n elements of A be mapped into an A subset of size n−1.
By the pigeonhole principle, we have that two distinct elements must be mapped to
the same element, contradicting that f is one-to-one. Therefore f is onto.
Rx
1.8.6 Let f : R+ → R where f (x) = 1 dtt . Show as best you can that f is a one-to-one and
onto function.
Solution: Let f be defined as above as assume f (x1 ) = f (x2 ) for some x1 , x2 ∈ R+
Then the sum of the area under the curve from 1 to x1 equals the area from 1 to x2 .
But 1/x is positively valued for all x ∈ R+ . Therefore if x1 < x2 we must have that
f (x1 ) < f (x2 ) and similarly for x1 > x2 . Thus we must have x1 = x2 and therefore f
is one-to-one. Now take any y ∈ R. Then we can find y
an x ∈ R+ , namely ey , such that
e
f (x) = y since we know from calculus that f (ey ) = 1 dtt = ln(ey )−ln 1 = y ln e−0 = y.
R
Therefore f is onto.
1.8.7 Prove that the function f defined in Example 8.7 is a one-to-one correspondence be-
tween P(X) and 2X .
Solution: Let f be defined as in Example 8.7 and suppose f (A) = f (B) for some
A, B ∈ P(X). Then we have χA = χB . Then by definition, ∀x ∈ X : (x ∈ A ⇔ x ∈
B) ∧ (x ∈
/A⇔x∈ / B) and so A = B. Then f is one-to-one. Now for any χ ∈ 2X we
have a coded description of some subset A ⊆ X. Then we can easily identify χ with
some member of P(X) and so f is onto. Therefore f is a one-to-one correspondence
between P(X) and 2X .
1.8.8 Referring to Example 8.8, prove that if f is a function and A and B are sets, then
f [A ∪ B] = f [A] ∪ f [B].
30
Solution: Let f be a function and A, B be sets. (I) Take y ∈ f [A ∪ B]. Then there is
some x ∈ A ∪ B such that f (x) = y. Then x ∈ A ⇒ y ∈ f [A] and x ∈ B ⇒ y ∈ f [B].
Thus y ∈ f [A] ∪ f [B] and so f [A ∪ B] ⊆ f [A] ∪ f [B]. (II) Take y ∈ f [A] ∪ f [B]. If
y ∈ f [A] then there exists some x ∈ A such that f (x) = y and if y ∈ f [B] then there
exists some x ∈ B such that f (x) = y. In both cases x ∈ A ∪ B and so y ∈ f [A ∪ B].
Therefore f [A] ∪ f [B] ⊆ f [A ∪ B]. (I) and (II) imply f [A ∪ B] = f [A] ∪ f [B].
1.8.9 Referring to the previous exercise, prove further that f [A ∩ B] ⊆ f [A] ∩ f [B], and show
that proper inclusion can occur.
Solution: Let f be a function and A, B be sets. (I) Take y ∈ f [A ∩ B]. Then there
exists an x ∈ A ∩ B such that f (x) = y. Then x ∈ A and x ∈ B and so y ∈ f [A]
and y ∈ f [B] and thus y ∈ f [A] ∩ f [B]. Therefore f [A ∩ B] ⊆ f [A] ∩ f [B]. (II) Take
y ∈ f [A] ∩ f [B]. Since y ∈ f [A] there exists an x1 ∈ A such that f (x1 ) = y and since
y ∈ f [B] there exists an x2 ∈ B such that f (x2 ) = y. In the case that x1 = x2 then we
have x1 ∈ A ∩ B and so y ∈ f [A ∩ B]. Therefore f [A] ∩ f [B] ⊆ f [A ∩ B]. In this case
(I) and (II) imply f [A ∩ B] = f [A] ∩ f [B].
1.8.10 Prove that a function f is one-to-one iff for all sets A and B, f [A ∩ B] = f [A] ∩ f [B].
Solution: (⇒) Let f be a one-to-one function. Let A and B be sets. We must show
f [A] ∩ f [B] ⊆ f [A ∩ B]. Take y ∈ f [A] ∩ f [B]. Since y ∈ f [A] there exists an x1 ∈ A
such that f (x1 ) = y and since y ∈ f [B] there exists an x2 ∈ B such that f (x2 ) = y.
But since f is one-to-one we must have that x1 = x2 . By the previous exercise, we get
that f [A] ∩ f [B] ⊆ f [A ∩ B].
(⇐) Let f be a function such that f [A] ∩ f [B] ⊆ f [A ∩ B] for all sets A and B. Assume
f (a) = f (b) for some a ∈ A and b ∈ B. Then from the previous exercise we have that
a = b and so f is one-to-one.
1.8.11 Prove that a function f : X → Y is onto Y iff f [X − A] ⊇ Y − f [A] for all sets A.
Solution: (⇒) Let f be a function on X onto Y . Take y ∈ Y − f [A]. Then y ∈ Y
and y ∈/ f [A]. Then there is an x ∈
/ A such that f (x) = y. So x ∈ X − A and therefore
f [X − A] ⊇ Y − f [A].
(⇐) Let f be a function on X into Y such that f [X − A] ⊇ Y − f [A] for all sets A.
Then taking A = ∅ we have f [X] ⊇ Y . Then for any y ∈ Y we can find an x ∈ X such
that f (x) = y and so f is onto.
1.8.12 Prove that a function f : X → Y is one-to-one and onto iff f [X − A] = Y − f [A] for
all sets A.
Solution: (⇒) Let f : X → Y be a one-to-one and onto function. Take y ∈ f [X − A]
for some set A. Then there exists an x ∈ X − A such that f (x) = y and since y is
one-to-one this is the only such x ∈ X. Then x ∈ / A⇒y ∈ / f [A] ⇒ y ∈ Y − f [A].
Therefore f [X − A] ⊆ Y − f [A]. Because f is onto we have from the previous exercise
that f [X − A] ⊇ Y − f [A]. Together, we have f [X − A] = Y − f [A] for all sets A.
(⇐) Let f : X → Y be a function such that f [X − A] = Y − f [A] for all sets
A. Since f [X − A] ⊇ Y − f [A] for all sets A, we have from the previous exercise
31
that f is onto. It remains to show that f is one-to-one. Assume f (x1 ) = f (x2 ) for
x1 , x2 ∈ X. Then we have f [X − {x1 }] = Y − f (x1 ) and f [X − {x2 }] = Y − f (x2 )
and so f [X − {x1 }] = f [X − {x2 }]. But x2 ∈ X − {x1 } and so f (x2 ) ∈ f [X − {x1 }
but x2 ∈ / X − {x2 } and so f (x2 ) ∈
/ f [X − {x2 }], a contradiction. Then we must have
x1 = x2 and so f is one-to-one.
1/5
1.9.1 Let f : R → R where f (x) = 1 + (1 − x)1/3 . Express f as the composite of four
functions, none of which is the identity function.
Solution: Define f1 (x) := 1 − x, f2 (x) := x1/3 , f3 (x) := 1 + x, and f4 (x) := x1/5 . Then
f = f4 ◦ f3 ◦ f2 ◦ f1 .
j : X → X/ρ
with j(x) = [x] is onto the quotient set X/ρ (Surj (j)); j is called the canonical or
natural mapping on X onto X/ρ. If f : X → Y then the relation ρ defined by
is an equivalence relation on X.
Proof:
∀x : f (x) = f (x) ⇒ xρx.
∀x, y : [f (x) = f (y) ⇔ f (y) = f (x)] ⇒ [xρy ⇔ yρx].
∀x, y, z : [f (x) = f (y) ∧ f (y) = f (z) ⇔ f (x) = f (z)] ⇒ [xρy ∧ yρz ⇔ xρz].
Let j be the canonical map on X onto X/ρ. We contend that a function g on X/ρ into f [X],
the range of f , is defined by setting g([x]) = f (x). To see that g is a function, first note that
Rg ⊆ Rf ⇒ g(X) ⊆ Y ⇔ Rg ⊆ Y ⇔ Cg = Y , where Cg is the codomain of g. To see that g
is well-defined, consider x, y ∈ X. Then xρy ⇔ [x] = [y] ⇔ f (x) = f (y) ⇔ g([x]) = g([y]).
Finally, let i be the injection of f [X] into Y . Then we have defined function j, g, i, where
32
for a function f : X → Y . Then Surj (j) and Inj (i).
Proof:
∀[x] ∈ X/ρ : ∃x ∈ X : j(x) = [x] (Take element x which is canonical representative of
equivalence class [x].) ⇒ Surj (j). ∀y, z ∈ Y : y = z ⇒ i(y) = y = z = i(z) ⇒ Inj (i).
Bij (g). Proof: ∀[x], [y] ∈ X/ρ : [x] 6= [y] ⇔ ¬xρy ⇔ f (x) 6= f (y) ⇔ g([x]) 6= g([y]) ⇒ Inj (g) .
∀y ∈ f [X]∃x ∈ X/ρ : f (x) = y ⇒ f ([x]) = y ⇒ ∃[x] ∈ X/ρ : g([x]) = f (x) = y ⇒ Surj (g).
Inj (g) ∧ Surj (g) ⇒ Bij (g). By associativity, i ◦ g ◦ j = i ◦ (g ◦ j). By definition,
and
i ◦ (g ◦ j) : X → Y :: (i ◦ (g ◦ j))(x) = i((g ◦ j)(x)) = i(f (x)) = f (x).
Therefore f = i ◦ g ◦ j.
1.9.4 Complete the proof of (I) and supply a proof of (II) in Example 9.3.
Solution: (I) Let f : X → Y . Then Inj (f ) iff for all functions g and h such that g : Z → X
and h : Z → X, f ◦ g = f ◦ h implies that g = h. Proof: Suppose that Inj (f ) and that g and h
are mappings on Z into X for which f ◦ g = f ◦ h. Then f (g(z)) = f (h(z)) for all z ∈ Z. With
Inj (f ) it follows that g(z) = h(z) for all z ∈ Z. Hence g = h. Now suppose for all functions
g and h such that g : Z → X and h : Z → X, f ◦ g = f ◦ h implies that g = h. Suppose
g(z) = x1 and h(z) = x2 for some z ∈ Z and x1 , x2 ∈ X. Then [(f ◦ g)(z) = (f ◦ h)(z) ⇒
g(z) = h(z)] ⇔ [f (g(z)) = f (h(z)) ⇒ g(z) = h(z)] ⇔ [f (x1 ) = f (x2 ) ⇒ x1 = x2 ] ⇔ Inj (f ).
(II) Let f : X → Y . Then Surj (f ) iff for all functions g and h such that g : Y → Z and
h : Y → Z, g ◦ f = h ◦ f implies g = h. Proof: Suppose Surj (f ) and suppose g and h are
mappings from Y into Z such that g ◦ f = h ◦ f . Then (g ◦ f )(x) = (h ◦ f )(x) for all x ∈ X.
And so g(f (x)) = h(f (x)) for all f (x) ∈ Y . That is, for all y ∈ f [X], g(y) = h(y). Since
Surj (f ) we have that f [X] = Y and so g(y) = h(y) for all y ∈ Y and so g = h. Now suppose
for all functions g and h such that g : Y → Z and h : Y → Z, g ◦ f = h ◦ f implies g = h.
Suppose there is a y ∈ Y such that f (x) 6= y for all x ∈ X. In other words, f [X] 6= Y or
¬Surj (f ). Then suppose g(y) = z1 , h(y) = z2 , and g(y 0 ) = h(y 0 ) for all other y 0 ∈ Y . Then
g ◦ f = h ◦ f since g and h only differ at the evaluation of y. But g 6= h so our assumption is
violated. Therefore Surj (f ).
1.9.5 Prove that f : A → B is a one-to-one correspondence between A and B iff there exists a map
g : B → A such that g ◦ f = iA and f ◦ g = iB .
Solution: Let f : A → B be a one-to-one correspondence between A and B. Then there
exists an inverse f −1 : B → A such that f −1 ◦ f = iA and f ◦ f −1 = iB . Letting g = f −1 we
satisfy the right implication. Suppose there exists a map g : B → A such that g ◦ f = iA and
f ◦ g = iB . Then g(f (a)) = a for all a ∈ A and so g = f −1 and f (g(b)) = b for all b ∈ B and
so f = g −1 . Therefore f and g are both invertible and so are one-to-one correspondences.
33
so a1 6= a2 ⇒ (g ◦ f )(a1 ) 6= (g ◦ f )(a2 ). Therefore Inj (g ◦ f ). For any c ∈ C, there is a
b ∈ B with g(b) = c since Surj (g). For any b ∈ B, there is an a ∈ A with f (a) = b since
Surj (f ). Then c = g(b) = g(f (a)) = (g ◦ f )(a) for some a ∈ A. Therefore Surj (g ◦ f ). Since
Inj (g ◦ f ) ∧ Surj (g ◦ f ) we have Bij (g ◦ f ) and so we can define an inverse (g ◦ f )−1 : C → A
such that (g ◦ f )−1 ◦ (g ◦ f ) = iA . Then for all a ∈ A, [(g ◦ f )−1 ◦ (g ◦ f )](a) = (g ◦ f )−1 ◦
g(f (a)) = iA . But (f −1 ◦ g −1 ) ◦ (g(f (a))) = f −1 (g −1 (g(f (a)))) = f −1 (f (a)) = a = iA and so
(g ◦ f )−1 = f −1 ◦ g −1 .
1.9.8 Justify the following restatement of Theorem 7.1. Let X be a set. Then there exists a one-
to-one correspondence between the equivalence relations on X and the partitions of X.
Solution: Define a function f from the set of equivalence relations on X to the set of
partitions of X such that the image of a given equivalence relation under f is the set of its
equivalence classes. Theorem 7.1 states that this image is a partition of X. Showing that an
equivalence relation determines a partition of X and vice versa is equivalent to showing that
no two distinct equivalence classes map to the same partition (Inj (f )) and that every partition
has a corresponding equivalence relation (Surj (f )). Therefore the statement of Theorem 7.1
is equivalent to the saying Bij (f ).
1.9.9 Prove that if the inverse of the function f in R exists, then the graph of f −1 may be obtained
from that of f by reflection in the line y = x.
Solution: If the inverse of f in R exists, then for all x ∈ R we have f (x) = y for some y ∈ R
and f −1 (y) = x. Therefore the roles of independent and dependent variable are swapped out
for f −1 . Having a graph with x plotted on one axis and y an a second axis perpendicular
to the first, we must flip the graph 180◦ around the line y = x to achieve this variable swap
graphically.
1.9.10 Show that each of the following functions has an inverse. Determine the domain of each
inverse and its value at each member of its domain. Further, sketch the graph of each inverse.
34
g(x) = x2 and h(x) = x1/2 are both monotonically increasing in [0, 1]. So Inj (f ). For all
y ∈ [0, 1] we have f ((1−y 2 )1/2 ) = (1−((1−y 2 )1/2 )2 )1/2 = (1−(1−y 2 ))1/2 = (y 2 )1/2 = y.
Then Df −1 = [0, 1] and f −1 (x) = (1 − x2 )1/2 = f (x).
x
(d) f = {hx, x−1 | −2 ≤ x < 1i}
x y
Solution: ∀x, y ∈ [−2, 1), if x 6= y then f (x) = x−1 6= y−1 = f (y) ⇒ Inj (f ). ∀y ∈
y y/(y−1) y/y−1
[−2, 1) we have f ( y−1
= ) y/(y−1)−1 = 1/y−1 = y ⇒ Surj (f ). Then Df −1 = [−2, 1) and
−1 x
f (x) = x−1 = f (x).
35