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,x2A and assume (gf)(x1)=(gf)(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, gf is injective.

b)
Proof. We work directly.

Assume gf 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 yC. Since gf is surjective, there exists an xA such that (gf)(x)=y. By the definition of composition, g(f(x))=y. Let b=f(x), where bB because f maps from A to B. Therefore, g(b)=y. Since y was an arbitrary element in C and we found a bB such that g(b)=y, g is surjective.

E 26.2
The composition of fidA is defined that for each element aA, (fidA)(a)=f(idA(a)). Since idA(a)=a for each aA, 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 aA, it follows that fidA=f.

Therefore, fidA=f.

E 26.3
Disproof.
Define the function f:AB. 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:BC. 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 gf:AC. 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 gf is not surjective, as there is no element in A that maps to y in C through gf. This disproves the statement.

E 26.4
Disproof.
Define the function g:RR as g(x)=x2. Define the function f:RR as f(x)=x. We see that g(f(x))=x2=x. Let x1,x2R. 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 gf is injective then g is injective is false.

E 26.5
Let f:AB and g:BC be bijective functions. Per Theorem 26.12, since f and g are both bijective, gf is bijective. By theorem 26.15, (gf)1 is a function since gf is bijective. We want to show that for every element cC, (gf)1(c)=(f1g1)(c). Let cC. Since g is bijective, there exists a unique bB such that g(b)=c. Similarly, as f is bijective, there exists a unique aA such that f(a)=b. By the definition of function composition, (gf)(a)=g(f(a))=g(b)=c. Since gf is bijective, its inverse function, (gf)1, will map c back to a, so (gf)1(c)=a. Also, g1(c)=b and f1(b)=a, so (f1g1)(c)=f1(g1(c))=f1(b)=a. Therefore, for every cC, (gf)1(c)=(f1g1)(c), proving that (gf)1=f1g1.

E 26.6
Fix f:R5R3 given by

f(x)=3x+1x5

Proof.

(Injective)
Let a1,a2R5. Assume f(a1)=f(a2). We find

3a1+1a15=3a2+1a25(3a1+1)(a25)=(3a2+1)(a15)3a1a2+a215a15=3a1a2+a115a2516a1=16a2a1=a2

So f is injective.

(Surjective)

Let bR{3}. Define a=5b+1b3. We see that

f(a)=3a+1x5=3(5b+1b3)+15b+1b35=15b+3b3+15b+1b35=16bb316b3=16b16=b

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

Since f is surjective and injective, f is bijective.

f1(y)=5y+1y3

E 26.7
a) f1={(2,1),(3,2),(1,3)}
b) ff={(1,3),(2,1),(3,2)}
c) fff={(1,1),(2,2),(3,3)}
d) The function fn will be: