Injective is about collisions
Two different inputs may never share an output. To refute it, name the two inputs; the contrapositive x ≠ y → f(x) ≠ f(y) says the same thing.
Injective means distinct inputs get distinct outputs; surjective means the image fills the codomain; bijective is both. On finite sets of equal size the two properties imply each other, and on infinite sets they do not.
Core ideas
Each property is a quantified sentence, and each is refuted by naming a specific collision or a specific gap.
Two different inputs may never share an output. To refute it, name the two inputs; the contrapositive x ≠ y → f(x) ≠ f(y) says the same thing.
Every element of the codomain must be hit. To refute it, name the element nothing maps to. It depends on the codomain, so it is not a property of the formula alone.
Injective and surjective imply each other when |A| = |B| is finite. On infinite sets they come apart, and that failure defines infinity.
The material
Definitions, how to prove and refute each, and the finite/infinite split.
f : A → B is injective (one-to-one) when f(x) = f(y) ⟹ x = y for all x, y ∈ A. Equivalently, x ≠ y ⟹ f(x) ≠ f(y).
f : A → B is surjective (onto) when for every b ∈ B there is some a ∈ A with f(a) = b — equivalently, when the image equals the codomain.
f is bijective when it is both injective and surjective. A bijection pairs the elements of A with those of B so that nothing is left over on either side.
The two definitions are stated in the two directions that make them usable. Injectivity is proved by assuming f(x) = f(y) and deriving x = y — a direct proof. Surjectivity is proved by taking an arbitrary b and constructing an a that maps to it — an existence proof, and usually the harder of the two.
f : ℝ → ℝ, f(x) = x²: neither — f(2) = f(−2) breaks injectivity, and nothing maps to −1. f : [0,∞) → ℝ: injective, not surjective. f : ℝ → [0,∞): surjective, not injective. f : [0,∞) → [0,∞): bijective. The formula never changed.
Let A and B be finite with |A| = |B|, and f : A → B. Then f is injective if and only if it is surjective.
If f is injective, its image has |A| distinct elements, all inside B. Since |B| = |A| and B is finite, the image is all of B, so f is surjective.
If f is surjective, every one of the |B| elements of B needs at least one preimage; with only |A| = |B| inputs available, each gets exactly one, so no two inputs collide and f is injective.
□
If f : A → B is injective then |A| ≤ |B|; if surjective then |A| ≥ |B|; if bijective then |A| = |B|. For finite sets these are the pigeonhole principle of “The Pigeonhole Principle”.
So the answer is sometimes settled before any function is examined. With |A| = 5 and |B| = 3 no injection exists, whatever the rule; with |A| = 3 and |B| = 5 no surjection does. The lab reports this before letting you hunt.
On infinite sets the equivalence fails, and the failure is the definition of infinity. f : ℕ → ℕ with f(n) = n + 1 is injective and not surjective — nothing maps to 0 — even though the domain and codomain are the same set. A set is infinite exactly when it admits an injection to a proper subset of itself.
Interactive
Built by hand, classified by counting
Method
Check the sizes first; they often settle it.
|A| > |B| rules out injective; |A| < |B| rules out surjective. Both are free and both are conclusive.
Derive x = y by algebra. If the derivation needs a case split or fails, look for the collision instead.
Take an arbitrary b in the codomain and construct a preimage. If the construction leaves the domain, f is not surjective.
The colliding pair, or the unhit element. "Not injective" without the pair is an assertion, not an answer.
Both directions, written out.
Note that |ℤ| = |ℤ| here and injectivity still did not give surjectivity. The finite theorem above genuinely needs finiteness, and this is the counterexample.
Classify f : ℤ → ℤ with f(n) = n² − n, giving either a proof or a specific witness for each property. (f(0) = f(1) = 0, which settles one of them immediately.)
Something to change about this lesson? Write it down, tick it off when it is handled, and export the list when you want to act on it. Kept in this browser only: nothing is sent anywhere, and nobody is notified.
No recommendations yet for this lesson.