1 00:00:00,000 --> 00:00:00,820 2 00:00:00,820 --> 00:00:05,770 We in the last video we took the Macloren series of 3 00:00:05,769 --> 00:00:07,839 representation of e to the x. 4 00:00:07,839 --> 00:00:11,650 Now let's do it with a couple of other functions and we'll 5 00:00:11,650 --> 00:00:15,880 see in a few videos it all fits together like a giant puzzle. 6 00:00:15,880 --> 00:00:17,720 Let's do cosine of x. 7 00:00:17,719 --> 00:00:25,689 Let's set f of x, f of x is equal to cosine of x. 8 00:00:25,690 --> 00:00:27,000 What's f prime of x? 9 00:00:27,000 --> 00:00:30,289 What's the first derivative of cosine of x? 10 00:00:30,289 --> 00:00:34,229 Well that just equals minus sine of x. 11 00:00:34,229 --> 00:00:35,549 Minus sine of x. 12 00:00:35,549 --> 00:00:36,299 What's the second derivative? 13 00:00:36,299 --> 00:00:39,019 14 00:00:39,020 --> 00:00:42,410 Well that's just minus times derivative of sine of x. 15 00:00:42,409 --> 00:00:44,169 So the derivative of sine of x is cosine x, it's 16 00:00:44,170 --> 00:00:47,590 minus cosine of x. 17 00:00:47,590 --> 00:00:49,980 And what's the third derivative? 18 00:00:49,979 --> 00:00:54,149 f 3 of x. 19 00:00:54,149 --> 00:00:56,500 The derivative of cosine x is minus sine of x, we already 20 00:00:56,500 --> 00:00:58,585 have a minus here so it becomes positive sine of x. 21 00:00:58,585 --> 00:01:02,200 22 00:01:02,200 --> 00:01:04,980 What's f 4 of x? 23 00:01:04,980 --> 00:01:08,140 The fourth derivative of x? 24 00:01:08,140 --> 00:01:11,430 It equals cosine of x again. 25 00:01:11,430 --> 00:01:15,110 As we keep taking derivatives we'll keep repeating and the 26 00:01:15,109 --> 00:01:16,540 pattern will go on, right? 27 00:01:16,540 --> 00:01:21,460 The fifth derivative of x, the fifth derivative of this 28 00:01:21,459 --> 00:01:24,989 function, the fourth is the same as a function, so the 29 00:01:24,989 --> 00:01:27,009 fifth is going to be the same as the first derivative. 30 00:01:27,010 --> 00:01:29,480 cosine of x is sine of x. 31 00:01:29,480 --> 00:01:31,230 Hopefully you see the pattern. 32 00:01:31,230 --> 00:01:33,950 We're going to do the Macloren representation, which is a 33 00:01:33,950 --> 00:01:37,600 specific example of the Taylor series where we figure out the 34 00:01:37,599 --> 00:01:40,099 values of the derivatives at x is equal to zero. 35 00:01:40,099 --> 00:01:41,989 So let's do that right now. 36 00:01:41,989 --> 00:01:44,079 So f of zero, let me do it in to another color 37 00:01:44,079 --> 00:01:47,209 to fend off monotony. 38 00:01:47,209 --> 00:01:48,059 f of zero. 39 00:01:48,060 --> 00:01:49,719 What's cosine of zero? 40 00:01:49,719 --> 00:01:53,409 Cosine of zero is 1. 41 00:01:53,409 --> 00:01:58,239 f prime of zero is equal to sine of-- well not minus sine 42 00:01:58,239 --> 00:01:59,780 of zero, but what sine of zero? 43 00:01:59,780 --> 00:02:02,230 Sine of zero is zero, so minus zero is still 44 00:02:02,230 --> 00:02:04,850 zero, so this is zero. 45 00:02:04,849 --> 00:02:08,969 f prime prime of zero. 46 00:02:08,969 --> 00:02:10,629 Cosine of zero we already know is one. 47 00:02:10,629 --> 00:02:14,310 We have a negative sine here, so it becomes a minus one. 48 00:02:14,310 --> 00:02:17,439 The third derivative at x is equal to zero. 49 00:02:17,439 --> 00:02:19,306 Sine of zero is zero. 50 00:02:19,306 --> 00:02:19,719 So this is zero. 51 00:02:19,719 --> 00:02:22,490 I think you might start to see a pattern emerging. 52 00:02:22,490 --> 00:02:25,469 The fourth derivative at zero. 53 00:02:25,469 --> 00:02:28,840 Cosine of zero is equal to 1. 54 00:02:28,840 --> 00:02:32,390 And then the fifth derivative, this is hard to read but you 55 00:02:32,389 --> 00:02:36,169 get the point is just zero again. 56 00:02:36,169 --> 00:02:38,929 So what's the pattern as we take the derivatives? 57 00:02:38,930 --> 00:02:42,710 1, zero, minus 1, zero, 1, zero. 58 00:02:42,710 --> 00:02:45,550 So it alternates between zero and 1. 59 00:02:45,550 --> 00:02:48,950 So 1, zero, minus 1, zero, positive, zero, negative, 60 00:02:48,949 --> 00:02:50,339 zero, positive. 61 00:02:50,340 --> 00:02:53,840 So every other number is zero and in between them we 62 00:02:53,840 --> 00:02:57,009 alternate between a positive 1 and a negative 1. 63 00:02:57,009 --> 00:02:59,500 So now let's use that information to figure 64 00:02:59,500 --> 00:03:02,719 out them the Macloren series representation. 65 00:03:02,719 --> 00:03:07,159 So we proved, hopefully, we didn't prove it definitely 66 00:03:07,159 --> 00:03:10,370 converges over the entire domain of the function. 67 00:03:10,370 --> 00:03:11,740 You have to take my word for it. 68 00:03:11,740 --> 00:03:13,840 We'll experiment a little bit with a graphing calculator 69 00:03:13,840 --> 00:03:15,259 in a few videos. 70 00:03:15,259 --> 00:03:17,870 We said that this representation-- and it should 71 00:03:17,870 --> 00:03:20,689 make intuitive sense, because when you take the infinite 72 00:03:20,689 --> 00:03:23,719 Macloren series, when you take that infinite sum, you're 73 00:03:23,719 --> 00:03:27,509 essentially creating a function where that function is equal to 74 00:03:27,509 --> 00:03:30,239 your original function at the point you chose. 75 00:03:30,240 --> 00:03:33,200 In the case of a Macloren we're picking x equals zero, and it 76 00:03:33,199 --> 00:03:35,269 equals every derivative of this function. 77 00:03:35,270 --> 00:03:37,770 78 00:03:37,770 --> 00:03:40,090 Just intuitively it seems, well if a function equals something 79 00:03:40,090 --> 00:03:44,490 at a point and every one of its derivatives is also equal to 80 00:03:44,490 --> 00:03:46,070 the function at that point, maybe those functions are 81 00:03:46,069 --> 00:03:47,530 equal to each other. 82 00:03:47,530 --> 00:03:51,150 I haven't proven that to you yet. 83 00:03:51,150 --> 00:03:54,800 We know that the representation is a sum from n is equal to 84 00:03:54,800 --> 00:04:04,330 zero to infinity of the nth derivative evaluated at zero. 85 00:04:04,330 --> 00:04:06,790 A Macloren series is a specific case of a Taylor series. 86 00:04:06,789 --> 00:04:08,759 We actually haven't done anything with Taylor series, I 87 00:04:08,759 --> 00:04:10,379 was hoping to get there later. 88 00:04:10,379 --> 00:04:11,979 But the Macloren series is a really cool one because it's 89 00:04:11,979 --> 00:04:14,769 going to show us all these relationships between e and 90 00:04:14,770 --> 00:04:18,990 cosine and sine and eventually i and pi and you will 91 00:04:18,990 --> 00:04:20,120 find it exciting. 92 00:04:20,120 --> 00:04:26,389 The Macloren is that times x to the n over n factorial. 93 00:04:26,389 --> 00:04:27,629 That's what we said it was. 94 00:04:27,629 --> 00:04:31,250 So if this is our f of x, f of x is cosine of x, what 95 00:04:31,250 --> 00:04:33,360 does this turn into? 96 00:04:33,360 --> 00:04:45,256 Well, f of x is equal to, it equals f of zero times x to 97 00:04:45,255 --> 00:04:48,609 the zero over zero factorial, that's just one, right? 98 00:04:48,610 --> 00:04:51,509 Plus, now we're at n equals 1. 99 00:04:51,509 --> 00:04:54,009 It's the first derivative at zero. 100 00:04:54,009 --> 00:04:56,740 f prime of zero, well that's just equal to zero. 101 00:04:56,740 --> 00:04:58,350 And who cares what that-- that would be x to the 102 00:04:58,350 --> 00:05:01,230 first over 1, right? 103 00:05:01,230 --> 00:05:03,480 Now we're at the second derivative. 104 00:05:03,480 --> 00:05:06,970 The second derivative at zero is minus 1. 105 00:05:06,970 --> 00:05:14,570 Minus 1 times x squared over 2 factorial plus the 106 00:05:14,569 --> 00:05:16,449 third derivative at zero. 107 00:05:16,449 --> 00:05:20,339 The third derivative at zero we figured out was zero. 108 00:05:20,339 --> 00:05:21,589 Zero who cares what that is. 109 00:05:21,589 --> 00:05:26,889 It would have been x to the third over 3 factorial. 110 00:05:26,889 --> 00:05:29,800 And then what's the fourth derivative? 111 00:05:29,800 --> 00:05:35,430 The fourth derivative at zero is just equal to 1. 112 00:05:35,430 --> 00:05:39,199 So we have times 1 and then we're at x to the fourth 113 00:05:39,199 --> 00:05:42,569 over 4 factorial. 114 00:05:42,569 --> 00:05:44,459 Let me see if I can write this a little bit neater. 115 00:05:44,459 --> 00:05:47,370 The next one, the fifth derivative at zero times x to 116 00:05:47,370 --> 00:05:49,230 the fifth over 5 factorial. 117 00:05:49,230 --> 00:05:50,230 We'll keep going. 118 00:05:50,230 --> 00:05:52,980 Let me write this, clean this up and hopefully the pattern 119 00:05:52,980 --> 00:05:55,530 merges if it hasn't emerged already. 120 00:05:55,529 --> 00:06:00,739 f of x is equal to cosine of x is equal to-- let met get rid 121 00:06:00,740 --> 00:06:06,850 of the zeros-- 1 and then we have minus x squared 122 00:06:06,850 --> 00:06:11,350 over 2 factorial. 123 00:06:11,350 --> 00:06:12,860 This term, this goes away. 124 00:06:12,860 --> 00:06:13,800 This is a zero term. 125 00:06:13,800 --> 00:06:15,680 And the next one is a positive. 126 00:06:15,680 --> 00:06:21,329 Plus x to the fourth over 4 factorial. 127 00:06:21,329 --> 00:06:22,620 And the fifth term goes away. 128 00:06:22,620 --> 00:06:23,600 But then the cycle continues. 129 00:06:23,600 --> 00:06:25,160 The next one is going to be minus. 130 00:06:25,160 --> 00:06:27,000 Because we had minus 1 plus 1. 131 00:06:27,000 --> 00:06:31,379 It's going to be minus x to the sixth over 6 factorial. 132 00:06:31,379 --> 00:06:32,420 You could take the sixth derivative. 133 00:06:32,420 --> 00:06:36,069 You'll see that the derivative of minus sine of x is minus 134 00:06:36,069 --> 00:06:38,879 cosine of x, that's where we get the minus 1 from. 135 00:06:38,879 --> 00:06:40,500 And they we're going to go plus. 136 00:06:40,500 --> 00:06:45,160 So we're just taking all the even terms. x to the eighth 137 00:06:45,160 --> 00:06:53,460 over 8 factorial minus x to the 10th over 10 factorial. 138 00:06:53,459 --> 00:06:57,359 We could just keep going on and on and on. 139 00:06:57,360 --> 00:07:02,264 And so we have a situation where we can rewrite cosine of 140 00:07:02,264 --> 00:07:10,259 x is equal to the sum, if you believe that this Macloren 141 00:07:10,259 --> 00:07:14,199 series actually does converge to cosine of x over the entire 142 00:07:14,199 --> 00:07:17,939 domain of x, that's kind of an assumption we're making. 143 00:07:17,939 --> 00:07:20,790 Hopefully one day we will have the tools set to actually 144 00:07:20,790 --> 00:07:23,129 prove that as well. 145 00:07:23,129 --> 00:07:26,300 From n is equal to zero. 146 00:07:26,300 --> 00:07:27,069 So what's happening? 147 00:07:27,069 --> 00:07:29,599 We're taking all of the even powers. 148 00:07:29,600 --> 00:07:38,160 So we could say x to the 2n, that ensures that no matter 149 00:07:38,160 --> 00:07:40,160 what value of n I put in here I get an even numbers. 150 00:07:40,160 --> 00:07:41,620 So we'll go to the zeroth power then the second 151 00:07:41,620 --> 00:07:46,810 power, over 2n factorial. 152 00:07:46,810 --> 00:07:50,360 So that takes care of going from 1 to x squared over 2, 153 00:07:50,360 --> 00:07:53,580 to x to the fourth over 4 factorial, 6 over 6 154 00:07:53,579 --> 00:07:54,490 factorial, et cetera. 155 00:07:54,490 --> 00:07:56,829 But now we have to make it switched signs like that. 156 00:07:56,829 --> 00:07:59,419 Well let's just multiply it negative 1. 157 00:07:59,420 --> 00:08:00,160 Let's see what we can do. 158 00:08:00,160 --> 00:08:07,160 Negative 1 to the-- so we want the first term to be positive, 159 00:08:07,160 --> 00:08:09,390 the second term to be negative. 160 00:08:09,389 --> 00:08:15,300 So we could say times minus 1 to the n plus 1. 161 00:08:15,300 --> 00:08:16,060 Let's see if that works. 162 00:08:16,060 --> 00:08:25,759 When m is zero what's negative 1 to the n plus 1? 163 00:08:25,759 --> 00:08:28,860 zero, it would be minus 1. 164 00:08:28,860 --> 00:08:39,870 And then when it's 1-- When it's zero-- no, no it's just 165 00:08:39,870 --> 00:08:42,889 going to be negative 1 to the n. 166 00:08:42,889 --> 00:08:46,519 Because when it's zero, negative 1 to zero is 1. 167 00:08:46,519 --> 00:08:48,554 When it's 1, negative 1. 168 00:08:48,554 --> 00:08:51,389 169 00:08:51,389 --> 00:08:53,350 So this will work out. 170 00:08:53,350 --> 00:08:55,680 Negative 1 to the n is cosine. 171 00:08:55,679 --> 00:08:56,620 You could try it out. 172 00:08:56,620 --> 00:08:59,210 This is the n is equal to zero. 173 00:08:59,210 --> 00:09:00,889 We need to switch colors. 174 00:09:00,889 --> 00:09:04,309 That's n is equal to zero and here we get x to the zero over 175 00:09:04,309 --> 00:09:05,849 zero factorial, which is 1. 176 00:09:05,850 --> 00:09:10,100 We have negative 1 to the zero is 1, so that becomes 1. 177 00:09:10,100 --> 00:09:14,509 When n is equal to 1, this becomes x squared over 2 178 00:09:14,509 --> 00:09:17,919 factorial, we have negative 1 to the 1 power, so that's 179 00:09:17,919 --> 00:09:19,269 where you get the negative 1. 180 00:09:19,269 --> 00:09:22,850 And then when n is equal to 2, the negative 1 squared 181 00:09:22,850 --> 00:09:23,830 becomes positive again. 182 00:09:23,830 --> 00:09:26,220 So the negative 1 is what provides the 183 00:09:26,220 --> 00:09:28,160 alternating numbers. 184 00:09:28,159 --> 00:09:29,209 So pretty neat. 185 00:09:29,210 --> 00:09:33,129 We just figured out another way to represent cosine of x. 186 00:09:33,129 --> 00:09:36,320 And it might be looking a little bit interesting to you 187 00:09:36,320 --> 00:09:43,490 that this representation kind of resembles part of the 188 00:09:43,490 --> 00:09:45,419 representation of e to the x. 189 00:09:45,419 --> 00:09:47,689 What's the difference between this and the e to the x? e to 190 00:09:47,690 --> 00:09:50,270 the x had the odd exponent terms and it didn't 191 00:09:50,269 --> 00:09:50,990 switch signs. 192 00:09:50,990 --> 00:09:53,610 But other than that, they're pretty much the same. 193 00:09:53,610 --> 00:09:55,750 So in the next video we'll do sine of x and then we'll 194 00:09:55,750 --> 00:09:56,745 try to put it all together. 195 00:09:56,745 --> 00:09:58,600 I'll see you soon. 196 00:09:58,600 --> 00:09:58,899