00:01
Let's do some problems where we do addition, scalar multiplication, and multiplication of matrices.
00:08
So let's say that given these matrices a and b, i wanted to find 3a minus 4b.
00:19
Now remember that the 3 and the 4 are scalers and they're being multiplied to these matrices.
00:25
So what that means is that this 3 is going to get multiplied to each element of matrixes.
00:31
A.
00:33
And then this negative 4 is going to get multiplied to each element of matrix b.
00:41
So when i do that multiplication, again it's kind of like a big distributive property.
00:46
So this would be 3, negative 3, 6, 0, 9, 12.
00:54
And here i'm going to multiply all of the elements by a negative 4, so making this an addition problem.
01:00
So this would be negative 16, 0, positive 3.
01:04
12, 4, 8, and negative 12.
01:12
Now for us to be able to add to matrices, they have to be the same size, the same number of rows and the same number of columns.
01:20
And we do have that here, so this addition is defined.
01:24
And to add matrices together, we would just add the corresponding elements.
01:28
So we're going to add the 3 to the negative 16, negative 3 to the 0, and so on.
01:34
So doing that, we would end up with negative 13, negative 3, 18, 4, 17, and 0.
01:55
So that's scalar multiplication and addition.
01:59
So let's take a look at how we would multiply two matrices together.
02:04
So if i wanted to multiply matrix a times matrix c, for us to be able to multiply and for the number of columns of our first matrix has to equal the number of rows in the second matrix.
02:23
So a has one, two, three columns, and c has one, two, three rows.
02:31
So that means that this multiplication is defined.
02:35
So we're going to multiply the rows of a to the columns of c.
02:39
So when we do that, we would get 1 times 2, which is 2, plus negative 1 times 5, plus 2 times negative 1, negative 2.
03:08
First row, second column, we would have 1 times negative 3 plus negative 1 times negative 1 plus 2 times 0, which is 0.
03:30
And then in the first row third column, we're going to have 1 times 0, 0, plus negative 1 times negative 4, which is 4, plus 2 times 0, which is 0.
03:54
And now first row, fourth column, first row, fourth column, 1 times 1 is 1, plus negative 1 times 2 is negative 2, plus 2 times 3 is 6.
04:18
All right, so second row, first column, 0 times 2, 0, plus 3 times 5, 15, plus 4 times negative 1, negative 4.
04:43
Second row, second column, 0 times negative 3, 0, plus 3 times negative 1, plus 4, plus 4.
04:58
Times zero.
05:03
Second row third column, zero times zero, zero plus three times negative four, negative 12, plus four times zero, which is zero.
05:21
And then the second row, fourth column, second row, fourth column, zero times one, zero, plus three times two, which is six, plus four times three, which is 12.
05:42
And when we add all of those together, we end up getting negative five, negative two, four, five, 11, negative three, negative 12, 18.
06:01
And so this is the product of matrices a and c.
06:06
So let's try multiplying matrix b to matrix c.
06:11
So just to remind ourselves, matrix b was 4, 0, 0, negative 3, negative 1, negative 2, 3...