Welcome back. In the previous lesson, induction proved an infinite family of claims by establishing a base case and a general implication from to . This lesson uses the same proof discipline in a different setting: a bijection claim is not a single intuition such as “the formula has an inverse.” It is the conjunction of two precise statements, each with its own quantifiers and proof strategy.
We will learn to prove that a function is injective and surjective, then combine those proofs to establish bijectivity. The key theme is that the declared domain and codomain are part of the function, not decoration.
Two ways a function can succeed
Let
be a function. Every element of is assigned exactly one output in . The questions of injectivity and surjectivity ask about the reverse direction: how do elements of arise from inputs in ?
A function is injective (or one-to-one) when distinct inputs cannot collide at the same output. Formally,
Equivalently, the contrapositive says
Thus, an injectivity proof usually begins by assuming two outputs are equal and then uses algebra or definitions to force the inputs to be equal.
A function is surjective (or onto) when every element of the stated codomain is actually attained:
The order of the quantifiers matters. You begin with an arbitrary target , then construct an input , which may depend on that chosen .
A function is bijective precisely when it is both injective and surjective. In a bijection, every element of the codomain comes from exactly one input.
Read the three diagrams carefully:
- In the injection diagram, no green dot receives two arrows, but one green dot is unused.
- In the surjection diagram, every green dot receives at least one arrow, but two orange dots share an output.
- In the bijection diagram, every green dot receives exactly one arrow.
For finite sets, this provides a quick visual test. For functions on infinite sets or functions given by formulas, however, a proof must work with the definitions.
One-to-One, Onto, Inverse Functions
Read the relevant parts of this Runestone discrete mathematics text for concise proof templates for injection and surjection, then its definition of bijection.
Begin with Definition 7.2.1 and “Proving a Function is One-to-One.” Read through the arrow-diagram example. Focus on the standard equality-based proof method and the counterexample needed to disprove injectivity; the text notes that the contrapositive viewpoint can also guide your thinking. Then read Definition 7.2.6 and “Proving a Function is Onto,” including the not-onto arrow diagram. Notice the contrast between “no repeated outputs” and “no output missed.” In the explanatory paragraph, follow the range-codomain distinction. Finally, locate Definition 7.2.17, which defines a one-to-one correspondence, and read the short discussion immediately following it. The example begins with the linear function; use it to confirm that “bijection” means proving both properties, not merely checking one.
The proof obligations are different
Because the definitions have different quantifier structures, injectivity and surjectivity cannot be proved by the same opening move.
| Property | Start with | What you must produce |
|---|---|---|
| Injective | Arbitrary and | A derivation of |
| Surjective | Arbitrary | A specific satisfying |
| Bijective | A complete injectivity proof and a complete surjectivity proof | The conclusion that both conditions hold |
For a formula, surjectivity often begins with useful scratchwork: solve the equation
for . That algebra suggests a possible preimage. But a finished proof has two further duties:
- Verify that your proposed lies in the domain.
- Substitute it back and verify that its image is the arbitrary target .
The domain and codomain can completely change the answer. Consider the same formula in two settings:
As a function
it is bijective. Given any , the input
is a real number and satisfies .
But as a function
it remains injective while failing to be surjective. For example, has no integer preimage, since
would require
which is not an integer. The formula did not change; the permissible inputs did.
This distinction is especially important in number theory, where a proposed preimage may be rational or real but not integral.
A complete bijection proof
Consider the function
defined by
We will prove that is bijective.
Before proving the two main properties, notice that the rule really does land in the stated codomain. If , the denominator is nonzero. Also, cannot equal , since
would imply
which is impossible. Thus , as required.
Injectivity
Let , and suppose
By the definition of ,
Because and , cross-multiplication is valid:
Expanding both sides gives
Subtracting yields
Therefore,
so is injective.
The proof did not begin by declaring . Instead, it assumed equal outputs and established equal inputs, exactly matching the definition.
Surjectivity
Let
be arbitrary. We seek such that
Solving this equation in scratchwork gives
Now use this as the candidate preimage:
Since , the denominator is nonzero, so is a real number. Moreover,
which is nonzero. Hence , and therefore
It remains to check that this input reaches the selected target:
Thus every has a preimage in the domain. Therefore is surjective.
Since is both injective and surjective, it is bijective.
Why this proof works
The surjectivity calculation uncovered more than existence: for each target , it found the only possible preimage,
Injectivity ensures that no second input can map to the same . Together, the two parts justify defining an inverse function
by
For now, regard an inverse as a useful consequence and a source of scratchwork. The essential proof of bijectivity remains the two-part argument above; simply writing down a plausible inverse formula is not a substitute for checking that it is well-defined and truly reverses the function.
A final proof-writing checklist is worth keeping:
- Write the full function declaration. Include both domain and codomain.
- Check that the formula lands in the codomain, if this is not automatic.
- Prove injectivity using arbitrary domain elements with equal outputs.
- Prove surjectivity using an arbitrary codomain target and a constructed preimage.
- Verify domain membership of that proposed preimage.
- Conclude explicitly: “Therefore is injective and surjective, hence bijective.”
Key takeaways
An injective function has no output collisions:
A surjective function misses no element of its stated codomain:
A bijection requires both properties. In a formal proof, injectivity is normally an equality argument, while surjectivity is a construction argument: begin with an arbitrary target, solve for a candidate preimage, show that it belongs to the domain, and verify that it maps to the target.
This completes the foundational proof-methods module. Next, the course turns to divisibility and the division algorithm, where the same habits of precise definitions and carefully chosen constructions will reappear.
Can't find a good explanation? Sign up and we'll make it for you
Sign up