Identity matrix

In linear algebra, the identity matrix of size n {\displaystyle n} is the n × n {\displaystyle n\times n} square matrix with ones on the main diagonal and zeros elsewhere. It has unique properties, for example when the identity matrix represents a geometric transformation, the object remains unchanged by the transformation. In other contexts, it is analogous to multiplying by the number 1.
The identity matrix is often denoted by I n {\displaystyle I_{n}} , or simply by I {\displaystyle I} if the size is immaterial or can be trivially determined by the context.
I 1 = [ 1 ] , I 2 = [ 1 0 0 1 ] , I 3 = [ 1 0 0 0 1 0 0 0 1 ] , … , I n = [ 1 0 0 ⋯ 0 0 1 0 ⋯ 0 0 0 1 ⋯ 0 ⋮ ⋮ ⋮ ⋱ ⋮ 0 0 0 ⋯ 1 ] . {\displaystyle I_{1}={\begin{bmatrix}1\end{bmatrix}},\ I_{2}={\begin{bmatrix}1&0\\0&1\end{bmatrix}},\ I_{3}={\begin{bmatrix}1&0&0\\0&1&0\\0&0&1\end{bmatrix}},\ \dots ,\ I_{n}={\begin{bmatrix}1&0&0&\cdots &0\\0&1&0&\cdots &0\\0&0&1&\cdots &0\\\vdots &\vdots &\vdots &\ddots &\vdots \\0&0&0&\cdots &1\end{bmatrix}}.}
The term unit matrix has also been widely used, but the term identity matrix is now standard. The term unit matrix is ambiguous, because it is also used for a matrix of ones and for any unit of the ring of all n × n {\displaystyle n\times n} matrices.
In some fields, such as group theory or quantum mechanics, the identity matrix is sometimes denoted by a boldface one, 1 {\displaystyle \mathbf {1} } , or called "id" (short for identity). Less frequently, some mathematics books use U {\displaystyle U} or E {\displaystyle E} to represent the identity matrix, standing for "unit matrix" and the German word Einheitsmatrix respectively.
In terms of a notation that is sometimes used to concisely describe diagonal matrices, the identity matrix can be written as I n = diag ⁡ ( 1 , 1 , … , 1 ) . {\displaystyle I_{n}=\operatorname {diag} (1,1,\dots ,1).} The identity matrix can also be written using the Kronecker delta notation: ( I n ) i j = δ i j . {\displaystyle (I_{n})_{ij}=\delta _{ij}.}
When A {\displaystyle A} is an m × n {\displaystyle m\times n} matrix, it is a property of matrix multiplication that I m A = A I n = A . {\displaystyle I_{m}A=AI_{n}=A.} In particular, the identity matrix serves as the multiplicative identity of the matrix ring of all n × n {\displaystyle n\times n} matrices, and as the identity element of the general linear group G L ( n ) {\displaystyle GL(n)} , which consists of all invertible n × n {\displaystyle n\times n} matrices under the matrix multiplication operation. In particular, the identity matrix is invertible. It is an involutory matrix, equal to its own inverse. In this group, two square matrices have the identity matrix as their product exactly when they are the inverses of each other.
When n × n {\displaystyle n\times n} matrices are used to represent linear transformations from an n {\displaystyle n} -dimensional vector space to itself, the identity matrix I n {\displaystyle I_{n}} represents the identity function, for whatever basis was used in this representation.
The i {\displaystyle i} th column of an identity matrix is the unit vector e i {\displaystyle e_{i}} , a vector whose i {\displaystyle i} th entry is 1 and 0 elsewhere. The determinant of the identity matrix is 1, and its trace is n {\displaystyle n} .
The identity matrix is the only idempotent matrix with non-zero determinant. That is, it is the only matrix such that:
The principal square root of an identity matrix is itself, and this is its only positive-definite square root. However, every identity matrix with at least two rows and columns has an infinitude of symmetric square roots.
The rank of an identity matrix I n {\displaystyle I_{n}} equals the size n {\displaystyle n} , i.e.: rank ⁡ ( I n ) = n . {\displaystyle \operatorname {rank} (I_{n})=n.}