Types of functions: one-one, onto, bijective
A function associates to each a unique . That definition is silent about whether different inputs may share an output or whether every output of is actually hit. Class XII makes these questions central. A function is one-one (injective) if no two inputs collide; it is onto (surjective) if every output is achieved; it is bijective if both. Only bijections admit inverses, so this classification is the gatekeeper for the rest of the chapter.
Definitions
Let be a function.
- is one-one (injective) if for all ,
- is onto (surjective) if for every there exists with . Equivalently, the range of equals .
- is bijective (one-one and onto) if both hold.
The contrapositive of injectivity is often more usable: .
Tests in practice
Algebraic test for one-one. Set and try to deduce . If you can, is injective. If you find producing the same output, is not injective.
Algebraic test for onto. Pick an arbitrary , solve for , and check .
Graphical test. A function is injective iff every horizontal line meets the graph in at most one point. It is surjective iff every horizontal line meets the graph in at least one point. It is bijective iff every horizontal line meets the graph exactly once.
Calculus test. A differentiable function with (or ) everywhere on an interval is one-one on that interval, because it is strictly monotonic. We will exploit this constantly in inverse trigonometric functions and in calculus.
Detailed example
Consider , .
One-one? If then so . Yes.
Onto? Take any , set and verify . Yes.
Now consider , .
One-one? , so no.
Onto? Take . There is no real with . So no.
Restricting codomain and domain can change everything. The map , , is bijective.
A worked theorem
Theorem. A function between finite sets of the same cardinality is one-one iff it is onto.
Proof. Suppose .
() If is one-one, the image contains distinct elements. Since and , we must have . So is onto.
() If is onto, every element of has a preimage. If two distinct elements of shared an image, then would have at most elements, contradicting surjectivity. So is one-one.
The theorem fails for infinite sets: , is injective but not surjective.
Worked examples
Example 1. Is , , bijective?
One-one: If then (cube root is single-valued on ). Onto: every real has cube root . So yes.
Example 2. Is , , one-one? Onto?
One-one: (since is positive). Yes. Onto: , missing . So no.
Example 3. given by . Show is one-one and find its range.
If , . If , . Strictly increasing on each piece and continuous, with matching value at . Range is . One-one because strictly increasing.
Example 4. Define , . Is bijective?
Yes , both sets have size and is clearly one-one and onto.
Example 5. , . Show is bijective.
One-one: expands to (algebra). Yes.
Onto: Given , solve . Cross-multiply: , so , . Defined since . So is onto.
Example 6. , . One-one? Onto?
Not one-one: . Not onto: range is , not all of .
Restricting domain to and codomain to makes a bijection. This restriction is the foundation of in the next chapter.
Try it yourself
- Is , , bijective?
- Is , , one-one?
- Is , , bijective?
- Show , , is one-one but not onto.
- Count the one-one functions from to .
- Count the onto functions from to . (Hint: .)
- Show that , (), is bijective.
- Is given by one-one? Onto?
- Find the range of , . Is onto?
- Show , , is one-one but not onto.
- Prove: if and are both injective, then is injective.
- Prove: if is one-one, must be one-one? Must ?
- Construct a function which is onto but not one-one.
- The greatest integer function . Is it one-one? Onto?
Pitfalls / Tricks
- A function from to that is monotonic on intervals is not necessarily one-one globally; check the entire domain.
- Surjectivity depends crucially on the codomain. Changing the codomain to the range always makes a function onto.
- For finite sets of the same size, one-one and onto are equivalent. For infinite sets they are not , every Hilbert hotel argument depends on this gap.
- The number of one-one functions from to () is . The number of onto functions from a set of size to a set of size () is , useful in JEE counting problems.
The next subtopic builds on bijections to define composition and inverses.