In mathematics, an identity element or neutral element of a binary operation is an element that leaves unchanged every element when the operation is applied.[1] [2] For example, 0 is an identity element of the addition of real numbers. This concept is used in algebraic structures such as groups and rings. The term identity element is often shortened to identity (as in the case of additive identity and multiplicative identity)[3] when there is no possibility of confusion, but the identity implicitly depends on the binary operation it is associated with.
Let be a set equipped with a binary operation ∗. Then an element of is called a if for all in , and a if for all in . If is both a left identity and a right identity, then it is called a , or simply an .[4]
An identity with respect to addition is called an (often denoted as 0) and an identity with respect to multiplication is called a (often denoted as 1). These need not be ordinary addition and multiplication—as the underlying operation could be rather arbitrary. In the case of a group for example, the identity element is sometimes simply denoted by the symbol
e
Set | Operation | Identity | |||
---|---|---|---|---|---|
Real numbers | + (addition) | 0 | |||
· (multiplication) | 1 | ||||
Complex numbers | + (addition) | 0 | |||
· (multiplication) | 1 | ||||
Positive integers | 1 | ||||
Non-negative integers | 0 (under most definitions of GCD) | ||||
Vector addition | Zero vector | ||||
' Rn | · (multiplication) | 1 --> | Matrix addition | Zero matrix | |
-by- square matrices | Matrix multiplication | In (identity matrix) | |||
-by- matrices | ○ (Hadamard product) | (matrix of ones) | |||
All functions from a set, , to itself | ∘ (function composition) | Identity function | |||
All distributions on a group, | ∗ (convolution) | (Dirac delta) | |||
Extended real numbers | Minimum/infimum | +∞ | |||
Maximum/supremum | −∞ | ||||
Subsets of a set | ∩ (intersection) | ||||
∪ (union) | ∅ (empty set) | ||||
Empty string, empty list | |||||
∧ (logical and) | ⊤ (truth) | ||||
↔ (logical biconditional) | ⊤ (truth) | ||||
∨ (logical or) | ⊥ (falsity) | ||||
⊕ (exclusive or) | ⊥ (falsity) | ||||
Unknot | |||||
S2 | |||||
Trivial group | |||||
Two elements, | ∗ defined by and | Both and are left identities, but there is no right identity and no two-sided identity | |||
Homogeneous relations on a set X | Identity relation | ||||
Natural join (⨝) | The unique relation degree zero and cardinality one |
In the example S = with the equalities given, S is a semigroup. It demonstrates the possibility for to have several left identities. In fact, every element can be a left identity. In a similar manner, there can be several right identities. But if there is both a right identity and a left identity, then they must be equal, resulting in a single two-sided identity.
To see this, note that if is a left identity and is a right identity, then . In particular, there can never be more than one two-sided identity: if there were two, say and, then would have to be equal to both and .
It is also quite possible for to have no identity element, such as the case of even integers under the multiplication operation. Another common example is the cross product of vectors, where the absence of an identity element is related to the fact that the direction of any nonzero cross product is always orthogonal to any element multiplied. That is, it is not possible to obtain a non-zero vector in the same direction as the original. Yet another example of structure without identity element involves the additive semigroup of positive natural numbers.