Transcript

Use with ChatGPT / Claude Auto-scroll A

1. Chapter 1 (0:00)

0:00 - 0:18
the following content is provided under a Creative Commons license your support will help MIT open courseware continue to offer highquality educational resources for free to make a donation or to view additional materials from hundreds of MIT courses visitMIT open coreware at
ocw.mit.edu I'm hannes Miller I'm substituting for David Jaron today so you have a substitute teacher today
so I haven't been here in this class with you uh so I'm not completely sure where you where you are I think you've um just been talking about differentiation and uh you've got some examples of differentiation like thesebasic examples the derivative of x to the n is n x nus1 and I think maybe you spend some time Computing the derivative of the S function as well um recently and I think you have some rules uhfor for for extending these calculations as well for instance I think you know that if you differentiate uh a constant times a function what do you get
the constant comes outside like this or I could write cuu Prime is c u Prime that's this rule multiplying by a constant and I think you also know about differentiating a

2. Chapter 2 (1:57)

sum or I could write this as is U plus v Prime is U prime plus v Prime so I'm going to be using those but I'm uh today I'll talk about a collection of other rules about how todeal with a product of functions a quotient of functions and best of all composition of functions and then at the end I'll have something to say about uh higher derivatives so that's the story for today that's the programso let's begin by talking about um the product
rule so the product rule tells you how to differentiate a product of functions and I'll just give you the rule first of all uh the rule is it's U Prime V plus u v Prime little bit funny differentiatinga product giv gives you a sum but uh let's see how that works out in a particular example uh for example suppose that I wanted to differentiate the product well the product of these two basic examples that wejust talked about I'm going to use the same variable in both cases instead of different ones like I did here so the derivative of x to the N times s of X so this is a new thing couldn'tdo this without using the product
rule so the first function is X to the n and the second one is s of X and we're going to apply this rule so U is X to the n u Prime is according to the rule nx nus one and then I take V and write it down the way it is s of X and then I do it the other way I take U the way it is that's x to the n andmultiply it by the derivative of v v Prime uh we just saw V Prime is cosine of x so that's it obviously you can differentiate longer products products of more things uh by doing it one at a timewell let's see why this is true uh I want to try to show you why the products rule holds so I think there's you have a standard way of of trying to understand this and it involves looking at
the change in the function that you're interested in differentiating so I should look at how much the product UV changes when X changes a little bit well so how do we compute the change well I write down thevalue of the function at some new value of x X Plus Delta x uh well I better write down the whole new value of the function and the function is U * V so the whole new value lookslike this it's U of X Plus Delta x * V of X Plus Delta X that's the new value but what's the change in the product well I better subtract off what the old value was which is Uof x x v ofx okay now uh according to the rule we're trying to prove I have to get U Prime involved so I want to involve the change in U alone by itself let's just write try that
I see part of the formula for the change in U right there let's see if we can get the rest of it in place so the change in X is U of X Plus Delta of x minus Uof X right that's the change in X um it occurs this part of it occurs up here multiplied by V of X Plus Delta X so let's put that in too now this equality sign isn't very good goodright now I've got this product here so far but I've introduced something I don't like I've introduced U * V of X Plus Delta X right minus that so the next thing I'm going to do is get iscorrect that little defect by adding in U of x * V of X Plus Delta X okay now I've canceled off what was wrong with this line but I'm still not quite there because I haven't put this in
yet so I better subtract off U of X U * V and then I'll be home but I I'm going to do that in a clever way because I noticed that I already have a u here so I'mgoing to take this factor of U and make it the same as this factor and so I get U of X time this minus U of X time that that's the same thing as U times the difference sothat was a little bit uh strange but when you stand back and look at it you can see multiply it out the middle terms cancel and you get the right answer well I like that because it's involved thechange in U and the change in V so this is equal to Delta U time V of X Plus Delta x minus U of X time the change in V well I'm almost there the next step in Computing
the Der take the difference quotient divide this by
um divide this by uh Delta X so Delta of UV / Delta X is uh well I'll say Delta U / Delta X time V of X Plus Delta x uh my

3. Chapter 3 (8:03)

