Fact-checked by Grok 2 weeks ago

Identity function

In mathematics, the identity function, also known as the identity map or identity transformation, is a function that leaves unchanged every element of its domain, mapping each input directly to itself. For a set A, the identity function is denoted \mathrm{id}_A: A \to A and defined by \mathrm{id}_A(a) = a for all a \in A. This makes it the simplest possible function from a set to itself, serving as a foundational concept in set theory, algebra, and analysis. The identity function exhibits several key properties that underscore its importance across mathematical disciplines. It is bijective, meaning it is both injective (one-to-one) and surjective (onto), as every element in the codomain has exactly one preimage, which is itself. Additionally, it acts as the identity element under function composition: for any function f: A \to B, composing f with \mathrm{id}_A on the left or \mathrm{id}_B on the right yields f unchanged. The identity function is also an involution, as its own inverse, satisfying \mathrm{id}_A \circ \mathrm{id}_A = \mathrm{id}_A. In the context of real numbers, the identity function is often expressed as f(x) = x, whose graph is the straight line y = x with slope 1 and y-intercept 0, defined over all real numbers with both domain and range \mathbb{R}. This form is linear and strictly increasing, preserving the order of real numbers. Beyond sets and reals, the identity function generalizes to other structures, such as vector spaces where it is the identity linear transformation, or in category theory as the identity morphism, facilitating the study of isomorphisms and equivalences.

Definition and Basic Concepts

Formal Definition

In mathematics, the identity function on a set X is defined as the function f: X \to X such that f(x) = x for every x \in X. This construction applies to any set X, where the domain and codomain are identical. From its definition, the identity function is inherently a bijection, as it is both injective and surjective. Injectivity follows because if f(x) = f(y), then x = y; surjectivity holds because for every y \in X, the element x = y satisfies f(x) = y. A specific instance is the identity function on the real numbers, denoted \mathrm{id}: \mathbb{R} \to \mathbb{R} and defined by \mathrm{id}(x) = x for all x \in \mathbb{R}.

Notation and Representations

The identity function on a set X is commonly denoted by \mathrm{id}_X, where \mathrm{id}_X: X \to X satisfies \mathrm{id}_X(x) = x for all x \in X. This notation emphasizes the set-specific nature of the function and is standard in set theory and category theory contexts. In linear algebra, the identity function is often represented as the identity operator I, acting on a vector space V such that I \mathbf{v} = \mathbf{v} for any vector \mathbf{v} \in V./02%3A_Matrices/2.06%3A__The_Identity_and_Inverses) This operator is realized concretely as the identity matrix I_n in n-dimensional space, an n \times n square matrix with 1s on the main diagonal and 0s elsewhere./02%3A_Matrices/2.06%3A__The_Identity_and_Inverses) The entries of I_n can be expressed using the Kronecker delta \delta_{ij}, defined as \delta_{ij} = 1 if i = j and \delta_{ij} = 0 otherwise, so that (I_n)_{ij} = \delta_{ij}. For the identity function on the real numbers, f: \mathbb{R} \to \mathbb{R} with f(x) = x, its graphical representation is the straight line y = x in the Cartesian plane, passing through the origin with a slope of 1. This line visually captures the function's property of mapping each input to itself without alteration.

Algebraic and Functional Properties

Algebraic Properties

