The identity matrix is a square matrix whose main diagonal consists entirely of ones and whose other entries are zero. Usually denoted by , where specifies its size, it leaves vectors and compatible matrices unchanged under multiplication. In linear algebra, it therefore plays the role that the number plays in ordinary multiplication. It is also called the unit matrix. (ocw.mit.edu)
Definition and notation
For a positive integer , the identity matrix of order is
Thus , while
Equivalently, its entry in row , column , is when and otherwise. The subscript is commonly omitted when the dimensions are clear. The identity is a particular diagonal matrix, but a diagonal matrix with entries other than one does not generally leave vectors unchanged. (web.mit.edu)
Multiplicative identity
If has rows and columns, then
The different subscripts matter: the identity multiplying on the left matches its number of rows, whereas the identity on the right matches its number of columns. For square matrices, both identities are . These equations follow directly from the rule for matrix multiplication, because each row or column of the identity selects exactly one row or column of the other matrix. (web.mit.edu)
The multiplicative identity is unique for a fixed size. Indeed, if were another matrix satisfying for every , choosing would give . Since multiplication by also gives , it follows that . This is a direct consequence of the defining multiplication rules. (web.mit.edu)
Identity transformation and coordinates
Multiplication by sends a coordinate vector to itself:
It represents the identity linear map on an -dimensional vector space. Its columns are the standard coordinate vectors: the -th column has a one in position and zeros elsewhere. Consequently, multiplying the matrix by forms a linear combination of these columns with coefficients equal to the coordinates of . (math.mit.edu)
The identity transformation has matrix relative to any basis, provided the same basis is used for both input and output coordinates. Changing that basis does not alter the matrix, since for an invertible change-of-basis matrix ,
If different bases are used for the domain and codomain, however, the identity map can be represented by a nonidentity change-of-coordinates matrix. These statements follow from the usual rules for representing linear maps in bases. (math.mit.edu)
Algebraic and spectral properties
Several properties follow immediately from the defining entries or multiplication law:
- Its transpose is itself: .
- Its inverse is itself: .
- Its determinant is .
- Its trace is over the real or complex numbers.
- Its rank is , and its null space contains only the zero vector.
- Every integer power of equals . (math.mit.edu)
For , its only eigenvalue is , and every nonzero vector is an eigenvector. Thus the corresponding eigenspace is the entire coordinate space. Using the convention , its characteristic polynomial is
It is already diagonal, so no change of basis is needed for its diagonalization. These are direct applications of the definitions of eigenvalues and diagonalization. (personal.math.ubc.ca)
Over the real numbers, is an orthogonal matrix, since . Its columns form an orthonormal basis under the standard inner product. It is also positive definite, because for every nonzero real vector . (interactivetextbooks.tudelft.nl)
Inverses and linear equations
The identity matrix appears in the definition of an invertible square matrix:
These equations express that the inverse reverses the transformation performed by . For a system of linear equations , multiplying by gives . (math.mit.edu)
In Gauss–Jordan reduction, an extension of Gaussian elimination, the identity supplies the right-hand block of the augmented matrix
When is invertible, row operations that transform into the identity simultaneously transform the appended identity into . Equivalently, the columns of the inverse solve the systems , one for each standard coordinate vector . (math.mit.edu)
Diagonal shifts and regularization
Adding to a square matrix changes only its diagonal entries. If , then
Thus a scalar identity term shifts eigenvalues while preserving their associated eigenvectors; unlike arbitrary matrix addition, this shift follows directly from the eigenvector equation. (web.mit.edu)
In ridge regression, this operation appears in the coefficient formula
for the objective . Here is the number of penalized coefficients. The identity applies the same quadratic regularization weight to each coefficient; an intercept, when included, is commonly handled separately. (faculty.washington.edu)