1 00:00:00,000 --> 00:00:00,820 2 00:00:00,820 --> 00:00:05,690 We will now embark on what is probably my least favorite 3 00:00:05,690 --> 00:00:08,300 exercise or computation in mathematics-- and I think 4 00:00:08,300 --> 00:00:12,750 you'll see why-- where we will invert a 3 by 3 matrix. 5 00:00:12,750 --> 00:00:16,199 And in my mind, the only thing less pleasant than inverting a 6 00:00:16,199 --> 00:00:19,989 3 by 3 matrix is inverting a 4 by 4 matrix. 7 00:00:19,989 --> 00:00:22,259 It very quickly becomes obvious to you that it's 8 00:00:22,260 --> 00:00:24,240 probably better for a computer to do this. 9 00:00:24,239 --> 00:00:26,019 But you need to learn how to do it. 10 00:00:26,019 --> 00:00:28,019 And it's a good exercise for me to do. 11 00:00:28,019 --> 00:00:31,039 And if I keep doing it my whole life, it'll prevent my 12 00:00:31,039 --> 00:00:32,439 brain from degrading. 13 00:00:32,439 --> 00:00:35,310 But as you'll see, this is almost an exercise in not 14 00:00:35,310 --> 00:00:36,870 making careless mistakes. 15 00:00:36,869 --> 00:00:39,159 So let's start with a 3 by 3 matrix and 16 00:00:39,159 --> 00:00:41,629 try to take the inverse. 17 00:00:41,630 --> 00:00:44,770 So let's say I have matrix a. 18 00:00:44,770 --> 00:00:46,570 I think I'm going to need a lot of space here, so I'll try 19 00:00:46,570 --> 00:00:50,929 to do this small, without being confusing. 20 00:00:50,929 --> 00:00:52,640 Matrix a. 21 00:00:52,640 --> 00:00:57,509 Let's say it's 1, 0-- and I'm specifically choosing this 22 00:00:57,509 --> 00:01:04,640 matrix because the numbers are reasonably non-hairy-- 0, 2, 23 00:01:04,640 --> 00:01:10,469 1, 1, 1, 1. 24 00:01:10,469 --> 00:01:13,442 So the first thing that I do when I take an inverse of a 3 25 00:01:13,442 --> 00:01:16,780 by 3 matrix, I create what I call-- or not what I call, 26 00:01:16,780 --> 00:01:19,269 what everyone calls-- a matrix of minors. 27 00:01:19,269 --> 00:01:21,450 So let me write that down. 28 00:01:21,450 --> 00:01:22,700 Matrix of minors. 29 00:01:22,700 --> 00:01:33,180 30 00:01:33,180 --> 00:01:34,430 So what's a minor? 31 00:01:34,430 --> 00:01:36,600 32 00:01:36,599 --> 00:01:38,750 Let me draw that out. 33 00:01:38,750 --> 00:01:42,310 So it's going to be another 3 by 3 matrix. 34 00:01:42,310 --> 00:01:44,570 And what it is, so this element, this top left 35 00:01:44,569 --> 00:01:48,049 element, is essentially going to be the determinant. 36 00:01:48,049 --> 00:01:52,179 If I were to take my original matrix, and I were to cross 37 00:01:52,180 --> 00:01:57,240 out this position's row and column. 38 00:01:57,239 --> 00:02:01,709 So for example, this 1, 1 position, row 1, column 1. 39 00:02:01,709 --> 00:02:04,500 I cross out row 1 and column 1. 40 00:02:04,500 --> 00:02:05,730 What numbers do I have left? 41 00:02:05,730 --> 00:02:07,189 I have this 2, 1, 1, 1. 42 00:02:07,189 --> 00:02:08,590 I have this right here. 43 00:02:08,590 --> 00:02:11,090 So it's the determinant of 2, 1, 1, 1. 44 00:02:11,090 --> 00:02:13,319 And actually maybe I'll write that down. 45 00:02:13,319 --> 00:02:15,209 So it's the determinant of 2, 1, 1, 1. 46 00:02:15,210 --> 00:02:17,870 So I'm gonna run out of space I'm sure. 47 00:02:17,870 --> 00:02:23,110 It's going to be 2, 1, 1, 1. 48 00:02:23,110 --> 00:02:24,120 The determinant. 49 00:02:24,120 --> 00:02:26,530 The absolute value sign says it's the determinant. 50 00:02:26,530 --> 00:02:29,099 Remember, all I did is, I said, OK, in position 1,1, let 51 00:02:29,099 --> 00:02:33,549 me cross out the column and the row 1,1, and take the 52 00:02:33,550 --> 00:02:34,950 determinant of what's left. 53 00:02:34,949 --> 00:02:38,319 Or the minor of this matrix. 54 00:02:38,319 --> 00:02:40,650 And then I will take the determinant-- so when I go to 55 00:02:40,650 --> 00:02:47,150 this position, I'm in row 1, column 2. 56 00:02:47,150 --> 00:02:49,810 I'm essentially going to take the determinant. 57 00:02:49,810 --> 00:02:54,615 If I were to cross out row 1 and column 2, what 58 00:02:54,615 --> 00:02:55,439 do I have left over? 59 00:02:55,439 --> 00:02:58,750 I have 0, 1, 1, 1. 60 00:02:58,750 --> 00:03:02,401 61 00:03:02,401 --> 00:03:04,776 It might be confusing, but just remember-- I wish I had 62 00:03:04,776 --> 00:03:06,069 something I could cover this with. 63 00:03:06,069 --> 00:03:09,500 Unfortunately my fingers can't show up on this video. 64 00:03:09,500 --> 00:03:12,014 But if you cross this row and this column out, you're just 65 00:03:12,014 --> 00:03:15,169 left with this 0, this 1, this 1, and this 1. 66 00:03:15,169 --> 00:03:17,669 And you take the determinant of that minor. 67 00:03:17,669 --> 00:03:18,689 And we'll keep going. 68 00:03:18,689 --> 00:03:21,650 I'm probably going to run out of space here, but I will try 69 00:03:21,650 --> 00:03:25,789 my best. And so when you go to this position-- row 1, column 70 00:03:25,789 --> 00:03:26,949 3-- what do you do? 71 00:03:26,949 --> 00:03:29,609 Well you cross out row 1, column 3. 72 00:03:29,610 --> 00:03:32,090 And then the determinant, or the minor that you have to do, 73 00:03:32,090 --> 00:03:33,759 is 0, 2, 1, 1. 74 00:03:33,759 --> 00:03:38,969 75 00:03:38,969 --> 00:03:44,069 So the determinant of that two by two matrix. 76 00:03:44,069 --> 00:03:47,009 And then you keep doing that, so forth and so on. 77 00:03:47,009 --> 00:03:48,199 And I'm going to run out of space. 78 00:03:48,199 --> 00:03:49,250 But what I'm going to do is I'm just going 79 00:03:49,250 --> 00:03:50,080 to calculate it. 80 00:03:50,080 --> 00:03:51,940 I think you understand how to do it. 81 00:03:51,939 --> 00:03:53,400 Well you don't understand how to do it, but I think when we 82 00:03:53,400 --> 00:03:54,939 calculate it it'll make a little more sense. 83 00:03:54,939 --> 00:03:58,579 Let me actually just calculate it out. 84 00:03:58,580 --> 00:04:00,920 Because if I were to write these 2 by 2 matrices, I would 85 00:04:00,919 --> 00:04:02,109 run out of space. 86 00:04:02,110 --> 00:04:05,260 But anyway, let's go back to this position 1, 1. 87 00:04:05,259 --> 00:04:08,389 Cross out the first row, first column, I want the determinant 88 00:04:08,389 --> 00:04:10,329 of this thing right here. 89 00:04:10,330 --> 00:04:11,810 So what's the determinant of this 2 by 2? 90 00:04:11,810 --> 00:04:13,080 That's not too hard. 91 00:04:13,080 --> 00:04:18,509 It's 2 times 1, minus 1 times 1. 92 00:04:18,509 --> 00:04:20,889 So what's 2 times 1, minus 1 times 1? 93 00:04:20,889 --> 00:04:23,740 Well it's just 1. 94 00:04:23,740 --> 00:04:28,230 Then when we go to row 1, column 2, I want the 95 00:04:28,230 --> 00:04:31,610 determinant of 0, 1, 1, 1. 96 00:04:31,610 --> 00:04:35,770 So it's 0 times 1, minus 1 times 1. 97 00:04:35,769 --> 00:04:40,289 So 0 times 1 is 0, minus 1 times 1 is minus 1. 98 00:04:40,290 --> 00:04:42,290 And that's just this determinant right here. 99 00:04:42,290 --> 00:04:44,710 I'm just kind of reshowing you how I visualize when I cross 100 00:04:44,709 --> 00:04:46,000 out the rows and columns. 101 00:04:46,000 --> 00:04:48,410 So it's 0 times 1, minus 1 times 1. 102 00:04:48,410 --> 00:04:50,610 And in this position of course, you cross out this 103 00:04:50,610 --> 00:04:55,689 row, this column, and 0 times 1 minus 1 times 2. 104 00:04:55,689 --> 00:04:57,170 So that's minus 2. 105 00:04:57,170 --> 00:05:00,110 106 00:05:00,110 --> 00:05:01,889 Let's keep going. 107 00:05:01,889 --> 00:05:02,789 All right. 108 00:05:02,790 --> 00:05:07,740 So now, when we're in row 2, column 1, we cross out row 2, 109 00:05:07,740 --> 00:05:09,819 cross out column 1. 110 00:05:09,819 --> 00:05:12,490 And we're left with this 0, this 1, this 1 and this 1. 111 00:05:12,490 --> 00:05:16,170 So it's 0 times 1, which is 0. 112 00:05:16,170 --> 00:05:19,000 Minus 1 times 1. 113 00:05:19,000 --> 00:05:20,509 So we're at minus 1. 114 00:05:20,509 --> 00:05:25,300 115 00:05:25,300 --> 00:05:29,030 Then when we get row 2, column 2, we cross those two out, and 116 00:05:29,029 --> 00:05:31,479 we take the matrix of the minor that's left. 117 00:05:31,480 --> 00:05:36,600 So that's 1 times 1, minus 1 times 1. 118 00:05:36,600 --> 00:05:37,850 So that's 0. 119 00:05:37,850 --> 00:05:39,780 120 00:05:39,779 --> 00:05:41,619 Almost. We're halfway done. 121 00:05:41,620 --> 00:05:45,069 OK, so then we're in row 2, column 3. 122 00:05:45,069 --> 00:05:47,680 So we cross out row 2, column 3. 123 00:05:47,680 --> 00:05:53,660 And what we have left is 1 times 1, minus 1 time 0. 124 00:05:53,660 --> 00:05:57,000 So that is just 1. 125 00:05:57,000 --> 00:05:58,120 Last row. 126 00:05:58,120 --> 00:06:00,290 OK, so we're in row 3, column 1. 127 00:06:00,290 --> 00:06:03,660 So we cross out row 3, column 1. 128 00:06:03,660 --> 00:06:06,980 You're left with 0 times 1 is 0. 129 00:06:06,980 --> 00:06:08,259 Minus 2 times 1. 130 00:06:08,259 --> 00:06:09,509 So that's minus 2. 131 00:06:09,509 --> 00:06:13,849 132 00:06:13,850 --> 00:06:16,760 Then we're in row 3, column 2. 133 00:06:16,759 --> 00:06:20,110 So we cross out row 3, column 2. 134 00:06:20,110 --> 00:06:24,389 And you have 1 times 1, minus 0 times 1. 135 00:06:24,389 --> 00:06:27,110 So that's just 1. 136 00:06:27,110 --> 00:06:28,730 Last one. 137 00:06:28,730 --> 00:06:29,900 Row 3, column 3. 138 00:06:29,899 --> 00:06:32,439 So we cross out row 3, we cross out column 3. 139 00:06:32,439 --> 00:06:35,680 And you're just left with 1 times 2, minus 0 times 0. 140 00:06:35,680 --> 00:06:38,079 So that is 2. 141 00:06:38,079 --> 00:06:40,449 And if I haven't made any careless mistakes, that is our 142 00:06:40,449 --> 00:06:41,699 matrix of minors. 143 00:06:41,699 --> 00:06:45,110 144 00:06:45,110 --> 00:06:48,270 Now we now have to convert this to what we call the 145 00:06:48,269 --> 00:06:49,930 matrix of cofactors. 146 00:06:49,930 --> 00:06:52,480 And actually this step is fairly straightforward. 147 00:06:52,480 --> 00:06:55,819 So to convert from a matrix of minors to a matrix of 148 00:06:55,819 --> 00:06:59,170 cofactors, you just have to remember this pattern. 149 00:06:59,170 --> 00:07:03,689 This pattern applies to any 3 by 3 matrix. 150 00:07:03,689 --> 00:07:08,629 Plus, minus, plus, minus, plus, minus, 151 00:07:08,629 --> 00:07:11,269 plus, minus, plus. 152 00:07:11,269 --> 00:07:13,049 And so you can kind of just imagine this as kind of a 153 00:07:13,050 --> 00:07:14,960 checkerboard of pluses and minuses. 154 00:07:14,959 --> 00:07:17,469 And you apply that to this. 155 00:07:17,470 --> 00:07:18,670 So what do I mean by that? 156 00:07:18,670 --> 00:07:21,530 Well that means, when you start, it's a checkerboard, 157 00:07:21,529 --> 00:07:23,299 and you start with a plus at the top left. 158 00:07:23,300 --> 00:07:25,800 And then you just keep alternating plus, minus. 159 00:07:25,800 --> 00:07:28,470 So if you applied this to this, you get 160 00:07:28,470 --> 00:07:31,020 the matrix of cofactors. 161 00:07:31,019 --> 00:07:32,269 Let me write that down. 162 00:07:32,269 --> 00:07:43,039 163 00:07:43,040 --> 00:07:45,800 You can imagine this is a bit of a marathon of computation. 164 00:07:45,800 --> 00:07:51,840 OK, so the matrix of cofactors is essentially applying this 165 00:07:51,839 --> 00:07:54,879 pattern to the matrix of minors. 166 00:07:54,879 --> 00:07:55,430 So what do you do? 167 00:07:55,430 --> 00:07:59,860 You say this plus 1 times 1 is 1. 168 00:07:59,860 --> 00:08:01,680 But now we have a minus. 169 00:08:01,680 --> 00:08:06,240 So that's minus times minus 1 is positive 1. 170 00:08:06,240 --> 00:08:09,812 Then you have plus times minus 2 is minus 2. 171 00:08:09,812 --> 00:08:11,500 Then you have a minus here. 172 00:08:11,500 --> 00:08:14,990 Minus times minus 1 is positive 1. 173 00:08:14,990 --> 00:08:17,790 Plus times 0 is still 0. 174 00:08:17,790 --> 00:08:22,819 Minus times 1 is minus 1. 175 00:08:22,819 --> 00:08:27,199 Plus times minus 2 is minus 2. 176 00:08:27,199 --> 00:08:30,689 Minus applied to 1 is minus 1. 177 00:08:30,689 --> 00:08:33,460 And then plus applied to 2 is just 2. 178 00:08:33,460 --> 00:08:36,509 And we have our matrix of cofactors. 179 00:08:36,509 --> 00:08:38,298 And we are more than halfway done with 180 00:08:38,298 --> 00:08:39,000 inverting this matrix. 181 00:08:39,000 --> 00:08:40,720 And I just want to take a note here. 182 00:08:40,720 --> 00:08:44,200 What we're doing is kind of just a magic formula. 183 00:08:44,200 --> 00:08:46,600 It might seem a little bit like voodoo for you. 184 00:08:46,600 --> 00:08:49,740 But I just want you to keep in mind that in future videos, I 185 00:08:49,740 --> 00:08:51,090 will show you where this comes from. 186 00:08:51,090 --> 00:08:52,629 Although it will be quite hairy to prove 187 00:08:52,629 --> 00:08:53,500 it for a 3 by 3. 188 00:08:53,500 --> 00:08:56,750 But I'll definitely show it to you for a 2 by 2. 189 00:08:56,750 --> 00:08:59,029 And actually, I'll show you other algorithms that might 190 00:08:59,029 --> 00:09:00,889 make a little bit more intuitive sense for doing it 191 00:09:00,889 --> 00:09:02,039 for a 3 by 3. 192 00:09:02,039 --> 00:09:04,679 But I just wanted to show you how to do it this way, so that 193 00:09:04,679 --> 00:09:07,529 at least when you see it on your Algebra 2 exam-- because 194 00:09:07,529 --> 00:09:10,429 I think they actually teach this in Algebra 2-- you could 195 00:09:10,429 --> 00:09:13,469 at least, if the teacher asks you, solve for the matrix of 196 00:09:13,470 --> 00:09:15,730 minors or the cofactors or solve for the determinant of 197 00:09:15,730 --> 00:09:17,740 the inverse, you can do it. 198 00:09:17,740 --> 00:09:19,430 And then we'll worry about getting the intuition, which 199 00:09:19,429 --> 00:09:22,009 is not how I normally like to teach things. 200 00:09:22,009 --> 00:09:23,629 But this is an exception. 201 00:09:23,629 --> 00:09:25,909 But anyway, back to the problem. 202 00:09:25,909 --> 00:09:28,100 This is the matrix of cofactors. 203 00:09:28,100 --> 00:09:34,409 Now from this, we take the adjoint of matrix a-- or I 204 00:09:34,409 --> 00:09:36,569 learned from Wikipedia, the correct term is the adjugate 205 00:09:36,570 --> 00:09:38,629 of matrix a. 206 00:09:38,629 --> 00:09:46,659 But this is determined the notation is the adjugate of a. 207 00:09:46,659 --> 00:09:50,029 And all this is is the transpose of 208 00:09:50,029 --> 00:09:51,509 the matrix of cofactors. 209 00:09:51,509 --> 00:09:53,970 And I know I'm throwing out a lot of weird terminology here. 210 00:09:53,970 --> 00:09:58,300 But the transpose, all that means is that you switch the 211 00:09:58,299 --> 00:09:59,549 rows and the columns. 212 00:09:59,549 --> 00:10:02,209 213 00:10:02,210 --> 00:10:08,009 So this one right here is in row 1, column 1. 214 00:10:08,009 --> 00:10:10,100 But you know, so the rows and columns are the same, so that 215 00:10:10,100 --> 00:10:10,950 just stays the same. 216 00:10:10,950 --> 00:10:13,170 So actually anything on the diagonal stays the same. 217 00:10:13,169 --> 00:10:14,259 Because this is row 2, column 2. 218 00:10:14,259 --> 00:10:15,909 This is row 3, column 3. 219 00:10:15,909 --> 00:10:19,480 So the diagonals stay the same. 220 00:10:19,480 --> 00:10:20,879 And then you switch places. 221 00:10:20,879 --> 00:10:23,129 You kind of flip across the diagonal. 222 00:10:23,129 --> 00:10:24,470 And what do I mean by that? 223 00:10:24,470 --> 00:10:29,879 Well this 1 was in row 1, column 2. 224 00:10:29,879 --> 00:10:33,509 225 00:10:33,509 --> 00:10:37,350 So it'll then be moved to row 2, column 1. 226 00:10:37,350 --> 00:10:41,680 So this 1 right here will go here. 227 00:10:41,679 --> 00:10:46,399 So you can kind of say that it flipped over the diagonal. 228 00:10:46,399 --> 00:10:50,909 And similarly, this right here is in row 1, column 3. 229 00:10:50,909 --> 00:10:54,839 It's going to be switched to row 3, column 1. 230 00:10:54,840 --> 00:10:56,090 So it's going to go here. 231 00:10:56,090 --> 00:10:59,960 232 00:10:59,960 --> 00:11:02,450 And you can kind of see that it just flipped over that end. 233 00:11:02,450 --> 00:11:03,890 So this minus 2 isn't this one. 234 00:11:03,889 --> 00:11:06,039 It's this one over here. 235 00:11:06,039 --> 00:11:08,399 And actually, we see that this matrix is symmetric. 236 00:11:08,399 --> 00:11:10,329 When you flip it, you actually get the same thing. 237 00:11:10,330 --> 00:11:11,490 So maybe it was a bad example. 238 00:11:11,490 --> 00:11:14,230 But I want you to understand that the transpose is where-- 239 00:11:14,230 --> 00:11:19,830 if something like this number, if it's in a row 1, column 2, 240 00:11:19,830 --> 00:11:22,180 then it moves to row 2, column 1. 241 00:11:22,179 --> 00:11:24,079 So you're switching the rows and columns. 242 00:11:24,080 --> 00:11:25,480 But anyway, we could keep doing that. 243 00:11:25,480 --> 00:11:28,080 But essentially you're just flipping over the diagonal. 244 00:11:28,080 --> 00:11:28,710 So let's see. 245 00:11:28,710 --> 00:11:32,040 So then this number will be flipped to this position, so 246 00:11:32,039 --> 00:11:33,969 it goes there. 247 00:11:33,970 --> 00:11:36,340 This is in row 2, column 1. 248 00:11:36,340 --> 00:11:40,820 So it will go to column 2, row 1, which is that. 249 00:11:40,820 --> 00:11:43,610 And then if we go here, that's going to be flipped down here, 250 00:11:43,610 --> 00:11:44,870 flipped across the diagonal. 251 00:11:44,870 --> 00:11:48,060 So that's minus 1. 252 00:11:48,059 --> 00:11:49,869 This is going to be flipped all the way up there. 253 00:11:49,870 --> 00:11:51,679 So that's minus 2. 254 00:11:51,679 --> 00:11:53,245 And then this will be flipped there. 255 00:11:53,245 --> 00:11:54,730 This is minus 1. 256 00:11:54,730 --> 00:11:56,779 We are almost done. 257 00:11:56,779 --> 00:12:00,529 So this is the adjoint of matrix a. 258 00:12:00,529 --> 00:12:03,629 So to get the inverse of a-- and let me actually erase some 259 00:12:03,629 --> 00:12:05,879 of this, because we're going to run out of space otherwise. 260 00:12:05,879 --> 00:12:09,029 261 00:12:09,029 --> 00:12:13,519 And as you can see, I'll be very impressed if I have not 262 00:12:13,519 --> 00:12:15,059 introduced a careless mistake yet. 263 00:12:15,059 --> 00:12:21,459 264 00:12:21,460 --> 00:12:26,110 So let me erase all of this. 265 00:12:26,110 --> 00:12:28,370 I'm building an appetite just doing this problem. 266 00:12:28,370 --> 00:12:31,360 It's so taxing on me. 267 00:12:31,360 --> 00:12:39,019 So the inverse of matrix a is equal to 1 over the 268 00:12:39,019 --> 00:12:44,319 determinant of a times the adjugate, or 269 00:12:44,320 --> 00:12:48,590 adjoint, of matrix a. 270 00:12:48,590 --> 00:12:50,680 So we solved for this part. 271 00:12:50,679 --> 00:12:54,759 So now let's solve for the determinant. 272 00:12:54,759 --> 00:12:57,639 So the determinant of a-- and I kept the matrix of cofactors 273 00:12:57,639 --> 00:13:04,350 here for a reason-- the determinant of a is-- if you 274 00:13:04,350 --> 00:13:06,740 go across-- you can actually go across any row-- but just 275 00:13:06,740 --> 00:13:08,820 for simplicity, just remember it this way. 276 00:13:08,820 --> 00:13:12,379 You go across the top row, and you multiply each term times 277 00:13:12,379 --> 00:13:17,000 its corresponding cofactor, and you add them. 278 00:13:17,000 --> 00:13:21,779 So in this case, it'll be 1 times its corresponding 279 00:13:21,779 --> 00:13:23,709 cofactor, which is 1. 280 00:13:23,710 --> 00:13:29,160 Plus 0 times its corresponding cofactor, which is 1. 281 00:13:29,159 --> 00:13:34,029 Plus 1 times its corresponding cofactor plus minus 2. 282 00:13:34,029 --> 00:13:40,069 So this is 1 plus 0 minus 2. 283 00:13:40,070 --> 00:13:41,550 It equals minus 1. 284 00:13:41,549 --> 00:13:44,740 And thank God it was a relatively straightforward 285 00:13:44,740 --> 00:13:45,509 determinant. 286 00:13:45,509 --> 00:13:47,559 And if you didn't have this matrix of cofactors, the other 287 00:13:47,559 --> 00:13:49,039 way you could think about it-- and this is good because it 288 00:13:49,039 --> 00:13:51,039 gives you an intuition of how we even got to the matrix of 289 00:13:51,039 --> 00:14:00,149 cofactors-- you could view this as the same thing as 1 290 00:14:00,149 --> 00:14:03,569 times the determinant of its minor. 291 00:14:03,570 --> 00:14:06,060 So if you cross out the row and the column, it's this 292 00:14:06,059 --> 00:14:06,639 determinant. 293 00:14:06,639 --> 00:14:11,639 So it's 2, 1, 1, 1. 294 00:14:11,639 --> 00:14:12,850 And remember there was that pattern. 295 00:14:12,850 --> 00:14:14,700 You have plus, and then you go minus. 296 00:14:14,700 --> 00:14:19,770 So minus 0 times the determinant of its minor. 297 00:14:19,769 --> 00:14:22,279 So you cross out that row, that column. 298 00:14:22,279 --> 00:14:23,889 So 0, 1, 1, 1. 299 00:14:23,889 --> 00:14:26,899 300 00:14:26,899 --> 00:14:28,279 And then we switch again. 301 00:14:28,279 --> 00:14:29,569 We go back to plus. 302 00:14:29,570 --> 00:14:33,540 Plus 1 times the determinant of its minor. 303 00:14:33,539 --> 00:14:35,309 So you cross out that row, that column. 304 00:14:35,309 --> 00:14:36,559 You get 0, 2, 1, 1. 305 00:14:36,559 --> 00:14:40,029 306 00:14:40,029 --> 00:14:41,159 And you could compute this out. 307 00:14:41,159 --> 00:14:47,110 And this is this cofactor. 308 00:14:47,110 --> 00:14:51,080 This, with a minor sign, this is just a minor. 309 00:14:51,080 --> 00:14:52,360 And then when you apply the minus sign, it 310 00:14:52,360 --> 00:14:53,850 becomes this cofactor. 311 00:14:53,850 --> 00:14:55,379 And then this is that minor. 312 00:14:55,379 --> 00:14:57,980 And since it's a plus sign there, that's that cofactor. 313 00:14:57,980 --> 00:14:59,875 But anyway, I just wanted to explain that, and hopefully it 314 00:14:59,875 --> 00:15:00,450 hasn't confused you. 315 00:15:00,450 --> 00:15:03,720 But we're ready now to solve the inverse of a. 316 00:15:03,720 --> 00:15:08,310 We know that the determinant of a is equal to minus 1. 317 00:15:08,309 --> 00:15:11,259 We know that the adjugate of a is this number here. 318 00:15:11,259 --> 00:15:13,809 So we now can solve for the inverse. 319 00:15:13,809 --> 00:15:14,629 And let's do that. 320 00:15:14,629 --> 00:15:16,110 Let me erase all of this stuff. 321 00:15:16,110 --> 00:15:18,300 Cause actually, after I solve for the inverse, I want to 322 00:15:18,299 --> 00:15:21,669 prove to you that it is the inverse-- maybe. 323 00:15:21,669 --> 00:15:22,759 If I have enough time. 324 00:15:22,759 --> 00:15:25,899 Because I just realized I'm running pretty long. 325 00:15:25,899 --> 00:15:27,409 That might be a good exercise for you. 326 00:15:27,409 --> 00:15:30,089 327 00:15:30,090 --> 00:15:31,340 OK. 328 00:15:31,340 --> 00:15:33,320 329 00:15:33,320 --> 00:15:39,900 So the inverse of a is equal to 1 over the determinant. 330 00:15:39,899 --> 00:15:42,850 We figured out the determinant is negative 1 times the 331 00:15:42,850 --> 00:15:45,639 adjugate of a. 332 00:15:45,639 --> 00:15:50,779 1, 1, minus 2. 333 00:15:50,779 --> 00:15:53,839 1, 0, minus 1. 334 00:15:53,840 --> 00:15:57,649 Minus 2, minus 1, 2. 335 00:15:57,649 --> 00:15:59,350 So this is just minus 1, right? 336 00:15:59,350 --> 00:16:02,250 So we just apply minus 1 times everything. 337 00:16:02,250 --> 00:16:05,269 So we get-- if I haven't made any careless mistakes-- minus 338 00:16:05,269 --> 00:16:18,289 1, minus 1, plus 2, minus 1, 0, 1, 2, 1, minus 2. 339 00:16:18,289 --> 00:16:23,860 I think that I have-- let's see, I just did a minus times 340 00:16:23,860 --> 00:16:25,610 everything. 341 00:16:25,610 --> 00:16:26,730 That looks right. 342 00:16:26,730 --> 00:16:28,139 And so that is a inverse. 343 00:16:28,139 --> 00:16:31,159 And it only took us 17 minutes. 344 00:16:31,159 --> 00:16:33,049 And I will leave you there, because it will probably take 345 00:16:33,049 --> 00:16:34,539 me another 5 or 10 minutes to [? seed ?] 346 00:16:34,539 --> 00:16:35,459 and prove. 347 00:16:35,460 --> 00:16:36,800 But that might be a good exercise for you. 348 00:16:36,799 --> 00:16:39,750 To multiply this matrix times this matrix, and make sure 349 00:16:39,750 --> 00:16:41,840 that you get the identity matrix. 350 00:16:41,840 --> 00:16:44,250 I will see you in the next video.