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

Give an example of a function
(i) which is one-one but not onto
(ii) which is not one-one but onto
(iii) which is neither one-one nor onto

Open in App
Solution

(i) which is one-one but not onto.

f: Z → Z given by f(x)=3x+2

Injectivity:
Let x and y be any two elements in the domain (Z), such that f(x) = f(y).
f(x)=f(y)
3x + 2 =3y + 2
3x = 3y
x = y
f(x) = f(y) x = y
So, f is one-one.

Surjectivity:
Let y be any element in the co-domain (Z), such that f(x) = y for some element x in Z (domain).
f(x) = y
3x + 2 = y
3x = y - 2

x = y-23. It may not be in the domain (Z) because if we take y = 3,x = y-23 = 3-23 = 13∉ domain Z.
So, for every element in the co domain there need not be any element in the domain such that f(x) = y.
Thus, f is not onto.

(ii) which is not one-one but onto.
f: Z → N {0} given by f(x) = |x|

Injectivity:
Let x and y be any two elements in the domain (Z), such that f(x) = f(y).
|x| = |y|
x= ± y
So, different elements of domain f may give the same image.
So, f is not one-one.

Surjectivity:
Let y be any element in the co domain (Z), such that f(x) = y for some element x in Z (domain).
f(x) = y
|x| = y
x = ± y, which is an element in Z (domain).
So, for every element in the co-domain, there exists a pre-image in the domain.
Thus, f is onto.

(iii) which is neither one-one nor onto.

f: Z → Z given by f(x) = 2x2 + 1

Injectivity:
Let x and y be any two elements in the domain (Z), such that f(x) = f(y).
fx = fy2x2+1 = 2y2+12x2 = 2y2x2 = y2x = ±y
So, different elements of domain f may give the same image.
Thus, f is not one-one.

Surjectivity:
Let y be any element in the co-domain (Z), such that f(x) = y for some element x in Z (domain).
f(x) = y
2x2+1=y2x2=y-1x2=y-12x=±y-12, Z always.For example, if we take, y = 4,x=±y-12=±4-12=±32, ∉ ZSo, x may not be in Z (domain).

Thus, f is not onto.

flag
Suggest Corrections
thumbs-up
1
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Conjugate of a Matrix
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon