To provide an example of a function that is onto but not one-to-one, consider the function .
The function is defined as follows:
Onto:
For any in the codomain , there exists at least one in the domain such that . For instance, for , , and for, showing that is onto.
Not One-to-One:
The function is not one-to-one because multiple elements in the domain can map to the same element in the codomain. For example, both and , violating the one-to-one property.
Thus, the function serves as an example of a function that is onto but not one-to-one from to .
8.8m questions
11.4m answers