Mathwords logoMathwords

Identity Matrix

Identity Matrix

A square matrix which has a 1 for each element on the main diagonal and 0 for all other elements.

Note: The identity matrix is the identity for matrix multiplication.

3×3 identity matrix with 1s on the main diagonal (top-left to bottom-right) and 0s for all other elements.

 

 

See also

Dimensions of a matrix

Key Formula

In=[100010001]I_n = \begin{bmatrix} 1 & 0 & \cdots & 0 \\ 0 & 1 & \cdots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & \cdots & 1 \end{bmatrix}
Where:
  • InI_n = The identity matrix of size n × n
  • nn = The number of rows and columns (the matrix must be square)
  • 11 = Each entry on the main diagonal (where row index equals column index)
  • 00 = Every entry not on the main diagonal

Worked Example

Problem: Multiply the matrix A by the 2×2 identity matrix, where A = [[3, 7], [5, 2]].
Step 1: Write out the 2×2 identity matrix.
I2=[1001]I_2 = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}
Step 2: Set up the multiplication A · I₂.
AI2=[3752][1001]A \cdot I_2 = \begin{bmatrix} 3 & 7 \\ 5 & 2 \end{bmatrix} \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}
Step 3: Compute each entry using the row-by-column rule. For example, the top-left entry is (3)(1) + (7)(0) = 3, and the top-right entry is (3)(0) + (7)(1) = 7.
AI2=[31+7030+7151+2050+21]A \cdot I_2 = \begin{bmatrix} 3\cdot1 + 7\cdot0 & 3\cdot0 + 7\cdot1 \\ 5\cdot1 + 2\cdot0 & 5\cdot0 + 2\cdot1 \end{bmatrix}
Step 4: Simplify to get the result.
AI2=[3752]A \cdot I_2 = \begin{bmatrix} 3 & 7 \\ 5 & 2 \end{bmatrix}
Answer: A · I₂ = A. The matrix is unchanged, confirming that the identity matrix is the multiplicative identity.

Another Example

This example focuses on constructing and verifying the identity matrix using its element-wise definition, rather than demonstrating the multiplication property.

Problem: Write the 3×3 identity matrix and verify that it satisfies the element-wise definition: entry (i, j) equals 1 when i = j and 0 when i ≠ j.
Step 1: Construct the 3×3 identity matrix by placing 1s on the main diagonal (positions (1,1), (2,2), (3,3)) and 0s elsewhere.
I3=[100010001]I_3 = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix}
Step 2: Express this using the Kronecker delta notation, where each entry is defined by a simple rule.
(I3)ij=δij={1if i=j0if ij(I_3)_{ij} = \delta_{ij} = \begin{cases} 1 & \text{if } i = j \\ 0 & \text{if } i \neq j \end{cases}
Step 3: Check a few entries. Entry (1,1): i = j = 1, so the value is 1. ✓ Entry (2,3): i = 2 ≠ 3 = j, so the value is 0. ✓ Entry (3,3): i = j = 3, so the value is 1. ✓
Answer: The 3×3 identity matrix is [[1,0,0],[0,1,0],[0,0,1]], and every entry matches the rule: 1 when the row equals the column, 0 otherwise.

Frequently Asked Questions

Why is the identity matrix important?
The identity matrix plays the same role in matrix algebra that the number 1 plays in ordinary multiplication. Any matrix A multiplied by the appropriately sized identity matrix gives back A. This property is essential when solving systems of linear equations, computing matrix inverses, and performing matrix transformations.
What is the difference between the identity matrix and the zero matrix?
The identity matrix has 1s on the main diagonal and 0s elsewhere; it is the multiplicative identity, so A · I = A. The zero matrix has 0 in every entry; it is the additive identity, so A + O = A. The identity matrix preserves a matrix under multiplication, while the zero matrix preserves a matrix under addition.
Can the identity matrix be non-square?
No. The identity matrix must be square (same number of rows and columns). This is because it needs to work as a multiplicative identity on both sides: A · Iₙ = A and Iₘ · A = A. Both of these conditions require the identity matrix to be square. You will see identity matrices written as I₂, I₃, I₄, and so on, where the subscript denotes the size.

Identity Matrix vs. Zero Matrix

Identity MatrixZero Matrix
DefinitionSquare matrix with 1s on the diagonal, 0s elsewhereMatrix with 0 in every entry (any dimensions)
RoleMultiplicative identity: A · I = AAdditive identity: A + O = A
Must be square?Yes, always n × nNo, can be any size m × n
Determinantdet(I) = 1det(O) = 0 (if square)
Invertible?Yes — its own inverse (I⁻¹ = I)No — never invertible

Why It Matters

The identity matrix appears throughout linear algebra and its applications. When you find the inverse of a matrix, you row-reduce the augmented matrix [A | I] until the left side becomes I. In computer graphics, transformations like rotation and scaling start from the identity matrix as a "do nothing" baseline, and in systems of equations, the identity matrix signals that you have isolated each variable.

Common Mistakes

Mistake: Using the wrong size identity matrix when multiplying. For example, trying to multiply a 2×3 matrix by I₂ on the right.
Correction: For A · I to work, the identity matrix must have the same number of rows as A has columns. A 2×3 matrix A requires I₃ on the right (A · I₃) and I₂ on the left (I₂ · A).
Mistake: Confusing the identity matrix with a matrix of all 1s.
Correction: The identity matrix has 1s only on the main diagonal; all other entries are 0. A matrix filled entirely with 1s is sometimes called the "ones matrix" or J matrix, and it does not preserve a matrix under multiplication.

Related Terms