have I made a mistake
here this plus magically became a minus on the way down here so I better fixthat plus u uh time Delta V over Delta X this U is this U over here so I've just divided this form formula by Delta X and now I can take the limit as X goes to zero sothis as Delta X goes to
Z this becomes the definition of the derivative and on this side I get DX times now what happens to this quantity when Delta X goes to zero so I'm getting closer and closer so X is so this quantityis getting closer and closer to X so what happens to the value of v it becomes equal to X of V that uses continuity of V so V of X Plus Delta X goes to B of X bycontinuity so this gives me time V and then I have U * n Delta V Delta X gives me DV DX and that's the formula that's the formula as I wrote it down at the beginning over here thederivative of a product is given by this sum yeah first line to the second of of the long equ uh from from here to here well um so maybe it's easiest to work backwards and verify that what I
wrote down is correct here so if you look there's a u * V ofx plus Delta X there and there's also one here and they occur with opposite signs so they cancel and what's left is U of XPlus Delta x * V of X Plus Delta X U minus U * V and that's just what I started
with wouldn't the addition and subtraction
you they cancel right I canceled out this term and this term and what's left is the ends any other questions though

4. Chapter 4 (10:47)

yes where is well I took um I just calculated what Delta UV is uh and now I'm going to divide that by Delta X on my way to Computing the derivative and so I copied down the right handside uh and divided by Delta X I just decided to divide the U by the Delta U by Delta X and the Delta V by DeltaX good anythingelse so all right so we have the product rule here the rule for differentiating a product of two functions this is making us stronger there are many more functions you can find derivatives of now how about quotients let'sfind how to differentiate a quotient of two
functions well again I'll write down what the answer is and then we'll try to verify it so there's a quotient let me write this down there's a quotient of two functions and here's the rule for it so Ialways have to think about this and hope that I get it right U Prime V minus UV Prime divided by v^2 this may be the craziest rule you'll see in this course but there it is and I'll tryto show you why it's true and see an example yeah there was ahand
sorry uh what letters look the same uu and V look the same I'll try to make them look more different the v's have points on the bottom the U's have little round things on the bottom what's the newvalue of U the value of U the the value of U at X Plus Delta X it's U plus Delta U right that's what Delta U is it's the change in U when when X gets replaced by DeltaX and the change in V the new value of V is U plus Delta is V plus Delta V so this is the new value of U divided by the new value of v v that's that's the beginningand then I subtract off the old values which are U minus V this will be easier to work this out this when I write it out this way so now I will cross multiply as I said so I
get UV uh uh plus Delta U * V minus now I'll cross multiply this way you get UV minus uh uh U * Delta V and I divide all this by V plus Delta V * U okay nowthe reason I like to do it this way is that you see the cancellation Happening Here here UV and UV occur twice and so I can cancel them and I will and I'll answer these questions in a minuteo That's A V all right good anything else that's what all the hands were good all right so I cancel these and what I'm left with then is Delta U * vus U * Delta V and all thisis over uh V + Delta V * V okay there's the difference there's the the change in the quotient the change in this function is given by this formula and now to compute the derivative I want to divide
by Delta X and take the limit so let's write that down Delta of UV ID Delta X is this formula here divided by Delta X and again I'm going to put the Delta X under these Delta U andDelta V okay I'm going to put Delta X in the denominator but I can think of that as dividing into this factor and this Factor so this is Delta U over Delta x * V minus U * DeltaV over Delta X and all that is divided by the same denominator V plus Delta V time V right put put the Delta X up in the numerator there next up take the limit as Delta X goes tozero I get by definition the derivative of u u divided V and on the right hand side well um this is the derivative u d DX right time V and then U times and here it's the derivative DV
DX now what about the denominator so when when Delta X goes to zero V stays the same V stays the same what happens to this Delta V it goes to zero again because V is continuous so so againDelta Delta V goes to zero with Delta X because they're continuous and you just get V * V I think that's the formula I wrote down over there the derivative of U * V minus U * the derivativeof v and all divided by the square of the old denominator well that's it that's the quotient rule weird formula let's see an application let's see an
example so the example I'm going to give is pretty simple I'm going to take the numerator to be just one so I'm going to take U equal 1 so now I'm differentiating one/ V the reciprocal of a functionone over a function here's a here's a copy of my rule what's Dux in that case U is a constant so that term is zero in this rule uh I don't have to worry about this I get aminus and then u u is one and dvdx well V is whatever V is I'll write VD d vdx as V Prime and then I get a v^2 in the denominator so that's the rule minus uh I couldwrite it as vus 2 V Prime minus V Prime / V ^2 that's the derivative of 1 V how about an even even a sub example of