In the category of sets, the set of all functions from a set X to itself forms a monoid under function composition, where the identity function \mathrm{id}_X, defined by \mathrm{id}_X(x) = x for all x \in X, serves as the multiplicative identity element. For any function f: X \to X, the composition satisfies f \circ \mathrm{id}_X = \mathrm{id}_X \circ f = f, ensuring that the identity function acts as a neutral element in this algebraic structure. This property highlights the identity function's central role in preserving the structure of compositions without altering the input-output behavior of any other function. The identity function exhibits the algebraic trait of being an involution under composition, meaning \mathrm{id}_X \circ \mathrm{id}_X = \mathrm{id}_X. Consequently, it is its own inverse, as the left and right compositions with itself yield the identity, distinguishing it as a self-inverse element in the monoid. In this monoid of functions under composition, the identity function is the unique element that serves simultaneously as both a left inverse and a right inverse to itself, underscoring its idempotent nature and foundational position in algebraic manipulations involving function chains. This commutativity extends universally: the identity function commutes with every function in the monoid, as \mathrm{id}_X \circ f = f \circ \mathrm{id}_X = f holds for all f, reflecting its neutral compatibility in algebraic operations. In the specific context of linear algebra, where linear maps between vector spaces are represented by matrices, the identity function corresponds to the identity matrix I, satisfying I A = A I = A for any matrix A compatible with the dimensions, thereby acting as the identity for matrix multiplication, which mirrors composition of linear transformations.

Functional and Analytic Properties

The identity function id: \mathbb{R} \to \mathbb{R}, defined by id(x) = x, is continuous at every point in its domain. This follows from the definition of continuity, as the limit of id(x) as x approaches any point a \in \mathbb{R} equals a, matching the function value at that point. Moreover, it is differentiable everywhere on \mathbb{R}, with first derivative id'(x) = 1. The identity function is infinitely differentiable, as higher-order derivatives satisfy id''(x) = 0 and all subsequent derivatives are zero, reflecting its linear nature as a polynomial of degree one. The identity function is strictly increasing on \mathbb{R}, since for any x < y, it holds that id(x) = x < y = id(y). This strict monotonicity implies that the function is injective, as distinct inputs produce distinct outputs. Every point in the domain serves as a fixed point of the identity function, satisfying id(x) = x for all x \in \mathbb{R}. This property underscores its role as the neutral element in function composition. In the context of metric spaces, the identity function acts as an isometry, preserving distances such that d(id(x), id(y)) = d(x, y) for all x, y in the space. This preservation holds trivially by the definition of the metric and confirms its bijectivity onto itself.

Applications and Generalizations

In linear algebra, the identity matrix I plays a central role in solving systems of linear equations, where the equation I \mathbf{x} = \mathbf{b} directly implies \mathbf{x} = \mathbf{b}, serving as the trivial case that underscores the multiplicative property of the identity. This property extends to more complex methods like Gauss-Jordan elimination, where row operations transform the coefficient matrix to I, yielding the solution vector. Additionally, the identity matrix forms the basis for projection operators, representing the orthogonal projection onto the entire vector space, as I \mathbf{v} = \mathbf{v} for any vector \mathbf{v}, and enabling derivations of projections onto subspaces via I - P where P is a subspace projection. In category theory, the identity morphism \mathrm{id}_A: A \to A for each object A is a foundational element, ensuring that every category has morphisms that act as neutral elements under composition, satisfying \mathrm{id}_A \circ f = f = f \circ \mathrm{id}_A for any morphism f with appropriate domain and codomain. This identity is essential to key definitions, such as those of functors, natural transformations, and limits, where it guarantees the existence of canonical arrows that preserve structure across categories. In computer science, particularly functional programming, the identity function—often implemented as a no-op like Python's lambda x: x or OCaml's let id x = x—serves as a polymorphic utility for operations such as mapping over data structures without alteration or as a placeholder in higher-order functions. It facilitates testing function compositions, enabling verification that f \circ \mathrm{id} = f, and is integral to concepts like monads and applicative functors where it acts as the neutral element. In physics, the identity transformation represents the unchanged state in symmetry operations, forming the neutral element in symmetry groups that describe conserved quantities under physical laws, such as rotations or translations in classical mechanics. In particle physics, it is the identity element in Lie groups like the Lorentz group, essential for classifying particles and interactions via representations where the identity operator U(0) = I corresponds to no transformation, underpinning gauge symmetries and conservation principles. In abstract algebra, the identity function, known as the identity homomorphism between a group or ring and itself, maps every element to itself while preserving the algebraic operations, providing a baseline for analyzing non-trivial structures. This role is crucial in proofs of isomorphism theorems and kernel properties, such as demonstrating that its kernel is trivial (containing only the identity element) or verifying uniqueness of certain homomorphisms.

