Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store
seo-qna
SearchIcon
banner

Give an example of a function which is:
(i) One-one but not onto
(ii) One-one and onto
(iii Neither one-one nor onto
(iv) Onto but not one-one

Answer
VerifiedVerified
525.9k+ views
2 likes
like imagedislike image
Hint:One-one function means every domain has distinct range i.e. mapping of elements of range and domain are unique. Mathematically, one-one is given for any function f(x) as if f(x1)=f(x2) then x1=x2,where x1,x2 domain of f(x).Onto function defined as every image (elements in range) has some pre-image in domain of the function. i.e. Range should belong to the co-domain of the function.Use the above definition and proceed to give examples for each part.

Complete step-by-step answer:
Here, we need to give an example of a function for all four parts of the problem. So, let us first understand the definition of one-one and onto function:-
One-one function:- One-one basically denotes the mapping of two sets, A function is one to one if every element of the range of that function corresponds to exactly one element of the domain of that function.
In brief, let us consider ‘f’ is a function whose domain is set A and mapped with unique element of set B, then ‘f’ is said to be one-one if for all x and y in set A :-
Whenever, f(x)=f(y) then x=y .
Where, f(x) and f(y) should lie in set B.
Onto function:- Onto function could be explained by considering two sets, A and set B which consists of elements, where, A is acting as domain and set B is range to which every element of A is mapped and if for every element of B there is at least one or more than one element matching with A, then the function is said to be on to functions.
Now, coming to the question:-

(i) Which is One=one but not on to:-
Let the function f:NN , given by f(x)=2x .
Let us consider two elements x1 and x2, in the domain of ‘f’. So’ we get –
f(x1)=2x1 and f(x2)=2x2.
Now, we know condition for one-one is given as –
f(x1)=2x1 and f(x2)=2x2.
Now, putting f(x1)=f(x2) , we get
f(x1)=f(x2)2x1=2x2x1=x2
Hence, the given function is One-one.
Now Let f(x)=y , such that yN
We get –
2x=yx=y2
Put y=1
x=12=0.5, which cannot be true as xN as supposed in solution.
Hence, the given function is not onto.
So, f(x)=2x is an example of One-one but not onto function.

(ii) One-one and onto:
Suppose f(x)=x , for x:RR
Calculate f(x1) and f(x2) as f(x1)=x1 , and f(x2)=x2 .
Now, equating f(x1) and f(x2) , we get
f(x1)=f(x2)x1=x2
Hence, f(x)=x for x:RR is a one-one function.
Now, suppose f(x)=y , where yR , x=y .
Now, for all yR,xR , as well. Hence, f(x)=x is onto function as well.
So, f(x)=x , given as x:RR is one-one and onto both.

(iii) Let function f:RR , given by f(x)=x2
Calculate f(x1):
f(x1)=x12f(x2):f(x2)=x22
Now, f(x1)=f(x2)
x12=x22x12x22=0
We know the algebraic identity of a2b2 can be given as –
a2b2=(ab)(a+b) ,
So, we get –
(x1x2)(x1+x2)=0 .
x1x2=0 or x1+x2=0 or x1=x2 or x1=x2.
Since, x, does not have a unique image as per the above statements, hence, it is not one-one.
Now, f(x)=x2
Let f(x)=y , such that yR .
y=x2x=±y
Put y=5 , we get –
x=±5
Where, x is not a real value. So, f(x)=x2 is not one-one and not onto as well for x:RR.

(iv) Let the function f:NN , given by f(1)=f(2)=1
Here, f(x)=f(2)=1 and f(x)=f(2)=1
Since, different elements 1 and 2 have the same image ‘1’. Hence, it cannot be a one-one function.
Let f(x)=y , such that yN .
Here, y is a natural number for every ‘y’, there is a value of x which is a natural number.
Hence, f is onto.
So, the function f:NN , given by f(1)=f(2)=1 is not one-one but onto.

Note: Another approach to get any function to be one, we can use graphical approach, means draw the curve y=f(x) as supposed in all the four option, if a line parallel to x cutting the graph at two or more points, then it will not be one-one. So, it can be another way as well.There are infinite examples of the functions asked in the problem. So, don’t confuse with the examples given in the problem, there are other examples as well.
We can verify whether any function is one-one by finding derivation of the function on f(x) as well, If f(x)>0 only or f(x)<0 only for the given domain then f(x) is one-one, otherwise f(x) will not be one-one.
Onto function means Range of the function should belong to the co- domain of the function, which is a key point of the onto function.