5. Chapter 5 (18:11)

that uh I'm going to take the special case where U is equal to one again and V is a power of X and I'm going to use the rule that we developed earlier about the derivative of x tothe n so what am I what do I get here D over DX of 1 /x the N is I'm plugging into this formula here with v equal x the N so I get minus uh uh V theminus 2 all right if x to the if V is X to the n vus 2 is by the rule of exponents x - 2 n
and then V Prime is the derivative of x the N which is n x
nus1 okay so let's put these together there's several powers of X here I can put them together I get um n * x to the - 2 n + n -1 one of these n's cancels and what I'mleft with is minus n minus one so we've computed the derivative of 1 /x the N which I could also write as xus n right so I've computed the derivative of negative powers of X and this is theformula that I get if you think of this minus n as a unit as a thing to itself it occurs here in the exponent it occurs here and it occurs here so how does that compare with the formulathat we had up here the derivative of a power of X is that power times x to one less than that power that's exactly the same as the rule that I wrote down here but the power here is
happens to be a negative number and the same negative number shows up as a coefficient and there in the exponent
yeahhow did I do

6. Chapter 6 (20:43)

this
right where did that X to Theus 2 N come
from so the rule I'm applying this rule so the denominator in the quotient rule is v^2 and V was X the N so the denominator is X 2N and I decided to write it as X Theus 2
N so so the green uh comments there what they say is that I can um I can enlarge this rule this exact same rule happens is true uh for negative values of n as well as positive values ofn so there's something new in your list of of uh rules that you can apply of of values of the derivative that standard rule is true for negative as well as positive exponents and that comes out of thequotient
rule okay so we've done two rules I've talked about the the product rule and the quotient rule what's next let's do the chain rule so this is a composition

7. Chapter 7 (22:21)

rule so the kind of thing that I have in mind composition of functions is about substitution so the kind of function that I have in mind is for instance Y is the S of T raised to the 10thpower that's a new one haven't seen how to differentiate that before I think this kind of power of of a trig function happens very often uh you've seen them happen as well I'm sure already and there's a there'sa little notational switch that people use they'll write sine to the 10 of T but remember that when you write s to the tan of T what you mean is take the S of T and then take thetenth power of that that's the meaning of s to the tan of T so the method in the method of dealing with this kind of composition of functions is to introduce use new variable names
what I mean is I can think of this s of T raised to the 10th power I can think of it as a two-step process first of all I compute the S of T and let's call a resultX there's the new variable name and then I express Y in terms of X so y says take this and raise it to the 10th power in other words Y is the function x to the 10th power andthen you plug xal sin of T into that and you get the formula for what Y is in terms of T so it's good practice to uh introduce new letters when they're convenient and this is one place whereit's very
convenient so let's find a rule for differentiating a composition a function that can be expressed by doing one function and then applying another function and here's the rule um well maybe I'll actually derive this rule first and thenyou'll see what it is in fact the rule is very simple to derive so this is a proof first and then we'll write down the rule I'm interested in Delta y over delta T Y is a function ofx x is a function of T and I'm interested in how y changes with respect to T with respect ECT to the original variable T well um because of that intermediate variable I can write this as Delta y/Delta X time Delta x / delta T it cancels right the Delta X cancels the change in that intermediate variable cancels out this is just basic algebra but what happens when I let Delta T get small well this
gives me dydt and on the right hand side I get dydx time dxdt so students will often remember this rule this is the rule by saying that you can cancel out the DXs and that's not so far fromfrom the truth that's a good way to think of it in other words this is the so called chain Rule and it says that

8. Chapter 8 (26:07)

