Introduction and Definition of a Function
In mathematics, a function is a fundamental concept that describes a specific type of relation between elements of two sets, typically called the domain and the codomain. A function associates each element in the domain with a unique element in the codomain, and it is often represented as a set of ordered pairs.
In mathematics, a function from a domain set to a codomain set is defined as follows:
- Each element in the domain set is associated with exactly one element in the codomain set
Here, ∃! denotes “there exists a unique.” - The set of ordered pairs such that is in the domain and is in the codomain defines the function
In simpler terms, a function takes an input from the domain, processes it in some way, and produces a unique output in the codomain for each input. The key characteristics of a function are that it must assign exactly one value to each element in the domain, and it must do so uniquely.
One-to-One (Injective) Function
An injective function, also known as a one-to-one function, is a type of function in mathematics that has the property that each distinct element in the domain is mapped to a distinct element in the codomain. In other words, for an injective function, no two different elements in the domain are assigned the same element in the codomain.
A function from a domain set to a codomain set is injective (one-to-one) if, for all distinct elements in the domain , their images under the function and in the codomain are also distinct:
In simpler terms, if you have two different inputs in the domain, they must produce two different outputs in the codomain. There is no “collapsing” or mapping of multiple domain elements to the same codomain element.
Injective functions are often depicted graphically as functions where no two distinct points in the domain map to the same point in the codomain. They are important in various areas of mathematics and have applications in many fields, including computer science, cryptography, and data analysis.
Onto (Surjective) Function
A surjective function, also known as an onto function, is a type of function in mathematics where every element in the codomain is mapped to by at least one element in the domain. In other words, a function is surjective if it covers the entire codomain, leaving no element without a pre-image in the domain.
A function from a domain set to a codomain set is surjective (onto) if, for every element in the codomain , there exists at least one element in the domain such that
In simpler terms, a surjective function ensures that there are no “leftover” elements in the codomain without a corresponding element in the domain. Every element in the codomain is the result of applying the function to at least one element in the domain.
Surjective functions are often depicted graphically as functions where the entire codomain is covered or “hit” by the function. They are important in various mathematical and practical contexts, including function composition and solving equations.