Bijection
A function is bijective when it pairs every element of with exactly one element of and every element of with exactly one element of — a perfect one-to-one matching. Bijection is the conjunction of two simpler properties: injective (“one-to-one”) and surjective (“onto”). It’s worth seeing each on its own first, then the combination.
Throughout, denotes a function with domain (the set of allowed inputs) and codomain (the set in which outputs are declared to live). The image of is the subset of that is actually hit:
The image can be a proper subset of the codomain — declaring to map into doesn’t oblige it to cover .
Injective (one-to-one)
A function is injective (or one-to-one) if distinct inputs always produce distinct outputs:
equivalently, by contrapositive:
No two different elements of get collapsed to the same element of .
Each arrow lands on a different target. Injectivity says nothing about whether every element of gets hit — the unmapped element on the right is still allowed.
on is injective: if then . So is on . But on is not injective: .
Surjective (onto)
A function is surjective (or onto) if every element of the codomain is hit by at least one input:
equivalently, — the image equals the entire codomain.
Every element on the right has at least one arrow pointing to it. Multiple inputs are allowed to land on the same output (the topmost target receives two arrows) — surjectivity only demands coverage, not uniqueness.
on is surjective: every real number has a cube root . But on is not surjective: no produces or . (It becomes surjective if we restrict the codomain to .)
Surjectivity depends on what we declare the codomain to be. Restricting to the image trivially makes any function surjective. So “is surjective?” is really a question about whether the declared codomain matches the image.
Bijective (both)
A function is bijective if it is both injective and surjective: every element of is hit by exactly one element of .
A bijective function is also called a bijection or a one-to-one correspondence.
Each element on the left is paired with exactly one element on the right, and vice versa — no collisions, no leftovers.
The defining property of a bijection is that it admits an inverse function : for every there is a unique with , and the assignment is itself a function. The two compose to the identity in both directions:
Conversely, a function that has a two-sided inverse is bijective. So “bijection” and “invertible function” name the same concept.
on is bijective, with inverse . So is on , with inverse .
as a map is bijective, with inverse . As a map , it is injective but not surjective, so not bijective.