Extra Exercise Ch1-4
Extra Exercise Ch1-4
Department of Mathematics
MMAT5510 Foundation of Advanced Mathematics (2024 Fall)
Extra exercises on chapter 1-4
(P ∧ Q) ∨ (¬P ) ≡ P → Q
P Q P ∧Q ¬P P1 P2
T T T F T T
T F F F F F
F T F T T T
F F F T T T
Hence, P1 ≡ P2 .
¬(P → Q) ≡ P ∧ (¬Q)
P Q P → Q P1 ¬Q P2
T T T F F F
T F F T T T
F T T F F F
F F T F T F
Hence, P1 ≡ P2 .
2
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)
A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)
(a) ⊆:
x ∈ A ∩ (B ∪ C)
⇒ (x ∈ A) and (x ∈ B ∪ C)
⇒ (x ∈ A) and (x ∈ B or x ∈ C)
(x ∈ A ∩ B) or (x ∈ A ∩ C)
⇒ x ∈ (A ∩ B) ∪ (A ∩ C)
⊇:
x ∈ (A ∩ B) ∪ (A ∩ C)
⇒ (x ∈ A ∩ B) or (x ∈ A ∩ C)
⇒ (x ∈ A and x ∈ B) or (x ∈ A and x ∈ C)
(x ∈ A) and (x ∈ B ∪ C)
⇒ x ∈ A ∩ (B ∪ C)
(b)
A ∪ (B ∩ C)
= A ∩ (B ∩ C)
= A ∩ (B ∪ C)
= (A ∩ B) ∪ (A ∩ C) (by part (a))
= (A ∪ B) ∪ (A ∪ C)
= (A ∪ B) ∩ (A ∪ C)
Therefore, A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C).
3
7. For each of the following functions, write down its domain, codomain, range and
the corresponding relation R.
(No justification is needed)
(a)
f : {1, 2, 3, 4} → {1, 2, 3, 4} where f (x) = 5 − x
(b)
f : {0, 1, 2} → {0, 1, 2} where f (x) = |x − 1|
(c) (
2x if x ≤ 0
f :R→R where f (x) =
1 − x if x > 0
Solution:
(a) The domain and codomain are both {1, 2, 3, 4}. The range is {1, 2, 3, 4} and
the corresponding relation is
(b) The domain and codomain are both {0, 1, 2}. The range is {0, 1} and the
corresponding relation is
(c) The domain and codomain are both R. The range is (−∞, 1] and the corre-
sponding relation is
x ∼ y if 3x2 + 2y 2 = 1
9. For each of the following functions, determine if it is injective, surjective and bijec-
tive.
(a)
f :Z→Z where f (x) = 2x + 1
(b)
f :R→R where f (x) = 2x + 1
(c)
x 3 if x ≤ 0
f :R→R where f (x) = 1
if x > 0
x
Solution:
Thus, f is injective.
If f (x) = 0, then x = − 12 ∈
/ Z. So, f is not surjective.
Hence, f is not bijective.
(b) Let x1 , x2 ∈ R. Then
Thus, f is injective.
y−1
For any y ∈ R, take x = ∈ R ⇒ f (x) = y. So, f is surjective.
2
Hence, f is bijective.
(c) Let x1 , x2 ∈ R.
If x1 , x2 ≤ 0, then
q q
f (x1 ) = f (x2 ) ⇒ x31 = x32 ⇒ x1 = 3
x31 = 3 x32 = x2 .
If x1 , x2 > 0, then
1 1
f (x1 ) = f (x2 ) ⇒ = ⇒ x2 = x1 .
x1 x2
If x1 ≤ 0, x2 > 0, then
1
f (x1 ) = f (x2 ) ⇒ 0 ≥ x31 = > 0 (contradiction).
x2
For any y ∈ R,
√ √
if y ≤ 0, then take x = 3 y ≤ 0 ⇒ f (x) = ( 3 y)3 = y.
1 1
If y > 0, then take x = > 0 ⇒ f (x) = 1 = y.
y (y)
Thus, f is surjective.
Hence, f is bijective.
a ∼ b if a2 + b2 is even
is injective.
(c) Show that the function
is surjective.
Solution:
(a) ∀ a ∈ Z,
a2 + a2 = 2a2 is even =⇒ a ∼ a
So, R is reflexive.
∀ a, b, c ∈ Z,
a ∼ b, b ∼ c
=⇒ a2 + b2 , b2 + c2 are even
=⇒ ∃ d, e ∈ Z, a2 + b2 = 2d, b2 + c2 = 2e
=⇒ a2 + c2 = (a2 + b2 ) + (b2 + c2 ) − 2b2 = 2d + 2e − 2b2 = 2(d + e − b2 ) is even
=⇒ a ∼ c
So, R is transitive.
(b) ∀x1 , x2 ∈ [0, ∞),
So, f is injective.
7
(a) 12 + 12 = 2 6< 2 =⇒ 1 1.
Therefore, R is not reflexive.
For any a, b, c ∈ Z,
a ∼ b, b ∼ c
=⇒ ∃n, m ∈ Z, a − b = 3n, b − c = 3m
=⇒ a − c = (a − b) + (b − c) = 3n + 3m = 3(n + m)
=⇒ a∼c
Therefore, R is transitive.
Since R is reflexive, symmetric and transitive, R is an equivalence relation.
The equivalence classes are
[0] = {a ∈ Z | a − 0 is a multiple of 3}
[1] = {a ∈ Z | a − 1 is a multiple of 3}
[2] = {a ∈ Z | a − 2 is a multiple of 3}
8
(a) The domain is {1, 2, 3, 4} and the codomain is {0, 1, 2, 3, 4}. The range is
{1, 2, 3} and the corresponding relation is
R = {(1, 2), (2, 1), (3, 2), (4, 3)}.
(b) For any x1 , x2 ∈ R,
If x1 , x2 ≤ 0, then
f (x1 ) = f (x2 ) =⇒ x1 = x2 .
If x1 , x2 > 0, then
f (x1 ) = f (x2 )
=⇒ x21 + 1 = x22 + 1
=⇒ (x1 − x2 )(x1 + x2 ) = 0
=⇒ x1 = x2 (because x1 + x2 > 0)
If x1 ≤ 0, x2 > 0, then
f (x1 ) = f (x2 ) =⇒ 0 ≥ x1 = x22 + 1 > 1 (contradiction).
If x1 > 0, x2 ≤ 0, then
f (x1 ) = f (x2 ) =⇒ 1 < x21 + 1 = x2 ≤ 0 (contradiction).
Hence, f is injective.
(c) For any y ∈ R,
If y ≤ 0, take x = y − 1 ≤ −1. Then,
f (x) = x + 1 = (y − 1) + 1 = y
√
If y > 0, take x = y > 0. Then,
√
f (x) = x2 = ( y)2 = y
Hence, f is surjective.