1 00:00:06,910 --> 00:00:07,410 Hi. 2 00:00:07,410 --> 00:00:08,775 Welcome back to recitation. 3 00:00:08,775 --> 00:00:11,150 We've been talking about a bunch of different integration 4 00:00:11,150 --> 00:00:11,820 techniques. 5 00:00:11,820 --> 00:00:14,890 Here are a couple of examples on which you can try and pick out 6 00:00:14,890 --> 00:00:17,840 the right technique to compute these two integrals with. 7 00:00:17,840 --> 00:00:21,400 So I've got the first one, is the indefinite integral 8 00:00:21,400 --> 00:00:24,410 of x cubed times the square root of the quantity 9 00:00:24,410 --> 00:00:26,880 x squared plus 2 dx. 10 00:00:26,880 --> 00:00:28,640 And the second one is a definite integral. 11 00:00:28,640 --> 00:00:32,050 It's the integral 1 to e of x squared 12 00:00:32,050 --> 00:00:36,180 times the quantity ln of x squared, with respect to x. 13 00:00:36,180 --> 00:00:38,190 So why don't you pause the video, take some time 14 00:00:38,190 --> 00:00:39,930 to compute these two integrals, come back, 15 00:00:39,930 --> 00:00:41,304 and we can compute them together. 16 00:00:48,540 --> 00:00:51,100 So hopefully you had some luck working on these integrals. 17 00:00:51,100 --> 00:00:53,140 Let's start with the first one. 18 00:00:53,140 --> 00:00:56,930 So for question A, let me just rewrite it here. 19 00:00:56,930 --> 00:01:02,190 We have the integral of x cubed times the square root of x 20 00:01:02,190 --> 00:01:06,250 squared plus 2 dx. 21 00:01:06,250 --> 00:01:09,720 Now, if you look at this integral, what you see 22 00:01:09,720 --> 00:01:11,870 is a product of two terms. 23 00:01:11,870 --> 00:01:13,250 This term is x cubed. 24 00:01:13,250 --> 00:01:14,110 It's a nice term. 25 00:01:14,110 --> 00:01:16,820 This one is the square root of x squared plus 2. 26 00:01:16,820 --> 00:01:18,930 That's not such a nice term. 27 00:01:18,930 --> 00:01:22,970 There are a few different things you might think to try here. 28 00:01:22,970 --> 00:01:25,060 So one thing you might think to try, 29 00:01:25,060 --> 00:01:27,360 is this square root of x squared plus 2 is 30 00:01:27,360 --> 00:01:30,300 the sort of thing that shows up in trig substitutions. 31 00:01:30,300 --> 00:01:32,340 So that's one thing you might have in your mind. 32 00:01:32,340 --> 00:01:34,090 Another thing you might have in your mind, 33 00:01:34,090 --> 00:01:36,129 is that this is a product of two things. 34 00:01:36,129 --> 00:01:37,670 So you might consider the possibility 35 00:01:37,670 --> 00:01:40,070 that you're going to do an integration by parts here. 36 00:01:40,070 --> 00:01:42,403 And the third thing you might have in your mind is just, 37 00:01:42,403 --> 00:01:44,310 you could just-- you know, this might just 38 00:01:44,310 --> 00:01:46,070 be a substitution situation. 39 00:01:46,070 --> 00:01:49,640 You have this x squared plus 2 as the sort of discrete entity 40 00:01:49,640 --> 00:01:50,560 that shows up there. 41 00:01:50,560 --> 00:01:52,900 So you might try a regular substitution. 42 00:01:52,900 --> 00:01:57,150 Now you have to, you know, make a choice among which of these 43 00:01:57,150 --> 00:01:57,810 to try. 44 00:01:57,810 --> 00:02:01,040 And it seems to me that of those options, 45 00:02:01,040 --> 00:02:03,420 a regular substitution is the easiest to do. 46 00:02:03,420 --> 00:02:05,150 And you'll find out really quickly 47 00:02:05,150 --> 00:02:09,220 whether you've made your life horribly complicated or not. 48 00:02:09,220 --> 00:02:11,551 And frequently, with integration by parts, 49 00:02:11,551 --> 00:02:14,050 if you have the option of doing a substitution when you have 50 00:02:14,050 --> 00:02:16,640 integration by parts, you know, it won't-- if you do 51 00:02:16,640 --> 00:02:18,980 the substitution, you still can do integration by parts 52 00:02:18,980 --> 00:02:19,480 afterward. 53 00:02:19,480 --> 00:02:21,130 If you do integration by parts first, 54 00:02:21,130 --> 00:02:24,490 you can still do the substitution afterward. 55 00:02:24,490 --> 00:02:28,534 So trying the substitution shouldn't hurt us 56 00:02:28,534 --> 00:02:30,700 for integration by parts, and a regular substitution 57 00:02:30,700 --> 00:02:33,540 will be a lot simpler than a trig substitution here, right? 58 00:02:33,540 --> 00:02:35,590 Trig substitutions in general are complicated, 59 00:02:35,590 --> 00:02:38,089 so it's a good idea to see if there's something simpler that 60 00:02:38,089 --> 00:02:39,190 can be done first. 61 00:02:39,190 --> 00:02:41,230 So if we're going to try regular substitution, 62 00:02:41,230 --> 00:02:44,120 the sort of natural thing to do, is 63 00:02:44,120 --> 00:02:48,230 to set u equal x squared plus 2. 64 00:02:48,230 --> 00:02:55,302 So in this case, we have du is equal to 2x dx. 65 00:02:58,210 --> 00:02:59,730 Or-- well, so OK. 66 00:02:59,730 --> 00:03:02,720 So we want to substitute these things in. 67 00:03:02,720 --> 00:03:05,570 The u is going to go into the square root term. 68 00:03:05,570 --> 00:03:07,070 So that's going to be taken care of. 69 00:03:07,070 --> 00:03:10,150 And the dx part-- well, we've got an x 70 00:03:10,150 --> 00:03:14,890 here to pair up with the dx, so that's going to give us a du. 71 00:03:14,890 --> 00:03:16,800 And then we'll have x squared left over. 72 00:03:16,800 --> 00:03:19,960 So we'll need to substitute in for x squared. 73 00:03:19,960 --> 00:03:24,910 So we're going to use x squared is equal to u minus 2, 74 00:03:24,910 --> 00:03:31,340 and x dx is equal to du over 2. 75 00:03:31,340 --> 00:03:34,050 So when we make these substitutions in here, what 76 00:03:34,050 --> 00:03:37,400 we get is that this integral is equal to the integral 77 00:03:37,400 --> 00:03:40,930 of-- so it's x squared times the square root of x squared 78 00:03:40,930 --> 00:03:42,820 plus 2 times x dx. 79 00:03:42,820 --> 00:03:46,960 So that's u minus 2 times the square root 80 00:03:46,960 --> 00:03:52,420 of u times du over 2. 81 00:03:52,420 --> 00:03:54,737 Now, having made the substitution, we see-- OK. 82 00:03:54,737 --> 00:03:56,320 So with a little bit of rearrangement, 83 00:03:56,320 --> 00:03:58,110 this is just a sum of powers of u. 84 00:03:58,110 --> 00:03:58,610 Right? 85 00:03:58,610 --> 00:04:06,720 We can rewrite this as the integral of u to the 3/2 over 2 86 00:04:06,720 --> 00:04:11,185 minus u to the 1/2 du. 87 00:04:11,185 --> 00:04:13,310 And now, this is just straightforward to integrate. 88 00:04:13,310 --> 00:04:15,090 So it turns out we don't need integration by parts. 89 00:04:15,090 --> 00:04:16,630 We don't need a trig substitution. 90 00:04:16,630 --> 00:04:18,730 Just this regular substitution works nicely. 91 00:04:18,730 --> 00:04:21,900 So we get, well, u to the 3/2, so we 92 00:04:21,900 --> 00:04:27,190 compute an antiderivative, so that gives us u to the 5/2. 93 00:04:27,190 --> 00:04:31,540 And I have to divide by 5/2, so I have to multiply by 2/5. 94 00:04:31,540 --> 00:04:32,510 And then I have a half. 95 00:04:32,510 --> 00:04:38,240 So it's u to the 5/2 over 5, minus-- so u to the 1/2, 96 00:04:38,240 --> 00:04:46,961 so that gives me 3/2, so I need minus 2/3 u to the 3/2. 97 00:04:46,961 --> 00:04:47,460 OK. 98 00:04:47,460 --> 00:04:49,150 And now to finish this off, I have 99 00:04:49,150 --> 00:04:51,540 to do my final back substitution, 100 00:04:51,540 --> 00:04:53,890 and replace u with x. 101 00:04:53,890 --> 00:05:01,500 So this is going to be x squared plus 2 over 5 102 00:05:01,500 --> 00:05:10,750 to the 5/2 minus 2/3 times x squared plus 2 to the 3/2. 103 00:05:10,750 --> 00:05:12,060 All right. 104 00:05:12,060 --> 00:05:13,160 Plus a constant. 105 00:05:13,160 --> 00:05:15,780 Thank you, peanut gallery. 106 00:05:15,780 --> 00:05:16,460 Plus a constant. 107 00:05:16,460 --> 00:05:17,260 Right. 108 00:05:17,260 --> 00:05:18,990 Indefinite integral, should have had it 109 00:05:18,990 --> 00:05:21,180 right the very first time I went through. 110 00:05:21,180 --> 00:05:22,660 Plus a constant, both times. 111 00:05:22,660 --> 00:05:23,160 OK. 112 00:05:23,160 --> 00:05:23,660 Good. 113 00:05:23,660 --> 00:05:26,770 So that's all there is for part A. Now 114 00:05:26,770 --> 00:05:28,770 let's look at part B. So OK. 115 00:05:28,770 --> 00:05:31,680 So part B is a little more complicated-looking. 116 00:05:31,680 --> 00:05:34,880 Let me copy it over here again. 117 00:05:34,880 --> 00:05:40,220 So part B, we have the integral from 1 to e 118 00:05:40,220 --> 00:05:47,950 of x squared times the quantity ln x squared dx. 119 00:05:47,950 --> 00:05:50,770 So again, there are a couple of possibilities for what 120 00:05:50,770 --> 00:05:52,680 we could want to do here. 121 00:05:52,680 --> 00:05:57,090 One thing is you could try just a regular substitution. 122 00:05:57,090 --> 00:05:58,840 So maybe a regular substitution you 123 00:05:58,840 --> 00:06:04,760 might want to try is u equals ln of x, or x equals e to the u. 124 00:06:04,760 --> 00:06:07,330 And now if you try that, you can try it, and what you'll see, 125 00:06:07,330 --> 00:06:08,500 is you'll get something. 126 00:06:08,500 --> 00:06:12,319 So here we have a polynomial times a function 127 00:06:12,319 --> 00:06:14,110 of the logarithm, a power of the logarithm. 128 00:06:14,110 --> 00:06:16,318 If you try that substitution, what you'll end up with 129 00:06:16,318 --> 00:06:21,461 is a polynomial in u times an exponential in u. 130 00:06:21,461 --> 00:06:21,960 So OK. 131 00:06:21,960 --> 00:06:25,650 So it's not clear that we've won anything, 132 00:06:25,650 --> 00:06:28,080 if we make that substitution. 133 00:06:28,080 --> 00:06:30,407 The other thing we can try, is we can try integration 134 00:06:30,407 --> 00:06:30,990 by parts here. 135 00:06:30,990 --> 00:06:33,944 Again, we have a product form. 136 00:06:33,944 --> 00:06:35,360 And if you make that substitution, 137 00:06:35,360 --> 00:06:37,380 you get polynomial times exponential, 138 00:06:37,380 --> 00:06:39,990 and that's also a promising place for integration by parts, 139 00:06:39,990 --> 00:06:41,620 after the substitution. 140 00:06:41,620 --> 00:06:42,240 So OK. 141 00:06:42,240 --> 00:06:43,990 So I'm not going to make the substitution. 142 00:06:43,990 --> 00:06:46,607 I'm just going to go-- seeing this product, 143 00:06:46,607 --> 00:06:48,690 I'm going to go for integration by parts directly. 144 00:06:48,690 --> 00:06:51,990 So I need to decide what pieces are which for integration 145 00:06:51,990 --> 00:06:52,580 by parts. 146 00:06:52,580 --> 00:06:54,105 And the thing to remember is this 147 00:06:54,105 --> 00:06:56,120 that-- so I have here a polynomial times 148 00:06:56,120 --> 00:06:57,616 a function of the logarithm. 149 00:06:57,616 --> 00:06:59,490 And the thing to remember is that polynomials 150 00:06:59,490 --> 00:07:00,851 like to be differentiated. 151 00:07:00,851 --> 00:07:01,850 That's their preference. 152 00:07:01,850 --> 00:07:05,117 But logarithms really, really like to be differentiated. 153 00:07:05,117 --> 00:07:07,700 You'd much rather differentiate a logarithm than integrate it. 154 00:07:07,700 --> 00:07:09,400 You can integrate a polynomial-- I mean you 155 00:07:09,400 --> 00:07:10,608 can integrate either of them. 156 00:07:10,608 --> 00:07:12,730 You can integrate a polynomial. 157 00:07:12,730 --> 00:07:14,230 When you integrate a polynomial, you 158 00:07:14,230 --> 00:07:17,030 get something that's still a fairly nice polynomial. 159 00:07:17,030 --> 00:07:18,810 Integrating logarithms is harder, 160 00:07:18,810 --> 00:07:20,840 whereas differentiating logarithms makes them 161 00:07:20,840 --> 00:07:22,610 into just powers of x. 162 00:07:22,610 --> 00:07:27,346 So setting this up as an integration by parts, 163 00:07:27,346 --> 00:07:28,720 we're going to want to take this, 164 00:07:28,720 --> 00:07:30,670 the everything with the logarithm in it, 165 00:07:30,670 --> 00:07:33,010 and that's the piece we want to differentiate, 166 00:07:33,010 --> 00:07:34,270 to try and simplify it. 167 00:07:34,270 --> 00:07:36,340 So that's going to be our u part. 168 00:07:36,340 --> 00:07:43,330 So we're going to try u equals ln x squared, 169 00:07:43,330 --> 00:07:49,450 and that leaves v prime to be x squared. 170 00:07:49,450 --> 00:07:50,980 So to do integration by parts-- OK. 171 00:07:50,980 --> 00:07:53,063 We need to differentiate and we need to integrate. 172 00:07:53,063 --> 00:07:57,180 So if I differentiate ln x squared, I get u prime. 173 00:07:57,180 --> 00:07:59,144 The prime is equal to-- OK. 174 00:07:59,144 --> 00:08:00,560 Well, this is a little chain rule. 175 00:08:00,560 --> 00:08:04,040 So it's 2 ln x times the derivative of ln 176 00:08:04,040 --> 00:08:06,120 x, which is 1 over x. 177 00:08:06,120 --> 00:08:08,900 And if I integrate v prime, I get 178 00:08:08,900 --> 00:08:13,901 v is equal to x cubed over 3. 179 00:08:13,901 --> 00:08:14,400 OK. 180 00:08:14,400 --> 00:08:18,370 So now I use the formula for integration by parts. 181 00:08:18,370 --> 00:08:23,130 So I have that this integral-- what I'm going to do is 182 00:08:23,130 --> 00:08:25,802 I'm going to call this, let me give it a name, I. 183 00:08:25,802 --> 00:08:28,010 Now I'm going to come down here and I'm going to say, 184 00:08:28,010 --> 00:08:31,680 I is equal to-- well, by integration by parts, 185 00:08:31,680 --> 00:08:38,350 it's equal to u*v minus the integral of u prime v dx. 186 00:08:38,350 --> 00:08:47,910 So in our case, u*v is x cubed over 3 times ln x squared. 187 00:08:47,910 --> 00:08:50,350 But the thing to remember is, this was a definite integral 188 00:08:50,350 --> 00:08:51,100 to start out with. 189 00:08:51,100 --> 00:08:52,050 It's from 1 to e. 190 00:08:52,050 --> 00:08:53,620 So when you take this part out front, 191 00:08:53,620 --> 00:08:56,440 you have to take the difference of its two values. 192 00:08:56,440 --> 00:09:00,720 So we're going to evaluate this between x equals 1 193 00:09:00,720 --> 00:09:05,010 and x equals e, minus the definite integral-- 194 00:09:05,010 --> 00:09:07,440 so we still have a definite integral from one to e 195 00:09:07,440 --> 00:09:13,740 of u prime v. So that's 2/3-- OK. 196 00:09:13,740 --> 00:09:17,730 So now we have an ln x over x times x cubed. 197 00:09:17,730 --> 00:09:20,490 So the x and the x cubed, that cancels one power 198 00:09:20,490 --> 00:09:23,030 of x out of the numerator. 199 00:09:23,030 --> 00:09:30,930 So we're left with 2/3 x squared ln x dx. 200 00:09:30,930 --> 00:09:32,415 So. 201 00:09:32,415 --> 00:09:33,914 One thing we see, this is just going 202 00:09:33,914 --> 00:09:35,790 to be-- this is just going to evaluate to a constant. 203 00:09:35,790 --> 00:09:37,570 We're going to plug in e, and we're going to plug in 1, 204 00:09:37,570 --> 00:09:39,195 and we're going to take the difference. 205 00:09:39,195 --> 00:09:40,500 So that's just some number. 206 00:09:40,500 --> 00:09:42,560 This part is still some integral. 207 00:09:42,560 --> 00:09:43,450 Are we done yet? 208 00:09:43,450 --> 00:09:47,070 Well, it's not obvious immediately how 209 00:09:47,070 --> 00:09:47,890 to integrate this. 210 00:09:47,890 --> 00:09:50,210 I mean, I don't already know off the top of my head 211 00:09:50,210 --> 00:09:53,064 what the antiderivative here is. 212 00:09:53,064 --> 00:09:54,480 On the other hand, it's definitely 213 00:09:54,480 --> 00:09:56,240 simpler than what we started with, right? 214 00:09:56,240 --> 00:09:58,630 Before we had x squared ln x squared. 215 00:09:58,630 --> 00:10:00,270 Here we just have x squared ln x. 216 00:10:00,270 --> 00:10:03,840 So we've simplified the integrand. 217 00:10:03,840 --> 00:10:06,800 And it's still in a form in which we can further integrate 218 00:10:06,800 --> 00:10:08,550 by parts, if you wanted to. 219 00:10:08,550 --> 00:10:09,050 Right? 220 00:10:09,050 --> 00:10:11,907 So now in this case the natural thing to do 221 00:10:11,907 --> 00:10:13,740 would be very similar to what we did before. 222 00:10:13,740 --> 00:10:15,701 We're going to take the u to be the ln 223 00:10:15,701 --> 00:10:17,200 x, to be the piece we differentiate, 224 00:10:17,200 --> 00:10:19,355 and we're going to take the v to be x squared. 225 00:10:19,355 --> 00:10:21,360 OK? 226 00:10:21,360 --> 00:10:22,110 So we can do that. 227 00:10:22,110 --> 00:10:24,310 So this is equal to-- let's see. 228 00:10:24,310 --> 00:10:27,590 I'm going to bring it, now, upstairs. 229 00:10:27,590 --> 00:10:28,930 So this is equal to-- all right. 230 00:10:28,930 --> 00:10:30,600 So we plug in e here. 231 00:10:30,600 --> 00:10:35,310 We get e cubed over 3 times 1, minus when we plug in 1, 232 00:10:35,310 --> 00:10:36,770 ln of 1 is 0. 233 00:10:36,770 --> 00:10:39,810 So that just gives me e cubed over 3 234 00:10:39,810 --> 00:10:42,200 for the first part minus-- all right, 235 00:10:42,200 --> 00:10:44,470 and I'm going to pull the 2/3 out front. 236 00:10:44,470 --> 00:10:47,650 So it's minus 2/3 times-- 237 00:10:47,650 --> 00:10:48,150 OK. 238 00:10:48,150 --> 00:10:49,976 So now I'm going to do an integration 239 00:10:49,976 --> 00:10:50,850 by parts on this one. 240 00:10:50,850 --> 00:10:56,860 So again, like I said, I'm going to take u is equal to ln x. 241 00:10:56,860 --> 00:11:01,690 I'm going to take v prime is equal to x squared. 242 00:11:01,690 --> 00:11:05,510 So that means u prime is equal to 1 243 00:11:05,510 --> 00:11:13,190 over x and v is equal to x cubed over 3. 244 00:11:13,190 --> 00:11:20,404 And so again, I get uv, which is x cubed over 3 ln x, 245 00:11:20,404 --> 00:11:22,320 and again, because it was a definite integral, 246 00:11:22,320 --> 00:11:28,930 I have to evaluate this between x equals 1 and e, minus-- OK. 247 00:11:28,930 --> 00:11:31,580 So minus the integral of u prime v. 248 00:11:31,580 --> 00:11:34,050 So this is the integral from 1 to e. 249 00:11:34,050 --> 00:11:36,560 u prime v is 1 over x times x cubed over 3, 250 00:11:36,560 --> 00:11:43,070 so that's x squared over 3 dx. 251 00:11:43,070 --> 00:11:45,345 OK, so having written all that down, what you see 252 00:11:45,345 --> 00:11:47,440 is this is a constant minus 2/3. 253 00:11:47,440 --> 00:11:47,940 OK. 254 00:11:47,940 --> 00:11:48,860 This is just some constant. 255 00:11:48,860 --> 00:11:50,250 We'll plug in e, we'll plug in 1. 256 00:11:50,250 --> 00:11:50,920 That's easy. 257 00:11:50,920 --> 00:11:53,500 And now we have an integral, and we've reduced this finally. 258 00:11:53,500 --> 00:11:55,699 Here we have just an integral of a polynomial. 259 00:11:55,699 --> 00:11:57,990 So an integral of a polynomial, that's easy to compute, 260 00:11:57,990 --> 00:11:59,900 you can do it yourself. 261 00:11:59,900 --> 00:12:03,830 And I'm going to let you finish off the last couple of steps 262 00:12:03,830 --> 00:12:04,820 for yourself. 263 00:12:04,820 --> 00:12:07,540 In the end, the answer should work out 264 00:12:07,540 --> 00:12:19,900 to 5 e cubed over 27 minus 2 over 27. 265 00:12:19,900 --> 00:12:22,140 This is what you should find the final answer 266 00:12:22,140 --> 00:12:23,580 to be when you work it all out. 267 00:12:23,580 --> 00:12:25,420 So I'll end there.