wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Give examples of two functions f : N → N and g : N → N, such that gof is onto but f is not onto.

Open in App
Solution

Let us consider a function f : N → N given by f(x) = x +1 , which is not onto.
[This not onto because if we take 0 in N (co-domain), then,
0=x+1
x=-1N]

Let us consider g : N → N given by
g x=x-1, if x>11, if x=1Now, let us find gof xCase 1: x>1gof x=g f x=g x+1=x+1-1=xCase 2: x=1gof x=g f x=g x+1=1From case-1 and case-2, gof x=x, xN, which is an identity function and, hence, it is onto.

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Cartesian Product
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon