Function Created 2026-09-24 Updated 2026-10-14
A function assigns exactly one output in the specified codomain to each input in its domain of a function . Its rule may be a formula, a finite table, or another unambiguous assignment. The outputs actually reached form its image of a function . A codomain states where outputs are allowed; the image of a function records where they actually land. Oscar Levin's introduction makes this distinction explicit. [ref].
For example, , , has the entire real line as its domain of a function and codomain, but its image of a function is . Both and give the output : several inputs sharing an output is permitted. Assigning two distinct outputs to one input is not permitted. A partial function can be undefined at some elements of a larger specified source set; an ordinary function on must be defined at every element of .
Three properties describe how a function uses its target. An injective function never sends distinct inputs to the same output. A surjective function reaches every member of its specified codomain. A bijection does both, pairing each source element with exactly one target element. These are different requirements, as finite arrow diagrams show.
Figure 1.
Injective, surjective and bijective functions have different output patterns
. Every source element has exactly one outgoing arrow. Left: an injective function from three elements to four leaves one target unused. Middle: a surjective function from four elements to three reaches every target but merges two inputs. Right: a bijection pairs three source elements with three targets, allowing every arrow to be reversed uniquely. Details.
The chosen codomain matters even when the formula does not change. The function from to is not surjective, whereas the same rule from to is surjective. Both fail injectivity. Further restricting the domain of a function to makes it a bijection onto , with square root as its inverse function.
Functions make transformations composable: if and , their function composition is . Identifying each intermediate codomain prevents attempting to feed an output into a rule that is not defined there. When a transformation is a bijection, an inverse function recovers the original input without ambiguity. This is useful whenever information must be transported or a calculation reversed.
Functional Created 2026-09-24 Updated 2026-09-24
A functional is a function whose inputs are themselves functions, curves, or other elements of a function space.
Functional analysis Created 2026-09-24 Updated 2026-10-14
Functional analysis brings linear algebra and topology together to study vector spaces of functions and the linear operators acting on them. A function space such as has infinitely many independent directions: the monomials are linearly independent. Finite linear combinations alone cannot describe all its continuous functions. A useful theory must also say when approximations converge, whether their limits belong to the chosen space, and which operations preserve that norm convergence. Normed vector spaces, Banach spaces, and bounded linear operators provide these three controls.[ref]
A bounded linear operator between normed vector spaces satisfies for every , with one finite constant . The least possible constant is its operator norm. By linearity, the same estimate controls approximation errors:
This is exactly continuity for a linear map between normed vector spaces; neither space needs to be complete. It turns an input accuracy guarantee into an output accuracy guarantee, even when the input has infinitely many degrees of freedom.[ref]
For a concrete linear functional on , take the integral . In the supremum norm,
The constant function attains equality, so . For , the output is ; any approximation with therefore has . The Cauchy-Schwarz inequality also gives on this interval, again with equality at . Thus integration remains a bounded linear functional under the L2 norm, although point evaluation behaves very differently.
The beauty of this viewpoint is that one estimate can justify an entire approximation procedure. Once a sequence converges in the chosen norm, every bounded linear operator carries its limit along. Completeness ensures that Cauchy approximations actually describe an element of the space. The choice of norm matters: it determines which errors are small and which measurements are stable. The examples below distinguish an average, which ignores sufficiently narrow peaks, from point evaluation, which detects their full height. For applications, this decides whether reducing an overall fitting error guarantees an accurate reported measurement. A small L2 norm of the error controls its integral on this interval, while it gives no such guarantee for a single sampled value.
Functional equation Created 2026-09-24 Updated 2026-09-28
A functional equation specifies a function through an identity involving values of that function at several arguments.
Function class Created 2026-09-29 Updated 2026-10-14
A function class is a set whose elements are functions, usually sharing a common domain of a function and codomain.
Function collision Created 2026-10-06 Updated 2026-10-14
A function collision is a pair of distinct inputs with . An injective function has no collisions. For a two-to-one function every nonempty fiber has two elements and hence one unordered collision pair. Finding such a pair through an oracle is the task of quantum collision finding.
In the finite example under image and preimage of a function, the pair is a function collision: both inputs give zero. The function retains their shared output but loses the distinction between them. If a finite set has more inputs than the number of available outputs, the pigeonhole principle forces a function collision. Equal source and target cardinalities alone do not prevent one.
For a finite function, let be the cardinality of its fiber of a function over . The number of unordered function collisions is , because each pair must lie in one common fiber. The example's nonempty fiber sizes are , giving exactly one collision pair.
Function composition Created 2026-09-24 Updated 2026-10-14
For functions and , their function composition is , defined by . The rightmost function is applied first. Matching the intermediate codomain and domain of a function makes the expression well-defined.
For self-maps of the real numbers, take and . Then , whereas . Thus function composition need not be commutative. It does have the associative property: both and evaluate to whenever each intermediate codomain matches the next domain of a function. The identity function leaves composition unchanged, making self-maps particularly useful as a monoid of transformations.
Function in extension 2026-10-07
A function in extension is a function specified by its domain and the value at each input in that domain. Distinct functions in intension can have this same extension. Properties of the extension of an arbitrary program are semantic properties, to which Rice theorem applies when the property is nontrivial.
Function input 2026-10-14
A function input to a function is an element of its domain of a function , also called its argument. The corresponding function output is .
Function output 2026-10-14
A function output is the value assigned by a function to a function input . It belongs to the codomain ; all such function outputs together form the image of a function .
Function space 2026-10-05
A function space is a collection of functions with common domain and codomain, often supplied with a vector space structure and a norm or topology. Examples include L2 spaces and Sobolev spaces.
Functor Created 2026-09-24 Updated 2026-10-14
A functor assigns an object of a category to each object and a categorical morphism to each arrow . It preserves the rules for composing arrows:
For example, the forgetful functor from the category of groups to the Category of sets keeps the underlying sets and maps of elements while forgetting the group operations. A group homomorphism remains a function, and composing the underlying functions gives the underlying map of the composite group homomorphism.
Another example sends a set to its power set . It sends a function to the function defined by , the image of the subset . For and , the subset goes to and then ; applying the composite directly also gives . The equality of these routes expresses preservation of composition in a category.