One-One (Injective) Functions
On this page· 13 sections
Source & scope. Class 12 Mathematics, Chapter 1 Relations and Functions, Section 1.3 Types of Functions, Definition 5 (the one-one half). Builds on: Function — Definition and the named functions from Class 11 Chapter 2. Next: Many-One Functions (the negation of this property); Onto (Surjective) Func...
Source & scope. Class 12 Mathematics, Chapter 1 Relations and Functions, Section 1.3 Types of Functions, Definition 5 (the one-one half). Builds on: Function — Definition and the named functions from Class 11 Chapter 2. Next: Many-One Functions (the negation of this property); Onto (Surjective) Functions.
A function f : X → Y is one-one (or injective) if the images of distinct elements of X under f are distinct — that is, for every x₁, x₂ ∈ X, f(x₁) = f(x₂) implies x₁ = x₂. Equivalently, no two different inputs are ever allowed to produce the same output.
At a glance
- Definition 5 (one-one half): f is one-one if x₁ ≠ x₂ in X always gives f(x₁) ≠ f(x₂) — or, in the contrapositive and more exam-useful form, f(x₁) = f(x₂) ⟹ x₁ = x₂.
- One-one is also called injective, and such a function is called an injection.
- In NCERT's Fig 1.2, functions f₁ and f₄ are one-one; f₂ and f₃ are not (they are many-one, the subject of the next article).
- Algebraic one-one proofs follow one fixed template: assume f(x₁) = f(x₂), then show this forces x₁ = x₂ using ordinary algebra.
- One-one alone does not guarantee onto — f(x) = 2x on N is one-one but not onto, as the sibling onto-functions article shows.
Learning objectives
- State Definition 5 (one-one half) precisely, in both its direct and contrapositive forms.
- Prove a given function is one-one using the standard "assume equal images, derive equal inputs" method.
- Identify one-one functions from an arrow diagram (NCERT Fig 1.2 style).
- Recognise that one-one is a property to be proved, not assumed, and that it can fail for functions built from otherwise well-behaved pieces (e.g. a sum of two one-one functions).
Prerequisite knowledge
The reader should already know the basic function vocabulary (domain, codomain, image) from Class 11 Chapter 2, and be comfortable with simple named functions such as the identity function (see Identity Function), modulus function, and signum function, since these recur as examples across this chapter.
Core explanation
Definition 5 — the one-one condition
NCERT states: a function f : X → Y is defined to be one-one (or injective) if the images of distinct elements of X under f are distinct, i.e., for every x₁, x₂ ∈ X, f(x₁) = f(x₂) implies x₁ = x₂. A function that is not one-one is called many-one (covered in the sibling article).
The practical, exam-ready way to prove a function one-one is always the same three-step template:
- Assume f(x₁) = f(x₂) for some x₁, x₂ in the domain.
- Use algebra (or case analysis) to simplify this equation.
- Show the simplification forces x₁ = x₂. If it does, f is one-one.
Reading one-one off an arrow diagram
NCERT's Fig 1.2 shows four functions f₁, f₂, f₃, f₄ from a set X to a set Y by arrows. In f₁, every element of X points to a different element of Y — no two arrows land on the same target, so f₁ is one-one. f₄ likewise sends every element of X to a distinct element of Y and is also one-one (f₄ is in fact bijective, covered in the Bijective Functions article). By contrast, in f₂ and f₃ at least two distinct elements of X share an arrow into the same element of Y — these are many-one and are examined in the sibling article.
Example 7 — roll numbers of 50 students (one-one half)
Let X be the set of 50 students of Class X in a school and f : X → N be the function defined by f(x) = the roll number of student x. Two different students can never be assigned the same roll number — by the very way roll numbers are allotted, distinct students get distinct roll numbers. So if f(x₁) = f(x₂) (two students have the same roll number), it must be that x₁ = x₂ (they are, in fact, the same student). Hence f is one-one. (NCERT additionally shows this f is not onto, since N has far more elements than the 50 roll numbers actually used — that half belongs to the onto-functions article.)
Example 8 — f : N → N, f(x) = 2x
Assume f(x₁) = f(x₂). Then 2x₁ = 2x₂, and dividing both sides by 2 gives x₁ = x₂. Since f(x₁) = f(x₂) forced x₁ = x₂, f is one-one.
Example 9 — f : R → R, f(x) = 2x
The algebra is identical even though the domain is now all of R rather than N: assume f(x₁) = f(x₂), so 2x₁ = 2x₂, hence x₁ = x₂. So f is one-one on R as well. (NCERT shows this particular f is also onto on R, which is why it becomes the running example for Bijective Functions.)
Example 12 — f : N → N, f(x) = x + 1 if x is odd, x − 1 if x is even (one-one half)
This piecewise rule needs a careful case split because f(x₁) = f(x₂) can be satisfied in three structurally different ways, and all three must be checked.
Case 1: x₁, x₂ both odd. Then f(x₁) = x₁ + 1 and f(x₂) = x₂ + 1. If these are equal, x₁ + 1 = x₂ + 1, so x₁ = x₂ directly.
Case 2: x₁, x₂ both even. Then f(x₁) = x₁ − 1 and f(x₂) = x₂ − 1. Equality gives x₁ − 1 = x₂ − 1, so x₁ = x₂ directly.
Case 3: one odd, one even — say x₁ odd and x₂ even. Then f(x₁) = x₁ + 1 is even (odd plus 1), while f(x₂) = x₂ − 1 is odd (even minus 1). An even number can never equal an odd number, so f(x₁) = f(x₂) is actually impossible in this mixed case — it never arises, so there is nothing to force; the case simply cannot produce a counterexample to one-one-ness.
Since in every case where f(x₁) = f(x₂) genuinely holds, x₁ = x₂ follows, f is one-one. (This same function is also onto, making it the key worked example for Bijective Functions.)
Key terms
- One-one (injective) function — a function in which distinct domain elements always have distinct images; f(x₁) = f(x₂) ⟹ x₁ = x₂.
- Injection — another name for a one-one function.
- Many-one function — any function that is not one-one (covered in the sibling article).
- Contrapositive test — proving x₁ ≠ x₂ ⟹ f(x₁) ≠ f(x₂) is logically equivalent to proving f(x₁) = f(x₂) ⟹ x₁ = x₂; either form is an acceptable proof.
Diagram / figure guidance
Draw NCERT's Fig 1.2 style arrow diagram for f₁: set X with elements on the left, set Y with elements on the right, and arrows from each element of X landing on a different element of Y (some elements of Y may be left with no incoming arrow — that affects onto-ness, not one-one-ness). Caption it "No two arrows share a head — f₁ is one-one."
Worked example
Show that f : R → R defined by f(x) = 3x − 7 is one-one.
Step 1. Assume f(x₁) = f(x₂) for some x₁, x₂ ∈ R.
Step 2. Then 3x₁ − 7 = 3x₂ − 7.
Step 3. Adding 7 to both sides: 3x₁ = 3x₂. Dividing both sides by 3: x₁ = x₂.
Conclusion. Since f(x₁) = f(x₂) always forces x₁ = x₂, f(x) = 3x − 7 is one-one on R.
Common misconceptions
- "A function 'looks' one-one from its formula, so no proof is needed." A proof is always required — appearance is not evidence; the standard assume-and-derive argument above is the actual justification.
- "If a function is one-one, it must also be onto." False in general — f : N → N, f(x) = 2x (Example 8) is one-one but not onto, since no odd number in N has a preimage. (On a finite set, one-one and onto do coincide — see the sibling finite-set article.)
- "The sum of two one-one functions is always one-one." Not true. NCERT's Example 26 exhibits f(x) = sin x and g(x) = cos x, each one-one on [0, π/2], whose sum (f + g)(x) = sin x + cos x is not one-one on that interval (it takes the value 1 at both x = 0 and x = π/2). The full argument is worked through in the sibling article on sums of functions — the lesson here is that one-one-ness must be checked for the combined function itself, not inferred from its parts.
- "One-one only needs to be checked by plugging in a couple of numbers." A genuine proof must work for arbitrary x₁, x₂ in the domain (via algebra or case analysis), not just a few sample checks — sample checks can only disprove one-one-ness (by finding a counterexample), never prove it.
Exam application (JEE)
JEE commonly tests one-one-ness either by asking for a direct algebraic proof (assume f(x₁) = f(x₂), solve) for linear or simple polynomial/rational functions, or by asking students to classify a given f as one-one, many-one, onto, or bijective from a graph or formula — in which case checking whether any horizontal line meets the graph more than once is the fast visual test corresponding to the algebraic definition. Piecewise functions like Example 12 are a favourite trap precisely because an incomplete case analysis can hide a genuine counterexample.
Frequently asked questions
- What does it mean for a function to be one-one? A function f : X → Y is one-one (injective) if every two distinct elements of X map to two distinct elements of Y, i.e. f(x₁) = f(x₂) always implies x₁ = x₂.
- How do you prove a function is one-one? Assume f(x₁) = f(x₂) for arbitrary x₁, x₂ in the domain, and use algebra or case analysis to show this equation forces x₁ = x₂; if it always does, the function is one-one.
- Is f(x) = 2x from N to N one-one? Yes — assuming f(x₁) = f(x₂) gives 2x₁ = 2x₂, so x₁ = x₂ directly, by Example 8 of NCERT.
- Is every one-one function also onto? No — f(x) = 2x on N is one-one but not onto, since odd natural numbers have no preimage; one-one and onto are independent properties on infinite sets (though they coincide on finite sets).
- Can the sum of two one-one functions fail to be one-one? Yes — sin x and cos x are each one-one on [0, π/2], but their sum is not, since it equals 1 at both endpoints of the interval; see the dedicated article on sums of functions for the full worked proof.
Practice questions (original practice questions)
- f : R → R is defined by f(x) = 5x + 2. Is f one-one?
- (a) No, many-one
- (b) Yes, one-one
- (c) Cannot be determined
- (d) Only on N
- Answer: (b) — Assume f(x₁) = f(x₂): 5x₁ + 2 = 5x₂ + 2 ⟹ x₁ = x₂.
- f : N → N is defined by f(x) = x³. Is f one-one?
- (a) No
- (b) Yes
- (c) Only for even x
- (d) Only for x > 1
- Answer: (b) — f(x₁) = f(x₂) means x₁³ = x₂³; since cubing is strictly increasing on N, x₁ = x₂.
- A function f : X → Y where X has 4 elements and Y has 3 elements:
- (a) can still be one-one if defined carefully
- (b) can never be one-one
- (c) is always onto
- (d) is always many-one and onto
- Answer: (b) — Four distinct domain elements cannot map to only 3 distinct images without at least two sharing one — the Pigeonhole Principle forces many-one.
- For f : R → R, f(x) = x² is:
- (a) one-one
- (b) many-one
- (c) neither one-one nor a function
- (d) undefined for negative x
- Answer: (b) — f(−2) = f(2) = 4 with −2 ≠ 2, so distinct inputs share an image; f is many-one (detailed in the sibling article).
- Which is the correct logical form of the one-one condition?
- (a) x₁ = x₂ ⟹ f(x₁) = f(x₂)
- (b) f(x₁) = f(x₂) ⟹ x₁ = x₂
- (c) f(x₁) ≠ f(x₂) always
- (d) x₁ ≠ x₂ is impossible
- Answer: (b) — Option (a) is true for every function (a function assigns one value per input) and says nothing about one-one-ness; (b) is the actual one-one condition.
Quick revision
- One-one (injective): f(x₁) = f(x₂) ⟹ x₁ = x₂, for every x₁, x₂ in the domain.
- Proof template: assume equal images, use algebra/case-split, derive equal inputs.
- In Fig 1.2, f₁ and f₄ are one-one; f₂ and f₃ are many-one.
- f(x) = 2x on N and on R: one-one in both cases (same algebra).
- Piecewise functions (e.g. Example 12) need a full case split across all branch combinations.
- One-one does not imply onto on infinite sets; a sum of one-one functions need not be one-one.
Related articles
- Builds on: Function — Definition, Identity Function
- See also: Many-One Functions (the negation of one-one)
- See also: Onto (Surjective) Functions
- Next: Bijective Functions (One-One and Onto)
- See also: One-One and Onto Are Equivalent for Functions on a Finite Set
- See also: Sum of Functions Need Not Preserve One-One or Onto
- See also: Number of One-One Functions from a Finite Set to Itself
- Forward reference: Invertible Functions and the Link to Bijectivity
- Related topics: Composition of Functions (gof), Composition of Functions Is Not Commutative (gof ≠ fog), Counting Relations on a Finite Set with Given Properties, Empty Relation on a Set, Equivalence Classes and Partition of a Set, Equivalence Relation — Definition and How to Prove One