1 00:00:00,000 --> 00:00:00,990 2 00:00:00,990 --> 00:00:02,919 Welcome back. 3 00:00:02,919 --> 00:00:06,529 I'm now going to introduce you to a new tool for 4 00:00:06,530 --> 00:00:08,370 solving derivatives. 5 00:00:08,369 --> 00:00:12,009 Really between this rule, which is the product rule, and the 6 00:00:12,009 --> 00:00:16,000 chain rule and just knowing a lot of function derivatives, 7 00:00:16,000 --> 00:00:19,329 you'll be ready to tackle almost any derivative problem. 8 00:00:19,329 --> 00:00:20,419 Let's start with the chain rule. 9 00:00:20,420 --> 00:00:31,810 Let's say that f of x is equal to h of x times g of x. 10 00:00:31,809 --> 00:00:32,780 This is the product rule. 11 00:00:32,780 --> 00:00:36,079 In the chain rule it was f of x is equal to h of g of x. 12 00:00:36,079 --> 00:00:36,309 Right? 13 00:00:36,310 --> 00:00:37,730 I don't know if you remember that. 14 00:00:37,729 --> 00:00:40,979 In this case, f of x is equal to h of x times g of x. 15 00:00:40,979 --> 00:00:45,569 If that's the case, then f prime of x is equal to the 16 00:00:45,570 --> 00:00:48,939 derivative of the first function times a second 17 00:00:48,939 --> 00:00:55,449 function plus the first function times the derivative 18 00:00:55,450 --> 00:00:57,030 of the second function. 19 00:00:57,030 --> 00:00:57,990 Pretty straightforward. 20 00:00:57,990 --> 00:00:59,350 Let's apply it. 21 00:00:59,350 --> 00:01:02,660 Let's say that-- I don't like this brown color, let me pick 22 00:01:02,659 --> 00:01:05,189 something more pleasant. 23 00:01:05,189 --> 00:01:08,250 Maybe mauve. 24 00:01:08,250 --> 00:01:17,269 Let's say that f of x is equal to 5x to the fifth minus x to 25 00:01:17,269 --> 00:01:29,849 the seventh times 20x squared plus 3x to them mine 7. 26 00:01:29,849 --> 00:01:31,609 So one way we could have done it, we could just 27 00:01:31,609 --> 00:01:32,519 multiply this out. 28 00:01:32,519 --> 00:01:36,310 This wouldn't be too bad, and then take the derivative 29 00:01:36,310 --> 00:01:37,200 like any polynomial. 30 00:01:37,200 --> 00:01:40,400 But let's use this product rule that I've just shown you. 31 00:01:40,400 --> 00:01:43,469 So the product rules that says, let me take the derivative of 32 00:01:43,469 --> 00:01:46,890 the first expression, or h of x if we wanted to map 33 00:01:46,890 --> 00:01:48,239 it into this rule. 34 00:01:48,239 --> 00:01:50,359 The derivative of that is pretty straightforward. 35 00:01:50,359 --> 00:01:52,469 5 times 5 is 25. 36 00:01:52,469 --> 00:01:57,159 25x to the fourth, right? 37 00:01:57,159 --> 00:02:01,479 Then minus 7, x to the sixth. 38 00:02:01,480 --> 00:02:04,780 We're just going to multiply it times this second expression, 39 00:02:04,780 --> 00:02:07,290 doing nothing different to it. 40 00:02:07,290 --> 00:02:09,980 Maybe I'll just do it in a different color. 41 00:02:09,979 --> 00:02:18,919 Times 20x plus 3x minus 7. 42 00:02:18,919 --> 00:02:24,269 And then to that we will add the derivative of 43 00:02:24,270 --> 00:02:27,110 this second function. 44 00:02:27,110 --> 00:02:35,000 The derivative of that second function is 40x minus 45 00:02:35,000 --> 00:02:38,590 21x to the minus eighth. 46 00:02:38,590 --> 00:02:41,569 And that times this first function. 47 00:02:41,569 --> 00:02:42,870 I guess I'll switch back to mauve, I think 48 00:02:42,870 --> 00:02:44,140 you get the point. 49 00:02:44,139 --> 00:02:51,479 5x to the fifth minus x to the seventh. 50 00:02:51,479 --> 00:02:54,659 All we did here was we said OK, f of x is made of these two 51 00:02:54,659 --> 00:02:56,729 expressions and they are multiplied by each other. 52 00:02:56,729 --> 00:02:58,929 If I want to take the derivative of it, I take the 53 00:02:58,930 --> 00:03:03,250 derivative of the first one and multiply it by the second one. 54 00:03:03,250 --> 00:03:05,530 And then I add that to the derivative of the second 55 00:03:05,530 --> 00:03:07,360 one and multiply it by the first one. 56 00:03:07,360 --> 00:03:10,050 Let's do some more examples and I think that will 57 00:03:10,050 --> 00:03:11,860 hit the point home. 58 00:03:11,860 --> 00:03:14,752 Clear image. 59 00:03:14,752 --> 00:03:18,850 Change the colors and I'm back in business. 60 00:03:18,849 --> 00:03:21,439 Let me think of a good problem. 61 00:03:21,439 --> 00:03:23,409 Let me do another one like this, and then I'll actually 62 00:03:23,409 --> 00:03:27,789 introduce ones and the product rule and the chain rule. 63 00:03:27,789 --> 00:03:40,629 So let's say that f of x is equal to 10x to the third plus 64 00:03:40,629 --> 00:03:53,180 5x squared minus 7 times 20x to the eighth minus 7. 65 00:03:53,180 --> 00:03:56,969 Then we say f prime of x, what's the derivative of 66 00:03:56,969 --> 00:03:58,710 this first expression. 67 00:03:58,710 --> 00:04:05,900 It's 30x squared plus 10x. 68 00:04:05,900 --> 00:04:09,289 And I just multiply it times this expression, right? 69 00:04:09,289 --> 00:04:13,569 20x to the eighth minus 7. 70 00:04:13,569 --> 00:04:16,240 And I add that to the derivative of this second 71 00:04:16,240 --> 00:04:21,129 expression, this is all on one line but I ran out of space, 72 00:04:21,129 --> 00:04:24,600 160x to the seventh, right? 73 00:04:24,600 --> 00:04:27,490 8 times 20 is 160. 74 00:04:27,490 --> 00:04:29,519 And then the derivative of 7 is zero. 75 00:04:29,519 --> 00:04:33,439 So it's just 160x to the seventh times this 76 00:04:33,439 --> 00:04:35,060 first expression. 77 00:04:35,060 --> 00:04:42,720 10x to the third plus 5x squared minus seven. 78 00:04:42,720 --> 00:04:43,290 There we go. 79 00:04:43,290 --> 00:04:44,300 And you could simplify it. 80 00:04:44,300 --> 00:04:46,189 You could multiply this out if you wanted or you could 81 00:04:46,189 --> 00:04:48,589 distribute this out if you wanted, maybe try to 82 00:04:48,589 --> 00:04:49,729 condense the terms. 83 00:04:49,730 --> 00:04:51,420 But that's really just algebra. 84 00:04:51,420 --> 00:04:54,030 So this is using the product rule. 85 00:04:54,029 --> 00:04:55,879 I'm going to do one more example where I'll show you, 86 00:04:55,879 --> 00:04:58,139 I'm going to use the product and the chain rule and 87 00:04:58,139 --> 00:05:02,169 I think this will optimally confuse you. 88 00:05:02,170 --> 00:05:03,225 I want to make sure I have some space. 89 00:05:03,225 --> 00:05:07,910 90 00:05:07,910 --> 00:05:09,260 Here I'm going to use a slightly different notation. 91 00:05:09,259 --> 00:05:12,110 Instead of saying f of x and then what's f prime of x, I'm 92 00:05:12,110 --> 00:05:27,110 going to say y is equal to x squared plus 2x to the fifth 93 00:05:27,110 --> 00:05:40,199 times 3x to the minus three plus x squared to the minus 7. 94 00:05:40,199 --> 00:05:44,479 And I want to find the rate at which y changes relative to x. 95 00:05:44,480 --> 00:05:48,129 So I want to find dy over dx. 96 00:05:48,129 --> 00:05:49,949 This is just like, if this was f of x, it's just 97 00:05:49,949 --> 00:05:52,360 like saying f prime of x. 98 00:05:52,360 --> 00:05:53,290 This is just a [UNINTELLIGIBLE] 99 00:05:53,290 --> 00:05:54,470 notation. 100 00:05:54,470 --> 00:05:55,560 So what do I do in the chain rule? 101 00:05:55,560 --> 00:05:58,629 First I want the derivative of this term. 102 00:05:58,629 --> 00:06:02,459 Let me use colors to make it not too confusing. 103 00:06:02,459 --> 00:06:05,949 So what's the derivative of this term? 104 00:06:05,949 --> 00:06:08,539 We are going to use the chain rule first. 105 00:06:08,540 --> 00:06:15,990 So we take the derivative of the inside which is 2x plus 2 106 00:06:15,990 --> 00:06:18,790 and multiply times the derivative of the 107 00:06:18,790 --> 00:06:20,330 larger expression. 108 00:06:20,329 --> 00:06:26,919 But we keep x squared plus 3x there so it's times 5 times 109 00:06:26,920 --> 00:06:28,470 something to the fourth. 110 00:06:28,470 --> 00:06:33,320 And that something is x squared plus 2x. 111 00:06:33,319 --> 00:06:36,459 So there we took the derivative of this first term right here 112 00:06:36,459 --> 00:06:38,299 and then the product rules says we take the derivative of the 113 00:06:38,300 --> 00:06:40,740 first term, we just multiply it by the second term. 114 00:06:40,740 --> 00:06:49,120 So the second term is just 3x to the minus 3 plus x squared 115 00:06:49,120 --> 00:06:51,079 and all that to the minus 7. 116 00:06:51,079 --> 00:06:57,240 We did that and then to that we add plus the derivative of this 117 00:06:57,240 --> 00:06:59,870 second term times this first term. 118 00:06:59,870 --> 00:07:01,280 We're going to use the chain rule again. 119 00:07:01,279 --> 00:07:02,750 What's the derivative of the second term? 120 00:07:02,750 --> 00:07:04,889 I'll switch back to the light blue. 121 00:07:04,889 --> 00:07:07,839 Light blue means the derivative of one of the terms. 122 00:07:07,839 --> 00:07:11,319 So we take the derivative of the inside, the derivative of 123 00:07:11,319 --> 00:07:18,709 inside is minus 3 times 3 is minus 9, x go down one to 124 00:07:18,709 --> 00:07:23,209 the minus 4, plus 2x. 125 00:07:23,209 --> 00:07:26,180 And now we take the derivative of the whole thing. 126 00:07:26,180 --> 00:07:34,090 Times minus 7 times something to the minus 8, and that 127 00:07:34,089 --> 00:07:36,359 something is this inside. 128 00:07:36,360 --> 00:07:40,280 3x to the minus 3 plus x squared. 129 00:07:40,279 --> 00:07:42,769 And then we multiply this thing, this whole thing which 130 00:07:42,769 --> 00:07:44,870 is the derivative of the second term times the first term. 131 00:07:44,870 --> 00:07:47,730 132 00:07:47,730 --> 00:07:53,009 Times, and I'm just going to keep going, times x squared 133 00:07:53,009 --> 00:07:57,189 plus 2x to the fifth. 134 00:07:57,189 --> 00:07:59,709 So this is a really, I mean you might want to 135 00:07:59,709 --> 00:08:00,729 simplify at this point. 136 00:08:00,730 --> 00:08:02,480 You can take this minus 7 and multiply it 137 00:08:02,480 --> 00:08:03,490 out and all of that. 138 00:08:03,490 --> 00:08:05,350 But I think this gives you the idea. 139 00:08:05,350 --> 00:08:08,850 And if you have to multiply this out and then do the 140 00:08:08,850 --> 00:08:10,220 derivative if it's just a polynomial, this would 141 00:08:10,220 --> 00:08:11,080 take you forever. 142 00:08:11,079 --> 00:08:14,109 But using the chain rule, you're actually able to, even 143 00:08:14,110 --> 00:08:16,250 though we ended up with a pretty complicated answer, 144 00:08:16,250 --> 00:08:17,110 we got the right answer. 145 00:08:17,110 --> 00:08:20,230 And now we could actually evaluate the slope of this very 146 00:08:20,230 --> 00:08:22,990 complicated function at any point just by substituting the 147 00:08:22,990 --> 00:08:25,189 point into this fairly complicated expression. 148 00:08:25,189 --> 00:08:27,829 But at least we could do it. 149 00:08:27,829 --> 00:08:29,969 I think you're going to find that the chain and the product 150 00:08:29,970 --> 00:08:33,230 rules become even more useful once we start doing derivatives 151 00:08:33,230 --> 00:08:35,970 of expressions other than polynomials. 152 00:08:35,970 --> 00:08:38,620 I'm going to teach you about trigonometric functions and 153 00:08:38,620 --> 00:08:42,710 natural log and logarithm and exponential functions. 154 00:08:42,710 --> 00:08:44,460 Actually, I'll probably do that in the next presentation. 155 00:08:44,460 --> 00:08:47,240 So I will see you soon. 156 00:08:47,240 --> 00:08:48,500