26 - Composition of Functions

!Screenshot 2023-11-10 at 2.07.56 PM.png
!Screenshot 2023-11-10 at 2.12.40 PM.png
!Screenshot 2023-11-10 at 2.13.07 PM.png
!Screenshot 2023-11-10 at 2.36.16 PM.png
!Screenshot 2023-11-10 at 2.38.30 PM.png
!Screenshot 2023-11-10 at 2.39.27 PM.png
!Screenshot 2023-11-10 at 2.40.54 PM.png



HW 26

Ben Finch

E 26.1
a)
Proof.
Assume f and g are injective. By definition, a function h is injective if for all elements x1 and x2 in the domain of h, h(x1)=h(x2)⟹x1=x2. Let x1,x2∈A and assume (g∘f)(x1)=(g∘f)(x2). By the definition of composition, g(f(x1))=g(f(x2)). Since g is injective, f(x1)=f(x2). And since f is also injective, x1=x2. Thus, g∘f is injective. ◻

b)
Proof. We work directly.

Assume g∘f is surjective. By definition, a function h is surjective if for every element y in the codomain of h, there exists an element x in the domain of h such that h(x)=y. Let y∈C. Since g∘f is surjective, there exists an x∈A such that (g∘f)(x)=y. By the definition of composition, g(f(x))=y. Let b=f(x), where b∈B because f maps from A to B. Therefore, g(b)=y. Since y was an arbitrary element in C and we found a b∈B such that g(b)=y, g is surjective. ◻

E 26.2
The composition of f∘idA is defined that for each element a∈A, (f∘idA)(a)=f(idA(a)). Since idA(a)=a for each a∈A, we can substitute this into the composition, getting f(idA(a))=f(a). Since f(a) is the result of applying f directly to each element a∈A, it follows that f∘idA=f.

Therefore, f∘idA=f. ◻

E 26.3
Disproof.
Define the function f:A→B. Let A={1,2} and B={a,b}. Define f such that f(1)=a and f(2)=a. Note that f is not surjective since no element in A is mapped to b in B.
Define the function g:B→C. Let C={x,y}. Define g such that g(a)=x and g(b)=y. g is surjective because every element in C is a second component in g. Defines g∘f:A→C. For 1 in A, g(f(1))=g(a)=x. For 2 in A, g(f(2))=g(a)=x. In this composition, no element of A is mapped to y in C. Thus, even though g is surjective, the composition g∘f is not surjective, as there is no element in A that maps to y in C through g∘f. This disproves the statement. ◻

E 26.4
Disproof.
Define the function g:R→R as g(x)=x2. Define the function f:R→R as f(x)=x. We see that g(f(x))=x2=x. Let x1,x2∈R. Assume that g(f(x1))=g(f(x2)). This gives us:

x1=x2

Therefore, g(f(x)) is injective. Take z=1 and y=−1. Then g(−1)=g(1)=1. So g(x) is not injective. Therefore, the implication that if g∘f is injective then g is injective is false. ◻

E 26.5
Let f:A→B and g:B→C be bijective functions. Per Theorem 26.12, since f and g are both bijective, g∘f is bijective. By theorem 26.15, (g∘f)−1 is a function since g∘f is bijective. We want to show that for every element c∈C, (g∘f)−1(c)=(f−1∘g−1)(c). Let c∈C. Since g is bijective, there exists a unique b∈B such that g(b)=c. Similarly, as f is bijective, there exists a unique a∈A such that f(a)=b. By the definition of function composition, (g∘f)(a)=g(f(a))=g(b)=c. Since g∘f is bijective, its inverse function, (g∘f)−1, will map c back to a, so (g∘f)−1(c)=a. Also, g−1(c)=b and f−1(b)=a, so (f−1∘g−1)(c)=f−1(g−1(c))=f−1(b)=a. Therefore, for every c∈C, (g∘f)−1(c)=(f−1∘g−1)(c), proving that (g∘f)−1=f−1∘g−1. ◻

E 26.6
Fix f:R−5→R−3 given by

f(x)=3x+1x−5

Proof.

(Injective)
Let a1,a2∈R−5. Assume f(a1)=f(a2). We find

3a1+1a1−5=3a2+1a2−5(3a1+1)(a2−5)=(3a2+1)(a1−5)3a1a2+a2−15a1−5=3a1a2+a1−15a2−5−16a1=−16a2a1=a2

So f is injective.

(Surjective)

Let b∈R−{3}. Define a=5b+1b−3. We see that

f(a)=3a+1x−5=3(5b+1b−3)+15b+1b−3−5=15b+3b−3+15b+1b−3−5=16bb−316b−3=16b16=b

Hence, for every b∈R−{3}, we have found an a∈R (specifically a=5b+1b−3) such that f(a)=b. Therefore, f is surjective.

Since f is surjective and injective, f is bijective. ◻

f−1(y)=5y+1y−3

E 26.7
a) f−1={(2,1),(3,2),(1,3)}
b) f∘f={(1,3),(2,1),(3,2)}
c) f∘f∘f={(1,1),(2,2),(3,3)}
d) The function fn will be: