1 00:00:07,305 --> 00:00:07,930 JOEL LEWIS: Hi. 2 00:00:07,930 --> 00:00:09,560 Welcome back to recitation. 3 00:00:09,560 --> 00:00:12,090 In lecture, you've been learning about line integrals 4 00:00:12,090 --> 00:00:13,210 of vector fields. 5 00:00:13,210 --> 00:00:14,870 And I have a couple of nice questions 6 00:00:14,870 --> 00:00:17,260 on that subject for you right here. 7 00:00:17,260 --> 00:00:21,750 So I want F to be the vector field whose first coordinate is 8 00:00:21,750 --> 00:00:25,120 x*y and whose second coordinate is x squared plus y squared. 9 00:00:25,120 --> 00:00:29,270 And so what I'd like you do is compute the line integral of F 10 00:00:29,270 --> 00:00:32,350 around two different curves C. So both curves 11 00:00:32,350 --> 00:00:36,620 start at the point (1, 1) and they end at the point (2, 4). 12 00:00:36,620 --> 00:00:40,130 So in part a, the curve is just the straight line that connects 13 00:00:40,130 --> 00:00:42,190 the point (1, 1) to (2, 4). 14 00:00:42,190 --> 00:00:46,780 And in part b, the curve is this sort of piecewise-- 15 00:00:46,780 --> 00:00:48,580 it's two sides of a rectangle, right? 16 00:00:48,580 --> 00:00:52,890 It goes straight up until it gets to the point (1, 4), 17 00:00:52,890 --> 00:00:54,990 and then it goes across to the point (2, 4). 18 00:00:54,990 --> 00:00:59,170 So it's a piecewise smooth curve, path, 19 00:00:59,170 --> 00:01:02,320 that connects those two points. 20 00:01:02,320 --> 00:01:05,140 So I'd like you to compute the integral over each 21 00:01:05,140 --> 00:01:08,804 of these curves of F dot dr. So why don't you pause the video, 22 00:01:08,804 --> 00:01:10,970 have a go at that, come back, and we can work it out 23 00:01:10,970 --> 00:01:11,470 together. 24 00:01:19,710 --> 00:01:22,540 So, when you're computing a line integral over a curve, 25 00:01:22,540 --> 00:01:24,100 really the thing that you want to do 26 00:01:24,100 --> 00:01:25,960 is you want to parametrize the curve, 27 00:01:25,960 --> 00:01:30,300 and then that gives you stuff that you can plug in. 28 00:01:30,300 --> 00:01:32,380 You'll have expressions for x and y 29 00:01:32,380 --> 00:01:33,650 in terms of your parameter. 30 00:01:33,650 --> 00:01:36,180 So you can plug it in and you just turn this integral right 31 00:01:36,180 --> 00:01:38,164 into a nice single variable integral, 32 00:01:38,164 --> 00:01:39,330 and then you can compute it. 33 00:01:39,330 --> 00:01:42,704 So that's our basic strategy for computing integrals 34 00:01:42,704 --> 00:01:44,620 of this form, line integrals of vector fields. 35 00:01:44,620 --> 00:01:45,910 So let's have a go. 36 00:01:45,910 --> 00:01:47,700 Let's start with part a. 37 00:01:47,700 --> 00:01:52,080 So in part a, what we need to do to apply this method 38 00:01:52,080 --> 00:01:54,990 is that we need to parametrize the curve in question. 39 00:01:54,990 --> 00:01:56,670 So this is a straight line. 40 00:01:56,670 --> 00:01:59,400 And if you look at it, it's the line through the points (1, 1) 41 00:01:59,400 --> 00:02:00,670 and (2, 4). 42 00:02:00,670 --> 00:02:07,120 So this line has equation y equals 3x minus 2. 43 00:02:07,120 --> 00:02:08,760 That's our line, and OK. 44 00:02:08,760 --> 00:02:13,630 So we need to choose some parameter that will give us 45 00:02:13,630 --> 00:02:15,830 this segment of this line. 46 00:02:15,830 --> 00:02:19,550 So a natural thing to do in this case is-- it's easy enough, 47 00:02:19,550 --> 00:02:21,540 y is already written in terms of x, 48 00:02:21,540 --> 00:02:23,280 so it's natural enough just to take 49 00:02:23,280 --> 00:02:25,090 a parameter that's equal to x. 50 00:02:25,090 --> 00:02:27,990 So it's up to you whether you introduce the letter t in order 51 00:02:27,990 --> 00:02:29,300 to do this, or not. 52 00:02:29,300 --> 00:02:32,450 I'm going to do it with the letter t here in part a, 53 00:02:32,450 --> 00:02:36,710 but you could do this problem exactly the same way just using 54 00:02:36,710 --> 00:02:37,810 the letter x. 55 00:02:37,810 --> 00:02:44,100 So what I'm going to do is I'm going to let x equals t 56 00:02:44,100 --> 00:02:49,840 so that y is equal to 3t minus 2. 57 00:02:49,840 --> 00:02:53,390 OK, so that is the parametric equation for the entire line, 58 00:02:53,390 --> 00:02:56,090 but we only want the part between the points (1, 1) and 59 00:02:56,090 --> 00:02:57,150 (2, 4). 60 00:02:57,150 --> 00:03:04,270 So the part between the lines (1, 1) and (2, 4) 61 00:03:04,270 --> 00:03:07,760 is the part where t is between 1 and 2. 62 00:03:07,760 --> 00:03:09,620 Where x is between 1 and 2. 63 00:03:09,620 --> 00:03:10,350 OK. 64 00:03:10,350 --> 00:03:12,700 So this is our parametrization. 65 00:03:12,700 --> 00:03:14,800 So now we need to figure out what 66 00:03:14,800 --> 00:03:19,300 is the field F in this parametrization, 67 00:03:19,300 --> 00:03:22,840 and what is dr. And then after we have those, 68 00:03:22,840 --> 00:03:25,320 we can just put them into our integral and compute. 69 00:03:25,320 --> 00:03:30,830 So F, in this parametrization, well, 70 00:03:30,830 --> 00:03:35,550 we take the equation for F, which is x*y comma x squared 71 00:03:35,550 --> 00:03:38,170 plus y squared, and we just plug in. 72 00:03:38,170 --> 00:03:42,970 So in this case, x*y is going to be 3t minus 2 times t, 73 00:03:42,970 --> 00:03:46,390 so that's 3 t squared minus 2t. 74 00:03:46,390 --> 00:03:51,840 And x squared plus y squared, well that's t squared plus 3t 75 00:03:51,840 --> 00:03:54,250 minus 2 quantity squared. 76 00:03:57,170 --> 00:03:58,630 So that's what F is. 77 00:03:58,630 --> 00:04:05,680 And also we have that dr-- well, we just take the differentials 78 00:04:05,680 --> 00:04:12,490 of x and y-- so this is going to be dt comma 3*dt. 79 00:04:12,490 --> 00:04:15,660 Or if you like, 1 comma 3 times dt 80 00:04:15,660 --> 00:04:17,720 if you like to factor out your dt. 81 00:04:17,720 --> 00:04:20,090 So that's what F and dr is. 82 00:04:20,090 --> 00:04:23,130 So now we need to compute our integral. 83 00:04:23,130 --> 00:04:29,600 So the integral over C of F dot dr, well, you just plug in. 84 00:04:29,600 --> 00:04:33,290 So this is the integral over C now. 85 00:04:33,290 --> 00:04:33,790 So OK. 86 00:04:33,790 --> 00:04:35,910 So now we need to look at our bounds. 87 00:04:35,910 --> 00:04:38,210 So the integral over C means the integral 88 00:04:38,210 --> 00:04:42,330 as t varies in the range that we need to cover. 89 00:04:42,330 --> 00:04:43,090 That whole curve. 90 00:04:43,090 --> 00:04:46,310 So in this case, we said that was from t equals 1 to 2. 91 00:04:46,310 --> 00:04:50,690 So it's the integral as t goes from 1 to 2 of F dot dr. 92 00:04:50,690 --> 00:04:54,860 So in the first coordinates-- let me factor out 93 00:04:54,860 --> 00:04:56,610 the dt at the end. 94 00:04:56,610 --> 00:05:05,710 So that's going to be 3 t squared minus 2t, times 1, 95 00:05:05,710 --> 00:05:09,430 plus-- OK, well, let's expand this out now. 96 00:05:09,430 --> 00:05:12,600 3t minus 2 quantity squared, that's 97 00:05:12,600 --> 00:05:19,130 going to give me a 9 t squared minus 12t plus 4-- 98 00:05:19,130 --> 00:05:23,250 so this is 9 t squared minus 12t plus 4, 99 00:05:23,250 --> 00:05:25,470 and then we have to add t squared to it. 100 00:05:25,470 --> 00:05:38,200 So this is plus 10 t squared minus 12t plus 4, times 3, 101 00:05:38,200 --> 00:05:40,000 and then this whole thing is dt. 102 00:05:40,000 --> 00:05:43,105 dt is the whole integrand, there. 103 00:05:43,105 --> 00:05:45,436 I could even put in another pair of parentheses just 104 00:05:45,436 --> 00:05:48,380 to emphasize that, perhaps. 105 00:05:48,380 --> 00:05:49,190 OK. 106 00:05:49,190 --> 00:05:52,470 Now this is a straightforward-- I mean, 107 00:05:52,470 --> 00:05:55,470 it's a little complicated looking, 108 00:05:55,470 --> 00:05:58,130 but it's just an integral of a polynomial. 109 00:05:58,130 --> 00:06:01,310 Easy enough to do. 110 00:06:01,310 --> 00:06:03,770 Let's first just combine terms. 111 00:06:03,770 --> 00:06:06,240 OK, so let's look at the t squareds. 112 00:06:06,240 --> 00:06:08,350 We have a 10 t squared times 3. 113 00:06:08,350 --> 00:06:11,670 So 30 t squared, and then another 3 times 1. 114 00:06:11,670 --> 00:06:15,232 So 33 t squared. 115 00:06:15,232 --> 00:06:22,560 And I've got minus 2t minus 36t is minus 38t, 116 00:06:22,560 --> 00:06:27,770 plus 12-- 4 times 3-- dt. 117 00:06:27,770 --> 00:06:29,400 OK, and now we integrate. 118 00:06:29,400 --> 00:06:34,080 So this is equal to 11 t cubed-- that's 119 00:06:34,080 --> 00:06:44,310 a 3-- minus 19 t squared plus 12t as t 120 00:06:44,310 --> 00:06:47,810 varies between 1 and 2. 121 00:06:47,810 --> 00:06:48,930 And all right. 122 00:06:48,930 --> 00:06:51,430 OK, so now we've got to plug in and evaluate and so on. 123 00:06:51,430 --> 00:07:06,420 So at 2, this is 88 minus 76 plus 24, minus 11 minus 19 124 00:07:06,420 --> 00:07:09,100 plus 12. 125 00:07:09,100 --> 00:07:12,570 So you do some arithmetic and this 126 00:07:12,570 --> 00:07:15,860 is going to work out to 32. 127 00:07:15,860 --> 00:07:19,500 OK, so there's part a. 128 00:07:19,500 --> 00:07:21,040 It's a nice, simple curve, so we had 129 00:07:21,040 --> 00:07:23,025 a nice, simple parametrization. 130 00:07:23,025 --> 00:07:29,040 We computed F and dr, then we dotted them, and integrated. 131 00:07:29,040 --> 00:07:32,690 OK, so now we're going to do the same exact thing for part b, 132 00:07:32,690 --> 00:07:34,940 but in part b, the curve is a little more complicated. 133 00:07:34,940 --> 00:07:38,620 Let's come over here where we've got some empty space. 134 00:07:38,620 --> 00:07:42,730 So in part b, our curve looks like this. 135 00:07:42,730 --> 00:07:46,796 So it starts at the point (1, 1), 136 00:07:46,796 --> 00:07:52,510 and then it goes up to the point (1, 4), 137 00:07:52,510 --> 00:07:57,090 and then it goes over to the point (2, 4). 138 00:07:57,090 --> 00:07:58,120 All right? 139 00:07:58,120 --> 00:08:01,440 So it's hard to parametrize in one fell swoop 140 00:08:01,440 --> 00:08:03,890 something that makes a sharp right angle like that. 141 00:08:03,890 --> 00:08:06,450 So a natural thing to do is to split the integral 142 00:08:06,450 --> 00:08:08,940 over this whole curve into the integrals over the two 143 00:08:08,940 --> 00:08:09,900 different pieces. 144 00:08:09,900 --> 00:08:15,080 So let's call this vertical part C_1 and this horizontal part 145 00:08:15,080 --> 00:08:16,480 C_2. 146 00:08:16,480 --> 00:08:20,640 And so we know that the integral over C of F 147 00:08:20,640 --> 00:08:25,124 dot dr is equal to the integral over C_1 148 00:08:25,124 --> 00:08:33,380 of F dot dr plus the integral over C_2 of F dot dr. 149 00:08:33,380 --> 00:08:35,720 And so now, it's easy enough to parametrize these two 150 00:08:35,720 --> 00:08:37,930 separate curves separately. 151 00:08:37,930 --> 00:08:42,020 C_1, for example, is the straight line segment that 152 00:08:42,020 --> 00:08:45,050 goes from (1, 1) to (1, 4). 153 00:08:45,050 --> 00:08:46,530 So C_1. 154 00:08:46,530 --> 00:08:52,500 So that means we have x equal to 1, and 1 less than 155 00:08:52,500 --> 00:08:55,280 or equal to y less than or equal to 4. 156 00:08:55,280 --> 00:08:57,690 So a natural parametrization here 157 00:08:57,690 --> 00:09:01,690 is just the parametrization that uses the parameter y. 158 00:09:01,690 --> 00:09:02,190 Right? 159 00:09:02,190 --> 00:09:05,231 So in this one, I'm not going to bother introducing a new letter 160 00:09:05,231 --> 00:09:05,730 t. 161 00:09:05,730 --> 00:09:07,510 I'm just going to stick with x and y. 162 00:09:07,510 --> 00:09:10,935 So we have x equals 1, and y is our parameter 163 00:09:10,935 --> 00:09:13,000 and it goes from 1 to 4. 164 00:09:13,000 --> 00:09:17,050 So now let's look at what F and dr are. 165 00:09:17,050 --> 00:09:21,340 So in this case, F is equal to-- its first coordinate is x*y, 166 00:09:21,340 --> 00:09:25,260 and x is just 1 here, so this is y. 167 00:09:25,260 --> 00:09:28,215 And its second coordinate was x squared plus y squared, 168 00:09:28,215 --> 00:09:33,510 and so that's going to be 1 plus y squared. 169 00:09:33,510 --> 00:09:39,950 And dr-- well, r here is 1 comma y-- 170 00:09:39,950 --> 00:09:45,610 so dr is equal to 0 comma dy. 171 00:09:45,610 --> 00:09:49,380 Or (0, 1) times dy, if you wanted to factor that 172 00:09:49,380 --> 00:09:51,060 dy out to the end. 173 00:09:51,060 --> 00:09:52,780 OK. 174 00:09:52,780 --> 00:09:53,280 Good. 175 00:09:53,280 --> 00:09:55,510 So we're all set to do that first integral. 176 00:09:55,510 --> 00:09:57,980 So let's do that. 177 00:09:57,980 --> 00:10:07,820 So we have the integral over C_1 of F dot dr is equal to-- well, 178 00:10:07,820 --> 00:10:09,490 we dot these two things together. 179 00:10:09,490 --> 00:10:13,780 And the first term gives me y times 0, and that's just 0. 180 00:10:13,780 --> 00:10:15,780 So that's going to die, and all we're 181 00:10:15,780 --> 00:10:17,510 left with is the second term. 182 00:10:17,510 --> 00:10:24,060 So it's the integral of 1 plus y squared dy, but we need bounds. 183 00:10:24,060 --> 00:10:24,560 Right? 184 00:10:24,560 --> 00:10:27,975 OK, so y was going from 1 to 4 in this integral. 185 00:10:27,975 --> 00:10:34,440 So it's the integral from 1 to 4 of 1 plus y squared dy. 186 00:10:34,440 --> 00:10:34,940 OK. 187 00:10:34,940 --> 00:10:37,430 So we can either continue and evaluate this now, 188 00:10:37,430 --> 00:10:39,920 or we could go and do the second one. 189 00:10:43,210 --> 00:10:45,560 Let's finish evaluating it since we've already 190 00:10:45,560 --> 00:10:46,830 got it written up here. 191 00:10:46,830 --> 00:10:56,084 So this is equal to y, plus y cubed over 3, between 1 and 4. 192 00:10:56,084 --> 00:10:56,750 So what is this? 193 00:10:56,750 --> 00:11:08,080 This is 4 plus 64/3, minus 1 plus 1/3. 194 00:11:08,080 --> 00:11:11,880 So that looks like it's 24 to me. 195 00:11:11,880 --> 00:11:14,540 OK, so we get 24 for the first part. 196 00:11:14,540 --> 00:11:16,465 Now, let's do the second part. 197 00:11:16,465 --> 00:11:18,415 So C_2 here. 198 00:11:18,415 --> 00:11:21,270 I'll draw a little line there to separate them. 199 00:11:21,270 --> 00:11:24,770 Now, curve C_2-- let's go back and look at it-- OK, 200 00:11:24,770 --> 00:11:28,820 so curve C_2 is the segment connecting the points (1, 4) 201 00:11:28,820 --> 00:11:31,230 and the point (2, 4). 202 00:11:31,230 --> 00:11:36,690 OK, so y is always 4 on this curve, and x goes from 1 to 2. 203 00:11:36,690 --> 00:11:41,070 So 1 is less than or equal to x less than or equal to 2, 204 00:11:41,070 --> 00:11:43,820 y is equal to 4. 205 00:11:43,820 --> 00:11:45,550 So a natural parametrization here, 206 00:11:45,550 --> 00:11:48,219 again, is just to take x to be our parameter. 207 00:11:48,219 --> 00:11:50,260 And again, I'm not going to introduce a letter t. 208 00:11:50,260 --> 00:11:52,330 We're just using x as our parameter. 209 00:11:52,330 --> 00:11:58,280 So in this case, F-- well, it's x*y, 210 00:11:58,280 --> 00:12:04,160 so x is just x and y is 4-- so that's 4x comma-- 211 00:12:04,160 --> 00:12:06,645 and the second coordinate is x squared plus y squared-- 212 00:12:06,645 --> 00:12:10,980 so that's x squared plus 16. 213 00:12:10,980 --> 00:12:22,210 And dr is equal to dx comma 0. 214 00:12:22,210 --> 00:12:24,440 OK, so that's F and dr. 215 00:12:24,440 --> 00:12:30,000 So the integral that I want now is the integral over C_2 216 00:12:30,000 --> 00:12:36,900 of F dot dr. OK, so we just plug in here what we've got. 217 00:12:36,900 --> 00:12:41,920 So this is equal to the integral of-- well, 218 00:12:41,920 --> 00:12:45,120 the first coordinates are 4x dx and the second coordinates just 219 00:12:45,120 --> 00:12:47,875 give me 0-- so it's 4x dx. 220 00:12:47,875 --> 00:12:49,230 And again, I need my bounds. 221 00:12:49,230 --> 00:12:51,507 Well, I had-- over here, I had 1 less than 222 00:12:51,507 --> 00:12:53,215 or equal to x is less than or equal to 2. 223 00:12:53,215 --> 00:12:55,620 So that's the integral between 1 and 2. 224 00:12:58,350 --> 00:13:04,300 4x-- integrate that-- and I get 2 x squared between 1 and 2, 225 00:13:04,300 --> 00:13:09,295 which is equal to 8 minus 2, or 6. 226 00:13:11,870 --> 00:13:12,650 All right. 227 00:13:12,650 --> 00:13:16,080 So let's see what we've got. 228 00:13:16,080 --> 00:13:21,610 So we had-- back here, we had our curve C, which we split 229 00:13:21,610 --> 00:13:24,040 into the two parts C_1 and C_2. 230 00:13:24,040 --> 00:13:26,830 And we wanted to know what the integral over C was, 231 00:13:26,830 --> 00:13:32,965 and we've separately computed the integral over C_1. 232 00:13:32,965 --> 00:13:35,790 And we computed that to be 24. 233 00:13:35,790 --> 00:13:39,075 And we computed the integral over C_2, and that was 6. 234 00:13:42,380 --> 00:13:45,910 So the integral over the whole curve of F 235 00:13:45,910 --> 00:13:55,170 dot dr is equal to 24 plus 6, which is 30. 236 00:13:55,170 --> 00:13:56,350 OK. 237 00:13:56,350 --> 00:13:58,250 So there's your answer for the second part. 238 00:13:58,250 --> 00:13:59,930 Now one thing I'd like you to notice 239 00:13:59,930 --> 00:14:03,150 is that over this curve C in part b-- 240 00:14:03,150 --> 00:14:05,210 over the whole curve in part b-- we 241 00:14:05,210 --> 00:14:09,645 got that the integral of this field F was 30. 242 00:14:09,645 --> 00:14:13,550 And now if you remember, right here, 243 00:14:13,550 --> 00:14:16,950 in the first part, in part a, we computed the integral 244 00:14:16,950 --> 00:14:20,130 over a different curve that connected the two 245 00:14:20,130 --> 00:14:21,340 same endpoints. 246 00:14:21,340 --> 00:14:24,300 And we found that the integral came out to 32. 247 00:14:24,300 --> 00:14:26,160 So one thing you should take away from this 248 00:14:26,160 --> 00:14:29,190 is that the integral over a curve joining two points 249 00:14:29,190 --> 00:14:32,200 can depend on which curve you choose, right? 250 00:14:32,200 --> 00:14:33,770 So we had two different curves and we 251 00:14:33,770 --> 00:14:36,620 got two different answers, even though the two curves connected 252 00:14:36,620 --> 00:14:37,920 the same points. 253 00:14:37,920 --> 00:14:39,190 So that's interesting. 254 00:14:39,190 --> 00:14:40,939 And the other thing to take away from this 255 00:14:40,939 --> 00:14:42,190 is just the general approach. 256 00:14:42,190 --> 00:14:48,080 Which is that whenever you have a problem like this, what 257 00:14:48,080 --> 00:14:50,430 you want to do is you want to take your curve-- 258 00:14:50,430 --> 00:14:56,360 so whether it be-- well, in part a we had this straight line, 259 00:14:56,360 --> 00:14:57,640 slanted line. 260 00:14:57,640 --> 00:15:00,460 In part b where we had this nice piecewise 261 00:15:00,460 --> 00:15:03,060 linear with these vertical and horizontal parts-- 262 00:15:03,060 --> 00:15:06,925 you want to break it into nice pieces, parametrize them. 263 00:15:06,925 --> 00:15:08,300 You know, sometimes you only need 264 00:15:08,300 --> 00:15:11,620 one piece when it's an easy-to-parametrize curve 265 00:15:11,620 --> 00:15:12,770 like that. 266 00:15:12,770 --> 00:15:14,990 Sometimes, if it has corners or so on, 267 00:15:14,990 --> 00:15:16,700 you might want more pieces. 268 00:15:16,700 --> 00:15:19,000 Break it into pieces, choose a nice parametrization, 269 00:15:19,000 --> 00:15:21,450 and that reduces your problem just to computing integrals, 270 00:15:21,450 --> 00:15:26,370 just like we've done in Calculus I-- in 18.01-- 271 00:15:26,370 --> 00:15:28,620 and then you just integrate. 272 00:15:28,620 --> 00:15:29,400 All right. 273 00:15:29,400 --> 00:15:31,020 I'll end there.