Show That the Identity Function on Any Set Is a Bijection
At a glance
- 1. Define the map
For a set A, the identity function maps A to itself and sends every element to itself.
- 2. Check injectivity
If two inputs have the same output, they must be the same element.
- 3. Check surjectivity
Every element of the codomain is reached by choosing that element as the input.
- 4. Include the empty set
When A is empty, both properties hold vacuously, so the identity map is still bijective.
For any set , the identity function on is the map from to itself that leaves every element unchanged. To prove that it is a bijection, show that it is both injective and surjective. These arguments do not depend on whether is finite, infinite, or empty.
Define the identity function
The identity function on is written and defined by
A function is injective if distinct inputs always have distinct outputs. It is surjective if every element of its codomain is the output of at least one input. A function that has both properties is bijective.
The fact that the domain and codomain here are both matters: the identity function is specifically a map from a set to itself.
Proof of injectivity
Take any and suppose their images under the identity function are equal. By its definition,
Therefore, whenever two inputs have the same output, they are equal. This is exactly the definition of injectivity, so is injective.
Proof of surjectivity
Take any element in the codomain . To show that is reached by the function, choose . This is a valid input because , and
Thus every element of the codomain has a preimage, so is surjective.
Since it is both injective and surjective, is a bijection.
Worked example
Let . The identity function sends each element to itself:
| Input | Output |
|---|---|
| 1 | 1 |
| 2 | 2 |
| 3 | 3 |
No two different inputs have the same output, so the function is injective. Each element in the codomain appears as an output, so the function is surjective. Hence it is bijective.
The same proof works if contains infinitely many elements. It uses only the rule , not the number of elements in the set.
What if the set is empty?
The result includes . There are no elements to map, so the identity function is the empty function .
It is injective because there are no two inputs that could violate injectivity. It is surjective because there are no elements in the codomain that need preimages. These are sometimes called vacuous conditions: no counterexample exists because there are no elements to check. Therefore, the identity function on the empty set is also bijective.
The inverse is the identity itself
A bijection has an inverse function. For the identity function, applying the map and then applying it again changes nothing:
Consequently, its inverse is itself:
This gives another way to recognize that the identity function is bijective: it has a two-sided inverse, namely itself.
Common mistakes
- Checking only that outputs belong to . That confirms the map is well-defined as a function , but it does not by itself prove injectivity or surjectivity. Check both properties explicitly.
- Confusing the identity map with an inclusion. If is a subset of a larger set , the inclusion map sends each element to itself too, but it need not be surjective onto . For example, the inclusion misses . The identity map on has codomain , so every element of its codomain is reached.
- Assuming the set must be nonempty. The empty set is allowed, and its identity function is a bijection by the definitions of injectivity and surjectivity.
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.