Tutorials › Linear Algebra › Identity And Zero Matrices Under Multiplication

Matrix Operations and Algebra · Tutorial 70 of 1000

Identity And Zero Matrices Under Multiplication

Learn to identify the correct identity or zero matrix for a product, and verify the resulting matrix and its dimensions.

Beginner 9 min read

What You'll Learn

  • Define identity matrices and zero matrices of specified sizes.
  • Use the entry formula to prove left- and right-multiplication rules.
  • Track the output dimensions when multiplying by an identity or zero matrix.
  • Distinguish a zero matrix factor from the size of the resulting zero matrix.
  • Recognize and correct incompatible identity-matrix products.

Two Special Matrices and Their Effects

Some matrices have a simple, predictable effect under multiplication: an identity matrix leaves a compatible matrix unchanged, while a zero matrix makes the product zero. These statements are simple to use, but the sizes matter. A rectangular matrix has different numbers of rows and columns, so the identity matrix that can multiply it on the left may not be the one that can multiply it on the right. Similarly, the dimensions of a zero product are determined by the product, not by the zero factor alone.

Throughout, matrices have real entries and positive integer dimensions. Recall that if \(\mathbf{A}\) has \(m\) rows and \(n\) columns, then its entry in row \(i\), column \(j\) is \(a_{ij}\), and we write \(\mathbf{A}\in\mathbb{R}^{m\times n}\). For a product \(\mathbf{A}\mathbf{B}\) to be defined, the number of columns of \(\mathbf{A}\) must equal the number of rows of \(\mathbf{B}\). Its \((i,j)\)-entry is the sum of products across row \(i\) of \(\mathbf{A}\) and column \(j\) of \(\mathbf{B}\).

Definition: For \(n\in\mathbb{N}\), the identity matrix \(\mathbf{I}_n\) is the \(n\times n\) matrix whose diagonal entries are \(1\) and whose other entries are \(0\). Equivalently, its entry in row \(i\), column \(j\) is \(1\) when \(i=j\), and \(0\) when \(i\ne j\). For positive integers \(r,s\), the zero matrix \(\mathbf{O}_{r\times s}\) is the \(r\times s\) matrix all of whose entries are \(0\). When the size is unambiguous, we may write \(\mathbf{O}\).

The identity matrix is always square, but a zero matrix need not be square. The dimensions in the notation \(\mathbf{O}_{r\times s}\) specify its shape, including when \(r\ne s\). If \(\mathbf{A}\in\mathbb{R}^{m\times n}\), then left multiplication by an identity matrix requires an \(m\times m\) identity, while right multiplication requires an \(n\times n\) identity. Thus the dimension-matched products are \(\mathbf{I}_m\mathbf{A}\) and \(\mathbf{A}\mathbf{I}_n\).

Why Identity Matrices Leave Products Unchanged

Theorem: If \(\mathbf{A}\in\mathbb{R}^{m\times n}\), then $$ \mathbf{I}_m\mathbf{A}=\mathbf{A} \qquad\text{and}\qquad \mathbf{A}\mathbf{I}_n=\mathbf{A}. $$

Proof. Write the entries of \(\mathbf{I}_m\) as \(\delta_{ik}\), where \(\delta_{ik}=1\) if \(i=k\) and \(\delta_{ik}=0\) otherwise. The \((i,j)\)-entry of \(\mathbf{I}_m\mathbf{A}\) is \(\sum_{k=1}^{m}\delta_{ik}a_{kj}\). Every term is zero except the term with \(k=i\), so this sum is \(a_{ij}\). This holds for every \(i\) and \(j\), hence \(\mathbf{I}_m\mathbf{A}=\mathbf{A}\). For the product on the right, the \((i,j)\)-entry of \(\mathbf{A}\mathbf{I}_n\) is \(\sum_{k=1}^{n}a_{ik}\delta_{kj}\). Every term is zero except the term with \(k=j\), so this sum is \(a_{ij}\). Therefore \(\mathbf{A}\mathbf{I}_n=\mathbf{A}\) as well. Both products have the same size as \(\mathbf{A}\), so equality of all their entries proves the stated matrix equalities. \(\square\)

The two products work for different dimensional reasons. On the left, \(\mathbf{I}_m\) has \(m\) columns to match the \(m\) rows of \(\mathbf{A}\); on the right, \(\mathbf{I}_n\) has \(n\) rows to match the \(n\) columns of \(\mathbf{A}\). The entry calculation shows what each multiplication does: the left identity selects the matching row of \(\mathbf{A}\), and the right identity selects the matching column. Neither multiplication changes any entry.

Worked Example: Multiplying a Rectangular Matrix by Identities

Let \(\mathbf{A}=\begin{bmatrix}2&-1&3\\0&4&5\end{bmatrix}\), so \(\mathbf{A}\) is \(2\times3\). Compute the products with the correctly sized identities on both sides.

