(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
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).
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
Thus, f is not onto.