differentiating differentiation takes um of a
composition is a product it's just the product of the two derivatives so um so that's how you differentiate a com composite of two functions and um let's just do do an example let's do this example uh see whatwhat that how that comes out so let's differentiate what did I say s of T raised to the 10th power power okay there's an inside function and an outside function the inside function is X as a function ofT that is this is the inside function and this is the outside
function so the rule says first of all let's differentiate the outside function take Dy DX differentiate it with respect to that variable X X the outside function is the 10th power what's its derivative so I get 10 xto the 9th power I'm using in this in this um in this in this uh account I'm using this newly introduced variable name X so the derivative of the outside function is 10 x 9 and then here's theinside function and the next thing I want to do is differentiate it so what's DX DT d s t the derivative of sin T all right that's cosine T that's what the chain rule gives you this is correctbut it might but since we were the ones to introduce this notation X here that wasn't given to us in the original problem here uh the last step in this process should be to put back to substitute back
in what x is in terms of T So X was s of T was s of T so that tells me that I

9. Chapter 9 (28:40)

get I get 10 * s of T raised to the 9th power that's X the 9th times the cosine of t or what's the same thing s to the 9th of T cosine of T so there's an applicationof the chain roll you know people uh I've people often wonder where the name chain roll comes from I was just wondering about that myself um so uh is it because is it because it chains you down there'sa chain is it because it chains you down I is it like a chain fence what is it I think I've decided what it is it's because by using it you burst the chains of uh differentiation and youcan differentiate many more functions using it so when you want to think of the chain roll just just think of that chain there it lets you burst
free let me um give you another application of the chain
roll

10. Chapter 10 (30:04)

ready for this
one so I'd like to differentiate the sign of 10T now okay so what's this is again it's a composite of two function what's the inside function okay so I think I'll introduce this new notation X is 10t and the outside function is the sign so Y isthe S of X so now the chain rule says the Y DT is okay let's see I take the derivative of the outside function and what's that S Prime we can put substitute what we know what S Primeis so I get cosine of whatever X and then times what now I differentiate the inside function which is just 10 so I could write this as 10 cosine of what 10 10t x is 10 T now umonce you get used to this this middle variable you don't have to get a name for
it you can just think about it in your mind without actually writing it down Dy d d d of um s of 10t I'll just do it again without introducing this middle variable explicitly think about it I firstof all differentiate the outside function and I get cosine but I don't change the thing that I'm plugging into it it's still X that I'm plugging into it X is 10t so let's just write 10t and not worryabout the name of that extra variable if it confuses you introduce the new variable and do it carefully and slowly like this but quite quickly I think you'll get to be able to keep that step in your mindI'm not quite done yet I haven't differentiated the inside function the derivative of 10t is 10 so you get again the same result a little shortcut that you'll uh get used to really and truly once you have the
chain rule uh the world is is yours to conquer it's um because you in a very very powerful position okay uh well let's see um what have I covered today I've talked about uh product rule quotient rule compositionI should tell you something about higher derivatives as well so let's do

11. Chapter 11 (33:09)

that this is a simple story higher is a kind of an strange word it just means differentiate over and over
again
all right so um let's see if we have a function U or U of X please allow me to just write it as briefly as U um well I can uh this is a sort of notational thing uhI can differentiate it I get U Prime that's the derivative that's a new function like if you started with a sign that's going to be the cosine a new function so I can differentiate it again and the notationfor the differentiating it again is U prime prime so U prime prime is just U Prime differentiate it again for example if U is the S of of X so U Prime is the cosine of x has ProfessorJaron talked about what the derivative of cosine is what is it H okay so U prime prime is minus the co minus the S of X let me go on uh what do you suppose U prime prime means
I guess it's the derivative of U prime prime it's called the third

12. Chapter 12 (34:52)

derivative and U prime prime is called the second derivative and it's U prime prime differentiate it again so to compute U prime prime prime in this example uh what do I do I differentiate that again there's a constantterm minus one constant factor that comes out the derivative of s is what okay so the U prime prime is minus the cosine of x let's do it again now after a while you get tired of writing thesethings and so maybe I'll use the notation U upper four that's the fourth derivative that's U prime prime prime prime or it's U prime prime prime differentiated again fourth derivative and what is that in this example okay thecosine is has derivative minus the sign like you told me and that minus sign cancels with that sign and altogether I get plus the S of X that's pretty bizarre when I differentiate the function s of x four
times I get back to the S of X again that's the way it is now this notation uh prime prime prime prime and things like that there are different ways of um there are different uh different variants ofthat notation other notation for
example as another notation well you've used the notation DX before U Prime also could be denoted
DX I don't I think we've already here today use this way of rewriting dudx uh I think when I was talking about DDT of UV and so on I pulled that D divided by DT outside and put whateverfunction you're differentiating over to the right so that's just a notational switch switch it looks good it looks like good algebra doesn't

