The Identity Matrix
The matrix version of the number 1: a square matrix with ones down the main diagonal and zeros elsewhere, which leaves any matrix unchanged under multiplication in either order.
The matrix version of the number 1: a square matrix with ones down the main diagonal and zeros elsewhere, which leaves any matrix unchanged under multiplication in either order.
In ordinary multiplication the number 1 leaves everything unchanged. Matrices have their own version of that number, and it is called the identity matrix.
For ordinary numbers, multiplying by 1 changes nothing:
The identity matrix plays exactly this role for matrix multiplication. It is written , with a subscript for its size when that matters:
,
, and so on.
There is one identity matrix for every size — ,
,
and so on upward.
Multiplying in either order returns the original matrix — one of the rare cases where matrix multiplication does not care about order. The sizes must match: an matrix needs
.
Multiply by
.
The zeros switch off every term except one, and the single 1 lets that term through untouched. That is the whole mechanism.