Identity Matrix
Scalars have something called a multiplicative identity. Multiplying any scalar by the multiplicative identity doesnโt change it. In the case of scalars, itโs the number .
That is because for any scalar :
With matrices, there is a similar concept: the identity matrix.
The identity matrix is always a square matrix and is usually denoted by the symbol , where is the number of rows (and at the same time the number of columns, since it is a square matrix).
is also referred to the identity matrix of order .
The identity matrix always has s along its main diagonal (the diagonal going from top-left to bottom-right) and s in all the other spots. That is
Just like the scalar identity, multiplying a matrix by the identity matrix does not change it. That is, for some matrix of shape ,
and
The reason for having to use two different sizes for the identity matrix based on whether it is the first or the second operand in the multiplication is because of matrix conformability for multiplication, which I go over in my lesson about matrix multiplication.
Sometimes the subscript with the dimension of the identity matrix is omitted whenever it is possible to deduce the size from context.
Example
Here is a concrete numerical example to illustrate:
Take the matrix
Letโs multiply it by
That is
Notice how