Exercise 1.2 · Q2: Injectivity and surjectivity of and
Check the injectivity and surjectivity of the following functions:
(i) given by
(ii) given by
(iii) given by
(iv) given by
(v) given by
(i) Let with . Then . As , . So is injective.
, but and for . So no has , and is not surjective.
Injective but not surjective.
(ii) , but . So is not injective. , but for all , so has no preimage. So is not surjective.
Neither injective nor surjective.
(iii) , but . So is not injective. , but for all , so has no preimage. So is not surjective.
Neither injective nor surjective.
(iv) Let with . Then , where . As , , so . So is injective.
, but and for . So has no preimage, and is not surjective.
Injective but not surjective.
(v) Let with . Again , where, completing the square,
If , then and . So in every case , and is injective.
, but the cubes of are , and for . So has no preimage, and is not surjective.
Injective but not surjective.
Want the reason behind every step, the basics and the checks?
Only two formulas appear, but there are five different functions, because the domain and codomain change. Two factorisations decide every injectivity question:
Squaring loses the sign, so it is one-one only when negative inputs are absent (on ); cubing keeps the sign, so it is one-one everywhere. Surjectivity fails in all five parts, each time for a value we can name: is not the square or cube of any whole number, and is not the square of anything.
- Given
- Five functions: with domain = codomain , , ; and with domain = codomain , .
- To find
- For each, whether it is injective (one-one) and whether it is surjective (onto), with proof.
- Plan
- First set up the two factorisations, valid for all real numbers. Then, part by part: (1) injective? prove it from for arbitrary inputs, or disprove with one explicit pair; (2) surjective? name a codomain value and prove nothing in the domain maps to it; (3) state the verdict.
Basics you need
means: inputs come from , outputs must lie in . The same formula with a different or is a different function and can behave differently. Basics: what a function is
Injective (one-one): for all in the domain. Surjective (onto): every in the codomain equals for some in the domain. Basics: one-one and onto
A "for all" claim is proved with arbitrary elements and disproved by one counterexample. So "not injective" needs one pair with equal images; "not surjective" needs one codomain value with no preimage, and a proof that it has none. Basics: how to prove and disprove
If for real numbers , then or . So if and , then . This turns a factorisation into a proof that .
For every real , : if it is a product of two non-negative numbers, and if it is a product of two negative numbers, which is positive. Also, if then and . Basics: integers, even and odd
Solution
Two factorisations used in every part
For all real numbers , expanding the right-hand sides gives
The second bracket of the cube identity can be rewritten by completing the square:
(Check: , and .) Both terms on the right are squares times non-negative numbers, so this bracket is always .
To test injectivity we assume , which means or . Factoring pulls out . If we can show the other bracket is not zero, the zero-product rule forces . If the other bracket can be zero for different inputs, that tells us exactly where to look for a counterexample. Doing this algebra once, for all reals, lets every part reuse it.Zero-product rule (Basic 4) and squares are non-negative (Basic 5).
Part (i): ,
It is a function from to
If , then is a product of natural numbers, so . Each input has exactly one square.
Outputs must lie in the codomain before onto can even be asked. Natural numbers are closed under multiplication.Injective? Yes
Let with . Then by Step 1 of the Solution,
Since and , we have , so . By the zero-product rule, , that is, . So is injective.
The only way two different numbers can have the same square is (the second bracket vanishing). In every number is positive, so can never be zero, and that escape route is closed.If and , then (Basic 4).Surjective? No: is not a square of a natural number
The number is in the codomain . Look for with :
- gives ;
- every other natural number has , so .
Every natural number falls into one of these two cases, and neither gives . So has no preimage, and is not surjective.
"Not onto" needs one specific codomain value and a proof that no input reaches it. Trying a few inputs is not a proof; splitting into "" and "" covers every natural number, so the argument is complete. (The squares skip ; any of these would do.)If then (Basic 5).Verdict for part (i)
Injective but not surjective.
Part (ii): ,
Injective? No: and have the same square
Both and are integers, and
So is not injective.
The factorisation shows equal squares happen when , that is, . In part (i) this was impossible, but contains negative numbers, so any pair with is a counterexample. One such pair is enough to disprove a "for all" claim.One counterexample disproves injectivity (Basic 3). Basics: how to prove and disproveSurjective? No: is not a square
The number is in the codomain . For every integer , (Basic 5), so . No integer is mapped to , and is not surjective.
Choosing a negative target makes the proof one line, because squares are never negative. (The value would also work: the argument of part (i) applies to , since and is , or at least .)Verdict for part (ii)
Neither injective nor surjective. Compare part (i): same formula, but allowing negative inputs destroys injectivity.
Part (iii): ,
Injective? No
, , but . So is not injective.
Enlarging the domain from to keeps the old counterexample available: and are still inputs. A pair that breaks injectivity on a smaller domain breaks it on any larger domain too.Surjective? No: is still unreached
is in the codomain, but for every real , so . Hence is not surjective.
Notice what changed from part (ii). Over , the value is reached (by ), and in fact every is reached (by ). So over only the negative values are missed, but missing even one is enough.
The graph of (scales differ); black dots mark integer inputs. The line meets the graph twice, at : not one-one on or . The line misses the graph: not onto on or . The line meets the graph only at , between the dots, so is reached over but not over or . The horizontal line test pictures both properties: one-one means no horizontal line at a codomain height meets the graph twice; onto means every such line meets it at least once. The textbook settles exactly this function in Example 11, using and the value , which has no real square root. Any negative number works.Squares of real numbers are (Basic 5). Example 11: onVerdict for part (iii)
Neither injective nor surjective.
Part (iv): ,
Injective? Yes
Let with . By Step 1 of the Solution,
Since , each of , , is at least , so the second bracket is at least , and in particular not zero. Hence , so and is injective.
We need an argument for all natural , and the factorisation supplies it: the difference of the cubes is times a bracket that is plainly positive for natural numbers. "It is obvious that different numbers have different cubes" is the claim we are asked to prove, so we cannot use it as a reason.If and then (Basic 4).Surjective? No: is not a cube of a natural number
is in the codomain . For : if , ; if , then . Every natural number is in one of these cases, so no has , and is not surjective.
The cubes of natural numbers are , which skip . The two-case split covers all of , which is what makes this a proof rather than a few trials.If then (Basic 5): multiply by positive numbers three times.Verdict for part (iv)
Injective but not surjective.
Part (v): ,
Injective? Yes, even with negative inputs
Let with . Then
There are two cases.
- . Then the zero-product rule gives , so .
- . is a sum of two non-negative terms, so both are zero: gives , and then gives . So again .
In both cases , so is injective.
In part (iv) the bracket was obviously positive because all numbers were positive. With negative integers allowed, can be negative, so we need a better reason: completing the square shows is a sum of non-negative terms and vanishes only when . Unlike the square, the cube keeps the sign (), so the pair does not collide.A sum of non-negative numbers is zero only if each of them is zero; here both terms are non-negative because squares are (Basic 5).Surjective? No: is not the cube of an integer
is in the codomain . Split the integers into two cases:
- : the cubes are , none equal to ;
- : then , so is or , and cannot be .
So no integer has cube , and is not surjective.
The graph of (scales differ); black dots mark the integer inputs , with heights . The graph always rises, so every horizontal line meets it at most once: one-one. The line meets it at , which lies strictly between the dots at and , so no integer (and no natural number) has cube . The case split or covers every integer, so the argument is complete. It also explains part (iv), which is the special case of positive inputs. Over the answer would change: every real has a real cube root , so is onto (and one-one, by the same factorisation), hence bijective. The integers simply have gaps between consecutive cubes.Verdict for part (v)
Injective but not surjective. Compare part (ii): over , the square fails one-one but the cube passes, because cubing keeps the sign.
| Part | Function | Injective? | Surjective? |
|---|---|---|---|
| (i) | Yes | No ( unreached) | |
| (ii) | No () | No ( unreached) | |
| (iii) | No () | No ( unreached) | |
| (iv) | Yes | No ( unreached) | |
| (v) | Yes | No ( unreached) |
(Textbook answers: (i) injective but not surjective; (ii) neither; (iii) neither; (iv) injective but not surjective; (v) injective but not surjective. All agree.)
Squares of : , all different, and are skipped. Squares of : , with repeats. Cubes of : , all different, and is skipped. A computer check over all integers from to confirms: the cubes are all different, the squares take only different values, no square is negative, and neither appears as a square or as a cube.
- Giving one answer for "". Parts (i), (ii), (iii) are three different functions; (i) is injective, the others are not.
- Saying on is not onto "because has no preimage". Over , is a preimage. You must pick a value that really is missed, such as .
- "Different numbers have different cubes, obviously." That is the statement to be proved. Use the factorisation and show the second bracket is non-zero (or deal with the case where it is zero).
- Checking a few inputs and concluding "not onto". You must show every input misses the chosen value, for example by splitting into and .
- Injectivity of a polynomial: write as and study when the something can be zero.
- Shrinking the domain can create injectivity ( on ); enlarging the domain can destroy it ( on ).
- Surjectivity depends on the codomain: is onto but not onto or , and misses every negative number.
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| ; | Solution Step 1; parts (i), (ii), (iv), (v) | Algebraic identities (expand to check) |
| Part (v) | Completing the square | |
| Zero-product rule | Parts (i), (iv), (v) | Property of real numbers |
| for real ; powers preserve order on positive numbers | Parts (i) to (v) | Order properties of real numbers |
| Definitions of one-one (injective) and onto (surjective) | All parts | Definitions 5 and 6, Section 1.3 (Lesson: types of functions) |
| is neither one-one nor onto | Part (iii) | Example 11, Section 1.3 |
| All numerical values and graph coordinates | Check, figures | Recomputed in the site's verification script |
Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →