Read · 2 min
Dimensions of a Product Matrix
Matrix multiplication is a necessary part of mathematics and even if it does not seem so now, it can be very fun!
But to get to the fun portion, you must learn and master the basics. So, without further ado, let us discuss the dimensions of a product of two matrices.
We denote matrix dimensions as row by column. So a matrix denoted would look like this:
Now when we multiply matrices together there are certain rules that we must adhere to. Namely, that matrices that can be multiplied must follow the form:
This rule also necessarily implies that matrix multiplication is not commutative
Let's explore what I've just stated a little deeper!
Matrix Multiplication when
You have Matrix A and B, respectively:
We will have to use the dot product to solve this expression, so if you need to review matrix multiplication using dot product then feel free to click the link before moving on.
We have a 2x3 and a 3x2, which satisfies our so now we can move on to finding the resultant matrix.
The first row of Matrix A dot the first column of matrix B
The first row of Matrix A dot the second column of Matrix B
The second row of Matrix A dot the first column of Matrix B
The second row of Matrix A dot the second column of matrix B
Thus, the final matrix will be of the form and will be made in the following lay:
You might notice something curious about this final matrix, namely about its dimensions. It's a which was the portion of matrix A and the portion of matrix B, according to our rule. If you think this is will consistently be the outcome of proper matrix multiplication, then you are correct!
The final matrix will always result in dimensions of
Now, let's look at why matrix multiplication isn't commutative.
Matrix Multiplication Non-commutative
This concept actually is quite simple to understand! Taking the example from above we can easily see that if
and then will produce a matrix because it follows our rule, but does not. Simply because A's row dimension doesn't match B's column dimension.
Try it out on your own and see for yourself!

