When X is a vector space, the identity function is a linear transformation. Its representation as a matrix is, of course, the identity matrix. More generally, in any group G acting on a set X, the function x|->e*x (where e∈G is G's identity element) is the identity function.