Generalizations to Other Structures

In algebraic structures such as rings, the concept of the identity extends to the multiplicative identity element, denoted 1, which satisfies $1 \cdot r = r \cdot 1 = r for every element r in the ring. This element ensures that the ring has a unit with respect to multiplication, distinguishing unital rings from rngs (rings without identity). In modules over a unital ring R, the scalar multiplication by the identity $1_R acts as the identity on the module, meaning $1_R \cdot m = m for all module elements m, preserving the module's structure under ring actions. In topology, the identity map id_X: X \to X, defined by id_X(x) = x for all x \in X, serves as a homeomorphism between a topological space X and itself, as it is a continuous bijection with a continuous inverse (itself). This property underscores the identity map's role in demonstrating that any topological space is homeomorphic to itself, facilitating comparisons of topological invariants without altering the space's structure. In type theory and logic, identity manifests as identity types, which formalize equality relations between terms of the same type. In Martin-Löf intensional type theory, the identity type Id_A(a, b) between elements a, b: A captures proofs of equality, with reflexivity providing the constructor \mathsf{refl}_a: Id_A(a, a). In homotopy type theory (HoTT), these identity types acquire a richer path-like structure, interpreting equalities as paths in an \infty-groupoid, where higher identities represent homotopies between paths, enabling univalent foundations that treat isomorphic types as equal. Partial identities arise as restrictions of the full identity function to a subset of the domain, functioning as the identity on that subset while undefined elsewhere, akin to partial functions in set theory. For instance, given a set X and subset S \subseteq X, the partial identity on S maps each s \in S to itself, with domain S, and can be represented as the identity relation \{\langle s, s \rangle \mid s \in S\}. Such constructions appear in contexts like projections in product spaces, where a partial identity might embed a subspace while ignoring elements outside it. In the multivariable setting, the identity function on \mathbb{R}^n extends componentwise as \mathrm{id}(x_1, \dots, x_n) = (x_1, \dots, x_n), preserving the vector structure and serving as the neutral element under function composition in the space of maps from \mathbb{R}^n to itself. This generalization maintains bijectivity and continuity, aligning with its role in linear algebra as the identity transformation represented by the n \times n identity matrix.

