Inmathematics, anidentity function, also called anidentity relation,identity map oridentity transformation, is afunction that always returns the value that was used as itsargument, unchanged. That is, whenf is the identity function, theequalityf(x) =x is true for all values ofx to whichf can be applied.
In other words, the function valuef(x) in the codomainX is always the same as the input elementx in the domainX. The identity function onX is clearly aninjective function as well as asurjective function (its codomain is also itsrange), so it isbijective.[2]
The identity functionf onX is often denoted byidX.
Iff :X →Y is any function, thenf ∘ idX =f = idY ∘f, where "∘" denotesfunction composition.[4] In particular,idX is theidentity element of themonoid of all functions fromX toX (under function composition).
Since the identity element of a monoid isunique,[5] one can alternately define the identity function onM to be this identity element. Such a definition generalizes to the concept of anidentity morphism incategory theory, where theendomorphisms ofM need not be functions.
^D. Marshall; E. Odell; M. Starbird (2007).Number Theory through Inquiry. Mathematical Association of America Textbooks. Mathematical Assn of Amer.ISBN978-0883857519.
^Anderson, James W. (2007).Hyperbolic geometry. Springer undergraduate mathematics series (2. ed., corr. print ed.). London: Springer.ISBN978-1-85233-934-0.