For left multiplication, the identity must be \(\mathbf{I}_2\). The two rows are calculated as follows:

$$ \begin{bmatrix}1&0\\0&1\end{bmatrix} \begin{bmatrix}2&-1&3\\0&4&5\end{bmatrix} = \begin{bmatrix} 1(2)+0(0)&1(-1)+0(4)&1(3)+0(5)\\ 0(2)+1(0)&0(-1)+1(4)&0(3)+1(5) \end{bmatrix} = \begin{bmatrix}2&-1&3\\0&4&5\end{bmatrix}. $$

For right multiplication, the identity must be \(\mathbf{I}_3\). Each column of \(\mathbf{A}\) is selected unchanged:

$$ \begin{bmatrix}2&-1&3\\0&4&5\end{bmatrix} \begin{bmatrix}1&0&0\\0&1&0\\0&0&1\end{bmatrix} = \begin{bmatrix} 2(1)+(-1)(0)+3(0)&2(0)+(-1)(1)+3(0)&2(0)+(-1)(0)+3(1)\\ 0(1)+4(0)+5(0)&0(0)+4(1)+5(0)&0(0)+4(0)+5(1) \end{bmatrix} = \begin{bmatrix}2&-1&3\\0&4&5\end{bmatrix}. $$

Check: both products are \(2\times3\), as required by their dimensions, and every calculated entry matches the corresponding entry of \(\mathbf{A}\).

Why Multiplication by a Zero Matrix Gives Zero

Theorem: Let \(\mathbf{A}\in\mathbb{R}^{m\times n}\). For any positive integers \(r\) and \(s\), $$ \mathbf{O}_{r\times m}\mathbf{A}=\mathbf{O}_{r\times n} \qquad\text{and}\qquad \mathbf{A}\mathbf{O}_{n\times s}=\mathbf{O}_{m\times s}. $$

Proof. The first product is defined because \(\mathbf{O}_{r\times m}\) has \(m\) columns, matching the \(m\) rows of \(\mathbf{A}\). Its \((i,j)\)-entry, for \(1\le i\le r\) and \(1\le j\le n\), is \(\sum_{k=1}^{m}0\cdot a_{kj}=0\), since every entry in row \(i\) of the zero matrix is zero. The output has \(r\) rows and \(n\) columns, so it is exactly \(\mathbf{O}_{r\times n}\). The second product is defined because the \(n\) columns of \(\mathbf{A}\) match the \(n\) rows of \(\mathbf{O}_{n\times s}\). Its \((i,j)\)-entry, for \(1\le i\le m\) and \(1\le j\le s\), is \(\sum_{k=1}^{n}a_{ik}\cdot0=0\). This output has \(m\) rows and \(s\) columns, so it is \(\mathbf{O}_{m\times s}\). Thus both products are zero matrices of the stated sizes. \(\square\)

The entries vanish because each sum in the product formula consists only of zero terms. The dimensions, however, still follow the ordinary matrix-product rule: the product takes its row count from the left factor and its column count from the right factor. This is why the resulting zero matrix may have a different size from the zero matrix used as a factor.

Worked Example: Zero Matrices on Both Sides

Use \(\mathbf{A}=\begin{bmatrix}1&-2&0\\3&1&4\end{bmatrix}\), which is \(2\times3\). Compute \(\mathbf{O}_{4\times2}\mathbf{A}\) and \(\mathbf{A}\mathbf{O}_{3\times2}\).

The first product is \((4\times2)(2\times3)\), so its size is \(4\times3\). Each of its entries is a sum of two zero products:

$$ \begin{bmatrix} 0&0\\0&0\\0&0\\0&0 \end{bmatrix} \begin{bmatrix}1&-2&0\\3&1&4\end{bmatrix} = \begin{bmatrix} 0(1)+0(3)&0(-2)+0(1)&0(0)+0(4)\\ 0(1)+0(3)&0(-2)+0(1)&0(0)+0(4)\\ 0(1)+0(3)&0(-2)+0(1)&0(0)+0(4)\\ 0(1)+0(3)&0(-2)+0(1)&0(0)+0(4) \end{bmatrix} = \begin{bmatrix}0&0&0\\0&0&0\\0&0&0\\0&0&0\end{bmatrix}. $$

The second product is \((2\times3)(3\times2)\), so its size is \(2\times2\):

$$ \begin{bmatrix}1&-2&0\\3&1&4\end{bmatrix} \begin{bmatrix}0&0\\0&0\\0&0\end{bmatrix} = \begin{bmatrix} 1(0)+(-2)(0)+0(0)&1(0)+(-2)(0)+0(0)\\ 3(0)+1(0)+4(0)&3(0)+1(0)+4(0) \end{bmatrix} = \begin{bmatrix}0&0\\0&0\end{bmatrix}. $$

