- 1. What is a relation, really?
- 2. Types of relations: empty, universal, reflexive, symmetric, transitive
- 3. When is a relation an equivalence relation?
- 4. Sorting a set into boxes: equivalence classes
- 5. How many relations? Counting with pairs
- 6. Different inputs, different outputs: one-one (injective) functions
- 7. Is every output used? Onto (surjective) functions
- 8. Both at once: bijective functions, and the finite vs infinite surprise
- 9. How many functions? Counting maps between finite sets
- 10. One function after another: composition of functions
- 11. Running a function backwards: invertible functions
- Review
6 of 11·NCERT §1.3·5 min
Different inputs, different outputs: one-one (injective) functions
The big ideaA function is one-one (injective) when different inputs always give different outputs; if two different inputs ever share an output, it is many-one.
In simple words
In a cinema, every person gets a seat. If no two people are ever given the same seat, the seating is fair: each seat has at most one person. If two people are sent to the same seat, there is a fight. A one-one rule is a seating plan with no fights. Some seats may stay empty; that is fine.
In Class 11 you met many functions: identity, constant, polynomial, rational, modulus, signum, greatest integer, and how to add, subtract, multiply and divide them. Now we sort functions by how their arrows land.
Arrow diagrams, in words
Draw the domain X as an oval on the left and the co-domain Y as an oval on the right. Each element of X sends exactly one arrow to Y (that is what makes it a function). Two pictures with X = {1, 2, 3} and Y = {p, q, r, s}:
- f: 1 → p, 2 → q, 3 → s. No two arrows land on the same point. Point r gets no arrow. This f is one-one.
- g: 1 → p, 2 → p, 3 → q. Two arrows land on p. This g is many-one.
So in an arrow diagram, one-one means no point on the right is hit twice. Points on the right that are never hit don't matter here.
Try it: guess first, then rewire the arrows yourself and watch the counts on the right.
The definition and the test
A function f : X → Y is one-one (or injective) if the images of distinct elements are distinct. In symbols, for all \( x_1, x_2 \in X \):
\[ f(x_1) = f(x_2) \implies x_1 = x_2 \]
Otherwise f is many-one. The symbol form is the one you use in proofs: assume two outputs are equal, and show the inputs must be equal. To show f is many-one, find two different inputs with the same output.
Worked examples
- f : \( \mathbf{R} \to \mathbf{R} \), f(x) = 3x − 5. Suppose \( 3x_1 - 5 = 3x_2 - 5 \). Add 5 and divide by 3: \( x_1 = x_2 \). One-one.
- f : \( \mathbf{R} \to \mathbf{R} \), f(x) = x². f(2) = 4 = f(−2), but 2 ≠ −2. Many-one.
- f : \( \mathbf{N} \to \mathbf{N} \), f(x) = x². Now inputs are only 1, 2, 3, …. If \( x_1^2 = x_2^2 \) then \( x_1 = \pm x_2 \), and since both are positive, \( x_1 = x_2 \). One-one. The same formula changed its type when the domain changed.
- f : \( \mathbf{R} \to \mathbf{R} \), f(x) = x³. If \( x_1^3 = x_2^3 \) then \( (x_1 - x_2)(x_1^2 + x_1 x_2 + x_2^2) = 0 \). The second bracket is \( \left(x_1 + \frac{x_2}{2}\right)^2 + \frac{3x_2^2}{4} \), which is 0 only when both are 0. Either way \( x_1 = x_2 \). One-one.
- Modulus, signum and greatest integer on \( \mathbf{R} \) are all many-one: |−3| = |3|; sgn(2) = sgn(7) = 1; [1.2] = [1.9] = 1.
The horizontal-line idea
For a real function, draw its graph and slide a horizontal line y = c up and down. A horizontal line meets the graph at the points where f(x) = c. So:
- if some horizontal line cuts the graph twice or more, two inputs share the output c, and f is many-one;
- if every horizontal line cuts the graph at most once, f is one-one.
The parabola y = x² fails: the line y = 4 cuts it at x = 2 and x = −2. The straight line y = 3x − 5 and the S-shaped y = x³ pass. A graph that keeps rising (or keeps falling) all the way, a strictly increasing or strictly decreasing function, always passes.
Try it: slide the line through each graph, then turn on every line at once.
Don't mix these up
- Every function sends each input to one output; that is not what "one-one" means. One-one is about the outputs: no output is shared.
- One-one depends on the domain: x² is many-one on \( \mathbf{R} \) and \( \mathbf{Z} \), but one-one on \( \mathbf{N} \) and on [0, ∞).
- Checking a few values can show a function is many-one, never that it is one-one. For one-one you need the general argument.
Try it. Is f : \( \mathbf{R} - \{0\} \to \mathbf{R} \), \( f(x) = \frac{1}{x} \), one-one? Is g : \( \mathbf{R} \to \mathbf{R} \), g(x) = x² − 4x, one-one?
Answer
- One-one (injective)
- Different inputs always give different outputs.
- Many-one
- At least two different inputs give the same output.
- Image
- The output f(x) that an input x is sent to.
- Horizontal-line test
- One-one if no horizontal line cuts the graph more than once.
- Strictly increasing
- A bigger input always gives a bigger output.
Words to know
Which function from \( \mathbf{Z} \) to \( \mathbf{Z} \) is one-one?
- f(x) = x²
- f(x) = 2x + 7
- f(x) = |x|
The line y = 1 cuts the graph of a function f : \( \mathbf{R} \to \mathbf{R} \) at three points. What follows?
- f is not a function
- f is many-one
- f is one-one
In an arrow diagram of f : X → Y, one point of Y receives no arrow. Can f still be one-one?
- Yes
- No, never
- Only if X and Y have the same number of elements
Picture and video credits