0:00:05.480,0:00:09.110 Once you know how to multiply 2[br]matrices together, a natural 0:00:09.110,0:00:13.400 question to ask is whether or[br]not one matrix can be divided by 0:00:13.400,0:00:17.360 another matrix, and the answer[br]to that question is no, there is 0:00:17.360,0:00:19.010 no such thing as matrix 0:00:19.010,0:00:22.081 division. Nevertheless, there's[br]another operation that we can 0:00:22.081,0:00:25.111 introduce which plays a very[br]similar role to division, and 0:00:25.111,0:00:28.747 it's called finding the inverse[br]of a matrix. So in this video 0:00:28.747,0:00:32.686 I'm going to explain what we[br]mean by the inverse of a matrix. 0:00:33.830,0:00:37.262 To start with, let's just look[br]at these two matrices that I've 0:00:37.262,0:00:40.408 written down here, and let's[br]find the product of them. We 0:00:40.408,0:00:41.552 multiply these two together. 0:00:42.590,0:00:49.826 4 * 1 is 4 added to 3 *[br]-- 1 is 4 -- 3 which is 1. 0:00:51.400,0:00:57.928 4 * -- 3 is minus 12, three 4 +[br]12 -- 12 + 12 is 0. 0:00:59.760,0:01:05.900 1 * 1 is 1 and 1 * -- 1 is minus[br]one 1 -- 1 is or is not. 0:01:07.010,0:01:12.263 1 * -- 3 is minus three 1 * 4 is[br]four 4 -- 3 is 1. 0:01:13.970,0:01:18.091 The point I'm trying to make is[br]that when we multiply these two 0:01:18.091,0:01:21.261 matrices together, the answer[br]that we get is an identity 0:01:21.261,0:01:22.846 matrix. That point is important. 0:01:26.890,0:01:29.882 Suppose we do the[br]multiplication in the opposite 0:01:29.882,0:01:34.744 order, so 1 -- 3 -- 1 four[br]multiplied by 4311. So I've 0:01:34.744,0:01:37.362 changed the order of the[br]multiplication there. 0:01:38.570,0:01:43.250 One's voice 4 -- 3 * 1 is minus[br]three. 4 -- 3 is 1. 0:01:44.270,0:01:49.566 Once three is 3 -- 3 * 1 is[br]minus three, 3 -- 3 is nothing. 0:01:50.570,0:01:55.614 Minus 1 * 4 is minus 44144 and[br]the result of adding them 0:01:55.614,0:01:56.778 together is 0. 0:01:57.850,0:02:04.072 Minus 1 * 3 is minus 3414, four[br]4 -- 3 is 1, so again the result 0:02:04.072,0:02:07.366 of multiplying these two[br]together is an identity matrix. 0:02:08.460,0:02:12.312 This leads us to the following[br]definition for the inverse of a 0:02:12.312,0:02:16.164 matrix. If you've got one matrix[br]and you multiply it by another 0:02:16.164,0:02:19.695 matrix, and the answer is an[br]identity matrix, then the second 0:02:19.695,0:02:23.547 matrix is the inverse of the[br]first matrix and vice versa. The 0:02:23.547,0:02:27.078 first matrix is the inverse of[br]the second matrix. Now suppose 0:02:27.078,0:02:31.251 we have a matrix A and we[br]multiply it by its inverse and 0:02:31.251,0:02:35.424 we'll denote the inverse by A to[br]the power minus one. Now that's 0:02:35.424,0:02:38.955 not really a power. That does[br]not mean 1 / A. 0:02:39.030,0:02:42.330 This is the notation that[br]will use for the inverse of 0:02:42.330,0:02:46.230 the matrix A, so if you have[br]a matrix a multiplied by its 0:02:46.230,0:02:46.530 inverse. 0:02:48.710,0:02:52.190 The answer is an identity[br]matrix. That's what we mean 0:02:52.190,0:02:55.670 by an inverse matrix. The[br]same works the other way 0:02:55.670,0:02:59.150 around as well, so if you[br]started with an inverse 0:02:59.150,0:03:02.282 matrix and multiplied it by[br]the original matrix, the 0:03:02.282,0:03:05.414 answer two would be an[br]identity matrix, and that's 0:03:05.414,0:03:07.850 the important definition of[br]an identity matrix. 0:03:09.230,0:03:13.156 If we want to find an inverse of[br]the matrix, there's a simple 0:03:13.156,0:03:16.780 formula that exists when the[br]matrix is a two by two matrix. 0:03:16.780,0:03:18.894 So let's have a look at the 0:03:18.894,0:03:25.526 formula Now. Suppose we've[br]got the matrix ABCD. 0:03:26.700,0:03:29.700 The formula for the inverse[br]is as follows. The inverse, 0:03:29.700,0:03:33.300 which as I say is denoted by[br]A to the minus one. 0:03:35.830,0:03:37.966 Is given by 1 divided by. 0:03:38.610,0:03:43.650 The number is 8 * D. Subtract B[br]* C rather strange formula, but 0:03:43.650,0:03:48.690 you'll see how it develops in a[br]minute. 1 / a D minus BC 0:03:48.690,0:03:52.650 multiplied by the matrix that[br]you get when you interchange the 0:03:52.650,0:03:58.050 A and the D round. So the DB[br]comes up here and the A goes 0:03:58.050,0:04:02.791 down there. And we changed the[br]sign but leave leave these 0:04:02.791,0:04:07.099 elements in place. The BNC in[br]place, but change their sign to 0:04:07.099,0:04:11.766 minus BN minus C, and this[br]formula that we have here is the 0:04:11.766,0:04:14.997 formula. Then for the inverse of[br]the matrix A. 0:04:16.630,0:04:20.854 I'm going to apply this[br]formula to try and find the 0:04:20.854,0:04:25.078 inverse of a matrix that I'll[br]give you here. Now, supposing 0:04:25.078,0:04:27.382 the Matrix is a is 3142. 0:04:30.240,0:04:34.145 Now applying the formula, we'll[br]get that the inverse matrix is 0:04:34.145,0:04:41.245 equal to 1 / 8 * D. That's 3 *[br]2, which is 6 -- B * C, which is 0:04:41.245,0:04:42.310 1 * 4. 0:04:44.010,0:04:47.370 Multiplied by a matrix which you[br]get when you interchange the A 0:04:47.370,0:04:49.890 and the D. So the A and the D 0:04:49.890,0:04:53.638 swap round. So swapping the[br]three in the two round will 0:04:53.638,0:04:54.686 get two and three. 0:04:56.010,0:04:58.716 And changing the sign of the[br]other two elements, but leaving 0:04:58.716,0:04:59.946 them in the same place. 0:05:02.440,0:05:04.477 So this is the inverse of matrix 0:05:04.477,0:05:08.939 A. Let's just tidy it[br]up a little bit 1 / 6 0:05:08.939,0:05:11.571 -- 4 is 1 / 2 or 1/2. 0:05:15.710,0:05:18.830 And we could leave the answer[br]like that. Or we can multiply 0:05:18.830,0:05:21.170 the factor of 1/2 inside,[br]multiplying every element inside 0:05:21.170,0:05:24.550 by the half. But I'm going to[br]leave it like that for now. 0:05:25.280,0:05:29.046 So this is the inverse of matrix[br]A. If we want to check whether 0:05:29.046,0:05:32.543 it's whether it's the right[br]answer or not, all we have to do 0:05:32.543,0:05:35.502 is multiply these two together[br]and the answer that we should 0:05:35.502,0:05:38.461 get should be an identity[br]matrix. So let's just check that 0:05:38.461,0:05:41.958 what I'll do is I'll workout A[br]to the minus 1 * A. 0:05:43.880,0:05:46.830 So here's A to the minus[br]one we've just found. 0:05:49.250,0:05:53.474 And I'm going to multiply it by[br]a, which was three 142. 0:05:55.970,0:05:58.140 Let's leave the half[br]outside for now. 0:05:59.680,0:06:03.820 To do the matrix multiplication,[br]here we've got 2, three or six. 0:06:04.790,0:06:09.288 Added 2 -- 1 * 4 that's 6 -- 4[br]which is 2. 0:06:10.660,0:06:11.760 2 ones or two. 0:06:12.420,0:06:16.298 Add it to minus 1 * 2. That's 2[br]-- 2, which is nothing. 0:06:17.670,0:06:19.278 Minus 4 * 3. 0:06:19.940,0:06:25.430 Plus 3 * 4, which is minus 12 +[br]12, which is nothing and finally 0:06:25.430,0:06:32.018 minus 4 * 1, which is minus four[br]added to 3, two six 6 -- 4 is 2. 0:06:33.430,0:06:37.522 And finally, if we multiply each[br]element by the factor of 1/2 0:06:37.522,0:06:41.614 outside, you'll see that we get[br]the identity matrix, so that's a 0:06:41.614,0:06:45.365 verification that this matrix we[br]have found here is the inverse 0:06:45.365,0:06:47.411 of the matrix we started with. 0:06:48.130,0:06:51.394 For yourself, you could verify[br]that we get the same results by 0:06:51.394,0:06:54.114 multiplying them the opposite[br]way around. Finding a time Zeta 0:06:54.114,0:06:57.378 minus one, and you'll still find[br]that you get an identity matrix, 0:06:57.378,0:07:00.914 and that's how you use the[br]formula to find the inverse of a 0:07:00.914,0:07:02.002 two by two matrix. 0:07:03.220,0:07:06.938 Now there are certain situations[br]where this won't work, and the 0:07:06.938,0:07:10.656 reason why it won't work is[br]obtained by looking at this 0:07:10.656,0:07:12.346 quantity in the formula here. 0:07:13.330,0:07:16.894 If it transpires that a D -- B C 0:07:16.894,0:07:21.296 is 0. Would be trying to divide[br]by zero here. 0:07:21.960,0:07:23.802 And division by zero is never 0:07:23.802,0:07:30.558 possible. So what this means is,[br]if ABC&D are such that a D -- B 0:07:30.558,0:07:31.794 C is 0. 0:07:32.470,0:07:34.870 The inverse of this matrix[br]will not exist. 0:07:35.920,0:07:39.844 Now you may remember that the[br]quantity AD minus BC we've met 0:07:39.844,0:07:42.787 before. It's called the[br]determinant of this matrix A. 0:07:43.980,0:07:47.340 So whenever the determinant of[br]the matrix A is 0. 0:07:48.240,0:07:49.880 The inverse won't exist. 0:07:50.850,0:07:55.152 Equivalently, whenever A is a[br]singular matrix, the inverse 0:07:55.152,0:08:01.366 won't exist. Let's just have a[br]quick look at an example of that 0:08:01.366,0:08:06.624 sort, supposing we had a matrix[br]A which was 326 fourth. 0:08:08.330,0:08:13.898 If we find a D minus BC for this[br]matrix, that's 3 * 4, which is 0:08:13.898,0:08:19.466 12. Subtract 2 * 6 which is 1212[br]-- 12 is zero. We see that the 0:08:19.466,0:08:21.206 determinant of a is 0. 0:08:22.760,0:08:26.951 This is a singular matrix, and[br]so because it's a singular 0:08:26.951,0:08:28.856 matrix, no inverse matrix will 0:08:28.856,0:08:34.066 exist. So the point to remember[br]is that not all two by two 0:08:34.066,0:08:37.894 matrices will have an inverse.[br]Those that don't have an inverse 0:08:37.894,0:08:41.374 accord singular matrices. But[br]when a matrix does have an 0:08:41.374,0:08:44.506 inverse, this formula will[br]enable you to find it.