Check: the first result has four rows from its left factor and three columns from its right factor; the second has two rows and two columns. Every entry in each result is zero, as the entry computations show.

Combining the Rules in a Product

The identity and zero rules can be used successively, as long as each product is dimensionally compatible. An identity factor preserves the matrix at that stage; a zero factor makes the next product zero. The order and sizes of the factors must still be checked before applying either rule.

Worked Example: An Identity Followed by a Zero Matrix

Let \(\mathbf{B}=\begin{bmatrix}1&-2&0\\3&1&4\end{bmatrix}\). Evaluate \(\mathbf{I}_2\mathbf{B}\mathbf{O}_{3\times1}\), showing the sizes at each stage.

The first product is defined because \(\mathbf{I}_2\) is \(2\times2\) and \(\mathbf{B}\) is \(2\times3\). It equals \(\mathbf{B}\):

$$ \mathbf{I}_2\mathbf{B} = \begin{bmatrix}1&0\\0&1\end{bmatrix} \begin{bmatrix}1&-2&0\\3&1&4\end{bmatrix} = \begin{bmatrix}1&-2&0\\3&1&4\end{bmatrix}. $$

Now multiply the resulting \(2\times3\) matrix by the \(3\times1\) zero matrix. The output must be \(2\times1\):

$$ \begin{bmatrix}1&-2&0\\3&1&4\end{bmatrix} \begin{bmatrix}0\\0\\0\end{bmatrix} = \begin{bmatrix}1(0)+(-2)(0)+0(0)\\3(0)+1(0)+4(0)\end{bmatrix} = \begin{bmatrix}0\\0\end{bmatrix}. $$

Check: the first multiplication leaves \(\mathbf{B}\) unchanged, and the second has one zero entry in each output row because its only column is zero. The final matrix is a \(2\times1\) zero matrix.

Common Mistakes About Sizes

Using an identity with the wrong dimensions. For the \(2\times3\) matrix \(\mathbf{A}\) in the first example, writing \(\mathbf{I}_3\mathbf{A}\) does not give \(\mathbf{A}\). In fact, that product is not defined: \(\mathbf{I}_3\) has \(3\) columns, but \(\mathbf{A}\) has \(2\) rows, and \(3\ne2\). The correction is to use \(\mathbf{I}_2\mathbf{A}\) on the left and \(\mathbf{A}\mathbf{I}_3\) on the right.

Giving the zero product the size of its zero factor. It would be wrong to say that \(\mathbf{O}_{4\times2}\mathbf{A}\) is \(4\times2\) just because its left factor has that size. The product’s inner dimensions, \(2\) and \(2\), match, and the outer dimensions are \(4\) and \(3\); the result is therefore \(4\times3\). Likewise, \(\mathbf{A}\mathbf{O}_{3\times2}\) is \(2\times2\), not \(3\times2\).

ProductRequired factor sizesResult
\(\mathbf{I}_m\mathbf{A}\)\(\mathbf{A}\) is \(m\times n\)\(\mathbf{A}\), of size \(m\times n\)
\(\mathbf{A}\mathbf{I}_n\)\(\mathbf{A}\) is \(m\times n\)\(\mathbf{A}\), of size \(m\times n\)
\(\mathbf{O}_{r\times m}\mathbf{A}\)\(\mathbf{A}\) is \(m\times n\)\(\mathbf{O}_{r\times n}\)
\(\mathbf{A}\mathbf{O}_{n\times s}\)\(\mathbf{A}\) is \(m\times n\)\(\mathbf{O}_{m\times s}\)

These matrices are useful as reference points for checking calculations: an identity factor should preserve all entries, and a zero factor should make every entry of the product vanish. They do not remove the need to check conformability. Before calculating, identify the number of rows and columns of every factor; then verify that the inner dimensions match and record the outer dimensions as the size of the result.

Check Your Understanding

For each question, state the dimensions before using the multiplication rules.

  1. If \(\mathbf{C}\) is \(3\times2\), which identity matrix leaves it unchanged on the left, and which leaves it unchanged on the right?
  2. What is \(\mathbf{O}_{5\times3}\mathbf{C}\) when \(\mathbf{C}\) is \(3\times2\)? State both the entries and the dimensions.
  3. If \(\mathbf{D}\) is \(4\times1\), is \(\mathbf{I}_4\mathbf{D}\) defined? Is \(\mathbf{D}\mathbf{I}_4\) defined? Explain by comparing inner dimensions.
  4. For \(\mathbf{E}\) of size \(2\times4\), give a zero matrix that can multiply \(\mathbf{E}\) on the right and make the result \(2\times3\).
  5. Explain why \(\mathbf{O}_{2\times3}\mathbf{O}_{3\times1}\) is a \(2\times1\) zero matrix rather than a \(2\times3\) or \(3\times1\) matrix.

Test yourself: Linear Algebra final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon