Check the injectivity and surjectivity of the following functions:
(i) given by
(ii) given by
(iii) given by
(iv) given by
(v) given by
Confirming your payment
Exercise 1.2 · Question 2 of 12
Check the injectivity and surjectivity of the following functions:
(i) given by
(ii) given by
(iii) given by
(iv) given by
(v) given by
Throughout, injective means one-one and surjective means onto. The squaring rule and the cubing rule behave differently, and the same rule behaves differently on and on , so each part must be checked separately.
(i) ,
Injective. Let with . Then . Since and are natural numbers, , so the other factor must vanish: . Hence is injective.
Not surjective. Take in the co-domain . There is no natural number with , because and , and increases as increases. So has no pre-image.
is injective but not surjective.
(ii) ,
Not injective. Now the domain contains negative integers, and while . Two different inputs share an image.
Not surjective. Take . No integer squares to . (A negative target such as fails too, since a square is never negative.)
is neither injective nor surjective.
(iii) ,
Not injective. but .
Not surjective. Take . For every real we have , so has no real solution and has no pre-image.
is neither injective nor surjective.

The dashed line in the picture is the horizontal line test: on the line meets the curve twice, at and , which is exactly the failure of injectivity in (ii) and (iii); the whole lower half-plane is untouched by the curve, which is the failure of surjectivity.
(iv) ,
Injective. If , then taking cube roots (cubing is strictly increasing, so it is reversible) gives . Hence is injective.
Not surjective. Take in the co-domain . Since and , no natural number cubes to .
is injective but not surjective.
(v) ,
Injective. Again gives . Unlike squaring, cubing keeps the sign, so and are no longer a problem: and are different.
Not surjective. Take . No integer cubes to : the cubes near it are and .
is injective but not surjective.

A horizontal line meets the cubic exactly once, which is why cubing is one-one on every one of these domains.
The five verdicts together:
| Part | Function | Injective? | Surjective? |
|---|---|---|---|
| (i) | on | Yes | No ( is missed) |
| (ii) | on | No () | No ( is missed) |
| (iii) | on | No () | No ( is missed) |
| (iv) | on | Yes | No ( is missed) |
| (v) | on | Yes | No ( is missed) |
None of the five is a bijection.