1 00:00:00,000 --> 00:00:07,150 2 00:00:07,150 --> 00:00:09,380 CHRISTINE BREINER: Welcome back to recitation. 3 00:00:09,380 --> 00:00:12,520 We're going to practice using some of the tools you 4 00:00:12,520 --> 00:00:15,580 developed recently on taking derivatives of exponential 5 00:00:15,580 --> 00:00:17,390 functions and taking derivatives 6 00:00:17,390 --> 00:00:19,260 of logarithmic functions. 7 00:00:19,260 --> 00:00:22,650 So I have three particular examples that I 8 00:00:22,650 --> 00:00:23,560 want us to look at. 9 00:00:23,560 --> 00:00:25,320 And I'd like us to find derivatives of 10 00:00:25,320 --> 00:00:26,690 the following functions. 11 00:00:26,690 --> 00:00:30,190 The first one is f of x is equal to x to the pi 12 00:00:30,190 --> 00:00:31,730 plus pi to the x. 13 00:00:31,730 --> 00:00:35,010 The second function is g of x is equal to natural log of 14 00:00:35,010 --> 00:00:36,290 cosine of x. 15 00:00:36,290 --> 00:00:37,810 And the third one is-- 16 00:00:37,810 --> 00:00:39,870 that's an h not a natural log-- 17 00:00:39,870 --> 00:00:43,580 h of x is equal to natural log of e to the x squared. 18 00:00:43,580 --> 00:00:46,260 So you have three functions you want to take the 19 00:00:46,260 --> 00:00:47,580 derivative of with respect to x. 20 00:00:47,580 --> 00:00:50,190 I'm going to give you a moment to to work on those and figure 21 00:00:50,190 --> 00:00:53,190 those out using the the tools you now have. And then we'll 22 00:00:53,190 --> 00:00:55,380 come back and I will work them out for you as well. 23 00:00:55,380 --> 00:00:59,380 24 00:00:59,380 --> 00:01:02,100 OK, so let's start off with the derivative 25 00:01:02,100 --> 00:01:03,740 of the first one. 26 00:01:03,740 --> 00:01:06,820 Ok, now, the reason in particular that I did this 27 00:01:06,820 --> 00:01:09,530 one, it might have seemed simple to you, but the reason 28 00:01:09,530 --> 00:01:11,130 I did this one is because of a common 29 00:01:11,130 --> 00:01:13,150 mistake that people make. 30 00:01:13,150 --> 00:01:17,330 So the derivative of x to the pi is nice and simple because 31 00:01:17,330 --> 00:01:21,430 that is our rule we know for powers of x. 32 00:01:21,430 --> 00:01:25,060 So we can write this as that derivative is, pi times x to 33 00:01:25,060 --> 00:01:26,840 the pi minus one. 34 00:01:26,840 --> 00:01:29,820 OK, but the whole point of this problem for me, is to 35 00:01:29,820 --> 00:01:33,250 make sure that you recognize that pi to the x is not a 36 00:01:33,250 --> 00:01:36,750 power of x rule that needs to be applied. 37 00:01:36,750 --> 00:01:41,070 It's actually an exponential function right, with base pi. 38 00:01:41,070 --> 00:01:47,020 So if you wrote the derivative of this term was x times pi to 39 00:01:47,020 --> 00:01:50,340 the x minus one, you would not be alone in the world. 40 00:01:50,340 --> 00:01:52,910 But that is not the correct answer, all the same. 41 00:01:52,910 --> 00:01:56,550 Because this is not a power of x, this is x is the power. 42 00:01:56,550 --> 00:01:58,440 So this is an exponential function. 43 00:01:58,440 --> 00:02:00,765 So the derivative of this, we need the rule that we have for 44 00:02:00,765 --> 00:02:04,030 exponential, derivatives of exponential functions. 45 00:02:04,030 --> 00:02:09,070 So that's natural log of pi times pi to the x. 46 00:02:09,070 --> 00:02:13,440 That's the derivative of pi to the x. 47 00:02:13,440 --> 00:02:16,120 So that's the answer to number one. 48 00:02:16,120 --> 00:02:16,245 OK. 49 00:02:16,245 --> 00:02:18,720 Number two, I did for another reason. 50 00:02:18,720 --> 00:02:23,250 I think it's an interesting function once you find out 51 00:02:23,250 --> 00:02:24,080 what the derivative is. 52 00:02:24,080 --> 00:02:28,040 So, this is going to require us to do the chain rule. 53 00:02:28,040 --> 00:02:30,530 Because we have a function of a function. 54 00:02:30,530 --> 00:02:34,230 But you have seen many times now, when you have natural log 55 00:02:34,230 --> 00:02:40,590 of a function, its derivative is going to be 1 over the 56 00:02:40,590 --> 00:02:42,870 inside function times then the derivative 57 00:02:42,870 --> 00:02:43,980 of the inside function. 58 00:02:43,980 --> 00:02:46,740 So again, what we do is we take the 59 00:02:46,740 --> 00:02:48,380 derivative of natural log. 60 00:02:48,380 --> 00:02:52,070 Which is 1 over cosine x. 61 00:02:52,070 --> 00:02:54,290 So we take the derivative of the natural log function, 62 00:02:54,290 --> 00:02:56,010 evaluate it at cosine x. 63 00:02:56,010 --> 00:02:58,030 And then we take the derivative of the inside 64 00:02:58,030 --> 00:02:59,990 function, which is the derivative of cosine x. 65 00:02:59,990 --> 00:03:03,860 So you get negative sine x. 66 00:03:03,860 --> 00:03:07,220 So you get this whole thing is negative sine over cosine. 67 00:03:07,220 --> 00:03:10,850 So this is negative tangent x. 68 00:03:10,850 --> 00:03:13,390 So the reason I, in particular, like this one is 69 00:03:13,390 --> 00:03:16,420 that we see, "Oh, if I wanted to find a function whose 70 00:03:16,420 --> 00:03:20,240 derivative was tangent x, a candidate would be the 71 00:03:20,240 --> 00:03:23,000 negative of the natural log of cosine of x." That in fact 72 00:03:23,000 --> 00:03:25,950 gives us a function whose derivative is tangent x. 73 00:03:25,950 --> 00:03:28,640 So it's interesting, now we see that there are 74 00:03:28,640 --> 00:03:31,560 trigonometric functions that I can take a derivative of 75 00:03:31,560 --> 00:03:33,840 something that's not just trigonometric and get 76 00:03:33,840 --> 00:03:35,350 something that's trigonometric. 77 00:03:35,350 --> 00:03:37,530 So that's kind of a nice thing there. 78 00:03:37,530 --> 00:03:39,510 And then the last one, example three, I'll 79 00:03:39,510 --> 00:03:41,430 work out to the right. 80 00:03:41,430 --> 00:03:44,070 There's a fast way and there's a slow way to do this. 81 00:03:44,070 --> 00:03:46,610 So I will do the slow way first. And then I'll show you 82 00:03:46,610 --> 00:03:50,650 why it's good to kind of pull back from a problem sometimes, 83 00:03:50,650 --> 00:03:54,350 see how you can make it a lot simpler for yourself, and then 84 00:03:54,350 --> 00:03:56,050 solve the problem. 85 00:03:56,050 --> 00:04:00,808 So, I'll even write down this is the slow way. 86 00:04:00,808 --> 00:04:04,230 87 00:04:04,230 --> 00:04:12,480 OK, the slow way would be, well I have a composition of 88 00:04:12,480 --> 00:04:13,020 functions here. 89 00:04:13,020 --> 00:04:15,880 I have natural log of something and then I have e to 90 00:04:15,880 --> 00:04:16,825 the something else. 91 00:04:16,825 --> 00:04:17,860 Right? 92 00:04:17,860 --> 00:04:19,980 And then that function actually, is not 93 00:04:19,980 --> 00:04:22,050 just e to the x. 94 00:04:22,050 --> 00:04:23,450 So I have some things I have to, I have to use 95 00:04:23,450 --> 00:04:24,920 the chain rule here. 96 00:04:24,920 --> 00:04:27,650 OK, so let's use the chain rule. 97 00:04:27,650 --> 00:04:29,100 So I'll work from the outside in. 98 00:04:29,100 --> 00:04:30,383 So the derivative of the natural log function, the 99 00:04:30,383 --> 00:04:33,720 derivative of the natural log of x is 1 over x. 100 00:04:33,720 --> 00:04:35,860 So I take the derivative of the natural log function, I 101 00:04:35,860 --> 00:04:37,320 evaluate it here. 102 00:04:37,320 --> 00:04:42,170 So the first part gives me 1 over e to the x squared. 103 00:04:42,170 --> 00:04:44,910 And then I have to take the derivative of the next inside 104 00:04:44,910 --> 00:04:48,240 function, which the next one inside after natural log, is e 105 00:04:48,240 --> 00:04:49,500 to the x squared. 106 00:04:49,500 --> 00:04:51,460 And the derivative of that, I'm going to do 107 00:04:51,460 --> 00:04:52,600 another chain rule. 108 00:04:52,600 --> 00:04:58,240 I get e to the x squared times the derivative of this x 109 00:04:58,240 --> 00:05:01,120 squared, which is 2x. 110 00:05:01,120 --> 00:05:04,890 OK, so again, this part is the derivative of natural log 111 00:05:04,890 --> 00:05:07,180 evaluated at e to the x squared. 112 00:05:07,180 --> 00:05:09,690 This part is the derivative of e the x squared. 113 00:05:09,690 --> 00:05:12,150 This one comes just from the derivative of e to the 114 00:05:12,150 --> 00:05:13,880 x is e to the x. 115 00:05:13,880 --> 00:05:15,900 And so I evaluate it at x squared. 116 00:05:15,900 --> 00:05:17,390 And then this is the derivative of 117 00:05:17,390 --> 00:05:18,200 the x squared part. 118 00:05:18,200 --> 00:05:20,920 So I end up with a product of three functions, because I 119 00:05:20,920 --> 00:05:22,850 have a composition of three functions. 120 00:05:22,850 --> 00:05:25,180 So I have to do the chain rule with three 121 00:05:25,180 --> 00:05:27,500 different pieces basically. 122 00:05:27,500 --> 00:05:29,490 So, but this simplifies, right? 123 00:05:29,490 --> 00:05:32,040 e to the x squared divided by e to the x squared is 1. 124 00:05:32,040 --> 00:05:32,522 So I get 2x. 125 00:05:32,522 --> 00:05:33,772 OK, so what's the fast way? 126 00:05:33,772 --> 00:05:36,220 127 00:05:36,220 --> 00:05:37,030 That's our answer, 2x. 128 00:05:37,030 --> 00:05:38,400 But what's the fast way? 129 00:05:38,400 --> 00:05:41,930 130 00:05:41,930 --> 00:05:46,580 Well, the fast way is to recognize that the natural log 131 00:05:46,580 --> 00:05:47,712 of e to the x squared-- let me erase the y here-- e to the x 132 00:05:47,712 --> 00:05:52,595 squared is equal to x squared. 133 00:05:52,595 --> 00:05:54,420 OK? 134 00:05:54,420 --> 00:05:55,910 Why is that? 135 00:05:55,910 --> 00:05:58,780 That's because natural log function is the inverse of the 136 00:05:58,780 --> 00:06:00,610 exponential function with base e. 137 00:06:00,610 --> 00:06:01,570 Right? 138 00:06:01,570 --> 00:06:04,190 This is something you've talked about before. 139 00:06:04,190 --> 00:06:07,390 So this means that if I take natural log of e to anything 140 00:06:07,390 --> 00:06:10,250 here, I'm going to get that thing right there. 141 00:06:10,250 --> 00:06:11,590 Whatever that function is. 142 00:06:11,590 --> 00:06:14,215 So natural log of e the x squared is x squared. 143 00:06:14,215 --> 00:06:15,590 OK? 144 00:06:15,590 --> 00:06:17,470 If you don't like to talk about it that way, if you 145 00:06:17,470 --> 00:06:20,845 don't like inverse functions, you can use one of the rules 146 00:06:20,845 --> 00:06:25,530 of logarithms, which says that this expression is equal to x 147 00:06:25,530 --> 00:06:28,670 squared times natural log of e. 148 00:06:28,670 --> 00:06:30,280 That's another way to think about this problem. 149 00:06:30,280 --> 00:06:32,360 And then you should remember that natural log of 150 00:06:32,360 --> 00:06:33,510 e is equal to 1. 151 00:06:33,510 --> 00:06:38,650 So at some point you have to know a little bit about logs 152 00:06:38,650 --> 00:06:39,840 and exponentials. 153 00:06:39,840 --> 00:06:43,500 But the thing to recognize is, that h of x is just a fancy 154 00:06:43,500 --> 00:06:45,180 way of writing x squared. 155 00:06:45,180 --> 00:06:49,200 And so the derivative of x squared is 2x. 156 00:06:49,200 --> 00:06:53,370 So sometimes it's better to see what can be done to make 157 00:06:53,370 --> 00:06:55,360 the problem a little easier. 158 00:06:55,360 --> 00:06:58,380 But that is where we will stop with these. 159 00:06:58,380 --> 00:06:59,152