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=mB=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 3A3 \in A and 1B1 \in B, by definition:

0<m20<n3\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,AB=A(AB)b,A(BA)=ABc,A(BA)=d,AA=e,A=Af,AB=BA\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, AB=A(AB)A \cap B = A \setminus (A \setminus B)

RHS: A(AB)A(AB)A(AB)A(AB) (De Morgan’s Laws)(AA)(AB) (Distributive Laws)AB= 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(BA)=ABA \cup (B \setminus A) = A \cup B \\

LHS: A(BA)A(BA)(AB)(AA) (Distributive Laws)AB= 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(BA)=A \cap (B \setminus A) = \emptyset

LHS: A(BA)A(BA)(AA)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, AA=A \triangle A = \emptyset

LHS: AA(AA)(AA)= 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: AA(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, AB=BAA \triangle B = B \triangle A

LHS: AB(AB)(BA)(BA)(AB) (Commutative Laws)BA= 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,AC=BCb,AC=BCc,AC=BC AND AC=BC\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, AC=BCA \cup C = B \cup C

Let: xAxACxBC(AC=BC)(xB)(xC)=TAssume: xCxBxBxAAB(1)Let: yByBCyAC(AC=BC)(yA)(yC)=TAssume: yCyAyAyBBA(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, AC=BCA \cap C = B \cap C

Let: xAxACxCxBC(AC=BC)(xB)(xC)=TxBxAAB(1)Let: yByBCxCyAC(AC=BC)(yA)(yC)=TyAyBBA(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, (AC=BC)(AC=BC)(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)pq} p, q are Statements(2)R={(A,B)AB} 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)pq}( 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 (pp). Thus, (p,p)R for all statements p.Symmetry: If (pq), then (qp). Therefore, if (p,q)R, it follows that (q,p)R.Transitivity: If (pq) and (qr), then (pr). 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)AB}( 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 AA. Thus, (A,A)R.Symmetry: If AB, it does not imply that BA unless A=B. Therefore, (A,B)R does not guarantee (B,A)R.Transitivity: If AB and BC, then AC. 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 aa. Thus, (a,a)R.Symmetry: If ab, it does not imply that ba unless a=b. Therefore, (a,b)R does not guarantee (b,a)R.Transitivity: If ab and bc, then ac 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:RR 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+43x1=3x2x1=x2.Thus, f is injective.Surjectivity: For any yR, let y=3x+4.x=4y3.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+73x12=3x22x12=x22x1=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+22x1=2x2x1=x2.Thus, f is injective.Surjectivity: For any yR,y(x+2)=x+1yx+2y=x+1x(y1)=12yx=12yy1.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+1x15=x25x1=x2.Thus, f is injective.Surjectivity: For any yR,y=x5+1x5=y1x=(y1)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+12x1=2x2x1=x2.Thus, f is injective.Surjectivity: For any yR,y=2x+12x=y1x=y12.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+1x12=x22x1=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=x23x1=x2.Thus, f is injective.Surjectivity: For any yR,y=x3x=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+2x12+1x12=x22+1x221+1x12=1+1x221x12=1x22x12=x22x1=x2 or x1=x2.Thus, f is not injective.Surjectivity: For any yR,y=x2+1x2+2y2=x2+1x2y2=1+1x2y3=1x2x2=1y3.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:AB and f:BC prove that:(a) If g and f are injective, then fg is injective.(b) If g and f are surjective, then fg is surjective.(c) If fg is surjective, then f is surjective.(d) If fg is injective, then g is injective.(e) fg 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 fg 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,x2A and assume that (fg)(x1)=(fg)(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, fg 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 fg 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 zC.Since f is surjective, there exists some yB such that f(y)=z.Since g is surjective, there exists some xA such that g(x)=y.f(g(x))=z.Thus, for every zC, we have (fg)(x)=z.Therefore, fg 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 fg 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 zC.Since fg is surjective, there exists some xA such that (fg)(x)=z.f(g(x))=z.Thus, for every zC, 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 fg 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,x2A and assume that g(x1)=g(x2).(fg)(x1)=f(g(x1))=f(g(x2))=(fg)(x2).Since fg 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) fg 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 fg is bijective.Since fg is injective, by (d), we know that g is injective.Since fg 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), fg 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(k3)\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.