WEBVTT
00:00:00.820 --> 00:00:08.360
In this video, we will learn how to identify the conditions for matrix multiplication and evaluate the product of two matrices if possible.
00:00:09.070 --> 00:00:17.690
Recall that a matrix is an array, often consisting of numbers which we call elements, but also a matrix could consist of symbols or expressions.
00:00:17.890 --> 00:00:20.930
We often use capital letters to represent matrices.
00:00:21.630 --> 00:00:24.820
We can describe the size of a matrix with its dimensions.
00:00:25.050 --> 00:00:30.780
If a matrix has π rows and π columns, we say that this is an π-by-π matrix.
00:00:31.510 --> 00:00:37.590
For example, this is a two-by-two matrix and this is a three-by-four matrix.
00:00:38.330 --> 00:00:45.330
There are two types of multiplication we can do with matrices, scalar multiplication and the matrix multiplication.
00:00:45.940 --> 00:00:49.850
Scalar multiplication involves multiplying a matrix by a scalar.
00:00:50.110 --> 00:00:52.630
This just means multiplying a matrix by a number.
00:00:53.340 --> 00:01:01.180
For example, with the matrix π΅, we could find three π΅ by multiplying each component of the matrix π΅ by three.
00:01:01.620 --> 00:01:03.920
So that is scalar multiplication.
00:01:04.620 --> 00:01:09.730
Matrix multiplication is a bit harder than this as it involves multiplying matrices together.
00:01:10.280 --> 00:01:17.000
In order to do matrix multiplication, weβve got to pay attention to the size of the matrices which we want to multiply together.
00:01:17.290 --> 00:01:20.060
We canβt just multiply any two matrices together.
00:01:20.560 --> 00:01:33.220
For two matrices π΄ and π΅, to find the product π΄π΅, if π΄ has dimensions π by π, then matrix π΅ must have dimensions π by π in order for multiplication to work.
00:01:34.110 --> 00:01:39.170
In other words, matrix π΄ must have the same number of columns as the rows of matrix π΅.
00:01:39.610 --> 00:01:43.380
We can also determine the size of the resultant matrix π΄π΅.
00:01:43.660 --> 00:01:47.090
The resultant matrix will have dimensions π by π.
00:01:47.630 --> 00:01:49.790
Letβs demonstrate this in an example.
00:01:50.300 --> 00:01:54.030
Consider the one-by-two matrix π΄ and the two-by-one matrix π΅.
00:01:54.420 --> 00:02:00.730
Their product π΄π΅ must exist because π΄ has the same number of columns as the number of rows in matrix π΅.
00:02:01.350 --> 00:02:05.100
We can also say that π΄π΅ has dimensions one by one.
00:02:06.070 --> 00:02:11.000
The multiplication of these two matrices is very similar to the way we find the dot product.
00:02:11.600 --> 00:02:18.640
We start by doing two multiplied by seven and then we add three multiplied by one.
00:02:19.100 --> 00:02:22.300
This gives us 14 add three, which is 17.
00:02:22.850 --> 00:02:25.620
Letβs now have a look at a more difficult example.
00:02:26.510 --> 00:02:28.820
Consider the matrices π΄ and π΅.
00:02:29.260 --> 00:02:31.270
Find π΄π΅, if possible.
00:02:32.050 --> 00:02:36.530
Letβs first establish whether the multiplication of these two matrices is possible.
00:02:37.150 --> 00:02:43.280
Matrix π΄ has three rows and two columns, and matrix π΅ has two rows and three columns.
00:02:43.910 --> 00:02:51.680
Seen is the number of columns in matrix π΄ is the same as the number of rows in matrix π΅, we know that the resultant matrix exists.
00:02:52.420 --> 00:03:00.350
Additionally, we can tell the dimensions of the resultant matrix by seeing that matrix π΄ has three rows and matrix π΅ has three columns.
00:03:00.590 --> 00:03:04.050
So the resultant matrix will be a three-by-three matrix.
00:03:04.300 --> 00:03:11.950
We find the first element of π΄π΅ by multiplying the top row of matrix π΄ by the left-hand column of matrix π΅.
00:03:12.350 --> 00:03:19.430
Remember that this is just the same as finding the dot product of this first row of matrix π΄ with the left-hand column of matrix π΅.
00:03:20.740 --> 00:03:26.240
That is 11 multiplied by negative eight add negative two multiplied by negative four.
00:03:26.580 --> 00:03:33.070
To get the top middle element, we multiply the top row of matrix π΄ with the middle column of matrix π΅.
00:03:33.540 --> 00:03:38.550
That is 11 multiplied by negative nine add negative two multiplied by eight.
00:03:38.770 --> 00:03:44.540
To get the top right element, we multiply the top row of matrix π΄ with the right-hand column of matrix π΅.
00:03:45.140 --> 00:03:49.510
That is 11 multiplied by six add negative two multiplied by nine.
00:03:50.020 --> 00:03:57.060
We can then find the middle left component by multiplying the middle row of matrix π΄ with the left-hand column of matrix π΅.
00:03:57.480 --> 00:04:02.980
We find the middle component by multiplying the middle row of matrix π΄ with the middle column of matrix π΅.
00:04:03.380 --> 00:04:10.000
And we find the middle right component by multiplying together the middle row of matrix π΄ with the right-hand column of matrix π΅.
00:04:10.290 --> 00:04:17.380
And we follow the same pattern for the bottom left component, the bottom middle component, and the bottom right component.
00:04:17.980 --> 00:04:20.420
We can then simplify each component.
00:04:20.950 --> 00:04:26.540
And that gives us our final answer, which is just as we worked out a three-by-three matrix.
00:04:27.250 --> 00:04:32.180
One really important thing to note is that matrix multiplication is not commutative.
00:04:32.470 --> 00:04:35.230
This means that π΄π΅ is not equal to π΅π΄.
00:04:35.770 --> 00:04:41.430
We can see how this is the case by considering the dimensions of the matrices in the previous example.
00:04:41.720 --> 00:04:51.040
If we were to work out the dimensions of the resultant matrix, we would see that we would end up with a two-by-two matrix, whereas π΄π΅ gave us a three-by-three matrix.
00:04:51.380 --> 00:04:55.140
We can use matrix multiplication to find powers of matrices.
00:04:55.600 --> 00:04:57.390
Letβs have a look at an example.
00:04:58.120 --> 00:05:03.820
Given that π΄ equals negative six, one, negative five, five, find π΄ squared.
00:05:04.260 --> 00:05:08.490
Remember that π΄ squared simply means π΄ multiplied by π΄.
00:05:08.830 --> 00:05:12.450
So this simply means the matrix π΄ multiplied by the matrix π΄.
00:05:13.080 --> 00:05:19.170
So because π΄ is a two-by-two matrix, weβre doing a two-by-two matrix multiplied by a two-by-two matrix.
00:05:19.480 --> 00:05:25.800
We know this is possible because the number of columns in matrix π΄ is of course the same as the number of rows in matrix π΄.
00:05:26.300 --> 00:05:29.980
And the resultant matrix is going to be a two-by-two matrix.
00:05:31.060 --> 00:05:39.330
We find the top-left component of the resultant matrix by multiplying the top row of the first matrix by the left-hand column of the second matrix.
00:05:40.550 --> 00:05:45.030
That is negative six times negative six add one times negative five.
00:05:45.540 --> 00:05:56.590
We then find the top right-hand component by multiplying the top row of the first matrix by the right-hand column of the second matrix, that is, negative six times one add one times five.
00:05:57.170 --> 00:06:03.790
We can then find the bottom left component by multiplying the bottom row of the first matrix by the left-hand column of the second matrix.
00:06:03.950 --> 00:06:08.240
That is negative five times negative six add five times negative five.
00:06:08.630 --> 00:06:15.490
And we find the bottom right-hand element by doing the bottom row of the first matrix multiplied by the right-hand column of the second matrix.
00:06:15.920 --> 00:06:18.990
That is negative five times one add five times five.
00:06:19.610 --> 00:06:23.570
The first thing Iβm going to do is work out each of these multiplications.
00:06:24.010 --> 00:06:27.060
And weβve got to be really careful here as we have a lot of negatives.
00:06:27.650 --> 00:06:31.250
And finally, we can simplify to get our final answer.
00:06:31.280 --> 00:06:34.950
π΄ squared equals 31, negative one, five, 20.
00:06:35.670 --> 00:06:39.670
One thing to note is that we can use this process to find higher powers of π΄.
00:06:39.890 --> 00:06:44.990
For example, we could find π΄ cubed by multiplying π΄ squared by π΄ on the right.
00:06:45.530 --> 00:06:46.680
It would look like this.
00:06:47.740 --> 00:06:50.950
Letβs see one more example on matrix multiplication.
00:06:52.160 --> 00:07:02.860
Given that π΄ equals negative three, negative seven, negative one, three, four, one; π΅ equals six, negative four, three, find π΄π΅ if possible.
00:07:03.560 --> 00:07:20.610
Recall that for the multiplication of matrices π΄ and π΅, if π΄ has dimensions π by π, where π is the number of rows and π is the number of columns, then π΅ must have dimensions π by π in order for matrix multiplication to work.
00:07:21.060 --> 00:07:26.700
In other words, matrix π΄ must have the same number of columns as the number of rows in matrix π΅.
00:07:27.190 --> 00:07:32.460
Matrix π΄ has two rows and three columns, so it has dimensions two by three.
00:07:32.920 --> 00:07:37.670
Matrix π΅ has three rows and one column, so it has dimensions three by one.
00:07:38.270 --> 00:07:44.780
So as the number of columns of matrix π΄ is the same as the number of rows of matrix π΅, the product exists.
00:07:45.330 --> 00:07:48.850
We can also tell the dimensions of the resultant matrix.
00:07:49.350 --> 00:07:56.450
For π΄ with dimensions π by π and π΅ with dimensions π by π, π΄π΅ has dimensions π by π.
00:07:56.940 --> 00:08:01.510
So for this question, we can tell that the resulting matrix will have dimensions two by one.
00:08:02.040 --> 00:08:07.990
Itβs always worth checking this before beginning a matrix multiplication question to avoid making any mistakes.
00:08:08.560 --> 00:08:11.530
Letβs now go ahead and multiply these matrices together.
00:08:12.370 --> 00:08:19.160
We find the top component in π΄π΅ by taking the top row of matrix π΄ and multiplying it with the column in matrix π΅.
00:08:19.520 --> 00:08:25.210
That is negative three times six add negative seven times negative four add negative one times three.
00:08:25.400 --> 00:08:32.520
And we get the bottom row in the matrix π΄π΅ by taking the bottom row of the matrix π΄ and multiplying it with the column in matrix π΅.
00:08:32.960 --> 00:08:37.440
That is three times six add four times negative four add one times three.
00:08:37.750 --> 00:08:42.130
We can then multiply the terms together and then simplify to get the final answer.
00:08:42.540 --> 00:08:47.190
Just as we expected, the resultant matrix π΄π΅ has dimensions two by one.
00:08:48.010 --> 00:08:53.230
We can use matrix multiplication to find unknown entries in matrices which are part of a product.
00:08:53.610 --> 00:09:01.520
As an example, letβs say we know that the product of the matrices three, two, five, π₯ and one, three equals nine, negative one.
00:09:02.240 --> 00:09:08.170
We know that the nine comes from the multiplication of the top row of the first matrix with the column in the second matrix.
00:09:08.550 --> 00:09:14.460
But the negative one comes from the multiplication of the bottom row of the first matrix with the column in the second matrix.
00:09:14.730 --> 00:09:17.970
That is five times one add π₯ times three.
00:09:18.560 --> 00:09:22.350
In other words, we know that five add three π₯ must give us negative one.
00:09:22.680 --> 00:09:24.650
So three π₯ must be negative six.
00:09:24.810 --> 00:09:26.770
Therefore, π₯ equals negative two.
00:09:27.240 --> 00:09:29.400
Letβs see a harder example of this.
00:09:30.070 --> 00:09:43.490
Find the values of π₯ and π¦ given the following: the matrix one, three, negative two, one multiplied by the matrix two, zero, π₯, π¦ equals the matrix eight, negative nine, negative two, negative three.
00:09:44.420 --> 00:09:50.630
To solve this for π₯ and π¦, we can consider how we obtain some of the components and the resultant matrix.
00:09:51.140 --> 00:09:54.080
Letβs start with the top left component, which is eight.
00:09:54.420 --> 00:10:02.580
We know that the eight mustβve been obtained by the multiplication of the top row of the first matrix with the left-hand column of the second matrix.
00:10:03.060 --> 00:10:10.540
That is one times two add three times π₯ equals eight or two add three π₯ equals eight.
00:10:11.070 --> 00:10:16.160
We then obtain that three π₯ equals six by subtracting two from both sides.
00:10:16.430 --> 00:10:18.600
And we find that π₯ must be equal to two.
00:10:19.350 --> 00:10:30.600
Now if we think about how the negative nine was obtained, as this is the top right element, this is the multiplication of the top row of the first matrix with the right-hand column of the second matrix.
00:10:30.870 --> 00:10:35.580
That is, one times zero add three times π¦ must equal negative nine.
00:10:36.190 --> 00:10:39.150
This simplifies to three π¦ equals negative nine.
00:10:39.430 --> 00:10:41.750
Therefore, π¦ must be equal to negative three.
00:10:42.450 --> 00:10:50.320
Weβre then able to verify our answer by checking that these values of π₯ and π¦ work for the bottom two values in the resultant matrix.
00:10:50.760 --> 00:11:00.740
To get the bottom left value of the resultant matrix negative two, we must do the bottom row of the first matrix multiplied by the left-hand column of the second matrix.
00:11:01.130 --> 00:11:06.970
That is negative two times two add one times π₯, which is two, equals negative two.
00:11:07.180 --> 00:11:10.880
This gives us negative four add two equals negative two, which is true.
00:11:11.240 --> 00:11:13.170
So our value of π₯ is correct.
00:11:13.480 --> 00:11:21.970
And we can check the bottom right-hand component of the resultant matrix by multiplying the bottom row of the first matrix with the right-hand column of the second matrix.
00:11:22.350 --> 00:11:27.260
That is negative two times zero add one times negative three equals negative three.
00:11:27.610 --> 00:11:32.110
That is zero add negative three equals negative three, which is true.
00:11:32.280 --> 00:11:35.120
So we know our value for π¦ is also correct.
00:11:36.010 --> 00:11:40.410
Itβs always good when possible to confirm the values that you found for π₯ and π¦.
00:11:42.060 --> 00:11:44.710
Letβs now summarize the main points from this video.
00:11:45.570 --> 00:11:51.360
There are two types of multiplication of matrices: scalar multiplication and matrix multiplication.
00:11:51.900 --> 00:11:54.520
Matrix multiplication is not commutative.
00:11:55.620 --> 00:12:01.160
For two matrices π΄ and π΅, π΄ multiplied by π΅ is not equal to π΅ multiplied by π΄.
00:12:01.720 --> 00:12:09.500
Matrix multiplication is only possible when the first matrix has the same number of columns as the number of rows of the second matrix.
00:12:10.010 --> 00:12:16.570
And we can use the dimensions of the two matrices weβre multiplying together to find the dimensions of the resultant matrix.
00:12:17.060 --> 00:12:20.890
We can use matrix multiplication to find powers of matrices.
00:12:21.630 --> 00:12:30.340
And we can use matrix multiplication to find unknowns in matrix equations by considering how certain components in the resultant matrix are obtained.