If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Intro to identity matrices

Learn what an identity matrix is and about its role in matrix multiplication.

What you should be familiar with before taking this lesson

A matrix is a rectangular arrangement of numbers into rows and columns.
The dimensions of a matrix tell the number of rows and columns of the matrix in that order. Since matrix A has 2 rows and 3 columns, it is called a 2×3 matrix.
If this is new to you, we recommend that you check out our intro to matrices.
In matrix multiplication, each entry in the product matrix is the dot product of a row in the first matrix and a column in the second matrix.
If this is new to you, we recommend that you check out our matrix multiplication article.

Definition of identity matrix

The n×n identity matrix, denoted In, is a matrix with n rows and n columns. The entries on the diagonal from the upper left to the bottom right are all 1's, and all other entries are 0.
For example:
The identity matrix plays a similar role in operations with matrices as the number 1 plays in operations with real numbers. Let's take a look.

Investigation: Multiplying by the identity matrix

Try a few multiplication problems involving the appropriate identity matrix.
1) I2=[1001] and A=[2351].

2) I3=[100010001] and A=[154322413].

The conclusion

The product of any square matrix and the appropriate identity matrix is always the original matrix, regardless of the order in which the multiplication was performed! In other words, AI=IA=A.

Connections to the real numbers

Multiplicative Identities

The identity matrix I plays a similar role to what the number 1 plays in the real number system.
The number 1The identity matrix I
The product of 1 and any number a is a. (a1=1a=a)The product of a square matrix A and the appropriate identity matrix I is A. (AI=IA=A)

Multiplicative Inverses

Two real numbers whose product is the multiplicative identity are called multiplicative inverses. For example, the numbers 13 and 3 are multiplicative inverses because 133=1 and 313=1.
In fact, all nonzero real numbers have multiplicative inverses. But does this connection hold with matrix operations?
Consider matrices A and B.
A=[2334] B=[4332]
We can multiply to see that AB=I2 and BA=I2.
This means that A and B are multiplicative inverses.
However, as we will see, not all matrices have multiplicative inverses. This is one place where the properties of real numbers differ from the properties of matrices!

Want to join the conversation?