Fundamental Structures - Hoang Anh Duc - HUS - VNU

Work 6.

Find sets A and B which satisfy:{A={3,∣B∣}B={1,∣A∣,∣B∣}\text{Find sets } A \text{ and } B \text{ which satisfy:} \\ \begin{cases} A = \{3, |B|\} \\ B = \{1, |A|, |B|\} \quad \end{cases}
Block

Let:

∣A∣=m∣B∣=n\begin{align} |A| = m \\ |B| = n \\ \end{align}
Block

We get A={3,n}A = \{3, n\} and B={1,m,n}B = \{1, m, n\}, because 3∈A3 \in A and 1∈B1 \in B, by definition:

0<m≤20<n≤3\begin{align} 0 < m \leq 2 \\ 0 < n \leq 3 \\ \end{align}
Block

We establish that for every pair of m,nm, n in the given range, when substituted into A,BA, B, ∣A∣=m\lvert A \lvert = m AND ∣B∣=n\lvert B \lvert = n needs to be True. We will use Python for this:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Essentially im proving for 2 x 3 = 6 cases on paper
def find_valid_sets():
    results = []

    for m in range(1, 3):
        for n in range(1, 4):
            A = {3, n}
            B = {1, m, n}

            if len(A) == m and len(B) == n:
                results.append((m, n, A, B))

    return results


valid_pairs = find_valid_sets()

for m, n, A, B in valid_pairs:
    print(f"Valid pair (m, n): ({m}, {n}) with A = {A}, B = {B}")
Python

Results:

1
Valid pair (m, n): (2, 2) with A = {2, 3}, B = {1, 2}
Markdown

Conclusion:

A={2,3} and B={1,2} satisfies the condition.A = \{2, 3\} \text{ and } B = \{1, 2\} \text{ satisfies the condition.}
Block

Work 9.

Given set A={1,{2,3}} and B={4,5,6} , find: A×AB×BA×BB×A\begin{gather*} \text{Given set } A = \{1, \{2, 3\}\} \text{ and } B = \{4, 5, 6\} \text{ , find: } \\ A \times A\\ B \times B\\ A \times B\\ B \times A\\ \end{gather*}
Block

Solution:

A×A={(1,1),(1,{2,3}),({2,3},1),({2,3},{2,3})}B×B={(4,4),(4,5),(4,6),(5,4),(5,5),(5,6),(6,4),(6,5),(6,6)}A×B={(1,4),(1,5),(1,6),({2,3},4),({2,3},5),({2,3},6)}B×A={(4,1),(4,{2,3}),(5,1),(5,{2,3}),(6,1),(6,{2,3})}\begin{gather*} A \times A = \{(1,1),(1,\{2,3\}),(\{2,3\},1),(\{2,3\},\{2,3\})\} \\ B \times B =\{(4,4),(4,5),(4,6),(5,4),(5,5),(5,6),(6,4),(6,5),(6,6)\} \quad \\ A \times B = \{(1,4),(1,5),(1,6),(\{2,3\},4),(\{2,3\},5),(\{2,3\},6)\} \\ B \times A = \{(4,1),(4,\{2,3\}),(5,1),(5,\{2,3\}),(6,1),(6,\{2,3\})\} \end{gather*}
Block

Work 16.

For arbitrary sets A, B, prove:a,A∩B=A∖(A∖B)b,A∪(B∖A)=A∪Bc,A∩(B∖A)=∅d,A△A=∅e,A△∅=Af,A△B=B△A\begin{gather*} \text{For arbitrary sets A, B, prove:} \\ a, A \cap B = A \setminus (A \setminus B) \\ b, A \cup (B \setminus A) = A \cup B \\ c, A \cap (B \setminus A) = \emptyset \\ d, A \triangle A = \emptyset \\ e, A \triangle \emptyset = A \\ f, A \triangle B = B \triangle A \end{gather*}
Block

a, A∩B=A∖(A∖B)A \cap B = A \setminus (A \setminus B)

RHS: A∖(A∖B)→A∖(A∩B∁)→A∩(A∩B∁)∁→A∩(A∁∪B) (De Morgan’s Laws)→(A∩A∁)∪(A∩B) (Distributive Laws)→A∩B= LHS\begin{gather*} \text{RHS: } A \setminus (A \setminus B) \\ \rightarrow A \setminus (A \cap B^\complement) \\ \rightarrow A \cap (A \cap B^\complement)^\complement \\ \rightarrow A \cap (A^\complement \cup B) \text{ (De Morgan's Laws)}\\ \rightarrow (A \cap A^\complement) \cup (A \cap B) \text{ (Distributive Laws)}\\ \rightarrow A \cap B = \text{ LHS} \\ \end{gather*}
Block

b, A∪(B∖A)=A∪BA \cup (B \setminus A) = A \cup B \\

LHS: A∪(B∖A)→A∪(B∩A∁)→(A∪B)∩(A∪A∁) (Distributive Laws)→A∪B= RHS\begin{gather*} \text{LHS: } A \cup (B \setminus A) \\ \rightarrow A \cup (B \cap A^\complement) \\ \rightarrow (A \cup B) \cap (A \cup A^\complement) \text{ (Distributive Laws)} \\ \rightarrow A \cup B = \text{ RHS}\\ \end{gather*}
Block

c, A∩(B∖A)=∅A \cap (B \setminus A) = \emptyset

LHS: A∩(B∖A)→A∩(B∩A∁)→(A∩A∁)∩B (Associative Laws)→∅∩B (Associative Laws)→∅= RHS (Domination Laws)\begin{gather*} \text{LHS: } A \cap (B \setminus A) \\ \rightarrow A \cap (B \cap A^\complement) \\ \rightarrow (A \cap A^\complement) \cap B \text{ (Associative Laws)} \\ \rightarrow \emptyset \cap B \text{ (Associative Laws)} \\ \rightarrow \emptyset = \text{ RHS (Domination Laws)} \\ \end{gather*}
Block

d, A△A=∅A \triangle A = \emptyset

LHS: A△A→(A∖A)∪(A∖A)→∅∪∅→∅= RHS\begin{gather*} \text{LHS: } A \triangle A \\ \rightarrow (A \setminus A) \cup (A \setminus A) \\ \rightarrow \emptyset \cup \emptyset \\ \rightarrow \emptyset = \text{ RHS} \\ \end{gather*}
Block

e, A△∅=AA \triangle \emptyset = A \\

LHS: A△A→(A∖∅)∪(∅∖A)→A∪∅= RHS\begin{gather*} \text{LHS: } A \triangle A \\ \rightarrow (A \setminus \emptyset) \cup (\emptyset \setminus A) \\ \rightarrow A \cup \emptyset = \text{ RHS} \\ \end{gather*}
Block

f, A△B=B△AA \triangle B = B \triangle A

LHS: A△B→(A∖B)∪(B∖A)→(B∖A)∪(A∖B) (Commutative Laws)→B△A= RHS\begin{gather*} \text{LHS: } A \triangle B \\ \rightarrow (A \setminus B) \cup (B \setminus A) \\ \rightarrow (B \setminus A) \cup (A \setminus B) \text{ (Commutative Laws)}\\ \rightarrow B \triangle A = \text{ RHS} \\ \end{gather*}
Block

Work 17.

For arbitrary sets A, B, C, can you prove A = B with:a,A∪C=B∪Cb,A∩C=B∩Cc,A∪C=B∪C AND A∩C=B∩C\begin{gather*} \text{For arbitrary sets A, B, C, can you prove A = B with:} \quad \\ a, A \cup C = B \cup C \\ b, A \cap C = B \cap C \\ c, A \cup C = B \cup C \text{ AND } A \cap C = B \cap C \\ \end{gather*}
Block

a, A∪C=B∪CA \cup C = B \cup C

Let: x∈A→x∈A∪C→x∈B∪C(A∪C=B∪C)→(x∈B)∨(x∈C)=TAssume: x∉C→x∈B→x∈B→x∈A→A⊆B(1)Let: y∈B→y∈B∪C→y∈A∪C(A∪C=B∪C)→(y∈A)∨(y∈C)=TAssume: y∉C→y∈A→y∈A→y∈B→B⊆A(2)From (1), (2), we conclude: A=B\begin{gather*} \text{Let: } x \in A \\ \rightarrow x \in A \cup C \\ \rightarrow x \in B \cup C \quad (A \cup C = B \cup C) \\ \rightarrow (x \in B) \vee (x \in C) = T \\ \text{Assume: } x \notin C \rightarrow x \in B \\ \rightarrow x \in B \rightarrow x \in A \rightarrow A \subseteq B (1)\\[20pt] \text{Let: } y \in B \\ \rightarrow y \in B \cup C \\ \rightarrow y \in A \cup C \quad (A \cup C = B \cup C) \\ \rightarrow (y \in A) \vee (y \in C) = T \\ \text{Assume: } y \notin C \rightarrow y \in A \\ \rightarrow y \in A \rightarrow y \in B \rightarrow B \subseteq A (2)\\[20pt] \text{From (1), (2), we conclude: } A = B \\ \end{gather*}
Block

b, A∩C=B∩CA \cap C = B \cap C

Let: x∈A→x∈A∩C↔x∉C→x∈B∩C(A∩C=B∩C)→(x∈B)∧(x∉C)=T→x∈B→x∈A→A⊆B(1)Let: y∈B→y∈B∩C↔x∉C→y∈A∪C(A∪C=B∪C)→(y∈A)∧(y∉C)=T→y∈A→y∈B→B⊆A(2)From (1), (2), we conclude: A=B\begin{gather*} \text{Let: } x \in A \\ \rightarrow x \in A \cap C \leftrightarrow x \notin C \\ \rightarrow x \in B \cap C \quad (A \cap C = B \cap C) \\ \rightarrow (x \in B) \wedge (x \notin C) = T \\ \rightarrow x \in B \rightarrow x \in A \rightarrow A \subseteq B (1)\\[20pt] \text{Let: } y \in B \\ \rightarrow y \in B \cap C \leftrightarrow x \notin C \\ \rightarrow y \in A \cup C \quad (A \cup C = B \cup C) \\ \rightarrow (y \in A) \wedge (y \notin C) = T \\ \rightarrow y \in A \rightarrow y \in B \rightarrow B \subseteq A (2)\\[20pt] \text{From (1), (2), we conclude: } A = B \\ \end{gather*}
Block

c, (A∪C=B∪C)∧(A∩C=B∩C)(A \cup C = B \cup C) \wedge (A \cap C = B \cap C)

From (a), (b), trivially, we conclude: A=B\begin{gather*} \text{From (a), (b), trivially, we conclude: } A = B \\ \end{gather*}
Block

Work. 25

In each cases, is R an equivalence relation?(1)R={(p,q)∣p≡q} p, q are Statements(2)R={(A,B)∣A⊆B} A, B are Sets(3)R={(A,B)∣A=B} A, B are Sets(4)R={(a,b)∣a ⋮ b} a, b are Positive Integers\begin{gather*} \text{In each cases, is } \mathcal{R} \text{ an equivalence relation?} \\[5pt] (1) \mathcal{R} = \{(p, q) \lvert p \equiv q\} \text{ p, q are Statements} \\[5pt] (2) \mathcal{R} = \{(A, B) \lvert A \subseteq B\} \text{ A, B are Sets} \\[5pt] (3) \mathcal{R} = \{(A, B) \lvert A = B\} \text{ A, B are Sets} \\ (4) \mathcal{R} = \{(a, b) \lvert a\ \vdots\ b\} \text{ a, b are Positive Integers} \\ \end{gather*}
Block

(1)R={(p,q)∣p≡q}( where p and q are statements)(1) \mathcal{R} = \{(p, q) \mid p \equiv q\} (\text{ where } p \text{ and } q \text{ are statements})

Reflexivity: A statement p is equivalent to itself (p≡p). Thus, (p,p)∈R for all statements p.Symmetry: If (p≡q), then (q≡p). Therefore, if (p,q)∈R, it follows that (q,p)∈R.Transitivity: If (p≡q) and (q≡r), then (p≡r). Hence, if (p,q)∈R and (q,r)∈R, it follows that (p,r)∈R.Conclusion: R is an equivalence relation. \begin{gather*} \text{Reflexivity: A statement } p \text{ is equivalent to itself } (p \equiv p). \\ \text{ Thus, } (p, p) \in \mathcal{R} \text{ for all statements } p. \\ \text{Symmetry: If } (p \equiv q), \text{ then } (q \equiv p). \\ \text{ Therefore, if } (p, q) \in \mathcal{R}, \text{ it follows that } (q, p) \in \mathcal{R}. \\ \text{Transitivity: If } (p \equiv q) \text{ and } (q \equiv r), \text{ then } (p \equiv r). \\ \text{ Hence, if } (p, q) \in \mathcal{R} \text{ and } (q, r) \in \mathcal{R}, \text{ it follows that } (p, r) \in \mathcal{R}. \quad\\ \text{Conclusion: } \mathcal{R} \text{ is an equivalence relation. } \end{gather*}
Block

(2)R={(A,B)∣A⊆B}( where A and B are sets)(2) \mathcal{R} = \{(A, B) \mid A \subseteq B\} (\text{ where } A \text{ and } B \text{ are sets})

Reflexivity: For any set A, it holds that A⊆A. Thus, (A,A)∈R.Symmetry: If A⊆B, it does not imply that B⊆A unless A=B. Therefore, (A,B)∈R does not guarantee (B,A)∈R.Transitivity: If A⊆B and B⊆C, then A⊆C. Hence, if (A,B)∈R and (B,C)∈R, it follows that (A,C)∈R.Conclusion: R is not an equivalence relation because it fails symmetry. \begin{gather*} \text{Reflexivity: For any set } A, \text{ it holds that } A \subseteq A. \\ \text{ Thus, } (A, A) \in \mathcal{R}. \\ \text{Symmetry: If } A \subseteq B, \text{ it does not imply that } B \subseteq A \text{ unless } A = B.\\ \text{ Therefore, } (A, B) \in \mathcal{R} \text{ does not guarantee } (B, A) \in \mathcal{R}. \\ \text{Transitivity: If } A \subseteq B \text{ and } B \subseteq C, \text{ then } A \subseteq C.\\ \text{ Hence, if } (A, B) \in \mathcal{R} \text{ and } (B, C) \in \mathcal{R}, \text{ it follows that } (A, C) \in \mathcal{R}. \\ \text{Conclusion: } \mathcal{R} \text{ is not an equivalence relation because it fails symmetry. } \quad \end{gather*}
Block

(3)R={(A,B)∣A=B}( where A and B are sets)(3) \mathcal{R} = \{(A, B) \mid A = B\} (\text{ where } A \text{ and } B \text{ are sets})

Reflexivity: For any set A, it holds that A=A. Thus, (A,A)∈R.Symmetry: If A=B, then B=A. Therefore, if (A,B)∈R, it follows that (B,A)∈R.Transitivity: If A=B and B=C, then A=C. Hence, if (A,B)∈R and (B,C)∈R, it follows that (A,C)∈R.Conclusion: R is an equivalence relation. \begin{gather*} \text{Reflexivity: For any set } A, \text{ it holds that } A = A. \text{ Thus, } (A, A) \in \mathcal{R}. \quad \\ \text{Symmetry: If } A = B, \text{ then } B = A.\\ \text{ Therefore, if } (A, B) \in \mathcal{R}, \text{ it follows that } (B, A) \in \mathcal{R}. \\ \text{Transitivity: If } A = B \text{ and } B = C, \text{ then } A = C. \\ \text{ Hence, if } (A, B) \in \mathcal{R} \text{ and } (B, C) \in \mathcal{R}, \text{ it follows that } (A, C) \in \mathcal{R}. \\ \text{Conclusion: } \mathcal{R} \text{ is an equivalence relation. } \end{gather*}
Block

(4)R={(a,b)∣a ⋮ b}( where a and b are positive integers)(4) \mathcal{R} = \{(a, b) \mid a\ \vdots\ b\} (\text{ where } a \text{ and } b \text{ are positive integers})

Reflexivity: For any positive integer a, it holds that a⋮a. Thus, (a,a)∈R.Symmetry: If a⋮b, it does not imply that b⋮a unless a=b. Therefore, (a,b)∈R does not guarantee (b,a)∈R.Transitivity: If a⋮b and b⋮c, then a⋮c holds true.Hence, if (a,b)∈R and (b,c)∈R, it follows that (a,c)∈R.Conclusion: R is not an equivalence relation because it fails symmetry. \begin{gather*} \text{Reflexivity: For any positive integer } a, \text{ it holds that } a \vdots a. \text{ Thus, } (a, a) \in \mathcal{R}. \quad \\ \text{Symmetry: If } a \vdots b, \text{ it does not imply that } b \vdots a \text{ unless } a = b. \\ \text{ Therefore, } (a, b) \in \mathcal{R} \text{ does not guarantee } (b, a) \in \mathcal{R}. \\ \text{Transitivity: If } a \vdots b \text{ and } b \vdots c, \text{ then } a \vdots c \text{ holds true.}\\ \text{Hence, if } (a, b) \in \mathcal{R} \text{ and } (b, c) \in \mathcal{R}, \text{ it follows that } (a, c) \in \mathcal{R}. \\ \text{Conclusion: } \mathcal{R} \text{ is not an equivalence relation because it fails symmetry. } \end{gather*}
Block

Work 33.

 is f:R→R a bijection in these cases:f(x)=−3x+4f(x)=−3x2+7f(x)=x+1x+2f(x)=x5+1f(x)=2x+1f(x)=x2+1f(x)=x3f(x)=x2+1x2+2\begin{gather*} \text{ is } \mathcal{f} : \mathbb{R} \rightarrow \mathbb{R} \text{ a bijection in these cases:} \\ \mathcal{f}(x) = -3x + 4 \\ \mathcal{f}(x) = -3x^2 + 7 \\ \mathcal{f}(x) = \frac{x + 1}{x + 2} \\ \mathcal{f}(x) = x^5 + 1 \\ \mathcal{f}(x) = 2x + 1 \\ \mathcal{f}(x) = x^2 + 1 \\ \mathcal{f}(x) = x^3 \\ \mathcal{f}(x) = \frac{x^2 + 1}{x^2} + 2 \\ \end{gather*}
Block

(1) f(x)=−3x+4\text{(1) } \mathcal{f}(x) = -3x + 4

Injectivity: Let f(x1)=f(x2).⇒−3x1+4=−3x2+4⇒−3x1=−3x2⇒x1=x2.Thus, f is injective.Surjectivity: For any y∈R, let y=−3x+4.⇒x=4−y3.Since y can take any value in R,f is surjective.Conclusion: f is a bijection.\begin{gather*} \text{Injectivity: Let } \mathcal{f}(x_1) = \mathcal{f}(x_2). \\ \Rightarrow -3x_1 + 4 = -3x_2 + 4 \\ \Rightarrow -3x_1 = -3x_2 \\ \Rightarrow x_1 = x_2. \\ \text{Thus, } \mathcal{f} \text{ is injective.} \\ \text{Surjectivity: For any } y \in \mathbb{R}, \text{ let } y = -3x + 4. \\ \Rightarrow x = \frac{4 - y}{3}. \\ \text{Since } y \text{ can take any value in } \mathbb{R}, \mathcal{f} \text{ is surjective.} \\ \text{Conclusion: } \mathcal{f} \text{ is a bijection.} \end{gather*}
Block

(2) f(x)=−3x2+7\text{(2) } \mathcal{f}(x) = -3x^2 + 7 \\

Injectivity: Let f(x1)=f(x2).⇒−3x12+7=−3x22+7⇒−3x12=−3x22⇒x12=x22⇒x1=x2 or x1=−x2.Thus, f is not injective.Conclusion: f is not a bijection.\begin{gather*} \text{Injectivity: Let } \mathcal{f}(x_1) = \mathcal{f}(x_2). \\ \Rightarrow -3x_1^2 + 7 = -3x_2^2 + 7 \\ \Rightarrow -3x_1^2 = -3x_2^2 \\ \Rightarrow x_1^2 = x_2^2 \\ \Rightarrow x_1 = x_2 \text{ or } x_1 = -x_2. \\ \text{Thus, } \mathcal{f} \text{ is not injective.} \\ \text{Conclusion: } \mathcal{f} \text{ is not a bijection.} \end{gather*}
Block

(3) f(x)=x+1x+2\text{(3) } \mathcal{f}(x) = \frac{x + 1}{x + 2}

Injectivity: Let f(x1)=f(x2).⇒x1+1x1+2=x2+1x2+2⇒(x1+1)(x2+2)=(x2+1)(x1+2)⇒x1x2+2x1+x2+2=x2x1+2x2+x1+2⇒2x1=2x2⇒x1=x2.Thus, f is injective.Surjectivity: For any y∈R,⇒y(x+2)=x+1⇒yx+2y=x+1⇒x(y−1)=1−2y⇒x=1−2yy−1.Since y can take any value in R except 1,f is not surjective.Conclusion: f is not a bijection.\begin{gather*} \text{Injectivity: Let } \mathcal{f}(x_1) = \mathcal{f}(x_2). \\ \Rightarrow \frac{x_1 + 1}{x_1 + 2} = \frac{x_2 + 1}{x_2 + 2} \\ \Rightarrow (x_1 + 1)(x_2 + 2) = (x_2 + 1)(x_1 + 2) \\ \Rightarrow x_1x_2 + 2x_1 + x_2 + 2 = x_2x_1 + 2x_2 + x_1 + 2 \\ \Rightarrow 2x_1 = 2x_2 \\ \Rightarrow x_1 = x_2. \\ \text{Thus, } \mathcal{f} \text{ is injective.} \\ \text{Surjectivity: For any } y \in \mathbb{R}, \\ \Rightarrow y(x + 2) = x + 1 \\ \Rightarrow yx + 2y = x + 1 \\ \Rightarrow x(y - 1) = 1 - 2y \\ \Rightarrow x = \frac{1 - 2y}{y - 1}. \\ \text{Since } y \text{ can take any value in } \mathbb{R} \text{ except } 1, \mathcal{f} \text{ is not surjective.} \quad \\ \text{Conclusion: } \mathcal{f} \text{ is not a bijection.} \end{gather*}
Block

(4) f(x)=x5+1\text{(4) } \mathcal{f}(x) = x^5 + 1

Injectivity: Let f(x1)=f(x2).⇒x15+1=x25+1⇒x15=x25⇒x1=x2.Thus, f is injective.Surjectivity: For any y∈R,⇒y=x5+1⇒x5=y−1⇒x=(y−1)1/5.Since y can take any value in R,f is surjective.Conclusion: f is a bijection.\begin{gather*} \text{Injectivity: Let } \mathcal{f}(x_1) = \mathcal{f}(x_2). \\ \Rightarrow x_1^5 + 1 = x_2^5 + 1 \\ \Rightarrow x_1^5 = x_2^5 \\ \Rightarrow x_1 = x_2. \\ \text{Thus, } \mathcal{f} \text{ is injective.} \\ \text{Surjectivity: For any } y \in \mathbb{R}, \\ \Rightarrow y = x^5 + 1 \\ \Rightarrow x^5 = y - 1 \\ \Rightarrow x = (y - 1)^{1/5}. \\ \text{Since } y \text{ can take any value in } \mathbb{R}, \mathcal{f} \text{ is surjective.} \\ \text{Conclusion: } \mathcal{f} \text{ is a bijection.} \end{gather*}
Block

(5) f(x)=2x+1\text{(5) } \mathcal{f}(x) = 2x + 1

Injectivity: Let f(x1)=f(x2).⇒2x1+1=2x2+1⇒2x1=2x2⇒x1=x2.Thus, f is injective.Surjectivity: For any y∈R,⇒y=2x+1⇒2x=y−1⇒x=y−12.Since y can take any value in R,f is surjective.Conclusion: f is a bijection.\begin{gather*} \text{Injectivity: Let } \mathcal{f}(x_1) = \mathcal{f}(x_2). \\ \Rightarrow 2x_1 + 1 = 2x_2 + 1 \\ \Rightarrow 2x_1 = 2x_2 \\ \Rightarrow x_1 = x_2. \\ \text{Thus, } \mathcal{f} \text{ is injective.} \\ \text{Surjectivity: For any } y \in \mathbb{R}, \\ \Rightarrow y = 2x + 1 \\ \Rightarrow 2x = y - 1 \\ \Rightarrow x = \frac{y - 1}{2}. \\ \text{Since } y \text{ can take any value in } \mathbb{R}, \mathcal{f} \text{ is surjective.} \\ \text{Conclusion: } \mathcal{f} \text{ is a bijection.} \end{gather*}
Block

(6) f(x)=x2+1\text{(6) } \mathcal{f}(x) = x^2 + 1

Injectivity: Let f(x1)=f(x2).⇒x12+1=x22+1⇒x12=x22⇒x1=x2 or x1=−x2.Thus, f is not injective.Conclusion: f is not a bijection.\begin{gather*} \text{Injectivity: Let } \mathcal{f}(x_1) = \mathcal{f}(x_2). \\ \Rightarrow x_1^2 + 1 = x_2^2 + 1 \\ \Rightarrow x_1^2 = x_2^2 \\ \Rightarrow x_1 = x_2 \text{ or } x_1 = -x_2. \\ \text{Thus, } \mathcal{f} \text{ is not injective.} \\ \text{Conclusion: } \mathcal{f} \text{ is not a bijection.} \end{gather*}
Block

(7) f(x)=x3\text{(7) } \mathcal{f}(x) = x^3

Injectivity: Let f(x1)=f(x2).⇒x13=x23⇒x1=x2.Thus, f is injective.Surjectivity: For any y∈R,⇒y=x3⇒x=y1/3.Since y can take any value in R,f is surjective.Conclusion: f is a bijection.\begin{gather*} \text{Injectivity: Let } \mathcal{f}(x_1) = \mathcal{f}(x_2). \\ \Rightarrow x_1^3 = x_2^3 \\ \Rightarrow x_1 = x_2. \\ \text{Thus, } \mathcal{f} \text{ is injective.} \\ \text{Surjectivity: For any } y \in \mathbb{R}, \\ \Rightarrow y = x^3 \\ \Rightarrow x = y^{1/3}. \\ \text{Since } y \text{ can take any value in } \mathbb{R}, \mathcal{f} \text{ is surjective.} \\ \text{Conclusion: } \mathcal{f} \text{ is a bijection.} \end{gather*}
Block

(8) f(x)=x2+1x2+2\text{(8) } \mathcal{f}(x) = \frac{x^2 + 1}{x^2} + 2

Injectivity: Let f(x1)=f(x2).⇒x12+1x12+2=x22+1x22+2⇒x12+1x12=x22+1x22⇒1+1x12=1+1x22⇒1x12=1x22⇒x12=x22⇒x1=x2 or x1=−x2.Thus, f is not injective.Surjectivity: For any y∈R,⇒y=x2+1x2+2⇒y−2=x2+1x2⇒y−2=1+1x2⇒y−3=1x2⇒x2=1y−3.For y>3, we get valid values for x, so f is surjective over (3,∞).Conclusion: f is not a bijection over R.\begin{gather*} \text{Injectivity: Let } \mathcal{f}(x_1) = \mathcal{f}(x_2). \\ \Rightarrow \frac{x_1^2 + 1}{x_1^2} + 2 = \frac{x_2^2 + 1}{x_2^2} + 2 \\ \Rightarrow \frac{x_1^2 + 1}{x_1^2} = \frac{x_2^2 + 1}{x_2^2} \\ \Rightarrow 1 + \frac{1}{x_1^2} = 1 + \frac{1}{x_2^2} \\ \Rightarrow \frac{1}{x_1^2} = \frac{1}{x_2^2} \\ \Rightarrow x_1^2 = x_2^2 \\ \Rightarrow x_1 = x_2 \text{ or } x_1 = -x_2. \\ \text{Thus, } \mathcal{f} \text{ is not injective.} \\ \text{Surjectivity: For any } y \in \mathbb{R}, \\ \Rightarrow y = \frac{x^2 + 1}{x^2} + 2 \\ \Rightarrow y - 2 = \frac{x^2 + 1}{x^2} \\ \Rightarrow y - 2 = 1 + \frac{1}{x^2} \\ \Rightarrow y - 3 = \frac{1}{x^2} \\ \Rightarrow x^2 = \frac{1}{y - 3}. \\ \text{For } y > 3, \text{ we get valid values for } x, \text{ so } \mathcal{f} \text{ is surjective over } (3, \infty). \quad \\ \text{Conclusion: } \mathcal{f} \text{ is not a bijection over } \mathbb{R}. \end{gather*}
Block

Work 37.

 Given functions: g:A→B and f:B→C prove that:(a) If g and f are injective, then f∘g is injective.(b) If g and f are surjective, then f∘g is surjective.(c) If f∘g is surjective, then f is surjective.(d) If f∘g is injective, then g is injective.(e) f∘g is bijective  ⟺  (g is surjective  ⟺  f is injective).\begin{gather*} \text{ Given functions: } \mathcal{g} : \mathbb{A} \rightarrow \mathbb{B} \text{ and } \mathcal{f} : \mathbb{B} \rightarrow \mathbb{C} \text{ prove that:} \\ \text{(a) } \text{If } \mathcal{g} \text{ and } \mathcal{f} \text{ are injective, then } \mathcal{f} \circ \mathcal{g} \text{ is injective.} \\ \text{(b) } \text{If } \mathcal{g} \text{ and } \mathcal{f} \text{ are surjective, then } \mathcal{f} \circ \mathcal{g} \text{ is surjective.} \\ \text{(c) } \text{If } \mathcal{f} \circ \mathcal{g} \text{ is surjective, then } \mathcal{f} \text{ is surjective.} \\ \text{(d) } \text{If } \mathcal{f} \circ \mathcal{g} \text{ is injective, then } \mathcal{g} \text{ is injective.} \\ \text{(e) } \mathcal{f} \circ \mathcal{g} \text{ is bijective} \iff (\mathcal{g} \text{ is surjective} \iff \mathcal{f} \text{ is injective}). \quad \end{gather*}
Block

(a) If g and f are injective, then f∘g is injective.\text{(a) } \text{If } \mathcal{g} \text{ and } \mathcal{f} \text{ are injective, then } \mathcal{f} \circ \mathcal{g} \text{ is injective.}

Let x1,x2∈A and assume that (f∘g)(x1)=(f∘g)(x2).⇒f(g(x1))=f(g(x2)).Since f is injective, we have g(x1)=g(x2).Since g is injective, we conclude that x1=x2.Thus, f∘g is injective.\begin{gather*} \text{Let } x_1, x_2 \in \mathbb{A} \text{ and assume that } (\mathcal{f} \circ \mathcal{g})(x_1) = (\mathcal{f} \circ \mathcal{g})(x_2). \quad\\ \Rightarrow \mathcal{f}(\mathcal{g}(x_1)) = \mathcal{f}(\mathcal{g}(x_2)). \\ \text{Since } \mathcal{f} \text{ is injective, we have } \mathcal{g}(x_1) = \mathcal{g}(x_2). \\ \text{Since } \mathcal{g} \text{ is injective, we conclude that } x_1 = x_2. \\ \text{Thus, } \mathcal{f} \circ \mathcal{g} \text{ is injective.} \end{gather*}
Block

(b) If g and f are surjective, then f∘g is surjective.\text{(b) } \text{If } \mathcal{g} \text{ and } \mathcal{f} \text{ are surjective, then } \mathcal{f} \circ \mathcal{g} \text{ is surjective.}

Let z∈C.Since f is surjective, there exists some y∈B such that f(y)=z.Since g is surjective, there exists some x∈A such that g(x)=y.⇒f(g(x))=z.Thus, for every z∈C, we have (f∘g)(x)=z.Therefore, f∘g is surjective.\begin{gather*} \text{Let } z \in \mathbb{C}. \\ \text{Since } \mathcal{f} \text{ is surjective, there exists some } y \in \mathbb{B} \text{ such that } \mathcal{f}(y) = z. \quad\\ \text{Since } \mathcal{g} \text{ is surjective, there exists some } x \in \mathbb{A} \text{ such that } \mathcal{g}(x) = y. \quad\\ \Rightarrow \mathcal{f}(\mathcal{g}(x)) = z. \\ \text{Thus, for every } z \in \mathbb{C}, \text{ we have } (\mathcal{f} \circ \mathcal{g})(x) = z. \\ \text{Therefore, } \mathcal{f} \circ \mathcal{g} \text{ is surjective.} \end{gather*}
Block

(c) If f∘g is surjective, then f is surjective.\text{(c) } \text{If } \mathcal{f} \circ \mathcal{g} \text{ is surjective, then } \mathcal{f} \text{ is surjective.}

Let z∈C.Since f∘g is surjective, there exists some x∈A such that (f∘g)(x)=z.⇒f(g(x))=z.Thus, for every z∈C, there is some y=g(x)∈B such that f(y)=z.Therefore, f is surjective.\begin{gather*} \text{Let } z \in \mathbb{C}. \\ \text{Since } \mathcal{f} \circ \mathcal{g} \text{ is surjective, there exists some } x \in \mathbb{A} \text{ such that } (\mathcal{f} \circ \mathcal{g})(x) = z. \quad\\ \Rightarrow \mathcal{f}(\mathcal{g}(x)) = z. \\ \text{Thus, for every } z \in \mathbb{C}, \text{ there is some } y = \mathcal{g}(x) \in \mathbb{B} \text{ such that } \mathcal{f}(y) = z. \\ \text{Therefore, } \mathcal{f} \text{ is surjective.} \end{gather*}
Block

(d) If f∘g is injective, then g is injective.\text{(d) } \text{If } \mathcal{f} \circ \mathcal{g} \text{ is injective, then } \mathcal{g} \text{ is injective.}

Let x1,x2∈A and assume that g(x1)=g(x2).⇒(f∘g)(x1)=f(g(x1))=f(g(x2))=(f∘g)(x2).Since f∘g is injective, we conclude that x1=x2.Therefore, g is injective.\begin{gather*} \text{Let } x_1, x_2 \in \mathbb{A} \text{ and assume that } \mathcal{g}(x_1) = \mathcal{g}(x_2). \\ \Rightarrow (\mathcal{f} \circ \mathcal{g})(x_1) = \mathcal{f}(\mathcal{g}(x_1)) = \mathcal{f}(\mathcal{g}(x_2)) = (\mathcal{f} \circ \mathcal{g})(x_2). \quad\\ \text{Since } \mathcal{f} \circ \mathcal{g} \text{ is injective, we conclude that } x_1 = x_2. \\ \text{Therefore, } \mathcal{g} \text{ is injective.} \end{gather*}
Block

(e) f∘g is bijective  ⟺  (g is surjective  ⟺  f is injective).\text{(e) } \mathcal{f} \circ \mathcal{g} \text{ is bijective} \iff (\mathcal{g} \text{ is surjective} \iff \mathcal{f} \text{ is injective}).

⇒:Suppose f∘g is bijective.Since f∘g is injective, by (d), we know that g is injective.Since f∘g is surjective, by (c), we know that f is surjective.⇒g is surjective   ⟺  f is injective.⇐:If g is surjective and f is injective, then by (a) and (b), f∘g is bijective.\begin{gather*} \text{} \Rightarrow \text{}: \text{Suppose } \mathcal{f} \circ \mathcal{g} \text{ is bijective.} \\ \text{Since } \mathcal{f} \circ \mathcal{g} \text{ is injective, by (d), we know that } \mathcal{g} \text{ is injective.} \\ \text{Since } \mathcal{f} \circ \mathcal{g} \text{ is surjective, by (c), we know that } \mathcal{f} \text{ is surjective.} \\ \Rightarrow \mathcal{g} \text{ is surjective } \iff \mathcal{f} \text{ is injective.} \\[10pt] \text{} \Leftarrow \text{}: \text{If } \mathcal{g} \text{ is surjective and } \mathcal{f} \text{ is injective, then by (a) and (b), } \mathcal{f} \circ \mathcal{g} \text{ is bijective.} \quad \end{gather*}
Block

Work 44.

For each of the following integer sequences, find a simple formulaor a method to find the next terms of the sequence. Assuming theformula you find is correct, find the next three terms of the sequence.(1)1,0,1,1,0,0,1,1,1,0,0,0,1,...(2)1,2,2,3,4,4,5,6,6,7,8,8,...(3)1,0,2,0,4,0,8,0,16,0,...(4)3,6,12,24,48,96,192,...(5)15,8,1,−6,−13,−20,−27,...(6)3,5,8,12,17,23,30,38,47,...(7)2,16,54,128,250,432,686,...(8)2,3,7,25,121,721,5041,40321,...\begin{gather*} \text{For each of the following integer sequences, find a simple formula} \\ \text{or a method to find the next terms of the sequence. Assuming the} \\ \text{formula you find is correct, find the next three terms of the sequence.} \quad\\[10pt] (1) 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, ... \\ (2) 1, 2, 2, 3, 4, 4, 5, 6, 6, 7, 8, 8, ... \\ (3) 1, 0, 2, 0, 4, 0, 8, 0, 16, 0, ... \\ (4) 3, 6, 12, 24, 48, 96, 192, ... \\ (5) 15, 8, 1, −6, −13, −20, −27, ... \\ (6) 3, 5, 8, 12, 17, 23, 30, 38, 47, ... \\ (7) 2, 16, 54, 128, 250, 432, 686, ... \\ (8) 2, 3, 7, 25, 121, 721, 5041, 40321, ... \\ \end{gather*}
Block
  • (1) 1, 1, 1.
  • (2) 9, 10, 10.
  • (3) 32, 0, 64.
  • (4) 384, 768, 1536.
  • (5) −34, −41, −48.
  • (6) 57, 68, 80.
  • (7) 1016, 1450, 1974.
  • (8) 362881, 3628801, 39916801.

Work 49.

Calculate these sums(1)∑k=100200k(2)∑k=99200k3(3)∑k=1020k2(k−3)\begin{gather*} \text{Calculate these sums} \\ (1) \sum_{k=100}^{200} k \\ (2) \sum_{k=99}^{200} k^3 \\ (3) \sum_{k=10}^{20} k^2(k-3) \\ \end{gather*}
Block
  • (1) 20100 - 4950 = 15150
  • (2) 404010000 - 23532201 = 380477799
  • (3) 35490 - 1170 = 34320

References:

  • “Duplicates does not change cardinality”.
  • “Cardinality: Comparing the size of sets”.
  • Winfried K. Grassman & Jean-Paul Tremblay, Logic and Discrete Mathematics: A Computer Science Perspective.
  • Ralph P. Grimaldi, Discrete and Combinatorial Mathematics: An Applied Introduction, 4th ed.
  • Richard Johnsonbaugh, Discrete Mathematics, 4th ed.
  • Bernard Kolman, Robert C. Busby, & Sharon Ross, Discrete Mathematical Structures for Computer Science, 3rd ed.
  • Edward Scheinerman, Mathematics: A Discrete Introduction, 2nd ed.