13. Chapter 13 (37:04)

it as a further but it what it's doing is regarding this notation as an operator it's something that you apply to a function to get a new function I apply it to the sign function and I get thecosine function I apply it to x^2 and I get 2x this thing here that symbol represents present an operator which you apply to beapplied to a function and the operator says take the function and differentiated so a further notation that people often use is they give a different name to that operator and they'll write capital D for it so this isjust using capital D for the symbol DDX
so in terms of that notation let's see let's write down what higher derivatives look
like so let's see uh that's what U Prime is how about U prime prime let's write that in terms of the DDX notation well I'm supposed to differentiate U Prime right so that's DD DDX applied to the function

14. Chapter 14 (38:40)

DX differentiate the derivative that's what I'vedone or I could write that as DDX applied to DDX applied to U just pulling that U outside so I'm doing DDX twice I'm doing that operator twice I could write that as DDX quantity squared applied to Udifferentiate twice and do it to the function Uor I could write it as now this is this is a strange one I could also write uh this I guess says
uh like that it's getting stranger and stranger isn't it this is definitely just a a kind of abusive notation but and then and then people will go even further and write d^2 U / dx2 so this is thestrangest one this ident equality is the strangest one because you may think that you're taking D of the quantity X2 but that's not what's intended this is not D of x^2 what's intended is the quantity dx^ squar inthis notation which is very common what's intended by the denominator is the quantity dx2 it's part of this second differentiation operator so I've wrot written a bunch of equalities down here and and there's the only content to themis that these are all different notations for the same thing very you'll see this notation very commonly and so for instance the third derivative is D cubed U / DX cubed and so
on
sorry someone
talk Capital yes absolutely or an equally good notation is to write the operator capital D done three times to U absolutely so I guess I should also write over here when I was talking about d s the secondderivative another another notation is do the operator capital D twice let's see an example of how this can be applied I'll answer this question

15. Chapter 15 (41:32)

no so the question is whether the fourth derivative always gives you the original function back like what happened here no that's very very special to SS and cosiness right and in fact let's see an example of that I'lldo the I'll do a calculation let's calculate the N derivative of x to the n
okay N is a number like 1 2 3 4 so here we go let's do this so let's do this bit by bit what's the first derivative of x to the N so everybody knows this I'm just usinga new notation this capital D notation so it's n x nus1 and now you know by the way n could be a negative number for that but for now for this this application I want to take n tobe one 2 3 and so on one of those numbers okay we did one derivative let's do compute the second derivative of x to the N well there's this n constant that comes out and then the exponent comesdown and it gets reduced by one right shall I do one more D cubed x the N is n * n -1 that's the constant from here times that exponent N - 2 * 1 less n minus 3
it's the new exponent well I keep on going until I come to a different

16. Chapter 16 (43:25)

Blackboard now I think I'm going to stop when I get to the N minus first derivative so we can see what what's what's likely to happen so when I took the third derivative I had the N minus 3power of X and when I took the second derivative I had the second power of X so I think in gen I think what'll happen when I have the N minus first derivative is I'll have the first Powerof X left over the powers of X keep coming down and when I've done it n minus one times I get the first Power and then I get a big constant out in front here times more and moreand more of these smaller and smaller integers that come down what's the last integer that came down before I got when I got x to the first here well well let's see it's just two because this x to
the first Power occurred as the derivative of x s and the coefficient of that is in front of that is two so that's what you get the numbers n n minus one and so on down to two timesx to the 1st and now we can differentiate one more time and calculate what this is X to the n and calculate what DN x to the N is so I get the same number n * nus1 andso on and so on * 2 and then I guess I'll say times 1 times what's the derivative of x to the one one one so time one if you like Time 1 * 1 where this one meansthe constant function
one does anyone know what this number is called that's has a name it's called n factorial and it's written in exclamation point and we've just used an example of me mathematical induction so the end result is DN Xthe N is n factorialconstant okay that's that's a neat fact uh final question for the lecture is uh what's D the n + one applied to x to the n hexcellent It's the derivative of a constant so at zero okay thank you