1 00:00:00,000 --> 00:00:06,920 2 00:00:06,920 --> 00:00:07,430 Hi. 3 00:00:07,430 --> 00:00:09,070 Welcome back to recitation. 4 00:00:09,070 --> 00:00:10,930 In lecture, you've learned a whole bunch of different 5 00:00:10,930 --> 00:00:12,290 integration techniques. 6 00:00:12,290 --> 00:00:14,530 So I have here a couple of problems that will give you an 7 00:00:14,530 --> 00:00:17,540 opportunity to apply those techniques, and figure out 8 00:00:17,540 --> 00:00:19,080 which ones to apply. 9 00:00:19,080 --> 00:00:22,680 So in particular I have one definite integral, the 10 00:00:22,680 --> 00:00:26,470 integral 0 to 2 of the quantity x times e to the 1 11 00:00:26,470 --> 00:00:28,710 minus x squared with respect to x. 12 00:00:28,710 --> 00:00:31,940 And the second one is an indefinite integral of 2 arc 13 00:00:31,940 --> 00:00:35,800 tan x divided by x squared with respect to x. 14 00:00:35,800 --> 00:00:38,820 So why don't you pause the video, take some time to work 15 00:00:38,820 --> 00:00:41,030 these out, come back, and we can work them out together. 16 00:00:41,030 --> 00:00:49,630 17 00:00:49,630 --> 00:00:50,400 Welcome back. 18 00:00:50,400 --> 00:00:52,710 Hopefully you had some luck working on these integrals. 19 00:00:52,710 --> 00:00:53,460 Let's get started. 20 00:00:53,460 --> 00:00:55,510 We can do the first one first, and then we'll go on to the 21 00:00:55,510 --> 00:00:56,750 second one. 22 00:00:56,750 --> 00:01:02,666 So here we want to compute the integral from 0 to 2 of x e to 23 00:01:02,666 --> 00:01:06,700 the 1 minus x squared dx. 24 00:01:06,700 --> 00:01:08,620 So in order to do this, we have to, you know-- 25 00:01:08,620 --> 00:01:12,360 well, we could look at it and say, do I know the answer 26 00:01:12,360 --> 00:01:13,640 immediately, off the top of my head? 27 00:01:13,640 --> 00:01:17,680 And this is not one of the, you know, ones that we have 28 00:01:17,680 --> 00:01:20,430 immediately already memorized a formula for. 29 00:01:20,430 --> 00:01:21,350 So then you say, OK. 30 00:01:21,350 --> 00:01:23,680 So now I need to do something in order to try 31 00:01:23,680 --> 00:01:24,290 to integrate it. 32 00:01:24,290 --> 00:01:26,360 And so, you know, you have a whole bunch of techniques. 33 00:01:26,360 --> 00:01:29,650 And for this one, when you look at it, the technique that 34 00:01:29,650 --> 00:01:31,470 is going to work for you is just the simplest technique 35 00:01:31,470 --> 00:01:33,810 that you have, which is just a straightforward substitution. 36 00:01:33,810 --> 00:01:36,790 And one way to figure that out, is that you can look at 37 00:01:36,790 --> 00:01:39,540 this and you can see that here we have a composition of 38 00:01:39,540 --> 00:01:42,170 functions, this e to the 1 minus x squared, and so 39 00:01:42,170 --> 00:01:43,870 whenever you have a composition of functions, 40 00:01:43,870 --> 00:01:46,430 there's the opportunity for there to have been a chain 41 00:01:46,430 --> 00:01:47,610 rule somewhere. 42 00:01:47,610 --> 00:01:50,630 And in this case, we see that this composition of functions 43 00:01:50,630 --> 00:01:56,230 is multiplied by x, and x is very closely related to the 44 00:01:56,230 --> 00:01:58,890 derivative of 1 minus x squared. 45 00:01:58,890 --> 00:02:02,720 So that's what's suggesting for us a nice substitution. 46 00:02:02,720 --> 00:02:05,530 And so the substitution we're going to try, then, is that 47 00:02:05,530 --> 00:02:08,100 we're going to put this inside function, this 1 minus x 48 00:02:08,100 --> 00:02:09,400 squared, we're going to set u equal to that. 49 00:02:09,400 --> 00:02:09,900 So, all right. 50 00:02:09,900 --> 00:02:13,330 So this is equal to-- so I'm going to say, u 51 00:02:13,330 --> 00:02:15,870 equal 1 minus x squared. 52 00:02:15,870 --> 00:02:18,020 So now if I take a differential, if u equals 1 53 00:02:18,020 --> 00:02:25,700 minus x squared, that means that du is minus 2x dx. 54 00:02:25,700 --> 00:02:27,800 And since this is a definite integral, I also need to 55 00:02:27,800 --> 00:02:29,630 change the bounds of integration. 56 00:02:29,630 --> 00:02:34,620 So when x is equal to 0, that means that u is equal to, 57 00:02:34,620 --> 00:02:38,740 well, 1 minus 0 squared is 1, so that's the lower bound. 58 00:02:38,740 --> 00:02:42,680 And when x is equal to 2, that means that u is equal to 1 59 00:02:42,680 --> 00:02:45,600 minus 2 squared, which is negative 3. 60 00:02:45,600 --> 00:02:47,120 So we make these substitutions. 61 00:02:47,120 --> 00:02:47,370 OK. 62 00:02:47,370 --> 00:02:48,950 So what does our integral become? 63 00:02:48,950 --> 00:02:51,740 So this becomes the integral-- 64 00:02:51,740 --> 00:02:55,810 so now the lower bound becomes u equals 1, and the upper 65 00:02:55,810 --> 00:02:58,660 bound is u equals negative 3. 66 00:02:58,660 --> 00:02:58,950 OK. 67 00:02:58,950 --> 00:03:01,500 So now e to the 1 minus x squared, that's 68 00:03:01,500 --> 00:03:02,750 just e to the u. 69 00:03:02,750 --> 00:03:05,480 70 00:03:05,480 --> 00:03:07,430 And x dx-- 71 00:03:07,430 --> 00:03:08,940 well, that's almost du. 72 00:03:08,940 --> 00:03:11,840 It's du divided by negative 2. 73 00:03:11,840 --> 00:03:17,750 So du divided by negative 2. 74 00:03:17,750 --> 00:03:19,510 So we make the substitution. 75 00:03:19,510 --> 00:03:21,570 We transform our integral to this form. 76 00:03:21,570 --> 00:03:23,300 Now, this is a very nice, simple integral, right? 77 00:03:23,300 --> 00:03:25,810 This is just the integral of e to the u with a, you know, a 78 00:03:25,810 --> 00:03:27,180 constant multiple. 79 00:03:27,180 --> 00:03:27,272 So, OK. 80 00:03:27,272 --> 00:03:29,030 So we can do this right away. 81 00:03:29,030 --> 00:03:30,180 So this is-- 82 00:03:30,180 --> 00:03:32,900 I'll pull the minus 1/2 out in front. 83 00:03:32,900 --> 00:03:35,340 And now fundamental theorem of calculus. 84 00:03:35,340 --> 00:03:38,620 Antiderivative of the e to the u is just e to the u. 85 00:03:38,620 --> 00:03:40,620 And I have to take that between my bounds. 86 00:03:40,620 --> 00:03:45,610 So between u equals 1 and u equals minus 3. 87 00:03:45,610 --> 00:03:47,640 So notice that because we changed bounds, we don't have 88 00:03:47,640 --> 00:03:50,770 to go back and convert everything back to x. 89 00:03:50,770 --> 00:03:53,410 We can just plug in directly. 90 00:03:53,410 --> 00:03:53,840 So OK. 91 00:03:53,840 --> 00:03:55,060 So we plug in directly. 92 00:03:55,060 --> 00:03:55,690 What do I get? 93 00:03:55,690 --> 00:03:59,630 So first I get minus 1/2 times-- 94 00:03:59,630 --> 00:04:01,280 all right, so I'll just pull the constant out in front. 95 00:04:01,280 --> 00:04:09,640 So the first term is e to the minus third minus e to the 1. 96 00:04:09,640 --> 00:04:09,930 OK. 97 00:04:09,930 --> 00:04:13,900 And if I wanted to, I could rewrite this as e minus e to 98 00:04:13,900 --> 00:04:18,550 the minus 3 over 2, or in a variety of other ways. 99 00:04:18,550 --> 00:04:18,930 All right. 100 00:04:18,930 --> 00:04:22,430 So this one was a pretty straightforward integration by 101 00:04:22,430 --> 00:04:25,450 substitution, definite integral, change bounds, and 102 00:04:25,450 --> 00:04:27,770 at the end you get this answer. 103 00:04:27,770 --> 00:04:29,480 So let's take a look at the second one. 104 00:04:29,480 --> 00:04:31,860 So the second one is a bit trickier, I think, and it 105 00:04:31,860 --> 00:04:32,970 requires a bit more work. 106 00:04:32,970 --> 00:04:34,210 So here it is. 107 00:04:34,210 --> 00:04:34,860 Let me rewrite it. 108 00:04:34,860 --> 00:04:45,910 So it's the antiderivative of 2 arc tan x over x squared dx. 109 00:04:45,910 --> 00:04:49,170 So we have here an antiderivative 110 00:04:49,170 --> 00:04:50,440 that we have to compute. 111 00:04:50,440 --> 00:04:53,230 And this is a kind of messy-looking expression that 112 00:04:53,230 --> 00:04:53,785 we're working with. 113 00:04:53,785 --> 00:04:55,140 All right? 114 00:04:55,140 --> 00:04:59,230 So this is not very pleasant. 115 00:04:59,230 --> 00:05:01,850 So there are a couple of different things we could 116 00:05:01,850 --> 00:05:02,660 think to do. 117 00:05:02,660 --> 00:05:07,490 So one thing that you could think to do is you could say, 118 00:05:07,490 --> 00:05:09,580 I really don't like arc tan. 119 00:05:09,580 --> 00:05:11,590 I'm going to try and get rid of arc tan. 120 00:05:11,590 --> 00:05:13,680 And the way I'm going to get rid of arc tan is by doing a 121 00:05:13,680 --> 00:05:17,900 substitution, u equals arc tan x, or x equals tan u. 122 00:05:17,900 --> 00:05:19,980 So if you do that, that'll get rid of your inverse 123 00:05:19,980 --> 00:05:22,380 trigonometric function, but it'll introduce, in the 124 00:05:22,380 --> 00:05:25,110 bottom, you have this x squared, so that'll introduce 125 00:05:25,110 --> 00:05:28,530 like a tan u squared, and dx will give you 126 00:05:28,530 --> 00:05:30,210 some more trig functions. 127 00:05:30,210 --> 00:05:31,840 So what you'll be left with, then-- so this 128 00:05:31,840 --> 00:05:33,240 will be u on top. 129 00:05:33,240 --> 00:05:36,790 So you'll have u times a product of trig functions. 130 00:05:36,790 --> 00:05:39,255 So I guess it's up to you whether you think that a 131 00:05:39,255 --> 00:05:42,100 polynomial, or a power of u times a bunch of trig 132 00:05:42,100 --> 00:05:44,720 functions, is simpler than an inverse trig 133 00:05:44,720 --> 00:05:47,510 function times a power. 134 00:05:47,510 --> 00:05:51,590 It's not clear to me that it's actually that much simpler. 135 00:05:51,590 --> 00:05:53,040 And in any case, we wouldn't sort of be 136 00:05:53,040 --> 00:05:54,030 finished at that stage. 137 00:05:54,030 --> 00:05:56,560 There would still be a fair amount more work to do. 138 00:05:56,560 --> 00:05:59,170 So we can think about, what other things could we do? 139 00:05:59,170 --> 00:06:01,860 That's kind of the only obvious substitution here. 140 00:06:01,860 --> 00:06:06,610 But another thing that suggests itself, is that we 141 00:06:06,610 --> 00:06:08,450 could try an integration by parts. 142 00:06:08,450 --> 00:06:10,980 And one reason is, this is a product of things. 143 00:06:10,980 --> 00:06:13,840 You know, here it's arc 10x times 1 over x squared. 144 00:06:13,840 --> 00:06:18,170 And arc 10x is something that works nicely with integration 145 00:06:18,170 --> 00:06:20,160 by parts if you can differentiate it. 146 00:06:20,160 --> 00:06:20,380 Right? 147 00:06:20,380 --> 00:06:23,200 So inverse trigonometric functions behave like 148 00:06:23,200 --> 00:06:26,430 logarithms with respect to integration by parts. 149 00:06:26,430 --> 00:06:29,120 By which I mean, they really like to be differentiated. 150 00:06:29,120 --> 00:06:31,300 Because when you differentiate an arc tan, you get something 151 00:06:31,300 --> 00:06:32,020 much simpler. 152 00:06:32,020 --> 00:06:34,240 Well, simpler, anyhow. 153 00:06:34,240 --> 00:06:35,680 Maybe not much simpler. 154 00:06:35,680 --> 00:06:37,670 You get 1 over 1 plus x squared. 155 00:06:37,670 --> 00:06:39,610 So if you can apply integration by parts and 156 00:06:39,610 --> 00:06:42,590 differentiate the arc tan, that makes your life nice. 157 00:06:42,590 --> 00:06:45,120 And so, then, in order for that to work, you need for 158 00:06:45,120 --> 00:06:46,860 everything else to be something you can 159 00:06:46,860 --> 00:06:49,690 antidifferentiate, and here everything else is just 2 over 160 00:06:49,690 --> 00:06:51,540 x squared, and so that's something that 161 00:06:51,540 --> 00:06:52,590 we know how to integrate. 162 00:06:52,590 --> 00:06:53,750 It's easy to do. 163 00:06:53,750 --> 00:06:53,930 So, OK. 164 00:06:53,930 --> 00:06:56,550 So let's give that a try, then. 165 00:06:56,550 --> 00:06:58,460 So we're going to do integration by parts, so I'm 166 00:06:58,460 --> 00:07:06,000 going to set you equal to arc tan x. 167 00:07:06,000 --> 00:07:12,510 So that means u prime is equal to 1 over 1 plus x squared. 168 00:07:12,510 --> 00:07:15,890 And I'm going to let v prime equal, well, I guess I have to 169 00:07:15,890 --> 00:07:18,590 pick up the 2 somewhere, so I might as well pick it up here. 170 00:07:18,590 --> 00:07:22,090 2 over x squared. 171 00:07:22,090 --> 00:07:25,940 And so then v, so I integrate 2 over x squared, so that 172 00:07:25,940 --> 00:07:30,530 gives me x to the minus 1, with a minus sign. 173 00:07:30,530 --> 00:07:34,740 So it's minus 2 over x. 174 00:07:34,740 --> 00:07:37,230 So these are u, u prime, v and v prime. 175 00:07:37,230 --> 00:07:41,030 So now OK, so now I apply integration by parts, and that 176 00:07:41,030 --> 00:07:44,260 tells me this is equal to-- 177 00:07:44,260 --> 00:07:44,780 well, let's see. 178 00:07:44,780 --> 00:07:54,425 So it's uv, which is minus 2 arc tan x over x. 179 00:07:54,425 --> 00:08:00,570 That's uv. Minus the integral of, now what the second part 180 00:08:00,570 --> 00:08:04,600 is, v u prime dx. 181 00:08:04,600 --> 00:08:07,160 So here v u prime is-- 182 00:08:07,160 --> 00:08:07,560 well, OK. 183 00:08:07,560 --> 00:08:09,190 So they're minus 2. 184 00:08:09,190 --> 00:08:11,300 I'm going to pull that out front. 185 00:08:11,300 --> 00:08:12,860 So it's plus 2-- 186 00:08:12,860 --> 00:08:13,450 all right. 187 00:08:13,450 --> 00:08:18,250 And then the rest of it is 1 over x times 1 188 00:08:18,250 --> 00:08:21,940 plus x squared dx. 189 00:08:21,940 --> 00:08:25,200 So if you apply integration by parts, you have the uv stuff 190 00:08:25,200 --> 00:08:27,040 that gets kicked out out front, and then what you're 191 00:08:27,040 --> 00:08:28,780 left with is this second integral. 192 00:08:28,780 --> 00:08:32,550 Now this is, to me this is simpler-looking than what we 193 00:08:32,550 --> 00:08:33,060 started with. 194 00:08:33,060 --> 00:08:35,520 It's still not simple, but it's simpler. 195 00:08:35,520 --> 00:08:38,490 So it seems to me that, you know, having reached this 196 00:08:38,490 --> 00:08:39,420 stage, we can say, OK. 197 00:08:39,420 --> 00:08:42,500 We've made some progress, and now we have to keep going. 198 00:08:42,500 --> 00:08:42,890 Right? 199 00:08:42,890 --> 00:08:46,090 So it's not obvious to me what the antiderivative of this 200 00:08:46,090 --> 00:08:48,340 expression should be. 201 00:08:48,340 --> 00:08:49,640 So how can I figure that out? 202 00:08:49,640 --> 00:08:52,230 Well, there are a couple of different options here. 203 00:08:52,230 --> 00:08:54,900 One thing you might look at this and see, 204 00:08:54,900 --> 00:08:56,020 is you might see-- 205 00:08:56,020 --> 00:08:58,720 again, I have a 1 plus x squared in the denominator, 206 00:08:58,720 --> 00:09:01,040 and so that might make you tempted to do a trig 207 00:09:01,040 --> 00:09:02,950 substitution again. 208 00:09:02,950 --> 00:09:05,390 And in fact, you could do a trig substitution here. 209 00:09:05,390 --> 00:09:08,880 You could put x equal tan theta, and you would be able 210 00:09:08,880 --> 00:09:10,780 to solve the question like this. 211 00:09:10,780 --> 00:09:12,670 But I don't think it's the simplest way to go. 212 00:09:12,670 --> 00:09:13,900 Because in addition-- 213 00:09:13,900 --> 00:09:16,110 well, on the one hand, this has this 1 plus x squared in 214 00:09:16,110 --> 00:09:17,950 the denominator, but on the other hand, this is just a 215 00:09:17,950 --> 00:09:19,400 rational function. 216 00:09:19,400 --> 00:09:19,690 Yeah? 217 00:09:19,690 --> 00:09:21,580 It's a ratio of two polynomials. 218 00:09:21,580 --> 00:09:23,950 The polynomial on top is just 1, and the polynomial on the 219 00:09:23,950 --> 00:09:26,950 bottom is this product, x times 1 plus x squared. 220 00:09:26,950 --> 00:09:29,450 And so whenever you have a rational function that you're 221 00:09:29,450 --> 00:09:32,580 trying to integrate, you can also always use-- 222 00:09:32,580 --> 00:09:34,150 what's it called-- 223 00:09:34,150 --> 00:09:35,950 partial fraction decomposition. 224 00:09:35,950 --> 00:09:38,110 So we can try to use partial fractions on the second 225 00:09:38,110 --> 00:09:39,290 expression. 226 00:09:39,290 --> 00:09:43,140 And so I think I'd like to do it that way. 227 00:09:43,140 --> 00:09:44,760 So let's do that. 228 00:09:44,760 --> 00:09:45,760 Let's do it down here. 229 00:09:45,760 --> 00:09:58,900 So partial fractions on the quantity 1 over x 230 00:09:58,900 --> 00:10:02,080 times 1 plus x squared. 231 00:10:02,080 --> 00:10:03,830 So if you remember your partial fractions here, this 232 00:10:03,830 --> 00:10:05,090 is completely factored. 233 00:10:05,090 --> 00:10:07,080 This quadratic doesn't factor. 234 00:10:07,080 --> 00:10:10,150 It doesn't have any real roots, doesn't factor. 235 00:10:10,150 --> 00:10:14,580 So OK, so we have a single linear term, and a single 236 00:10:14,580 --> 00:10:16,340 non-factorable quadratic term. 237 00:10:16,340 --> 00:10:19,230 So partial fractions tells us that we can write this in the 238 00:10:19,230 --> 00:10:24,880 form a over x plus-- and now because the second term is 239 00:10:24,880 --> 00:10:31,450 quadratic, it needs to be bx plus c over 1 plus x squared. 240 00:10:31,450 --> 00:10:31,710 Right? 241 00:10:31,710 --> 00:10:35,610 So when you have a quadratic in the bottom, you get two 242 00:10:35,610 --> 00:10:38,870 constants up at the top, a linear polynomial. 243 00:10:38,870 --> 00:10:39,760 And then you can always check. 244 00:10:39,760 --> 00:10:43,330 You have three constants here, and the degree of the 245 00:10:43,330 --> 00:10:45,530 denominator is 3, so that's one way of checking that 246 00:10:45,530 --> 00:10:48,860 you're not completely off base, that the degree down 247 00:10:48,860 --> 00:10:50,990 here should always agree with the number of constants that 248 00:10:50,990 --> 00:10:52,390 you're solving for. 249 00:10:52,390 --> 00:10:53,530 OK. 250 00:10:53,530 --> 00:10:53,880 Good. 251 00:10:53,880 --> 00:10:57,310 So now we need to solve this for a, b, and c. 252 00:10:57,310 --> 00:11:00,310 And so OK, because we have this nice single linear 253 00:11:00,310 --> 00:11:02,730 factor, we can do the cover up method there. 254 00:11:02,730 --> 00:11:08,360 So we cover up x, and we cover up over x, and we cover up 255 00:11:08,360 --> 00:11:09,430 everything else. 256 00:11:09,430 --> 00:11:12,660 So on the right hand side, we just end up with a, and on the 257 00:11:12,660 --> 00:11:14,290 left hand side, well, so x. 258 00:11:14,290 --> 00:11:16,500 So that's what we need, we get whatever when we 259 00:11:16,500 --> 00:11:17,960 plug in x equals 0. 260 00:11:17,960 --> 00:11:21,900 So on this side, we get 1 over 1 plus 0 squared, 261 00:11:21,900 --> 00:11:25,060 so that's just 1. 262 00:11:25,060 --> 00:11:29,770 So the cover up method gives us that a is equal to 1. 263 00:11:29,770 --> 00:11:31,630 And now we need to solve for b and c. 264 00:11:31,630 --> 00:11:33,910 And probably the most straightforward way, in this 265 00:11:33,910 --> 00:11:36,830 case, to solve for b and c, is you can always 266 00:11:36,830 --> 00:11:39,340 just multiply through. 267 00:11:39,340 --> 00:11:40,990 And if you multiply through-- 268 00:11:40,990 --> 00:11:41,310 OK. 269 00:11:41,310 --> 00:11:42,830 So we'll multiply through on the left hand. 270 00:11:42,830 --> 00:11:45,850 We'll clear denominator, we'll multiply through by x times 1 271 00:11:45,850 --> 00:11:46,500 plus x squared. 272 00:11:46,500 --> 00:11:49,240 So on the left we'll get just 1. 273 00:11:49,240 --> 00:11:49,920 On the right-- 274 00:11:49,920 --> 00:11:50,350 OK. 275 00:11:50,350 --> 00:11:56,945 So we multiply a over x times x times 1 plus x squared, so 276 00:11:56,945 --> 00:11:59,780 that gives us a times 1 plus x squared, but we know that a is 277 00:11:59,780 --> 00:12:05,220 1, so this is-- the first term becomes 1 plus x squared, and 278 00:12:05,220 --> 00:12:08,560 the second term we multiply through by x times 1 plus x 279 00:12:08,560 --> 00:12:10,920 squared, and the 1 plus x squareds cancel, and we're 280 00:12:10,920 --> 00:12:18,850 left with plus x times bx plus c. 281 00:12:18,850 --> 00:12:23,540 Now, if you, maybe you could at this point, there are a 282 00:12:23,540 --> 00:12:24,810 number of different ways to finish. 283 00:12:24,810 --> 00:12:27,230 But one, for example, is you could see, all right, if you 284 00:12:27,230 --> 00:12:31,180 subtract the 1 plus x squared over to the other side, you 285 00:12:31,180 --> 00:12:36,430 have minus x squared, and over here, you have bx 286 00:12:36,430 --> 00:12:38,540 squared plus cx. 287 00:12:38,540 --> 00:12:41,850 So for those things to be equal, you need b to be 288 00:12:41,850 --> 00:12:45,910 negative 1, and you need c to be 0. 289 00:12:45,910 --> 00:12:47,490 Right? 290 00:12:47,490 --> 00:12:47,756 So OK. 291 00:12:47,756 --> 00:12:51,700 So good. 292 00:12:51,700 --> 00:12:58,240 So we have b equals minus 1, c equals 0. 293 00:12:58,240 --> 00:13:00,630 So the partial fraction decomposition, then, if we 294 00:13:00,630 --> 00:13:12,300 plug this in, is 1 over x minus x over 1 plus x squared. 295 00:13:12,300 --> 00:13:17,250 So this is the partial fraction decomposition of this 296 00:13:17,250 --> 00:13:18,890 rational function. 297 00:13:18,890 --> 00:13:20,980 So you apply that partial fraction decomposition. 298 00:13:20,980 --> 00:13:21,400 What do you do? 299 00:13:21,400 --> 00:13:24,230 All right, So now you carry that back upstairs to the 300 00:13:24,230 --> 00:13:25,660 integral we were working on. 301 00:13:25,660 --> 00:13:29,170 302 00:13:29,170 --> 00:13:32,470 So our integral that we started with is equal to, 303 00:13:32,470 --> 00:13:34,910 now-- well, so this constant is still out in front. 304 00:13:34,910 --> 00:13:45,280 So it's minus 2 arc tan x over x plus-- 305 00:13:45,280 --> 00:13:47,110 so now we've got 2 times-- 306 00:13:47,110 --> 00:13:47,370 all right. 307 00:13:47,370 --> 00:13:49,990 So first, this is just algebra that we've done, so we can 308 00:13:49,990 --> 00:13:51,210 just substitute it in. 309 00:13:51,210 --> 00:13:56,440 So we replace this 1 over x times 1 plus x squared by 1 310 00:13:56,440 --> 00:14:04,910 over x minus x over 1 plus x squared dx. 311 00:14:04,910 --> 00:14:05,410 OK. 312 00:14:05,410 --> 00:14:08,290 And now using the properties of integration, this is a 313 00:14:08,290 --> 00:14:09,420 difference of two-- 314 00:14:09,420 --> 00:14:11,180 an integral of a difference is the 315 00:14:11,180 --> 00:14:13,440 difference of the two integrals. 316 00:14:13,440 --> 00:14:15,780 So we just integrate them separately, right? 317 00:14:15,780 --> 00:14:17,440 So this is equal to-- so OK, the part 318 00:14:17,440 --> 00:14:19,460 out front never changes. 319 00:14:19,460 --> 00:14:26,330 2 arc tan x over x, plus 2 times-- 320 00:14:26,330 --> 00:14:26,580 OK. 321 00:14:26,580 --> 00:14:32,190 So you integrate 1 over x, and that just gives you ln of 322 00:14:32,190 --> 00:14:34,180 absolute value of x. 323 00:14:34,180 --> 00:14:38,280 And OK, so you integrate, so the second part is x over 1 324 00:14:38,280 --> 00:14:39,300 plus x squared. 325 00:14:39,300 --> 00:14:42,720 Now, in the worst case, we would need to do some more 326 00:14:42,720 --> 00:14:44,420 work on this term and split things up. 327 00:14:44,420 --> 00:14:45,820 And one of them, we might have to complete 328 00:14:45,820 --> 00:14:46,820 the square or something. 329 00:14:46,820 --> 00:14:49,160 But in this case, it actually has worked out kind of nicely. 330 00:14:49,160 --> 00:14:54,850 This x over 1 plus x squared is a simple thing to handle. 331 00:14:54,850 --> 00:14:56,860 That's just ln of 1 plus x squared. 332 00:14:56,860 --> 00:15:00,410 Well, actually, 1/2 ln of 1 plus x squared. 333 00:15:00,410 --> 00:15:09,500 So this is minus 1/2 ln of 1 plus x squared. 334 00:15:09,500 --> 00:15:11,950 I could write absolute value, but 1 plus x squared is always 335 00:15:11,950 --> 00:15:15,580 positive, so it doesn't matter if I do or not. 336 00:15:15,580 --> 00:15:19,330 And if I wanted, I could rewrite this a bit. 337 00:15:19,330 --> 00:15:22,290 I could rewrite this as-- just to finish it, I could write 2 338 00:15:22,290 --> 00:15:30,780 arc tan x over x plus 2 ln absolute value of x minus ln 339 00:15:30,780 --> 00:15:36,550 of 1 plus x squared. 340 00:15:36,550 --> 00:15:39,020 And I was doing an antiderivative. 341 00:15:39,020 --> 00:15:40,930 So at some point, whenever I finished the last one, I 342 00:15:40,930 --> 00:15:42,130 should have added a constant. 343 00:15:42,130 --> 00:15:45,350 So this should have had a plus c here, and it should have a 344 00:15:45,350 --> 00:15:46,586 plus c there. 345 00:15:46,586 --> 00:15:47,836 Right, good. 346 00:15:47,836 --> 00:15:51,140 347 00:15:51,140 --> 00:15:54,350 So OK, so there's my answer. 348 00:15:54,350 --> 00:15:56,940 And let's just recap quickly how we arrived at it. 349 00:15:56,940 --> 00:16:00,720 So we started with this integral. 350 00:16:00,720 --> 00:16:04,150 And we saw, we recognized it as a good candidate for 351 00:16:04,150 --> 00:16:06,260 integration by parts, and so we applied integration by 352 00:16:06,260 --> 00:16:10,350 parts, seeing that the arc tan part was the part that really 353 00:16:10,350 --> 00:16:13,500 wanted to be differentiated, and that the 1 over x squared 354 00:16:13,500 --> 00:16:15,760 part, you know, it could have been differentiated, it 355 00:16:15,760 --> 00:16:20,080 could've been integrated, but since the arc tan wanted to be 356 00:16:20,080 --> 00:16:21,600 differentiated, this got integrated. 357 00:16:21,600 --> 00:16:24,350 358 00:16:24,350 --> 00:16:24,560 Good. 359 00:16:24,560 --> 00:16:26,800 So we did integration by parts, and then we're left 360 00:16:26,800 --> 00:16:30,250 with a rational function as the piece of the integral we 361 00:16:30,250 --> 00:16:31,320 had left to compute. 362 00:16:31,320 --> 00:16:33,800 So when you have a rational function, one method that 363 00:16:33,800 --> 00:16:36,690 always works is that you can do partial fractions. 364 00:16:36,690 --> 00:16:38,890 Now, in this case, this was a fairly simple partial 365 00:16:38,890 --> 00:16:39,910 fractions to do. 366 00:16:39,910 --> 00:16:44,260 First of all, the degree of the numerator was smaller than 367 00:16:44,260 --> 00:16:46,550 the degree of the denominator, so we didn't have to divide by 368 00:16:46,550 --> 00:16:48,920 anything, you know, we didn't have to do long division. 369 00:16:48,920 --> 00:16:52,710 And the denominator had a fairly simple form, so we 370 00:16:52,710 --> 00:16:55,650 could just do the cover up method, and then multiply 371 00:16:55,650 --> 00:16:57,430 through and be done fairly quickly. 372 00:16:57,430 --> 00:16:58,050 But in any case. 373 00:16:58,050 --> 00:17:01,410 So we did, we applied partial fractions, so we got this 374 00:17:01,410 --> 00:17:02,110 expression. 375 00:17:02,110 --> 00:17:04,320 So then we carried that back up to our integral, and 376 00:17:04,320 --> 00:17:05,950 integrated. 377 00:17:05,950 --> 00:17:08,690 OK, so then we had this integral with the partial 378 00:17:08,690 --> 00:17:13,190 fraction expression in it, and that was easy to integrate. 379 00:17:13,190 --> 00:17:16,540 So in this case, quite easy to integrate. 380 00:17:16,540 --> 00:17:19,240 Sometimes it's a little messier, but we came out 381 00:17:19,240 --> 00:17:20,586 pretty luckily this time. 382 00:17:20,586 --> 00:17:22,320 So OK. 383 00:17:22,320 --> 00:17:23,170 And so there you go. 384 00:17:23,170 --> 00:17:25,150 So that's going to be our final answer. 385 00:17:25,150 --> 00:17:27,240 Now, this was long and complicated. 386 00:17:27,240 --> 00:17:29,610 And so sometimes, when you do a long and complicated 387 00:17:29,610 --> 00:17:31,530 computation, you worry, did I make any stupid 388 00:17:31,530 --> 00:17:33,490 mistakes along the way? 389 00:17:33,490 --> 00:17:36,800 One way to check, always, when you've done an antiderivative, 390 00:17:36,800 --> 00:17:38,990 is you could always check, you could take the derivative of 391 00:17:38,990 --> 00:17:39,870 this expression. 392 00:17:39,870 --> 00:17:43,520 So that'll require you to use some product rule and some 393 00:17:43,520 --> 00:17:45,240 chain rule. 394 00:17:45,240 --> 00:17:51,420 IBut, you know, arithmetically a little difficult, but not 395 00:17:51,420 --> 00:17:52,760 sort of intellectually, right? 396 00:17:52,760 --> 00:17:56,470 You just are applying rules sort of automatically. 397 00:17:56,470 --> 00:17:59,310 So you can take the derivative of this expression, and check 398 00:17:59,310 --> 00:18:02,120 to make sure that it actually agrees with the thing that we 399 00:18:02,120 --> 00:18:04,330 started with. 400 00:18:04,330 --> 00:18:05,820 So good. 401 00:18:05,820 --> 00:18:07,520 I'll end there. 402 00:18:07,520 --> 00:18:07,621