If you find this page helpful and would recommend that I create more pages like this one, please let me know:
Email to John Taylor
If you want to see all of the following steps at once, click the "All Steps" button. Otherwise, use the "Next" button.
Find the product
AB = C, where
A =
|
┌
|
|
|
|
┐
|
|
│
|
4
|
1
|
5
|
│
|
|
│
|
3
|
–2
|
1
|
│
|
|
└
|
|
|
|
┘
|
and
B
|
┌
|
|
|
┐
|
|
│
|
1
|
–4
|
│
|
|
│
|
3
|
2
|
│
|
|
│
|
–2
|
–3
|
│
|
|
└
|
|
|
┘
|
We’ll be talking about rows and columns, so let’s be sure which is which. Is a row left-right or up-and-down?
Left-right.
These matrices have different numbers of rows and columns. Can they really be multiplied?
Yes they can.
What is the requirement on the number of rows and columns of A and B?
The only requirement is that the number of columns in the first matrix must be the same as the number of rows in the second.
Will the result of AB = C be a number or a matrix?
A matrix.
How many rows will C have?
It will have the same number of rows as the first matrix has.
How many is that here?
Two.
How many columns will C have?
It will have the same number of columns as the second matrix has.
How many is that here?
Two.
Use C11, C12, C21, and C22 to represent the elements of C. Show how C will look.
|
┌
|
|
|
┐
|
|
│
|
C11
|
C12
|
│
|
|
│
|
C21
|
C22
|
│
|
|
└
|
|
|
┘
|
Now we can set up our problem:
|
┌
|
|
|
|
┐
|
|
┌
|
|
|
┐
|
|
┌
|
|
|
┐
|
|
│
|
4
|
1
|
5
|
│
|
|
│
|
1
|
–4
|
│
|
|
│
|
C11
|
C12
|
│
|
|
│
|
3
|
–2
|
1
|
│
|
*
|
│
|
3
|
2
|
│
|
=
|
│
|
C21
|
C22
|
│
|
|
└
|
|
|
|
┘
|
|
│
|
–2
|
–3
|
│
|
|
└
|
|
|
┘
|
|
|
|
|
|
|
|
└
|
|
|
┘
|
|
|
|
|
|
The color indicates how we obtain C
11. Show the details with the numerical values.
We get C11 = 4*1 + 1*3 + 5*(–2) = –3
Which row of A is involved in C12?
The first.
Which column of B is involved in C12?
The second.
Indicate this on the matrices.
|
┌
|
|
|
|
┐
|
|
┌
|
|
|
┐
|
|
┌
|
|
|
┐
|
|
│
|
4
|
1
|
5
|
│
|
|
│
|
1
|
–4
|
│
|
|
│
|
C11
|
C12
|
│
|
|
│
|
3
|
–2
|
1
|
│
|
*
|
│
|
3
|
2
|
│
|
=
|
│
|
C21
|
C22
|
│
|
|
└
|
|
|
|
┘
|
|
│
|
–2
|
–3
|
│
|
|
└
|
|
|
┘
|
|
|
|
|
|
|
|
└
|
|
|
┘
|
|
|
|
|
|
Show the details with the numerical values.
We get C12 = 4*(–4) + 1*2 + 5*(–3) = –29
Which row of A is involved in C21?
The second.
Which column of B is involved in C21?
The first.
Indicate this on the matrices.
|
┌
|
|
|
|
┐
|
|
┌
|
|
|
┐
|
|
┌
|
|
|
┐
|
|
│
|
4
|
1
|
5
|
│
|
|
│
|
1
|
–4
|
│
|
|
│
|
C11
|
C12
|
│
|
|
│
|
3
|
–2
|
1
|
│
|
*
|
│
|
3
|
2
|
│
|
=
|
│
|
C21
|
C22
|
│
|
|
└
|
|
|
|
┘
|
|
│
|
–2
|
–3
|
│
|
|
└
|
|
|
┘
|
|
|
|
|
|
|
|
└
|
|
|
┘
|
|
|
|
|
|
Show the details with the numerical values.
We get C21 = 3*1 + (–2)*3 + 1*(–2) = –5
Which row of A is involved in C22?
The second.
Which column of B is involved in C22?
The second.
Indicate this on the matrices.
|
┌
|
|
|
|
┐
|
|
┌
|
|
|
┐
|
|
┌
|
|
|
┐
|
|
│
|
4
|
1
|
5
|
│
|
|
│
|
1
|
–4
|
│
|
|
│
|
C11
|
C12
|
│
|
|
│
|
3
|
–2
|
1
|
│
|
*
|
│
|
3
|
2
|
│
|
=
|
│
|
C21
|
C22
|
│
|
|
└
|
|
|
|
┘
|
|
│
|
–2
|
–3
|
│
|
|
└
|
|
|
┘
|
|
|
|
|
|
|
|
└
|
|
|
┘
|
|
|
|
|
|
Show the details with the numerical values.
We get C22 = 3*(–4) + (–2)*2 + 1*(–3) = –19
Combine the results to show the numerical elements of C.
|
|
|
┌
|
|
|
┐
|
|
┌
|
|
|
┐
|
|
|
|
│
|
C11
|
C12
|
│
|
|
│
|
–3
|
–29
|
│
|
|
C
|
=
|
│
|
C21
|
C22
|
│
|
=
|
│
|
–5
|
–19
|
│
|
|
|
|
└
|
|
|
┘
|
|
└
|
|
|
┘
|
|
|
|
|
|
|
|
|
|
|
|
|
Next, let’s try forming the product

.
What determines whether the product can be found?
The number of columns in the first matrix must equal the number of rows in the second matrix.
Is that the case here?
Yes.
How many rows will the product have?
It will have the same number of rows as the first factor has.
How many columns will the product have?
It will have the same number of columns as the second factor has.
State the dimensions of our product.
It will be 3 rows by 3 columns.
Set up the first row of the product.
Set up the second row of the product.
Set up the third row.
Simplify.
Obviously,

when the dimensions of the two products are different.
Will the dimensions of the two products ever be equal?
Yes, when the two matrices are square.
Here is a 2x2 example:

, and

Determine the product AB.
We get
Determine BA.
So, even though the dimensions are the same for the two products, they are not equal. This is usually the case, but not always.
The end. If you found this helpful and would recommend that I create more pages like this one, please let me know:
Email to John Taylor