Give examples of two functions f:N→N and g:N→N such that g∘f is onto, but f is not onto.
Open in App
Solution
If f(x)=x+1 ang g(x)={x−1,ifx>11,ifx=1, then f:N→N is not onto. Range (f)=N−{1}≠ Co-domain of f Now, g∘f(x)=g(f(x))=g(x+1)=x+1−1=x. Clearly, g∘f, being identity funciton, is onto.