References

  1. [1]
    4.1 Definition and Examples
    For a set A we define the identity function iA:A→A by the rule iA(a)=a for all a∈A. In other words, the identity function maps every element to itself.
  2. [2]
    [PDF] NOTES ON FUNCTIONS These notes will cover some terminology ...
    Definition 2. The identity function on a set A, denoted by idA, is the function from A to itself such that idA(a) = a for all a ∈ A. Definition 3. If f : A → B ...Missing: mathematics | Show results with:mathematics
  3. [3]
    3.1 What Are Functions? - MIT Mathematics
    The simplest function of all, sometimes called the identity function, is the one that assigns as value the argument itself. If we denote this function as f, it ...
  4. [4]
    Properties of Functions - Department of Mathematics at UTSA
    Jan 11, 2022 · The identity function on a set X, often denoted by idX, is the inclusion of X into itself. Function composition. Given two functions f : X ...
  5. [5]
    [PDF] Math 127: Functions
    Definition 3. The identity function on a set X, denoted by ιX, is the function ιX : X → X such that ∀x ∈ X, f(x) = x. The empty function is any function f : ∅ ...
  6. [6]
    [PDF] 1.5 PROPERTIES OF FUNCTIONS
    Identity Function: f(x) = x​​ This is a line with slope = 1 and y-intercept = 0. Function is always increasing. Domain is all real numbers. Range is all real ...
  7. [7]
    Cardinality
    Proof. (a) The identity function has an inverse, namely itself. Therefore, the identity function is a bijection. is a bijection.
  8. [8]
    [PDF] CS243: Discrete Structures Functions
    ▷ Prove that the identity function is a bijection. ▷ Need to prove I is both one-to-one and onto. ▷ One-to-one: We need to show ∀x, y. (x 6= y → I(x) 6 ...
  9. [9]
    Identity Function -- from Wolfram MathWorld
    The identity function id(x) is the function id(x)=x which assigns every real number x to the same real number x. It is identical to the identity map.
  10. [10]
    Identity Functions
    A special function under which the image of each element is the element itself. Because the image of an element is identical to the element, it is called the ...
  11. [11]
    Identity function - Mathematics Stack Exchange
    Jul 14, 2018 · I was told that identity functions have the definition when followed. If f ∘ e = f, e = idx. If e ∘ f = f, e = idy.<|control11|><|separator|>
  12. [12]
    8.1 Kronecker Delta - BOOKS
    The Kronecker Delta is a simple switch that compares two values i and j in some discrete set. The switch turns on when i is the same as j and off when they are ...
  13. [13]
    Identity Function - Definition, Graph, Properties, Examples - Cuemath
    An identity function is a function where each element in a set B gives the image of itself as the same element ie, g (b) = b ∀ b ∈ B.
  14. [14]
    Identity Function - GeeksforGeeks
    Jul 23, 2025 · The identity function is a function that returns the same value that was used as its input. Mathematically, it is defined as: f(x) = x
  15. [15]
    [PDF] 1 Monoids and groups
    F(U) is a monoid with multiplication given by composition of functions. (e = idU = the identity function). ... Perm(U) with composition of functions is a ...
  16. [16]
    [PDF] Semigroups, monoids, groups and rings (Optional reading)
    A monoid is a set with two operations: one is an associative binary ... It also has a. (two-sided) identity element: the identity function, given by ι(x) ...
  17. [17]
    Inverse Functions - Department of Mathematics at UTSA
    Jan 15, 2022 · This is the composition (f −1 ∘ g −1)(x). Self-inverses. If X is a set, then the identity function on X is its own inverse: id X − 1 = id X .
  18. [18]
    Functions:Inverses - Department of Mathematics at UTSA
    Nov 6, 2021 · This is the composition (f −1 ∘ g −1)(x). Self-inverses. If X is a set, then the identity function on X is its own inverse: id X − 1 = id X .
  19. [19]
    [PDF] binary opera- tions, magmas, monoids, g - UMD MATH
    In this chapter, I introduce some of the fundamental objects of algbera: binary opera- tions, magmas, monoids, groups, rings, fields and their homomorphisms. 2.
  20. [20]
  21. [21]
    6. Lecture 6: 2.3 Composition of linear maps and matrix product One
    Lecture 6: 2.3 Composition of linear maps and matrix product. One is ... The identity matrix is I = δij , where δij = 1 if i = j and δij = 0 if i 6 ...
  22. [22]
    [PDF] An Introduction to Real Analysis John K. Hunter - UC Davis Math
    The constant function f(x) = 1 and the identity function g(x) = x are continuous on R. ... Like continuity, differentiability is a local property. That is ...
  23. [23]
    [PDF] Understanding Basic Calculus
    ... Derivative of Identity Function The derivative of the identity function is the constant function 1, that is d dx x = 1. Explanation In the above formula, we ...
  24. [24]
    14.5 Inverse Function Theorems
    ... strictly increasing functions are injective, $f$ is bijective. By remark (14.22) $f$ has an inverse. 14.39 Exercise. State and prove the analogue of lemma ...<|control11|><|separator|>
  25. [25]
    [PDF] 21 2. Isometries and Rigid Motions of the Real Line Suppose two ...
    Theorem 2.1. Let X, Y and Z be metric spaces. Then: a) The identity function idX is an isometry from X to itself.
  26. [26]
    7.8: Solving Systems with Inverses - Mathematics LibreTexts
    Oct 6, 2021 · We will look at two methods for finding the inverse of a 2×2 matrix and a third method that can be used on both 2×2 and 3×3 matrices.
  27. [27]
    What are the various applications of an Identity Matrix in linear ...
    An identity matrix is used to find the inverse of a matrix, in Gauss-Jordan elimination, and in calculating eigenvalues and eigenvectors.
  28. [28]
    [PDF] 18.06 Linear Algebra Video Transcript - Lecture 17
    And what's the projection matrix onto the whole space? The identity matrix. If I'm projecting in the whole space, every vector B is right where it's ...<|control11|><|separator|>
  29. [29]
    identity morphism in nLab
    Dec 1, 2019 · The identity morphism, or simply identity, of an object x x in some category C C is the morphism 1 x : x → x 1_x: x \to x , or id x : x → x \ ...
  30. [30]
    Identity Morphism - an overview | ScienceDirect Topics
    The isomorphisms of a category form a subcategory in which x−1 is everywhere defined. A category in which all morphisms are isomorphisms is called a GROUPOID.<|control11|><|separator|>
  31. [31]
    2.3.3. Polymorphic Functions · Functional Programming in OCaml
    Polymorphic functions. The identity function is the function that simply returns its input: # let id x = x;; id : 'a -> 'a = <fun>.
  32. [32]
    Polymorphism - CS 242
    Functional programming. So, far we've learned how to model complex data ... identity function for every type or a list for every type. For example, in ...
  33. [33]
    2.1: Symmetry Elements and Operations - Chemistry LibreTexts
    May 3, 2023 · The identity operation says that each object is self-similar to itself when you do not move it in any way. This is a trivial statement, but as ...
  34. [34]
    [PDF] Group Theory in Particle Physics
    Nov 19, 2007 · Group theory is a branch of math applied to physics. A group is a set with an operation satisfying closure, associativity, identity, and ...
  35. [35]
    7.1: Homomorphisms - Mathematics LibreTexts
    Apr 16, 2022 · Theorem 7 . 1 . 1 : Trivial Homomorphism ... Let G 1 and G 2 be groups. Define ϕ : G 1 → G 2 via ϕ ⁡ ( g ) = e 2 (where e 2 is the identity of G 2 ) ...
  36. [36]
    [PDF] Lecture 4.1: Homomorphisms and isomorphisms
    always the trivial homomorphism between two groups: φ: G −→ H , φ(g)=1H ... Lecture 4.1: Homomorphisms and isomorphisms. Math 4120, Modern Algebra. 13 / 13.
  37. [37]
    [PDF] Chapter 3, Rings Definitions and examples. We now have several ...
    Definition. A ring with identity is a ring R that contains a multiplicative identity element 1R: 1Ra = a = a1R for all a ∈ R. Examples: 1 in the first ...
  38. [38]
    [PDF] Standard definitions for rings - Keith Conrad
    Some abstract algebra books do not insist rings have a multiplicative identity, leading to the result that 2Z is considered a subring of Z. This is really, ...
  39. [39]
    [PDF] 7. Homeomorphic spaces When are two topological spaces (X,Τ ...
    (1) The identity map iX : X -→ X gives a homeomorphism from. (X,Τ ) to itself. (2) If f : X -→ Y is a homeomorphism between the two topological spaces (X,Τ ) ...
  40. [40]
    [0709.0248] Homotopy theoretic models of identity types - arXiv
    Sep 3, 2007 · This paper presents a novel connection between homotopical algebra and mathematical logic. It is shown that a form of intensional type theory is valid in any ...
  41. [41]
    [PDF] Chapter 2 Relations, Functions, Partial Functions
    When A = B, we have the identity relation,. idA = { a, a | a ∈ A}. The identity relation relates every element to itself, and that's it! Note that dom(idA) = ...
  42. [42]
    [PDF] Functions of several variables Math 131 Multivariate Calculus
    A scalar-valued function f : Rn →. R is also called a scalar field on Rn. Lets start by considering the case when n = 2. We'll be able to visualize that case.