Question
Question: Give an example of a function which is: (i) One-one but not onto (ii) One-one and onto (iii Ne...
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
Solution
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:N→N , 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