Question:

Give examples of two functions f : N\(\to\) Z and g : Z\(\to\) Z such that g o f is injective but g is not injective.
(Hint: Consider f(x)=x and g (x= IxI )

Updated On: Aug 26, 2023
Hide Solution
collegedunia
Verified By Collegedunia

Solution and Explanation

Define f : N \(\to\) Z as f(x) = x and g : Z \(\to\) Z as g(x) = \(\mid x \mid\) . 
We first show that g is not injective. 
It can be observed that: 
g(-1)=I-1I=1.
g(1) =I1I=1.
∴ g(−1) = g(1), but −1 ≠ 1.
∴ g is not injective.
Now, gof: N \(\to\) Z is defined as gof (x)=g(f(x))=g(x)=IxI.
Let x, y ∈ N such that gof(x) = gof(y).
\(\Rightarrow\) IxI=IyI.
Since x and y ∈ N, both are positive.
Therefore IxI=IyI \(\Rightarrow\) x=y
Hence, gof is injective

Was this answer helpful?
0
0