Example 25: is not onto
Consider the identity function defined as . Show that although is onto but defined as is not onto.
is onto: For every , , so is the image of . Thus is onto.
is not onto: . Take . If , then . So 3 has no pre-image in . Thus is not onto.
Hence is onto but is not onto.
Want the reason behind every step, the basics and the checks?
Being onto is not preserved by adding functions. The identity hits every natural number, because each is its own preimage. But adding the identity to itself doubles every value, and doubling a natural number always gives an even number. So odd numbers such as 3 are never reached, and one unreached element of the codomain is enough to show a function is not onto.
- Given
- , the identity , and the sum , both from to .
- To show
- (a) is onto. (b) is not onto.
- Plan
- (1) Prove (a) by producing a preimage for an arbitrary . (2) Understand how the sum of two functions is defined, and check really lands in . (3) Prove (b) with one counterexample: an element of the codomain with no preimage. (4) Describe exactly which elements are missed.
Basics you need
is onto if every equals for at least one . To prove it, take an arbitrary and construct . To disprove it, find one that no reaches. Basics: one-one and onto
, : every element is sent to itself. Basics: what a function is
For , the sum is the function defined pointwise: for each . (Class XI, Relations and Functions.)
is even when for some integer , and odd otherwise. No number is both, so an odd number is never of the form with a whole number. Basics: integers, even and odd
"Onto" is a claim about every element of the codomain. A single element that fails is enough to show the claim is false. Basics: proving and disproving
Solution
is onto
Take any (the codomain). We need an (the domain) with . Choose . It is a natural number, and
Since was arbitrary, every element of the codomain has a preimage, so is onto.
The textbook says "clearly is onto"; this step spells out why. To prove onto we must handle every , so we use a letter that could be any natural number and find its preimage explicitly. For the identity the preimage is itself.Onto: for each in the codomain there is an in the domain with (Definition 6, Basic 1).What the function is
By the pointwise definition of a sum (Basic 3), for each ,
So is the "doubling" function. It does map into : if is a natural number then so is . A few values:
1 2 3 4 5 … 2 4 6 8 10 … Before testing "onto", we must know exactly what the function does and confirm that its outputs lie in the stated codomain . The sum of functions is defined value by value, so adding the identity to itself just adds to at each point.(Basic 3). The sum of two natural numbers is a natural number, so .is not onto: the number 3 is never reached
Take , which is in the codomain . Is there an with ? Solving the equation,
This is the only number satisfying , and it is not a natural number. So no in the domain has . One element of the codomain has no preimage, hence is not onto.
To disprove onto we need just one element of the codomain that is missed (Basic 5). Solving finds the only possible candidate for a preimage, so once that candidate is ruled out, no preimage exists at all. The candidate fails because it is not in the domain : the domain matters as much as the formula.Dividing both sides of by 2 is reversible, so is the unique solution. lies strictly between 1 and 2, so it is not a natural number.Exactly which numbers are missed
Every output is even, so every odd natural number is missed: 1, 3, 5, 7, … . And every even number is reached, by . So the range of is the set of even natural numbers, a proper part of the codomain .
Each input sends one arrow to . The arrows only ever land on even numbers. Every odd number, including 3, is left without an arrow, so the function is not onto . The textbook needs only one missed element, but seeing all of them explains the failure: doubling can only produce even numbers. Note that 1 is missed too (the smallest output is ), so the number 1 would have served equally well as the counterexample.An odd number is never (a natural number) (Basic 4). The range of a function is the set of outputs actually reached; "onto" means range = codomain.Conclude
is onto (Step 1), but is not onto (Step 3). So adding two onto functions can produce a function that is not onto.
This is the point of the example: properties like "onto" belong to a function as a whole and need not survive arithmetic on functions. The same doubling function is studied on its own in Example 8, where it is shown to be one-one but not onto on . On instead of it would be onto, because would then be allowed (Example 9).
is onto, since every is . But , which sends to , is not onto: the element of the codomain would need . In fact it misses every odd number.
The values run . The site's verification script confirms that 3 is not among them, that no odd number below 1000 is among them, and that every even number below 1000 is (as ). Near 3 the outputs jump from straight to , skipping 3.
- Accepting . The domain is ; a preimage must be a natural number.
- Thinking the sum of onto functions must be onto. This example shows it fails, even when both summands are the same onto function.
- Proving onto for with examples. "" for a few values is not a proof; use an arbitrary .
- Confusing one-one with onto. is one-one (); it is the onto property that fails.
- To show a function is not onto, name one element of the codomain and show that the equation has no solution in the domain.
- Whether a function is onto depends on the domain and codomain, not just the formula: is onto but not onto .
- Sums of functions are defined pointwise, and they can lose properties the summands had. Example 26 shows the same for one-one.
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| Onto (surjective) | Steps 1, 3, 5 | Definition 6, Section 1.3 (Lesson: types of functions) |
| Identity function | Steps 1, 2 | Given in the question; also used in Section 1.4 |
| Sum of functions | Step 2 | Class XI, Relations and Functions; stated in the question |
| Step 3 | Algebra; | |
| Odd numbers are never , | Step 4 | Definition of even and odd |
| Missed and reached values | Step 4, Check | Checked over large samples 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 →