No two land together
One-one (injective) functions.
Roll numbers
Fifty students each get a roll number. f(student) = roll number.
Can two different students get the same roll number?
What this lesson covers
The idea
f : X → Y is one-one if distinct elements of X have distinct images, i.e. f(x₁) = f(x₂) implies x₁ = x₂; otherwise f is many-one.
Roll numbers
Fifty students each get a roll number. f(student) = roll number.
Can two different students get the same roll number?
- Yes
- No
Separate the arrows
Two arrows of f land on the same element. Tap an element of X, then the element of Y it should go to, until no two arrows meet.
One-one
f : X → Y is one-one (injective) if distinct elements of X have distinct images: f(x₁) = f(x₂) implies x₁ = x₂. Otherwise f is many-one.
The roll number function is one-one: different students, different roll numbers. So is f(x) = 2x from N to N: 2x₁ = 2x₂ gives x₁ = x₂.
Notes
One-one: f(x₁) = f(x₂) ⇒ x₁ = x₂. No two arrows land on the same element.
Check yourself
f : R → R, f(x) = x². Is f one-one?
To prove f one-one, which is the right start?
X = {1, 2, 3} and Y = {a, b}. Can any f : X → Y be one-one?
- Yes, because each x has one square. Every function gives each x one image. One-one asks that different x give different images: f(1) = f(−1) = 1.
- Yes, because x² ≥ 0. That is about the range. f(2) = f(−2) = 4 shows two inputs meeting.
- No, because f(1) = f(−1) — correct. Right. 1 ≠ −1, yet both go to 1.
- Suppose f(x₁) = f(x₂) and show x₁ = x₂ — correct. Yes, that is the definition used as a test.
- Suppose x₁ = x₂ and show f(x₁) = f(x₂). That is true of every function. One-one goes the other way.
- Show every y has an x. That is the test for onto, not one-one.
- No — correct. Right. Three arrows into two elements: two of them must land together.
- Yes. Try it: 1, 2 and 3 need three different images, but Y has only two elements.