1 00:00:00,000 --> 00:00:07,000 2 00:00:07,000 --> 00:00:07,390 Hi. 3 00:00:07,390 --> 00:00:08,850 Welcome back to recitation. 4 00:00:08,850 --> 00:00:11,620 In class, Professor Jerison and Professor Miller have 5 00:00:11,620 --> 00:00:13,960 taught you a little bit about Taylor series and some of the 6 00:00:13,960 --> 00:00:16,090 manipulations you can do with them, and have computed a 7 00:00:16,090 --> 00:00:17,450 bunch of examples for you. 8 00:00:17,450 --> 00:00:18,640 So I have three more examples. 9 00:00:18,640 --> 00:00:22,150 Here of functions whose Taylor series are nice to compute. 10 00:00:22,150 --> 00:00:24,460 So the first one is cosh x. 11 00:00:24,460 --> 00:00:26,050 That's the hyperbolic cosine. 12 00:00:26,050 --> 00:00:29,060 So just to remind you, this can be written in terms of the 13 00:00:29,060 --> 00:00:32,370 exponential function as e to the x plus e to the 14 00:00:32,370 --> 00:00:35,940 minus x over 2. 15 00:00:35,940 --> 00:00:38,910 The second one is the function 2 times sine of x times cosine 16 00:00:38,910 --> 00:00:41,720 of x, just your regular sine and cosine here. 17 00:00:41,720 --> 00:00:45,870 And the third one is x times the logarithm of the quantity 18 00:00:45,870 --> 00:00:47,620 1 minus x cubed. 19 00:00:47,620 --> 00:00:50,410 So why don't you pause the video, take some time to work 20 00:00:50,410 --> 00:00:53,390 out the Taylor series for these three functions, come 21 00:00:53,390 --> 00:00:54,690 back, and we can work them out together. 22 00:00:54,690 --> 00:01:02,950 23 00:01:02,950 --> 00:01:06,060 So here we have three functions whose Taylor series 24 00:01:06,060 --> 00:01:06,960 we're trying to compute. 25 00:01:06,960 --> 00:01:09,150 Let's start with the first one and go from there. 26 00:01:09,150 --> 00:01:11,310 So this first one is the hyperbolic cosine that's given 27 00:01:11,310 --> 00:01:14,530 by the formula e to the x plus e to the minus x over 2. 28 00:01:14,530 --> 00:01:16,190 So there are a couple different ways you could go 29 00:01:16,190 --> 00:01:17,030 about this one. 30 00:01:17,030 --> 00:01:19,450 This is actually, the hyperbolic cosine is very 31 00:01:19,450 --> 00:01:22,230 susceptible to the method of just using the formula that 32 00:01:22,230 --> 00:01:25,690 you have. So if you remember, the derivative of the 33 00:01:25,690 --> 00:01:27,660 hyperbolic cosine is the hyperbolic sine. 34 00:01:27,660 --> 00:01:29,520 The derivative of the hyperbolic sine is the 35 00:01:29,520 --> 00:01:30,720 hyperbolic cosine again. 36 00:01:30,720 --> 00:01:33,320 So this function has very easy-to-understand 37 00:01:33,320 --> 00:01:35,750 derivatives, which you can see, you know, just by looking 38 00:01:35,750 --> 00:01:36,390 at its formula. 39 00:01:36,390 --> 00:01:39,610 It's easy to understand, because the exponential 40 00:01:39,610 --> 00:01:41,910 function has very simple derivatives, and e to the the 41 00:01:41,910 --> 00:01:44,440 minus x also has very simple derivatives. 42 00:01:44,440 --> 00:01:46,180 So you could do it like that. 43 00:01:46,180 --> 00:01:48,640 The other thing you could do, is that you already know the 44 00:01:48,640 --> 00:01:50,270 Taylor series for e to the x. 45 00:01:50,270 --> 00:01:52,650 And I believe you've also seen the Taylor series for e to the 46 00:01:52,650 --> 00:01:55,530 minus x, and even if you haven't, you can figure it out 47 00:01:55,530 --> 00:01:56,800 just by substitution. 48 00:01:56,800 --> 00:02:02,150 So if you remember, so e to the x is given by the sum from 49 00:02:02,150 --> 00:02:07,940 n equals 0 to infinity of x to the n over n factorial. 50 00:02:07,940 --> 00:02:10,410 I'm going to pull the 1/2 out in front. 51 00:02:10,410 --> 00:02:13,600 And e to the minus x is given by the same thing, if you put 52 00:02:13,600 --> 00:02:16,250 in minus x for x. 53 00:02:16,250 --> 00:02:19,700 So it's n equals 0 to infinity, so that works out to 54 00:02:19,700 --> 00:02:25,580 minus 1 to the n x to the n or n factorial. 55 00:02:25,580 --> 00:02:28,190 Now, when you add these two series together, what you see 56 00:02:28,190 --> 00:02:31,260 is that when n is even, over here, you have x to the n over 57 00:02:31,260 --> 00:02:33,342 n factorial, and over here, you have x to 58 00:02:33,342 --> 00:02:34,700 the n over n factorial. 59 00:02:34,700 --> 00:02:37,420 So what you get is, well, you get 2 x to the n over n 60 00:02:37,420 --> 00:02:39,470 factorial, and then you multiply by a half, so you 61 00:02:39,470 --> 00:02:41,900 just get x to the n over n factorial. 62 00:02:41,900 --> 00:02:45,130 When n is odd, here you have x to the n over n factorial, and 63 00:02:45,130 --> 00:02:47,730 here you have minus 1 x to the n over n factorial. 64 00:02:47,730 --> 00:02:49,630 So you add them and you get 0. 65 00:02:49,630 --> 00:02:52,890 So what happens is that this series looks just like the 66 00:02:52,890 --> 00:02:56,850 series for e to the x, except the odd terms have died off. 67 00:02:56,850 --> 00:03:03,000 So we're left with just 1 plus x squared over 2 factorial 68 00:03:03,000 --> 00:03:08,510 plus x to the fourth over 4 factorial plus x to the sixth 69 00:03:08,510 --> 00:03:10,810 over 6 factorial, and so on. 70 00:03:10,810 --> 00:03:13,100 And if you wanted to write this in summation notation, 71 00:03:13,100 --> 00:03:18,790 you could write it as the sum from n equals 0 to infinity of 72 00:03:18,790 --> 00:03:24,870 x to the 2n over 2n factorial. 73 00:03:24,870 --> 00:03:27,300 So this is the Taylor series for the 74 00:03:27,300 --> 00:03:29,880 hyperbolic cosine function. 75 00:03:29,880 --> 00:03:33,120 Also, if you wanted, say, the hyperbolic sine function, you 76 00:03:33,120 --> 00:03:35,950 could do something very similar, or you could remember 77 00:03:35,950 --> 00:03:37,790 that the hyperbolic sine is the derivative of the 78 00:03:37,790 --> 00:03:40,240 hyperbolic cosine, and just take a derivative right from 79 00:03:40,240 --> 00:03:41,870 this expression. 80 00:03:41,870 --> 00:03:44,420 One other thing that you should notice is that this 81 00:03:44,420 --> 00:03:46,830 looks very similar to the expression of the Taylor 82 00:03:46,830 --> 00:03:48,010 series for cosine of x. 83 00:03:48,010 --> 00:03:52,930 So more of our sort of funny coincidences between regular 84 00:03:52,930 --> 00:03:55,510 trig functions and hyperbolic trig functions. 85 00:03:55,510 --> 00:03:55,720 All right. 86 00:03:55,720 --> 00:03:56,560 That's the first one. 87 00:03:56,560 --> 00:03:57,450 How about the second one? 88 00:03:57,450 --> 00:03:59,620 So here we have just some regular trig functions. 89 00:03:59,620 --> 00:04:01,460 We have 2 sine x cosine x. 90 00:04:01,460 --> 00:04:03,660 Let me see where I've got some space. 91 00:04:03,660 --> 00:04:05,390 I can do it right here. 92 00:04:05,390 --> 00:04:08,820 Let me box off a little space for myself. 93 00:04:08,820 --> 00:04:14,890 So 2 sine x cosine x-- there are a couple different ways 94 00:04:14,890 --> 00:04:18,430 you could proceed with this function. 95 00:04:18,430 --> 00:04:20,460 So one is, you know the Taylor series for sine x 96 00:04:20,460 --> 00:04:21,880 and cosine x already. 97 00:04:21,880 --> 00:04:24,670 So if all you wanted was a few terms of this Taylor series, 98 00:04:24,670 --> 00:04:27,265 one natural thing to do would be to take the series for sine 99 00:04:27,265 --> 00:04:30,140 x, take the series for cosine x, multiply them together like 100 00:04:30,140 --> 00:04:31,910 you would multiply polynomials, and what you 101 00:04:31,910 --> 00:04:33,522 would get is the Taylor series for this 102 00:04:33,522 --> 00:04:37,520 expression, for this function. 103 00:04:37,520 --> 00:04:38,550 That's one way to proceed. 104 00:04:38,550 --> 00:04:39,740 That works perfectly well. 105 00:04:39,740 --> 00:04:41,430 Another thing you could do, is you could try taking 106 00:04:41,430 --> 00:04:42,080 derivatives. 107 00:04:42,080 --> 00:04:44,280 You could have a situation where every time you take a 108 00:04:44,280 --> 00:04:45,980 derivative, you apply product rule. 109 00:04:45,980 --> 00:04:47,510 It's going to get more and more complicated. 110 00:04:47,510 --> 00:04:48,780 It still works. 111 00:04:48,780 --> 00:04:52,500 It's a little complicated to do it that way, if you wanted 112 00:04:52,500 --> 00:04:54,560 more than just a few terms. 113 00:04:54,560 --> 00:04:56,000 The other thing you could do, is you could remember your 114 00:04:56,000 --> 00:04:57,400 trig identities. 115 00:04:57,400 --> 00:04:59,810 So if you look at this expression, this should be 116 00:04:59,810 --> 00:05:02,210 familiar to you, because it's just sine of 2x. 117 00:05:02,210 --> 00:05:06,780 118 00:05:06,780 --> 00:05:09,140 So once you realize that this is sine of 2x, there's a much, 119 00:05:09,140 --> 00:05:11,990 much shorter path available to you, which is that you already 120 00:05:11,990 --> 00:05:14,710 know the Taylor series for sine of x, so what you can do, 121 00:05:14,710 --> 00:05:17,290 is you can just plug in 2x into that Taylor series. 122 00:05:17,290 --> 00:05:23,720 So sine of x is, well so OK, x, so in this case, that's 123 00:05:23,720 --> 00:05:29,160 going to be 2x, then minus, so in sine of x, we have x cubed 124 00:05:29,160 --> 00:05:30,050 over 3 factorial. 125 00:05:30,050 --> 00:05:37,630 So here we're going to have 2x cubed over 3 factorial plus-- 126 00:05:37,630 --> 00:05:38,630 OK. 127 00:05:38,630 --> 00:05:39,730 So then, you know, and so on. 128 00:05:39,730 --> 00:05:46,050 So here we'll have 2x to the fifth over 5 factorial minus-- 129 00:05:46,050 --> 00:05:46,700 so on. 130 00:05:46,700 --> 00:05:49,300 If you wanted to write this in summation notation, you could 131 00:05:49,300 --> 00:05:56,570 write it as the sum from n equals 0 to infinity. 132 00:05:56,570 --> 00:06:01,500 Well, the denominator has got to be 2n plus 1 factorial, 133 00:06:01,500 --> 00:06:03,310 because we want it to go through the odds. 134 00:06:03,310 --> 00:06:10,140 And then we've got minus 1 to the n times 2 to the 2n plus 1 135 00:06:10,140 --> 00:06:13,360 times x to the 2n plus 1. 136 00:06:13,360 --> 00:06:14,625 So this is 2x. 137 00:06:14,625 --> 00:06:17,340 What we've got here, if you didn't have the 2's there, 138 00:06:17,340 --> 00:06:20,590 that would just be the series for the regular sine. 139 00:06:20,590 --> 00:06:20,870 OK. 140 00:06:20,870 --> 00:06:24,570 So this is the series for this function, 2 sine x cosine x. 141 00:06:24,570 --> 00:06:28,140 And I'll go over here to do the third one. 142 00:06:28,140 --> 00:06:29,080 So what is the third one? 143 00:06:29,080 --> 00:06:35,880 It's x ln 1 minus x cubed. 144 00:06:35,880 --> 00:06:39,400 Well, what can we do with this series? 145 00:06:39,400 --> 00:06:42,540 The x out front is just multiplying 146 00:06:42,540 --> 00:06:44,290 this logarithm part. 147 00:06:44,290 --> 00:06:46,190 That's something we can save until the end. 148 00:06:46,190 --> 00:06:48,820 If we can figure out what the Taylor series for the ln of 1 149 00:06:48,820 --> 00:06:53,030 minus x cubed part is, then we just multiply x into it, and 150 00:06:53,030 --> 00:06:54,840 that'll give us the Taylor series for this whole thing. 151 00:06:54,840 --> 00:06:58,010 So the x out front is pretty simple. 152 00:06:58,010 --> 00:07:01,460 So now what about this ln of 1 minus x cubed stuff? 153 00:07:01,460 --> 00:07:04,650 Well, a thing to remember is, does it remind you of anything 154 00:07:04,650 --> 00:07:05,500 we've done before? 155 00:07:05,500 --> 00:07:06,950 Well, we have a Taylor series for a 156 00:07:06,950 --> 00:07:08,320 logarithm function, right? 157 00:07:08,320 --> 00:07:14,920 We've already seen in lecture, I believe, we've seen that ln 158 00:07:14,920 --> 00:07:23,600 of 1 plus x is equal to x minus x squared over 2 plus x 159 00:07:23,600 --> 00:07:31,630 cubed over 3, minus x to the fourth over four, and so on, 160 00:07:31,630 --> 00:07:32,810 alternating signs. 161 00:07:32,810 --> 00:07:36,070 Notice that the denominators, when you have a logarithm, 162 00:07:36,070 --> 00:07:37,330 these are not factorials. 163 00:07:37,330 --> 00:07:40,240 These are just the integer 2, the integer 3, the integer 4, 164 00:07:40,240 --> 00:07:44,100 unlike for exponentials and trig functions. 165 00:07:44,100 --> 00:07:48,350 So this what log of 1 plus x, this is the Taylor series for 166 00:07:48,350 --> 00:07:49,560 log of 1 plus x. 167 00:07:49,560 --> 00:07:50,620 Well, how does that help us? 168 00:07:50,620 --> 00:07:54,770 Well, log of 1 minus x cubed we can get from log of 1 plus 169 00:07:54,770 --> 00:07:56,780 x, with the appropriate substitution. 170 00:07:56,780 --> 00:07:59,217 So in particular, we just have to put minus x 171 00:07:59,217 --> 00:08:01,430 cubed in for x here. 172 00:08:01,430 --> 00:08:05,130 So what does that give us? 173 00:08:05,130 --> 00:08:12,090 It gives us the ln of 1 minus x cubed is equal to-- well, 174 00:08:12,090 --> 00:08:20,640 minus x cubed minus, so we put minus x cubed in here, we 175 00:08:20,640 --> 00:08:22,870 square it, and we just get x to the sixth. 176 00:08:22,870 --> 00:08:25,240 x to the sixth over 2. 177 00:08:25,240 --> 00:08:25,880 Then, all right. 178 00:08:25,880 --> 00:08:29,660 So minus x cubed quantity cubed is minus x to the ninth. 179 00:08:29,660 --> 00:08:36,120 So minus x to the ninth over 3, minus x to the twelfth over 180 00:08:36,120 --> 00:08:38,710 4, and so on. 181 00:08:38,710 --> 00:08:49,510 And so finally, x ln of 1 minus x cubed, we just get by 182 00:08:49,510 --> 00:08:52,660 multiplying this whole expression through by x. 183 00:08:52,660 --> 00:08:56,990 So this is equal to minus x to the fourth minus x to the 184 00:08:56,990 --> 00:09:03,040 seventh over 2 minus x-- whoops, not ten,-- minus x to 185 00:09:03,040 --> 00:09:09,760 the tenth over 3, minus x to the 13 over 4, and so on. 186 00:09:09,760 --> 00:09:11,560 And I'll leave it as an exercise for you to figure 187 00:09:11,560 --> 00:09:13,360 out, how to write this in summation 188 00:09:13,360 --> 00:09:14,810 notation, if you wanted. 189 00:09:14,810 --> 00:09:17,000 So just quickly to summarize, we had these three power 190 00:09:17,000 --> 00:09:21,520 series, these three functions that we started out with, and 191 00:09:21,520 --> 00:09:23,340 we used a bunch of different techniques that we've learned 192 00:09:23,340 --> 00:09:25,160 in order to compute their power series. 193 00:09:25,160 --> 00:09:29,640 So over here, we took the function that we'd seen, and 194 00:09:29,640 --> 00:09:33,100 we knew a formula for it in terms of other functions that 195 00:09:33,100 --> 00:09:35,760 we already knew, and so we plugged in those power series, 196 00:09:35,760 --> 00:09:38,680 and used our addition rule for power series. 197 00:09:38,680 --> 00:09:40,560 We could have also done this one directly from the 198 00:09:40,560 --> 00:09:42,130 definition, if we had wanted to. 199 00:09:42,130 --> 00:09:45,730 For the second one, for the 2 sine x cosine x, we recognized 200 00:09:45,730 --> 00:09:49,360 that as something that is susceptible to a substitution, 201 00:09:49,360 --> 00:09:52,560 although also, with a little more, work, we could have done 202 00:09:52,560 --> 00:09:54,220 it by a couple of different methods. 203 00:09:54,220 --> 00:09:56,810 For example, by multiplying two power series together. 204 00:09:56,810 --> 00:10:00,155 And finally, for this third one, for the x ln of 1 minus x 205 00:10:00,155 --> 00:10:02,860 cubed, we first saw the substitution here that we 206 00:10:02,860 --> 00:10:05,295 could make, and then we just did a multiplication by a 207 00:10:05,295 --> 00:10:07,260 polynomial, which is a relatively easy thing to do 208 00:10:07,260 --> 00:10:09,970 for power series. 209 00:10:09,970 --> 00:10:12,700 So that's what we did in this recitation, and 210 00:10:12,700 --> 00:10:14,490 I'll leave it at that. 211 00:10:14,490 --> 00:10:14,614