A function is a method of converting an input to an output. A simple function would output whatever it receives as input.
Most commonly the letter is used to represent the input variable. This is helpful because can represent the entire domain of inputs and act as an easily manipulatable object.
Functions are commonly notated with a letter followed by parenthesis containing the variable they use, then the function definition.
Here the letter is , the variable is , and the definition is . The most common letter to name a single function is , but there is no strict requirement as such. There is also no limit to the amount of variables that a function can have as an input. The following are also valid functions.
Definition of a Function
If are sets, the function is a mapping that assigns members of to an element .
When discussing the sets that exist around a function , there are three generally accepted sets:
- The domain
- The codomain
- The range (or image) The domain is the set of all possible inputs to the function, and the codomain is the set of all possible outputs of the function. The range is the set of all outputs that the function will actually output, which if the function is surjective is the same as the codomain.
Inverse Functions
Functions are widely thought of as transforming input into output. The inverse process of this would be transforming output into input. Not every function has an inverse.
Said mathematically, if a function maps to , then the inverse function, if it exists, maps to .
Injective Functions
A function is injective, or one-to-one, if it guarantees that each output has a unique input. The function is injective because each output has a unique input, but the function is not injective because there is more than one input for a given output.
Definition
Suppose . The function is considered injective if
There are some alternate phrasings of this statement as well. By the contrapositive:
With the use of negation:
Surjective Functions
A function is surjective, or onto, if every element of the codomain is able to be output by the function.
A function is called surjective, or onto, if
This guarantees that the entire codomain is covered.
Bijective Functions
A function is called bijective if it is both one-to-one and onto.
Sources, Courses, and External Resources
- Pierce, Rod. “Domain, Range and Codomain” Math Is Fun. Ed. Rod Pierce. 12 Dec 2025. 15 Aug 2026 https://www.mathsisfun.com/sets/domain-range-codomain.html