Identity Matrix

The identity matrix leaves any matrix unchanged when multiplied—the matrix equivalent of 1, essential for solving linear systems and finding inverses.

AI=IA=AAI = IA = A

Solve a problem with Identity Matrix

Type the problem. The solver will use Identity Matrix where Identity Matrix is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Identity Matrix takes
AA
II
Identity Matrix
SymbolMeaning
AAA is any matrix being multiplied. The identity matrix leaves AA completely unchanged, so AI=AAI = A and IA=AIA = A. Misreading AA as a number instead of a matrix leads students to forget they are doing matrix multiplication, not scalar multiplication.
III is the identity matrix, a square matrix with 1s on the main diagonal (top-left to bottom-right) and 0s in all other positions. If you misread II as the number 1, you will not understand why matrix multiplication by II works so differently from regular multiplication by 1.

When to use it

Reach for the identity matrix when you are solving matrix equations, finding matrix inverses, or need to verify that your matrix calculations are correct.

Level

Usually taught in: Algebra II

Worked examples

1. Multiply a matrix by the 2×2 identity matrix

Problem

Multiply A=(3214)A = \begin{pmatrix} 3 & 2 \\ 1 & 4 \end{pmatrix} by the identity matrix I=(1001)I = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} and show that AI=AAI = A.
  1. (3214)(1001)\begin{pmatrix} 3 & 2 \\ 1 & 4 \end{pmatrix} \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}

    Set up the multiplication: each entry in the result comes from multiplying a row of AA by a column of II.

  2. 31+20=33 \cdot 1 + 2 \cdot 0 = 3

    Multiply row 1 of AA by column 1 of II: the first entry is 31=33 \cdot 1 = 3.

  3. 30+21=23 \cdot 0 + 2 \cdot 1 = 2

    Multiply row 1 of AA by column 2 of II: the second entry is 21=22 \cdot 1 = 2.

  4. 11+40=11 \cdot 1 + 4 \cdot 0 = 1

    Multiply row 2 of AA by column 1 of II: the third entry is 11=11 \cdot 1 = 1.

  5. 10+41=41 \cdot 0 + 4 \cdot 1 = 4

    Multiply row 2 of AA by column 2 of II: the fourth entry is 41=44 \cdot 1 = 4.

Answer: (3214)\begin{pmatrix} 3 & 2 \\ 1 & 4 \end{pmatrix}

The result is exactly AA. This is what AI=AAI = A means: multiplying by the identity leaves a matrix unchanged, just as multiplying a number by 1 leaves it unchanged.

2. Verify $IA = A$ with negative and fractional entries

Problem

Show that I(21234)=(21234)I \begin{pmatrix} -2 & \frac{1}{2} \\ 3 & -4 \end{pmatrix} = \begin{pmatrix} -2 & \frac{1}{2} \\ 3 & -4 \end{pmatrix} where II is the 2×22 \times 2 identity matrix.
  1. (1001)(21234)\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} \begin{pmatrix} -2 & \frac{1}{2} \\ 3 & -4 \end{pmatrix}

    Set up the multiplication with II on the left and AA on the right.

  2. 1(2)+03=2and112+0(4)=121 \cdot (-2) + 0 \cdot 3 = -2 \quad \text{and} \quad 1 \cdot \frac{1}{2} + 0 \cdot (-4) = \frac{1}{2}

    The first row of II is [1,0][1, 0], so it picks out the first row of AA: 2-2 and 12\frac{1}{2}.

  3. 0(2)+13=3and012+1(4)=40 \cdot (-2) + 1 \cdot 3 = 3 \quad \text{and} \quad 0 \cdot \frac{1}{2} + 1 \cdot (-4) = -4

    The second row of II is [0,1][0, 1], so it picks out the second row of AA: 33 and 4-4.

Answer: (21234)\begin{pmatrix} -2 & \frac{1}{2} \\ 3 & -4 \end{pmatrix}

IA=AIA = A, confirming that the identity works whether it is on the left or the right of AA. Even with negative and fractional entries, multiplying by II leaves AA completely unchanged.

3. Track sales at three coffee shops using matrix multiplication by the identity

Problem

A coffee shop chain has three locations. Monday's sales were recorded in the matrix S=(3408529011032095)S = \begin{pmatrix} 340 & 85 \\ 290 & 110 \\ 320 & 95 \end{pmatrix}, where rows are locations and columns are coffee (in dollars) and pastries (in dollars). Multiply SS by the 2×22 \times 2 identity matrix to verify that SI=SSI = S.
  1. (3408529011032095)(1001)\begin{pmatrix} 340 & 85 \\ 290 & 110 \\ 320 & 95 \end{pmatrix} \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}

    Set up the multiplication: SS is 3×23 \times 2 and II is 2×22 \times 2, so the result will be 3×23 \times 2.

  2. 3401+850=340and3400+851=85340 \cdot 1 + 85 \cdot 0 = 340 \quad \text{and} \quad 340 \cdot 0 + 85 \cdot 1 = 85

    Location 1's sales of $340 for coffee and $85 for pastries remain exactly the same after multiplying by II.

  3. 2901+1100=290and2900+1101=110290 \cdot 1 + 110 \cdot 0 = 290 \quad \text{and} \quad 290 \cdot 0 + 110 \cdot 1 = 110

    Location 2's sales of $290 and $110 stay unchanged.

  4. 3201+950=320and3200+951=95320 \cdot 1 + 95 \cdot 0 = 320 \quad \text{and} \quad 320 \cdot 0 + 95 \cdot 1 = 95

    Location 3's sales of $320 and $95 remain the same.

