Question Video: Verifying Whether the Multiplication of Two Matrices Is Commutative | Nagwa Question Video: Verifying Whether the Multiplication of Two Matrices Is Commutative | Nagwa

Question Video: Verifying Whether the Multiplication of Two Matrices Is Commutative Mathematics

Consider the 2 Γ— 2 matrices 𝐴 = [1, 1 and 0, 0] and 𝐡 = [0, 1 and 0, 1]. Is 𝐴𝐡 = 𝐡𝐴?

04:42

Video Transcript

Consider the two-by-two matrices 𝐴 equals one, one, zero, zero and 𝐡 equals zero, one, zero, one. Is 𝐴𝐡 equal to 𝐡𝐴?

In this example, we want to determine the matrix multiplication of two two-by-two matrices in both directions. If 𝐴𝐡 equals 𝐡𝐴, then we can say that matrix multiplication is commutative in this case. We recall that in general matrix multiplication is not commutative. We also recall that matrix multiplication can only be performed in certain circumstances, depending on the order of each matrix.

Let’s say matrix 𝐴 had order π‘š by 𝑛 and matrix 𝐡 had order 𝑛 by 𝑝. This means that matrix 𝐴 has π‘š rows and 𝑛 columns and matrix 𝐡 has 𝑛 rows and 𝑝 columns. In order to perform matrix multiplication 𝐴𝐡, the number of columns in matrix 𝐴 must equal the number of rows in matrix 𝐡. On the other hand, to perform matrix multiplication 𝐡𝐴, the number of columns of matrix 𝐡 must equal the number of rows of matrix 𝐴. In other words, π‘š must equal 𝑝. In this example, both matrices have order two by two. So we will have no problem multiplying in either direction because the number of columns and the number of rows are all the same.

Let’s clear some space in order to do our first matrix multiplication. Let’s begin by finding 𝐴𝐡. Since 𝐴 is a two-by-two matrix and 𝐡 is a two-by-two matrix, 𝐴𝐡 will also be a two-by-two matrix. To demonstrate the process, let’s carry out the details of the multiplication for the first row. We take the first element of the first row of matrix 𝐴 and multiply it with the first element of the first column of matrix 𝐡, that is, one times zero. Then, we add the product of the second element from the first row of matrix 𝐴 with the second element of the first column of matrix 𝐡, that is, one times zero. Evaluating this expression gives us zero, which will be the first element of our product matrix.

To find the second element of the product, we will repeat these procedures with the first row of matrix 𝐴 and the second column of matrix 𝐡. This looks like one times one plus one times one, which equals two. Therefore, two is the second element of our product.

Now that we have found the entire first row of our product, we will move down to the second row of matrix 𝐴 and use those two entries for our final computations. We find the next entry of our product to be zero and the final entry to also be zero. Now we are ready to perform the matrix multiplication in the other order, 𝐡 times 𝐴. For consistency, we will continue to use pink to underline elements in matrix 𝐡 and orange to underline elements in matrix 𝐴.

Using the same procedures as before we find the first element of our product to be zero. The second element is also zero, and the third, and the fourth. If we examine the second element in the first row of each product, we see that two does not equal zero, meaning the two matrices are not equal. Therefore, our answer to this question is no, the matrix multiplication between these two specific matrices is not commutative because 𝐴𝐡 does not equal 𝐡𝐴.

Join Nagwa Classes

Attend live sessions on Nagwa Classes to boost your learning with guidance and advice from an expert teacher!

  • Interactive Sessions
  • Chat & Messaging
  • Realistic Exam Questions

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy