Identity Matrix

See why multiplication by an identity matrix leaves every compatible matrix unchanged.

Multiply on the right by I

Each row of the left matrix is dotted with a column containing one 1 and otherwise 0s. Those columns select the original entries, so the product is unchanged.

[[1, 2, 3], [4, 5, 6]] · [[1, 0, 0], [0, 1, 0], [0, 0, 1]]

Multiply on the left by I

The identity also works on the left when dimensions agree. Its rows select the corresponding rows of the second matrix.

[[1, 0, 0], [0, 1, 0], [0, 0, 1]] · [[2, −1], [0, 3], [4, 5]]

Check a small identity product

The off-diagonal identity entries contribute zero to every dot product. Only the matching original row and column survive in each output cell.

[[1, 0], [0, 1]] · [[7, −2], [3, 4]]

Practice

Practice: problems like this one, made and checked in your browser.

Recap

  • An identity matrix has 1s on its diagonal and 0s elsewhere.
  • AI = A and IA = A whenever dimensions allow the product.
  • Identity multiplication preserves both entries and dimensions.