1 00:00:00,000 --> 00:00:00,000 2 00:00:00,000 --> 00:00:09,010 PROFESSOR: Welcome back to recitation. 3 00:00:09,010 --> 00:00:11,560 Today what I want to do is something maybe a little bit 4 00:00:11,560 --> 00:00:15,290 more theoretical, but the goal is to show that something that 5 00:00:15,290 --> 00:00:17,690 you are going to be repeatedly doing when you use quadratic 6 00:00:17,690 --> 00:00:20,260 approximations is, in fact, true. 7 00:00:20,260 --> 00:00:22,690 So I'm going to explain the situation, give a quick 8 00:00:22,690 --> 00:00:26,980 example, and then show you what we're setting out to do. 9 00:00:26,980 --> 00:00:29,440 So the situation is as follows we're going to-- 10 00:00:29,440 --> 00:00:33,540 any time you see a Q of f, that's going to represent the 11 00:00:33,540 --> 00:00:36,900 quadratic approximation to f at x equals 0. 12 00:00:36,900 --> 00:00:40,970 So what I've done is say, Q of f I'm going to define to be 13 00:00:40,970 --> 00:00:43,080 the thing on the right, which is exactly the formula you 14 00:00:43,080 --> 00:00:45,350 were given in class for the quadratic approximation of a 15 00:00:45,350 --> 00:00:48,350 function f at x equals 0. 16 00:00:48,350 --> 00:00:52,350 So f is approximately the thing on the right near 0. 17 00:00:52,350 --> 00:00:56,270 Our goal is to show that if I want to take the quadratic 18 00:00:56,270 --> 00:00:59,600 approximation of a product of two functions, that I can do 19 00:00:59,600 --> 00:01:01,650 it in a different way. 20 00:01:01,650 --> 00:01:04,030 I can do it in the way written on the right hand side, which 21 00:01:04,030 --> 00:01:06,390 actually looks more complicated in this notation, 22 00:01:06,390 --> 00:01:08,200 but is, in fact, easier in reality. 23 00:01:08,200 --> 00:01:10,220 So let me explain what's happening and then I'll give 24 00:01:10,220 --> 00:01:11,860 you an example. 25 00:01:11,860 --> 00:01:13,890 If I wanted to take the quadratic approximation of a 26 00:01:13,890 --> 00:01:16,880 product of two functions, what I want to show is that 27 00:01:16,880 --> 00:01:19,400 instead, I could take the quadratic approximation of 28 00:01:19,400 --> 00:01:23,470 each individual function, multiply those together, and 29 00:01:23,470 --> 00:01:25,040 then take the quadratic approximation of 30 00:01:25,040 --> 00:01:26,460 what I get as a result. 31 00:01:26,460 --> 00:01:28,870 So let me give you an easy example. 32 00:01:28,870 --> 00:01:39,880 For instance, let's let f of x equal e to the x and let's let 33 00:01:39,880 --> 00:01:42,720 g of x equal sine x. 34 00:01:42,720 --> 00:01:45,830 35 00:01:45,830 --> 00:01:48,260 Then what is Q of f? 36 00:01:48,260 --> 00:01:51,250 Q of f is the quadratic approximation to e to the x at 37 00:01:51,250 --> 00:01:52,150 x equals 0. 38 00:01:52,150 --> 00:01:55,530 And that's going to be 1 plus x plus x squared over 2-- your 39 00:01:55,530 --> 00:01:56,640 already knew this. 40 00:01:56,640 --> 00:01:59,310 And g, the quadratic approximation of 41 00:01:59,310 --> 00:02:03,160 sine x, is just x. 42 00:02:03,160 --> 00:02:08,000 So if I wanted to find the quadratic approximation to e 43 00:02:08,000 --> 00:02:11,110 to the x sine x, what I could do-- 44 00:02:11,110 --> 00:02:12,955 what this is claiming I can do-- 45 00:02:12,955 --> 00:02:16,600 46 00:02:16,600 --> 00:02:19,970 is instead I can take the quadratic approximation of 47 00:02:19,970 --> 00:02:22,640 this function times this function. 48 00:02:22,640 --> 00:02:26,790 So instead I can take the quadratic approximation of-- 49 00:02:26,790 --> 00:02:28,530 f was the e to the x-- 50 00:02:28,530 --> 00:02:35,470 1 plus x plus x squared over 2 times x. 51 00:02:35,470 --> 00:02:36,600 That's not a 4, sorry. 52 00:02:36,600 --> 00:02:38,340 That's a parentheses. 53 00:02:38,340 --> 00:02:41,320 1 plus x plus x squared over 2 times x. 54 00:02:41,320 --> 00:02:42,040 And what is that? 55 00:02:42,040 --> 00:02:43,960 The quadratic approximation to that is the quadratic 56 00:02:43,960 --> 00:02:48,860 approximation to x plus x squared plus x cubed over 2. 57 00:02:48,860 --> 00:02:52,700 And at x equals 0, if I have a polynomial, the quadratic 58 00:02:52,700 --> 00:02:57,310 approximation to a polynomial at x equals 0 is just all the 59 00:02:57,310 --> 00:02:58,830 terms up to the quadratic term. 60 00:02:58,830 --> 00:03:01,230 So I drop off higher order terms. So I just 61 00:03:01,230 --> 00:03:04,260 get x plus x squared. 62 00:03:04,260 --> 00:03:06,260 So that's the idea. 63 00:03:06,260 --> 00:03:09,550 The idea is I have a product of two functions, I know their 64 00:03:09,550 --> 00:03:12,520 individual quadratic approximations, and so what I 65 00:03:12,520 --> 00:03:15,630 want to do is I want to find the quadratic approximation of 66 00:03:15,630 --> 00:03:18,730 this product by exploiting the fact that I already know their 67 00:03:18,730 --> 00:03:21,810 individual ones, and explain the fact that quadratic 68 00:03:21,810 --> 00:03:25,510 approximation of polynomials at x equals 0 is very easy. 69 00:03:25,510 --> 00:03:27,780 So that's the example, that's the idea. 70 00:03:27,780 --> 00:03:30,340 So now let's see if we can do it. 71 00:03:30,340 --> 00:03:30,610 OK. 72 00:03:30,610 --> 00:03:33,550 So we have a cheat sheet up here that I'm going 73 00:03:33,550 --> 00:03:34,670 to refer back to. 74 00:03:34,670 --> 00:03:36,670 I didn't want to use it again and I didn't want to have to 75 00:03:36,670 --> 00:03:40,590 derive this for you, but we have the product rule-- fg 76 00:03:40,590 --> 00:03:43,310 prime is equal to what's on the right, and fg double prime 77 00:03:43,310 --> 00:03:44,890 is equal to what's on the right. 78 00:03:44,890 --> 00:03:48,830 So my goal here is to show, remember, that the quadratic 79 00:03:48,830 --> 00:03:49,550 approximation-- 80 00:03:49,550 --> 00:03:50,880 let me point over here again. 81 00:03:50,880 --> 00:03:53,790 The goal is to show the quadratic approximation of fg 82 00:03:53,790 --> 00:03:56,710 is equal to the quadratic approximation of quadratic 83 00:03:56,710 --> 00:04:02,110 approximation of f times the quadratic approximation of g. 84 00:04:02,110 --> 00:04:03,660 So let's do, well let's do the right hand side first because 85 00:04:03,660 --> 00:04:04,990 that's a little nicer. 86 00:04:04,990 --> 00:04:06,910 And then we'll show the right hand side and then we'll show 87 00:04:06,910 --> 00:04:09,400 the left hand side and we'll show they're equal. 88 00:04:09,400 --> 00:04:12,745 So let me start here with the right hand side. 89 00:04:12,745 --> 00:04:13,995 OK? 90 00:04:13,995 --> 00:04:17,880 91 00:04:17,880 --> 00:04:20,350 So, let's look at what's the quadratic approximation of f 92 00:04:20,350 --> 00:04:22,580 and what's the quadratic approximation of g and then 93 00:04:22,580 --> 00:04:25,560 we'll take their final quadratic approximation. 94 00:04:25,560 --> 00:04:31,100 So Q of f, we have exactly what we need there. 95 00:04:31,100 --> 00:04:38,550 f of 0 plus f prime of 0 times x plus f double prime of 0 96 00:04:38,550 --> 00:04:41,360 over 2 x squared. 97 00:04:41,360 --> 00:04:49,860 Q of g is equal to g of 0 plus g prime of 0 times x plus g 98 00:04:49,860 --> 00:04:55,450 double prime at 0 over 2 x squared. 99 00:04:55,450 --> 00:04:58,240 So now what I'm going to do is multiply those two together. 100 00:04:58,240 --> 00:05:00,510 And I'm actually going to swing this way a tiny bit, if 101 00:05:00,510 --> 00:05:05,140 that's OK, to write Q of f times Q of g because it's 102 00:05:05,140 --> 00:05:07,640 going to be a little long. 103 00:05:07,640 --> 00:05:09,780 And I'm going to group them carefully so that I have all 104 00:05:09,780 --> 00:05:11,260 the higher order terms at the end. 105 00:05:11,260 --> 00:05:12,990 OK? 106 00:05:12,990 --> 00:05:17,670 So I'm going to get f of 0 g of 0 by 107 00:05:17,670 --> 00:05:19,720 multiplying these two together. 108 00:05:19,720 --> 00:05:23,080 And then I'm going to get two terms involving an x. 109 00:05:23,080 --> 00:05:27,900 I'm going to get an f prime times g and a g prime times f. 110 00:05:27,900 --> 00:05:30,320 Actually, if you'll allow me, we'll know that anywhere we 111 00:05:30,320 --> 00:05:33,730 see an f or a g or an f prime or a g prime, or an f double 112 00:05:33,730 --> 00:05:37,220 prime or g double prime, they're all evaluated at 0. 113 00:05:37,220 --> 00:05:40,040 So I'm going to drop the 0's from here on out. 114 00:05:40,040 --> 00:05:43,200 Anywhere you see those, I'm evaluating them at 0. 115 00:05:43,200 --> 00:05:46,480 Otherwise this will be way too long. 116 00:05:46,480 --> 00:05:51,340 So let me write this just as fg. 117 00:05:51,340 --> 00:05:53,630 I can even write just a single one evaluated at 0. 118 00:05:53,630 --> 00:06:00,150 It's the product evaluated at 0 and then I have f prime g-- 119 00:06:00,150 --> 00:06:04,040 so I'll just evaluate it at 0 at the end of the product-- 120 00:06:04,040 --> 00:06:08,680 plus fg prime evaluated at 0. 121 00:06:08,680 --> 00:06:10,990 This whole thing is times x. 122 00:06:10,990 --> 00:06:13,190 I get an x here, I get an x here. 123 00:06:13,190 --> 00:06:15,295 Now I need to figure out what terms give me an x squared. 124 00:06:15,295 --> 00:06:17,010 OK? 125 00:06:17,010 --> 00:06:20,630 So the terms that give me an x squared are f of 0 times g 126 00:06:20,630 --> 00:06:22,220 double prime over 2. 127 00:06:22,220 --> 00:06:23,720 That gives me an x squared. 128 00:06:23,720 --> 00:06:26,380 f double prime times g gives me an x squared. 129 00:06:26,380 --> 00:06:29,100 And f prime g prime gives me an x squared. 130 00:06:29,100 --> 00:06:36,865 So let's write out those terms. I get fg double prime 131 00:06:36,865 --> 00:06:39,740 at 0 over 2-- 132 00:06:39,740 --> 00:06:42,060 from those two-- 133 00:06:42,060 --> 00:06:46,830 plus g f double prime at 0 over 2-- 134 00:06:46,830 --> 00:06:48,910 from those two-- 135 00:06:48,910 --> 00:06:56,610 plus f prime g prime at 0 all times x squared. 136 00:06:56,610 --> 00:06:58,520 So there's an x times an x there-- 137 00:06:58,520 --> 00:07:00,166 gives you an x squared. 138 00:07:00,166 --> 00:07:02,710 x squared there, x squared there. 139 00:07:02,710 --> 00:07:06,390 Now I could keep going, and I will mention the higher order 140 00:07:06,390 --> 00:07:08,390 terms, but I'm not going to write them all the way out 141 00:07:08,390 --> 00:07:10,900 because of what we're about to do. 142 00:07:10,900 --> 00:07:12,960 Let me show you where they come from. 143 00:07:12,960 --> 00:07:16,820 You get an x cubed term from here and an x 144 00:07:16,820 --> 00:07:19,280 cubed term from here. 145 00:07:19,280 --> 00:07:21,120 Maybe I'll write the x cubes, but I won't write 146 00:07:21,120 --> 00:07:22,240 the x to the fourth. 147 00:07:22,240 --> 00:07:30,030 So the x cubed terms are f prime g double prime 0 over 2 148 00:07:30,030 --> 00:07:36,350 plus g prime f double prime at 0 over 2. 149 00:07:36,350 --> 00:07:37,670 And those are my x cubed terms. 150 00:07:37,670 --> 00:07:44,330 And then I got some x to the fourth terms. And where do the 151 00:07:44,330 --> 00:07:46,260 x to the fourth terms come from? 152 00:07:46,260 --> 00:07:49,350 They come from this product. 153 00:07:49,350 --> 00:07:50,670 Right? 154 00:07:50,670 --> 00:07:52,320 But I want to point out something. 155 00:07:52,320 --> 00:07:53,960 What I'm going to do, I'm going to work some 156 00:07:53,960 --> 00:07:56,450 magic on the board. 157 00:07:56,450 --> 00:07:58,440 This is a quadratic approximation of f times a 158 00:07:58,440 --> 00:08:00,190 quadratic approximation of g. 159 00:08:00,190 --> 00:08:02,810 Let me come over here and remind you that I want the 160 00:08:02,810 --> 00:08:06,690 quadratic approximation of that product. 161 00:08:06,690 --> 00:08:09,400 So what I'm going to do is go back and look at what I need 162 00:08:09,400 --> 00:08:12,040 from there to be the quadratic approximation of that product. 163 00:08:12,040 --> 00:08:13,820 So we come back over here. 164 00:08:13,820 --> 00:08:17,280 If I apply the quadratic approximation to this thing, 165 00:08:17,280 --> 00:08:21,920 which means then I'm applying it to this whole giant thing, 166 00:08:21,920 --> 00:08:23,910 what do I actually get? 167 00:08:23,910 --> 00:08:26,160 This is actually a polynomial. 168 00:08:26,160 --> 00:08:27,730 I have something-- 169 00:08:27,730 --> 00:08:31,570 I have a linear term, I have an x, I have an x squared, I 170 00:08:31,570 --> 00:08:33,330 have an x cubed, I have an x to the fourth. 171 00:08:33,330 --> 00:08:35,850 So if I apply that quadratic approximation, 172 00:08:35,850 --> 00:08:39,120 let's see what stays. 173 00:08:39,120 --> 00:08:42,240 This term stays. 174 00:08:42,240 --> 00:08:45,180 This term stays. 175 00:08:45,180 --> 00:08:47,230 This term stays. 176 00:08:47,230 --> 00:08:49,260 I'm going to erase what disappears because I don't 177 00:08:49,260 --> 00:08:51,010 want us to get confused by that. 178 00:08:51,010 --> 00:08:52,430 So these two terms disappear. 179 00:08:52,430 --> 00:08:52,860 Why? 180 00:08:52,860 --> 00:08:55,630 Because again, this is a polynomial. 181 00:08:55,630 --> 00:08:57,440 I have linear-- 182 00:08:57,440 --> 00:08:59,870 or I have constant, I'm sorry, I think I called this maybe 183 00:08:59,870 --> 00:09:03,500 linear earlier-- constant linear quadratic term. 184 00:09:03,500 --> 00:09:07,380 And what I need is just those if I'm looking for a quadratic 185 00:09:07,380 --> 00:09:08,510 approximation. 186 00:09:08,510 --> 00:09:11,940 So constant linear quadratic term, I immediately drop the 187 00:09:11,940 --> 00:09:13,940 cubic and the quartic term when I'm looking at a 188 00:09:13,940 --> 00:09:17,340 quadratic approximation of a polynomial at 0. 189 00:09:17,340 --> 00:09:21,440 So if I want the right hand side, I just need what's 190 00:09:21,440 --> 00:09:23,450 underlined in blue. 191 00:09:23,450 --> 00:09:25,860 So now I'm going to put a big box around that because that's 192 00:09:25,860 --> 00:09:27,270 going to be important. 193 00:09:27,270 --> 00:09:29,370 Whatever else happens, we don't lose that. 194 00:09:29,370 --> 00:09:32,530 So now we've done the right hand side. 195 00:09:32,530 --> 00:09:35,110 And now let's write out what is the left hand side. 196 00:09:35,110 --> 00:09:37,300 And that's just going to be plugging it 197 00:09:37,300 --> 00:09:38,550 straight into the formula. 198 00:09:38,550 --> 00:09:40,820 199 00:09:40,820 --> 00:09:42,080 And using our cheat sheet. 200 00:09:42,080 --> 00:09:46,170 201 00:09:46,170 --> 00:09:48,780 So Q of fg, let me write out the definition and then we'll 202 00:09:48,780 --> 00:09:50,590 use the cheat sheet. 203 00:09:50,590 --> 00:09:52,950 It's fg at 0-- 204 00:09:52,950 --> 00:09:55,260 again, this is f at 0, g at 0, that's what 205 00:09:55,260 --> 00:09:57,040 this notation means-- 206 00:09:57,040 --> 00:10:06,140 plus fg quantity prime at 0 times x plus quantity fg 207 00:10:06,140 --> 00:10:10,890 double prime at 0 over 2 times x squared. 208 00:10:10,890 --> 00:10:13,330 And now what we're hoping, remember, is that what's in 209 00:10:13,330 --> 00:10:15,960 the box is what shows up over here. 210 00:10:15,960 --> 00:10:18,160 Because this is the long way to do the problem. 211 00:10:18,160 --> 00:10:21,270 This would be if I took either the x sine x and I took all 212 00:10:21,270 --> 00:10:22,630 the derivatives. 213 00:10:22,630 --> 00:10:25,790 And this, in fact, even though it looks more confusing in 214 00:10:25,790 --> 00:10:30,010 evaluating such a quadratic approximation, this way would 215 00:10:30,010 --> 00:10:31,890 be the easier way. 216 00:10:31,890 --> 00:10:34,870 We just want to show we don't lose anything by doing what 217 00:10:34,870 --> 00:10:37,280 would be the easier way. 218 00:10:37,280 --> 00:10:41,620 So I get fg at 0. 219 00:10:41,620 --> 00:10:43,900 And that's good-- we can see we already have one of those, 220 00:10:43,900 --> 00:10:45,450 so that's nice. 221 00:10:45,450 --> 00:10:46,460 What do I get here? 222 00:10:46,460 --> 00:10:55,250 I get f prime g at 0 plus g prime f at 0 times x. 223 00:10:55,250 --> 00:10:58,160 That comes-- let me remind you, I'll walk over here-- 224 00:10:58,160 --> 00:10:59,420 comes from the cheat sheet. 225 00:10:59,420 --> 00:11:00,510 The first thing. 226 00:11:00,510 --> 00:11:02,550 fg prime is f prime g plus g prime f. 227 00:11:02,550 --> 00:11:06,450 We know that one pretty well, but just to remind you. 228 00:11:06,450 --> 00:11:08,570 So that's where this term comes from. 229 00:11:08,570 --> 00:11:11,450 This looks promising because if we come back to our 230 00:11:11,450 --> 00:11:14,240 quadratic of quadratic of f times quadratic of g, it looks 231 00:11:14,240 --> 00:11:17,130 exactly like the second term here. 232 00:11:17,130 --> 00:11:20,660 So now we're hoping that the x squared term looks like this. 233 00:11:20,660 --> 00:11:22,380 The only thing that might make you nervous is this doesn't 234 00:11:22,380 --> 00:11:25,060 have an over 2, but if you were paying attention to the 235 00:11:25,060 --> 00:11:26,870 cheat sheet you'll probably see where that's coming. 236 00:11:26,870 --> 00:11:29,060 And I'll point it out in one moment. 237 00:11:29,060 --> 00:11:30,670 So fg double prime-- 238 00:11:30,670 --> 00:11:32,100 using the cheat sheet-- 239 00:11:32,100 --> 00:11:36,990 is f double prime g plus g double prime f 240 00:11:36,990 --> 00:11:40,010 plus 2 g prime f prime. 241 00:11:40,010 --> 00:11:41,450 I should have put 0's in there. 242 00:11:41,450 --> 00:11:44,000 Just to be consistent let me put these 0's in there. 243 00:11:44,000 --> 00:11:49,540 244 00:11:49,540 --> 00:11:52,890 2 f prime g prime at 0. 245 00:11:52,890 --> 00:11:55,840 And then I have to divide the whole thing by 2 because 246 00:11:55,840 --> 00:11:59,332 there's a divided by 2 there, and then times x squared. 247 00:11:59,332 --> 00:12:01,730 So let me move out of the way for a moment. 248 00:12:01,730 --> 00:12:06,670 So this numerator came from the cheat sheet for the second 249 00:12:06,670 --> 00:12:07,710 derivative. 250 00:12:07,710 --> 00:12:09,280 And if you need, we can go back. 251 00:12:09,280 --> 00:12:11,260 Let me just remind you, here it is. 252 00:12:11,260 --> 00:12:12,690 You can work it out for yourself. 253 00:12:12,690 --> 00:12:14,270 You can just take the derivative of the first 254 00:12:14,270 --> 00:12:15,040 derivative. 255 00:12:15,040 --> 00:12:17,140 But that's where this comes from. 256 00:12:17,140 --> 00:12:19,210 So let me go back and we're almost done with the problem. 257 00:12:19,210 --> 00:12:21,800 258 00:12:21,800 --> 00:12:23,160 So what do we see? 259 00:12:23,160 --> 00:12:29,630 Well, we see that we get fg at 0. 260 00:12:29,630 --> 00:12:33,390 We get the second term we want, f prime g at 0 plus g 261 00:12:33,390 --> 00:12:38,090 prime f at 0 times x. 262 00:12:38,090 --> 00:12:41,190 And then the third term is, in fact, exactly what we want 263 00:12:41,190 --> 00:12:47,530 because we get f double prime g at 0 over 2 plus g double 264 00:12:47,530 --> 00:12:51,940 prime f at 0 over 2 plus-- 265 00:12:51,940 --> 00:12:53,420 the 2's divide out-- 266 00:12:53,420 --> 00:12:58,280 and I get f prime g prime at 0 time x squared. 267 00:12:58,280 --> 00:13:01,750 And if we look at this last term and we look at the 268 00:13:01,750 --> 00:13:04,230 squared term in the box we see, in fact, they 269 00:13:04,230 --> 00:13:06,250 are exactly the same. 270 00:13:06,250 --> 00:13:08,850 So let me summarize because this was kind of a long video. 271 00:13:08,850 --> 00:13:10,910 So I'm going to go back to the beginning, give you the 272 00:13:10,910 --> 00:13:14,500 example, and tell you what we were really trying to do here. 273 00:13:14,500 --> 00:13:15,590 So let's come back over here. 274 00:13:15,590 --> 00:13:20,030 And let me remind you, the goal was to show that if I 275 00:13:20,030 --> 00:13:22,670 wanted to take a quadratic approximation of a product of 276 00:13:22,670 --> 00:13:25,860 two functions, if I already knew their individual 277 00:13:25,860 --> 00:13:30,360 quadratic approximations, you were told that you could take 278 00:13:30,360 --> 00:13:33,380 those two quadratic approximations, multiply them, 279 00:13:33,380 --> 00:13:36,290 and drop off the higher order terms. The 280 00:13:36,290 --> 00:13:38,180 higher order, then 2. 281 00:13:38,180 --> 00:13:39,680 So we had an example. 282 00:13:39,680 --> 00:13:42,210 We knew these two quadratic approximations. 283 00:13:42,210 --> 00:13:44,450 And you've been told that quadratic approximation of 284 00:13:44,450 --> 00:13:47,600 their product is just the quadratic approximation of the 285 00:13:47,600 --> 00:13:50,000 product of their quadratic approximations. 286 00:13:50,000 --> 00:13:53,320 And so our goal today was to show that you don't drop any 287 00:13:53,320 --> 00:13:57,050 of the terms that you get if you do it by this method or by 288 00:13:57,050 --> 00:13:58,130 this method. 289 00:13:58,130 --> 00:13:59,630 And we've done that. 290 00:13:59,630 --> 00:14:01,560 So I think I'll stop there. 291 00:14:01,560 --> 00:14:01,708