Identity function

The function that maps every element of a set to itself
Identity function

An identity function on a set AA is the idA:AA\mathrm{id}_A:A\to A defined by

idA(a)=afor all aA. \mathrm{id}_A(a)=a\quad\text{for all }a\in A.

Identity functions are neutral elements for : if f:ABf:A\to B is any function, then fidA=ff\circ \mathrm{id}_A=f and idBf=f\mathrm{id}_B\circ f=f. The identity function is always , and its is itself.

Examples:

  • On , idR(x)=x\mathrm{id}_{\mathbb{R}}(x)=x for all xRx\in\mathbb{R}.
  • On the P(A)\mathcal{P}(A) of a set AA, the identity function sends each subset SAS\subseteq A to itself.