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