In higher level math courses, functions are often categorized in three different ways.
- One-to-one: Each element of the domain is paired with exactly one unique element of the range. In other words, this type of function would pass a horizontal line test. The formal name for this type of function is .
- Onto: Every element in the range must be paired with at least one element of the domain. The formal name for this type of function is .
- Both: Each element of the domain is paired with exactly one element of the range and each element in the range is paired with exactly one element in the domain. The formal name for this type of function is .
Our function is onto because each element in the range pairs with at least one element in the domain. It is not one-to-one because multiple values in the domain point to the same values in the range.