Check the injectivity and surjectivity of the following functions:
(i) f : N → N given by f(x) = x²
(ii) f : Z → Z given by f(x) = x²
(iii) f : R → R given by f(x) = x²
(iv) f : N → N given by f(x) = x³
(v) f : Z → Z given by f(x) = x³