A bijective function, or bijection, is a function that is both injective and surjective. It establishes a one-to-one correspondence between two sets: every element of the target set is the image of exactly one element of the source set. Bijections provide the basic criterion for two sets to have the same size and characterize functions that can be reversed without ambiguity. (math.mit.edu)
Definition and terminology
Let be a function, with domain and codomain . The function is bijective precisely when
where means “there exists exactly one.” This combines two requirements:
- Injectivity: if , then . Distinct inputs never have the same output.
- Surjectivity: for every , some satisfies . Every element of the codomain is reached. (jirka.org)
Bijectivity depends on the specified domain and codomain, not merely on a formula. For example, is not bijective from the real numbers to themselves: opposite nonzero inputs have equal outputs, and negative numbers are not reached. Restricting both sets to makes the same formula bijective. This illustrates why the codomain must be distinguished from the set of outputs actually attained. (jirka.org)
Inverse functions and composition
A function is bijective if and only if it has a two-sided inverse function , satisfying
Here is the identity function. Surjectivity guarantees that an input can be recovered for every element of ; injectivity guarantees that the recovered input is unique. Consequently, the inverse exists, is unique, and is itself bijective. (jirka.org)
For example, , defined by , has inverse
Substituting either formula into the other returns the original argument, establishing both inverse identities.
Bijections are also preserved by function composition. If and are bijective, then is bijective, with
The reversed order reflects the need to undo the last operation first. (jirka.org)
Finite sets and permutations
For finite sets, a bijection exists exactly when the sets have the same number of elements. Moreover, if and are finite and equally large, any injective function is automatically surjective, and any surjective function is automatically injective. Thus either condition suffices in this particular setting. (web.cecs.pdx.edu)
A bijection from a set to itself is called a permutation. An -element set has permutations, where denotes the factorial: the successive images can be chosen in ways. This includes the empty set, which has one permutation, consistent with . (web.cecs.pdx.edu)
Cardinality and infinite sets
In set theory, two sets have equal cardinality precisely when a bijection exists between them. This definition extends the comparison of sizes beyond finite counting. For instance, taking the natural numbers to be , the function
is bijective. Its inverse sends each even number to . Therefore, an infinite set can have the same cardinality as a proper subset of itself. (people.csail.mit.edu)
The finite equivalence between injectivity and surjectivity fails for infinite sets. The map from to itself is injective but misses . A countably infinite set is one that admits a bijection with ; the existence of such a correspondence, rather than the appearance of the elements, determines countable infinitude. (people.csail.mit.edu)
Bijective proofs
In combinatorics, a bijective proof establishes that two collections have equal size by constructing an explicit bijection. Such a proof explains the equality through a reversible correspondence rather than only through numerical calculation. (math.mit.edu)
For example, subsets of correspond bijectively to binary strings of length : position contains exactly when belongs to the subset. Reading the positions containing reverses the construction. Since each position has two choices, the power set of an -element set contains elements. (math.mit.edu)
Additional mathematical structure
Bijectivity concerns the underlying sets; preserving additional structure requires further conditions. In linear algebra, a bijective linear map between vector spaces is a linear isomorphism. For a square matrix over a field, the associated linear map is bijective exactly when the matrix is invertible, equivalently when its determinant is nonzero. (people.math.carleton.ca)
In topology, a continuous bijection need not have a continuous inverse. A homeomorphism requires continuity in both directions. An important sufficient condition is that a continuous bijection from a compact space onto a Hausdorff space is a homeomorphism. (web.math.ucsb.edu)