Multiply by the identity matrix
State what the identity matrix is and that it does nothing. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.
The identity matrix has ones on the diagonal and zeros everywhere else:
It is the matrix version of multiplying by:
Everything passes through unchanged. That is not a coincidence about the entries you happen to have tried — it is forced by the definition, and the why block below shows it in one line.
The size is part of the answer. is always square, but the matrix it multiplies need not be, and the size has to make the inner dimensions cancel:
| multiply | identity needed | because | |---|---|---| | with of size | | | | with of size | | |
For a that means and — two different identity matrices, both of which return. Putting on the left of a is not "the identity doing nothing"; it is a product that does not exist.
Compute entry of: it is row of dotted with column of.
Row of has a single in position and zeros in every other position. So the dot product is
Every term but one is killed by a zero, and the survivor is multiplied by one. The product is entry by entry, with no room for anything to shift.
The same computation with a different row/column offset is exactly what the exchange matrix does instead: its ones sit where is constant rather than where, so entry of the product picks up and entry picks up — a swap.
The size rule falls out of the same picture. For the dot product to run at all, row of the left factor must have the same length as column of the right one. If is and is, that requires on the left and on the right.
Question. is. Compute and, and say whether is defined.
Step 1 —. cancels the 2, so the product exists and is. Each entry is copied:
Step 2 —. cancels the 3, so the product exists and is. Again each entry is copied:
Step 3 —.: the inner pair is and, which do not match. Not defined.
Answer. Both and equal; does not exist.
Step 4 — check one entry by the rule. Entry of: row 2 of is, column 3 of is, dot is, which is ✓.
- State what the identity matrix is and that it does nothing
- Choose the identity whose size fits the multiplication
- Recover the original matrix or vector after multiplying by I
- Notice that ones on the anti-diagonal are not the identity
is. Which identity matrices can multiply it, on which side, and what comes out?
Answer
- - is defined:, and it equals.
- - is defined:, and it equals.
- - is not defined: has inner pair and.
- - is not defined: has inner pair and.
So there are exactly two identities that work, they sit on opposite sides, and they have different sizes. Both return unchanged.