1 00:00:00,000 --> 00:00:08,000 DAVID JORDAN: Hello , welcome back to recitation. 2 00:00:08,000 --> 00:00:10,130 The problem I'd like to work on with you now is a long one. 3 00:00:10,130 --> 00:00:14,480 So it's going to be practice computing line integrals. 4 00:00:14,480 --> 00:00:18,590 So to begin with, we have this function of two variables. 5 00:00:18,590 --> 00:00:22,500 f is x to the fifth plus 3xy cubed. 6 00:00:22,500 --> 00:00:24,230 And we have this-- 7 00:00:24,230 --> 00:00:30,320 C is the upper semi-circle going from (1, 0) to (-1, 0). 8 00:00:30,320 --> 00:00:35,710 So it's this upper semi-circle here that we often consider. 9 00:00:35,710 --> 00:00:38,180 And so the first thing that we want to do is to just compute 10 00:00:38,180 --> 00:00:41,830 the gradient capital F to be the gradient of 11 00:00:41,830 --> 00:00:43,730 this function f. 12 00:00:43,730 --> 00:00:47,370 And then parts b through d, we're going to compute this 13 00:00:47,370 --> 00:00:53,150 line integral of this vector field f along this curve C. 14 00:00:53,150 --> 00:00:55,550 We're going to compute it in three different ways. 15 00:00:55,550 --> 00:00:58,290 So first of all, we're going to compute it directly, just 16 00:00:58,290 --> 00:01:00,130 using the definition. 17 00:01:00,130 --> 00:01:04,180 And then in Part c, we're going to compute it using the 18 00:01:04,180 --> 00:01:06,790 path independence of line integrals and we're going to 19 00:01:06,790 --> 00:01:09,600 replace the path C with a simpler path. 20 00:01:09,600 --> 00:01:14,100 And then finally in Part d, we're going to use the 21 00:01:14,100 --> 00:01:16,390 fundamental theorem of line integrals. 22 00:01:16,390 --> 00:01:19,440 Now when you do Part b, what I want you to do 23 00:01:19,440 --> 00:01:20,360 is set up the integral. 24 00:01:20,360 --> 00:01:22,070 You're going to get a very complicated integral that I 25 00:01:22,070 --> 00:01:23,140 wouldn't want to try to compute. 26 00:01:23,140 --> 00:01:27,800 So just set up the integral completely and then go ahead 27 00:01:27,800 --> 00:01:29,820 and move on to Part c and d. 28 00:01:29,820 --> 00:01:32,220 So why don't you pause the video and work on that, and 29 00:01:32,220 --> 00:01:34,440 we'll check back in a few minutes and 30 00:01:34,440 --> 00:01:35,690 we'll solve it together. 31 00:01:35,690 --> 00:01:42,850 32 00:01:42,850 --> 00:01:43,390 Welcome back. 33 00:01:43,390 --> 00:01:46,760 I hope you had some luck working these problems. So 34 00:01:46,760 --> 00:01:48,755 let's do the easy one first, computing the gradient. 35 00:01:48,755 --> 00:01:51,840 36 00:01:51,840 --> 00:01:58,020 So for the gradient we just take the two partial 37 00:01:58,020 --> 00:01:58,490 derivatives. 38 00:01:58,490 --> 00:02:06,920 So we get 5x to the fourth plus 3y cubed. 39 00:02:06,920 --> 00:02:10,340 That's the partial derivative in the x-direction, and in the 40 00:02:10,340 --> 00:02:18,860 y-direction, we just get 9xy squared. 41 00:02:18,860 --> 00:02:23,130 42 00:02:23,130 --> 00:02:31,880 So now for Part b, we're asked to compute 43 00:02:31,880 --> 00:02:33,840 this integral directly. 44 00:02:33,840 --> 00:02:35,530 So we have to recall what it means. 45 00:02:35,530 --> 00:02:40,860 So first of all, if we go back over here, we have this curve 46 00:02:40,860 --> 00:02:45,100 C. And we need to give a parameterization for it, and 47 00:02:45,100 --> 00:02:52,170 so we're going to introduce a parameterization r of a 48 00:02:52,170 --> 00:02:53,920 variable t, and we're going to use that to do our 49 00:02:53,920 --> 00:02:55,490 computations. 50 00:02:55,490 --> 00:02:59,780 So let's set r of t-- 51 00:02:59,780 --> 00:03:02,060 so this is our usual circle that we're used to working 52 00:03:02,060 --> 00:03:03,530 with, so we're just going to take the usual 53 00:03:03,530 --> 00:03:07,460 parameterization, cos t and sin t. 54 00:03:07,460 --> 00:03:10,590 55 00:03:10,590 --> 00:03:17,160 And what's important is that the range is going to be from 56 00:03:17,160 --> 00:03:23,130 t equals 0 to t equals pi. 57 00:03:23,130 --> 00:03:25,540 It's t equals pi because we don't want to go all the way 58 00:03:25,540 --> 00:03:26,100 around the circle. 59 00:03:26,100 --> 00:03:27,860 We just want to go halfway around until we get to 60 00:03:27,860 --> 00:03:29,900 negative 1. 61 00:03:29,900 --> 00:03:32,480 So if that is r of t, then we can compute the 62 00:03:32,480 --> 00:03:33,910 differential dr of t. 63 00:03:33,910 --> 00:03:37,770 64 00:03:37,770 --> 00:03:41,890 And so it's going to be just taking the derivative. 65 00:03:41,890 --> 00:03:54,380 So we have negative sin t and cos t dt. 66 00:03:54,380 --> 00:03:59,680 And so now we can just write out this 67 00:03:59,680 --> 00:04:00,730 line integral directly. 68 00:04:00,730 --> 00:04:08,540 So the integral over C of F dot dr just becomes-- 69 00:04:08,540 --> 00:04:14,810 so we have the integral from t equals 0 to pi. 70 00:04:14,810 --> 00:04:17,820 Those are the ranges for our curve. 71 00:04:17,820 --> 00:04:22,310 And now we're going to take the dot product of F, which 72 00:04:22,310 --> 00:04:31,990 was (5x to the fourth plus 3y cubed, 9xy squared). 73 00:04:31,990 --> 00:04:35,950 We're just going to dot this with our dr vector, which is 74 00:04:35,950 --> 00:04:38,910 (-sin t, cos t). 75 00:04:38,910 --> 00:04:42,440 76 00:04:42,440 --> 00:04:45,060 All together we have dt. 77 00:04:45,060 --> 00:04:49,340 And so now, notice that here we've got the variables x and 78 00:04:49,340 --> 00:04:52,540 y, and here we've got the variables t, but because of 79 00:04:52,540 --> 00:04:54,640 our parameterization, we actually know that, for 80 00:04:54,640 --> 00:04:59,580 instance, x is cos t and y is sin t. 81 00:04:59,580 --> 00:05:01,070 So we can write this all out. 82 00:05:01,070 --> 00:05:07,170 83 00:05:07,170 --> 00:05:20,780 So we have 5 cos to the fourth t plus 3 sin cubed t. 84 00:05:20,780 --> 00:05:23,990 So that's this guy written out in terms of t. 85 00:05:23,990 --> 00:05:29,800 And then we multiply it by a negative sin t. 86 00:05:29,800 --> 00:05:32,860 And then to that we add the other components. 87 00:05:32,860 --> 00:05:38,210 So we have plus a 9. 88 00:05:38,210 --> 00:05:42,830 So we have cos t coming from the x and another cos t here. 89 00:05:42,830 --> 00:05:55,480 So we have cos squared t, and we have a sin squared t dt. 90 00:05:55,480 --> 00:05:57,930 OK, so that's what it means to compute this line integral 91 00:05:57,930 --> 00:06:00,080 directly, and it's not something that I 92 00:06:00,080 --> 00:06:01,430 look forward to doing. 93 00:06:01,430 --> 00:06:05,320 So let's see if we can use path independence to make our 94 00:06:05,320 --> 00:06:06,570 lives a little bit simpler. 95 00:06:06,570 --> 00:06:09,960 96 00:06:09,960 --> 00:06:12,860 So that's going to be c. 97 00:06:12,860 --> 00:06:21,150 So what we want to do is we want to replace our original 98 00:06:21,150 --> 00:06:26,220 curve C with any other curve that has the same starting 99 00:06:26,220 --> 00:06:28,130 point and the same ending point. 100 00:06:28,130 --> 00:06:31,860 And the curve that I would like to use is just a straight 101 00:06:31,860 --> 00:06:32,720 line connecting them. 102 00:06:32,720 --> 00:06:35,030 There's lots of different choices that you could do, but 103 00:06:35,030 --> 00:06:38,280 to me this one seems the most natural. 104 00:06:38,280 --> 00:06:39,530 So let's give that a try. 105 00:06:39,530 --> 00:06:47,750 106 00:06:47,750 --> 00:06:54,680 So let's let r of t be the curve (-t,0). 107 00:06:54,680 --> 00:06:59,280 Negative t because we want it to run moving to the left. 108 00:06:59,280 --> 00:07:09,310 And then our range is just going to be from minus 1 to 1. 109 00:07:09,310 --> 00:07:13,600 So when t is minus 1, then we get minus the negative 1 and 110 00:07:13,600 --> 00:07:15,900 it starts at 1. 111 00:07:15,900 --> 00:07:19,030 And when t is 1 it goes to negative 1. 112 00:07:19,030 --> 00:07:22,450 And notice that it goes along the y equals 0 axis. 113 00:07:22,450 --> 00:07:24,960 114 00:07:24,960 --> 00:07:28,310 So now we can do the same computation that we did before 115 00:07:28,310 --> 00:07:29,650 but we can use this curve. 116 00:07:29,650 --> 00:07:34,180 So the thing that I want to emphasize is that if we're 117 00:07:34,180 --> 00:07:38,750 computing a line integral of a gradient function-- 118 00:07:38,750 --> 00:07:40,600 so of a function which is conservative-- 119 00:07:40,600 --> 00:07:45,270 then we can use any line and we can use any path that 120 00:07:45,270 --> 00:07:46,800 connects the two end points. 121 00:07:46,800 --> 00:07:48,270 We can replace our path. 122 00:07:48,270 --> 00:07:48,940 And so that's what we did. 123 00:07:48,940 --> 00:07:51,040 We replaced C1 with C2. 124 00:07:51,040 --> 00:07:53,710 So now this becomes much easier in two ways. 125 00:07:53,710 --> 00:07:54,960 So we'll see. 126 00:07:54,960 --> 00:08:04,610 127 00:08:04,610 --> 00:08:09,640 So our range now is just t goes from minus 1 to 1. 128 00:08:09,640 --> 00:08:17,090 And so dr here is just (-1, 0). 129 00:08:17,090 --> 00:08:25,130 That's dr. And there's a dt. 130 00:08:25,130 --> 00:08:28,130 131 00:08:28,130 --> 00:08:30,250 And let's see. 132 00:08:30,250 --> 00:08:37,200 So now F, we had this value for F, but notice that the 133 00:08:37,200 --> 00:08:39,479 y-coordinate is always 0 along this curve. 134 00:08:39,479 --> 00:08:42,220 135 00:08:42,220 --> 00:08:47,780 So the y-coordinate being 0 means that we just have 5t to 136 00:08:47,780 --> 00:08:54,990 the fourth and then 0 here. 137 00:08:54,990 --> 00:08:59,840 That's it, because we set y to be 0 along this curve. 138 00:08:59,840 --> 00:09:04,990 So all together this is a very nice integral to do. 139 00:09:04,990 --> 00:09:07,700 So just taking this dot product, all we have is minus 140 00:09:07,700 --> 00:09:11,770 5t to the fourth dt. 141 00:09:11,770 --> 00:09:13,370 That's simplified greatly. 142 00:09:13,370 --> 00:09:23,050 And we just have minus t to the fifth from 1 to minus 1. 143 00:09:23,050 --> 00:09:28,590 And so we get simply minus 2. 144 00:09:28,590 --> 00:09:30,900 So that was a much, much more straightforward integral to do 145 00:09:30,900 --> 00:09:32,530 than the one we started with. 146 00:09:32,530 --> 00:09:38,010 Now finally, in d, we're suggested to use the 147 00:09:38,010 --> 00:09:40,010 fundamental theorem of line integrals. 148 00:09:40,010 --> 00:09:41,580 So let's remember what that says. 149 00:09:41,580 --> 00:09:50,420 That says that if we have any curve and the line integral 150 00:09:50,420 --> 00:09:51,670 that we're taking-- 151 00:09:51,670 --> 00:09:55,470 152 00:09:55,470 --> 00:09:58,810 if we know that we're taking the line integral not of any 153 00:09:58,810 --> 00:10:01,810 vector field, but of a vector field which is already the 154 00:10:01,810 --> 00:10:07,320 gradient of f, then that tells us that this is simply f of 155 00:10:07,320 --> 00:10:17,500 the endpoint minus f of the starting point of our curve. 156 00:10:17,500 --> 00:10:21,350 So really we don't need to do any integral at all. 157 00:10:21,350 --> 00:10:25,295 And so let's see. 158 00:10:25,295 --> 00:10:36,510 So recall that f was x to the fifth plus 3xy cubed. 159 00:10:36,510 --> 00:10:39,320 And so the endpoint-- 160 00:10:39,320 --> 00:10:44,820 so we just need to take f of (-1, 0) and 161 00:10:44,820 --> 00:10:49,660 subtract f of (1, 0). 162 00:10:49,660 --> 00:10:57,930 And so plugging this all in together we get minus 1 minus 163 00:10:57,930 --> 00:11:01,090 a positive 1. 164 00:11:01,090 --> 00:11:03,050 All together we get minus 2. 165 00:11:03,050 --> 00:11:05,800 And, of course, this does agree with what we did when we 166 00:11:05,800 --> 00:11:08,100 computed using the line integrals.