Answer: (3408529011032095)\begin{pmatrix} 340 & 85 \\ 290 & 110 \\ 320 & 95 \end{pmatrix}

The result SISI equals SS: all three locations' sales data is unchanged. Multiplying by the identity is like saying 'apply no transformation'—in business applications, this ensures that data stays exactly what it was when you are organizing figures or testing whether calculations are correct.

Common mistakes

Where Identity Matrix usually goes wrong
Answer came out wrong
Writing AI=AAI = A and claiming the answer without showing the row-by-column multiplication work.
Always multiply row-by-row and column-by-column, writing out at least a few entries like (a1)(1)+(a2)(0)=a1(a_1)(1) + (a_2)(0) = a_1 to show that each entry of the result matches the original.
Claiming that IAAIIA \ne AI because 'matrix multiplication is not commutative', so the identity works only on one side.
Verify with a concrete example: multiply a small matrix by II on both the left and the right, and you will see both products equal the original matrix. This is a defining property of the identity.
Confusing the identity matrix II with the scalar 1 and writing A1=1A \cdot 1 = 1 instead of AI=AAI = A.
Remember that II is always a square matrix with 1s on the main diagonal and 0s everywhere else. Matrix multiplication AIAI follows the row-by-column rule, never element-by-element scaling.
The mistakeWhy it is wrongThe fix
Writing AI=AAI = A and claiming the answer without showing the row-by-column multiplication work.If you do not carry out each entry of the multiplication step by step, you might write the correct shape of matrix but with wrong values—or you might skip multiplying entirely and miss the point that II actually preserves AA.Always multiply row-by-row and column-by-column, writing out at least a few entries like (a1)(1)+(a2)(0)=a1(a_1)(1) + (a_2)(0) = a_1 to show that each entry of the result matches the original.
Claiming that IAAIIA \ne AI because 'matrix multiplication is not commutative', so the identity works only on one side.The identity matrix is the one exception to the non-commutative rule: IA=AI=AIA = AI = A always holds. Many students remember that matrix multiplication is not commutative in general and incorrectly assume this means the identity also depends on order.Verify with a concrete example: multiply a small matrix by II on both the left and the right, and you will see both products equal the original matrix. This is a defining property of the identity.
Confusing the identity matrix II with the scalar 1 and writing A1=1A \cdot 1 = 1 instead of AI=AAI = A.II is a matrix, not a number. When you write AIAI, you are doing matrix multiplication (row times column), not scalar multiplication or trying to simplify away the identity.Remember that II is always a square matrix with 1s on the main diagonal and 0s everywhere else. Matrix multiplication AIAI follows the row-by-column rule, never element-by-element scaling.

Tips and when to use something else

  • The identity matrix is different for different sizes: the 2×22 \times 2 identity has four entries, the 3×33 \times 3 has nine, and so on. Always make sure your identity matrix matches the dimensions needed for the multiplication.
  • Multiplying by the identity is useful for solving matrix equations like AX=BAX = B. If you find a matrix A1A^{-1} (called the inverse) such that A1A=IA^{-1}A = I, you can solve for X=A1BX = A^{-1}B. Study matrix inverses when you are ready to solve systems this way.
  • The identity matrix is square: it always has the same number of rows and columns. If you have a non-square matrix like 3×23 \times 2, you will need different identity matrices on the left and right depending on which product you want.
  • If you want to combine transformations in geometry or graphics (rotations, scalings, reflections), you will use different matrices instead of the identity. Look into rotation matrices and scaling matrices once you are comfortable with the identity.

Frequently asked questions

What is the identity matrix?
The identity matrix, written II, is a square matrix with 1s on the main diagonal and 0s everywhere else. For any matrix AA, multiplying by II does not change AA: we always get IA=AI=AIA = AI = A. Think of it as the 'do nothing' transformation in matrix algebra.
Why is it called the identity matrix?
It is called 'identity' because its only job is to preserve the identity—the original value—of whatever matrix it multiplies. Just as multiplying a number by 1 does not change it, multiplying a matrix by the identity matrix does not change it either.
Can you multiply any matrix by the identity?
Multiplying AA by II only works if the dimensions match: if AA is m×nm \times n, you multiply by an n×nn \times n identity on the right to get AIAI, or an m×mm \times m identity on the left to get IAIA. The key rule is that the inner dimensions must match for matrix multiplication to be defined.
What is the identity matrix used for in real life?
The identity matrix is essential for finding matrix inverses and solving equations like AX=BAX = B. It is also used to test whether matrix calculations are correct, for computer graphics where you might start with no transformation and then apply rotations, and whenever you need to represent 'do nothing' as a transformation.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18