Transcript
Use with ChatGPT / Claude Auto-scroll A
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 courseware at
ocw.mit.edu all right so let's let's begin uh lecture six we're talking today about
exponentials exponentials and
logarithms and these are the last functions that I need to introduce the last standard functions that we need to uh connect with Calculus that you've learned about and they're as certainly as fundamental if not more so than trigonometricfunction so first of all we'll start out with a a number a which is positive which is usually called a base and then we have this uh these properties um that A to the^ Z is one that's howwe get started and a to ^ 1 is a and of course a sar not surprisingly is a * a etc and the general rule is that a to the X1 + X2 is a to X1 * aX2 so this is the basic rule of exponents and with these two uh initial properties that that defines the exponential property uh the exponential function and then there's an additional property which is deduced from these which is the
uh composition of exponential functions which is if you take a to the X1 power to the X2 power then that turns out to be a to the X1 * X2 so that's an additional property that we'll take forgranted what you learned in high school now in order to understand what all the values of a to the X are uh we need to first remember that if you're taking a rational power that is the ratio oftwo integers power of of uh of a that's going to be a to the m and then we're going to have to take the nth root of that so that's a definition and then when you're defining a tothe X so a to the x is defined for all X by fillingin so I'm going to use that expression in quotation marks filling in by
continuity this is really what your calculator does when it gives you a to the^ X because you can't even punch in the square root of x it doesn't really uh exist on your calculator there's some decimal expansion soit it takes a decimal expansion to a certain length and spits out a number which is pretty close to the correct answer but indeed uh in the there's an a the^ < TK of two even though theun oftwo is irrational and a the pi and so forth all right so that's the exponential function and let's draw a picture of
one so we'll try uh say Y is equal to 2 to the X here and I'm not going to draw such a careful graph but let's just plot the most important point which is the point 0 1 that's2 to the 0 which is 1 and then maybe we'll go uh back up here to minus one here and uh 2 to the minus one is um this point here this is uh minus one2 the reciprocal andover here we have one and so that goes all the way up to two and then exponentials are remarkably fast so it's off the board what happens next out at two it's already above my my range here butthe but the graph looks something like this all right now I've just visually at least and graphically filled in all the rest of the points you have to imagine all these rational numbers and so forth so this point
here would would have been one two and so forth all right so so that's that's not not too far along so now what's our goal well obviously we want to do calculus here so our goal here for nowand it's going to take us a while we have to think about it pretty hard is to calculate what this this derivative
is all right so we'll get started and the way we get started is simply by plugging in the definition of the derivative the derivative is the limit as Delta X goes to zero of a to the x +Delta xus a x / Delta X so that's that's what itis and now the only step that we can really perform here to make this into something a little bit simpler is to to use this very first rule that we have here that the exponential of the sum isthe product of the exponentials so we have here a to the X so what I want to use is just the property that a to the X Plus Delta X is equal to a to x a to theDelta X and if I do that I see that I can factor out a common factor in the numerator which is a to the x so we'll write this as the limit as Delta X goes to zero of
a x time this ratio now a to Delta xus 1 / Delta
X so far so good we're we're actually almost to some serious progress here so there's one other important conceptual uh uh step which we need to understand and this is a relatively simple one and we actually did thisbefore by the way we did this with signs and cosin the next thing I want to point out to you is that you're used to thinking of X as being the variable and indeed already we were discussing Xas being the variable and a is being fixed but for the purposes of this limit there's a different variable that's moving X is fixed and Delta X is the thing that's moving so so that means that this Factorhere which is a common factor is constant and we can just factor out of the limit it doesn't it doesn't affect the limit at all a constant times a limit is the same as whether we multiply before or
after we take the limit so I'm just going to factor that out so that's my next step here a to the X and then I have limit Delta X goes to zero of a to the Delta X -1 / Delta X all right and so what I have here so this was by definition the derivative so here's d by DX of a the X and it's equal to this expression here now I'm going to nowI want to stare at this this expression and and and see what it's telling us because it's telling us as much as we can get so far without some so first let's just look at what this
says so what it's what it's saying is that the derivative of a to X is a to x times something that we don't yet know and I'm going to call this something this mystery number M of a soI'm going to make the label M of a is equal to the Limit as Delta X goes to zero of a to Delta X - 1 / Delta X all right so this is a
definition so this mystery number M of a has a geometric interpretation as well so let me let me describe that it has a geometric interpretation and it's a very very significant number so let's let's work out what itis so first of all let's rewrite the expression in the Box using this shorthand for this number so if I just write it it says d by DX of a x is equal to this factor which is Mof a * a x so the derivative of the exponential is this mystery number time a the X so we've almost solved the problem of uh finding the derivative of a to the X we just have to figureout this one number M of a and we get the rest so now let me first uh so let me point out two more things about this number M of a so first of all if I plug in
X = 0 that's going to be D by DX a x at x = 0 according to this formula that's M of a * a the 0 which is of course M of a so what is M ofa m of a is the derivative of this function at zero so M of a is the slope SL of a x at x 0 of thegraph the graph of a to the X at zero so again over here if you looked at the picture I'll draw the one tangent line in here which is this one here and this thing has slope what we'recalling M oftwo so if I graph the function yal 2 x I'll get a certain slope here if I graph it with a different base I'll maybe get another slope and what we've got so far is the following phenomenon if
we know this one number if we know the slope at this one place we'll be able to figure out the formula for the slope everywhereelse now that's actually exactly the same thing that we did for SS and cosin we knew the slope of the S and the cosine function at at xal 0 the sign function had slope one the cosine function hadslope zero and then from the sum formulas well that's exactly this kind of thing here from the sum formulas this sum formula in fact is easier than the ones for SS and cosin from the sum formulas we workedout what the slope was everywhere so this is we're following the same procedure that we did before but at this point we're stuck we're stuck because that time using radians this very clever idea of radians in Geometry wewere able to actually figure out what the slope is whereas here we're not so sure what M of2 is for instance we just don't know yet so the basic question that we have to deal with right now is
what is is M OFA
that's what we're left with and the Curious fact is that the the clever thing to do is to beg the
question so so we're going to go through a very circular root here that is circuitous not circular circular is a bad word in in math it means that one thing depends on another and that depends on it andmaybe both are wrong um circuitous means we're going to be going taking a roundabout route and we're going to discover that even though we refuse to answer this question right now we'll succeed in answering it eventually all rightso how are we going to beg the question what we're going to say instead is we're going to define a mystery base or a number e uh as the unique
number so that M of e is equal to one all right that's the trick that we're going to use we don't yet know what e is but we're just going to suppose that it uh that we have itnow I'm going to show you a bunch of consequences of this and also I have to persuade you that it actually does exist so first let me explain what the first consequence is first of all if M ofis one then if you look at this formula over here and you write it down for E you have something which is a very usable formula D by DX of e to the x is just e to theX all right so that's an incredibly important formula which is the fundamental one is the only one you have to remember from what we've done so maybe I should have highlighted it in in uh several colors
here all right that's a big deal all right very happy and again let me just emphasize also that this is the one this is the one which at x equals 0 has slope one that's the way we Defineit all right so if you plug in x equals z here on the right hand side you get you get one so one at xal Z all right so that's great uh except of course since we don't knowwhat e is this is this is uh a little bit
dicey so next I just even before uh explaining what e is in fact we won't get to what e really is until the very end of this lecture but I have to persuade you that why eexists all right so we we have to have some explanation for why we know that there is such a such a number okay so first of all let me start with the the one that we supposedly know whichis the function 2 to the X we'll call it f ofx is 2 to the X all right so that's that's the first thing and remember that the property that it had was that frime of 0 was Mof 2 that was the Der itive of this function the slope at at uh at xals 0 of the graph of the tangent line that is uh so now what we're going to consider here is some any kind
of stretching we're going to stretch this function by a factor K any number K so what we're going to consider is f of KX now if you do that that's the same as 2 to the KX right butnow if I use the the second law of exponents that I have over there that's the same thing as 2 the K to the^ X which is the same thing as sum base B to the X where Bis equal to um so let's just write that down over here B is 2 to the k all right so whatever it is if I have a different base which is expressed in terms of two by being ofthe form two to the k then that new function is described by this function f sub uh f f of KX the stretch now so what happens when you stretch a function that's the same thing as shrinking the
x axis so when K gets larger this uh this gets uh this corresponding point over here would be over here and so this corresponding point would be over here so you shrink this picture and the uh this slopehere tilts up so as we as we increase K the slope gets steeper and steeper let's see that explicitly numerically here explicitly numerically if I take the derivative here all right so the derivative with respect to X ofB to the X that's the same thing as well that's the chain rule right that's the derivative with respect to X of f of KX which is uh what it's K * frime of KX and so if wedo it at
zero we're just getting K * frime of 0 which is K * this m of 2 so how is it exactly that we cook up the right base B so so b equals E when K is equal tothe one over this number in other words we can pick all possible slopes that we want we just this this has the effect of multiplying the slope by a factor and we can shift the slope at zero howeverwe want and we're going to do it so that uh so that the slope exactly matches one the one that we want so we still don't know what K is we still don't know what e is but atleast we know that it's there somewhere excuse me yeah how do you know it's F of KX how do I know well uh f ofx is 2 to the X if f ofx is 2 the X then the
formula for fkx is this i' I've decided what f ofx is so therefore there's a formula for f of KX and furthermore by the chain rule there's a formula for the derivative and it's K * the derivative off so again scaling does this by the way we did exactly the same thing with the S and cosine function if you think of the S function here let me just remind you here what happens with the chainrule you get K * cine KT here so the fact that we set things up with it's beautifully with radians that this thing is but we could change the scale to anything such as uh degrees by the appropriateFactor K and then there would be this scale factor shift of the uh derivative formulas but of course the one with radians is the easy one because the factor is one the one with degrees is horrible because the
factor is some crazy number uh right like 180 over Pi or something like that okay so there's there's something going on here which is exactly the same as that kind of rescaling okay so so far we've got onlyone formula that I'm going to which is a keeper here this one all right we have a preliminary formula that we still haven't completely explained which has got a little wavy line there and we have to fit allthese things together okay so now to fit them together I need to introduce the natural
log
so the naturallog is denoted this way Ln of X so maybe I'll call it I'll call a new new letter name we'll call it w is equal to log X here but if we were reversing things if we started outwith a function y is equal to e to X the property that it would have is that it's the inverse function of e to the X so it has the property that the log of Y is equal toX all right so this defines the
log now the the logarithm has a a bunch of properties and they come from the exponential properties and uh in principle you remember these uh and I'm just going to remind you of them so the main one thatI just want to remind you of is that the logarithm of uh well the logarithm of X1 * X2 is equal to the logarithm of X1 plus the logarithm of X2 and maybe a few more are are areworth reminding you of one is that the logarithm of one is zero a second is that the logarithm of e is one all right so these correspond to the inverse relationships here if I plug in here uh xal0 and xal 1 if I plug in xals 0 and xal 1 I get uh the corresponding numbers here y = 1 yal
e and um maybe it would be worth it to to plot the picture once to reinforce this so here I'll I'll put them on the same chart if you have here uh e to the X over here itlooks like this then the logarithm which I'll maybe put in a different color so this cross is at this all important Point here 01 and now in order to figure out what the inverse function is I have totake the flip across the diagonal xals y so that's this shape here going down like this and here's the point 1 comma 0 so 1 comma 0 corresponds to this identity here that the log of one is zeroand notice so this is log X the graph of log X and notice that it's only defined for X positive which corresponds to the fact that e to the x is always positive so in other words this white
curve is only in the is only Above This axis and the orange one is to the right here it's only defined for X positive allright oh one other thing I should mention is the slope here is one and so the slope there is also going to be one and now what we're allowed to do relatively easily because we have the tools todo it is to compute the derivative of the
logarithm so tofind to find the derivative of the log we're going to use implicit differentiation this is how we find the the derivative of any inverse function so remember the way that works is if you know the derivative of thefunction you can find the derivative of the inverse function and the mechanism is the following you write down here W is equal to log X all right here's the function we're trying to find the derivative of w butnow we don't know how to differentiate this equation but if we exponentiate it so that's the same thing as e to W is equal to um X all right right because let's just stick this in here e tothe log X is equal to X all right now we can differentiate this so let's let's do the differentiation here we have d by DX e to W is equal to D by DX of X which is 1
and then this by the chain rule is d by DW e to the W dwdx the product of these two factors that's equal to one and now this guy is the one little guy that we that we uhactually know and can use that's this guy here all right so this is e to the W dwdx which is one and so
finally um dwdx is equal to 1 e to the W but what is that it's X so this is one overx all right so what we've discovered is and now I get to put another green guy around hereis that this is equal to 1
/x all right so now we have two companion formulas here the rate of change of log X is 1x and the rate of change of e to the x is is itself is e to the X and it'stime to return to the problem that we having a little bit of trouble with which is somewhat not explicit which is this m of a time x we want to now differentiate a to the X in general notjust e to the X so let's work that out and I want to explain it in a couple of ways so you're going to have to remember this because I'm going to erase it but what I'd like youto dois so now I I want to teach you how to differentiate basically any exponential so
we'll so now to
differentiate any exponential
there are two
methods they're they're practically the same method they have the same amount of arithmetic but you'll see both of them and they're they're they're equally uh valuable so we're going to just describe them so method one I'm going toillustrate on the function uh uh a to the X so we're we're interested in uh differentiating this thing exactly this problem that I still didn't solve yet okay so here it is and here's the procedure the procedure isto write um so the method is to use base e or convert to base e so how do you convert to base e well you write a to the X as e to some power so what power isit is e to Power log a to the power x and that is just e to the X log a all right so we've made our conversion now to base e an exponential of something so now I'm going
to carry out the differentiation so d by DX of a x is equal to D by DX of e to the X log a and now this is a a step which causes great confusion when you first seeit and you must get used to it because it's easy not hard okay the rate of change of this with respect to X is let me do it by analogy here say I had e 3x and I weredifferentiating it the ch rule would say that this is just three the rate of change of 3x with respect to X time e 3x the rate of change of e to the U with respect to U all rightso this is the ordinary chain Rule now what we're doing up here is exactly the same thing because log a as frightening as it looks with all three letters there is just a fixed number it's not moving it's
a constant so the con Conant just accelerates the rate of change by that factor which is what the chain rule is doing so this is equal to log a times e to the X log a all right samebusiness here with log a being replacing three so this is something you've got to get used to in time for the exam for instance because you're going to be doing a million of these all right so do getused to it all right so so here's the formula on the other hand this expression here was the same as a to the X so another way of writing this and I'll put this into a into a boxbut actually I never remember this particularly I just rederive it every time is this is the uh uh derivative of a to the x is equal to log a a to the X right now I'm going to get
rid of what's underneath it here so you all right so this is another another formula now so there's the formula I've essentially finished here and notice what is the magic number the magic number is the natural log ofa that's what it was we didn't know what it was in advance this is what it is it's the natural log of a let me emphasize to you again something about what's going on here which has to dowith scalechange so for
example the derivative with respect to X of 2 to the x is log 2 * 2 x the derivative with respect to X these are the two most obvious bases that you might want to use is log 10* 10 x so one of the things that's natural about the natural logarithm is that even if we insisted that we must use base 2 or that we must use base 10 we still would be stuck with naturallogarithms they come up naturally they're the ones which are which are independent of our human constructs of of base 2 and base 10 the natural logorithm is the one that comes up uh without reference and we'll be mentioninga few other ways in which it's natural um later here okay so I have to I I I told you about this first method now I want to tell you about a second method
here so the second method is called logarithmic
differentiationlogarithmic
differentiation all right so how does this work well sometimes you're having troubledifferentiating a function and it's easier to differentiate its logarithm that may seem peculiar but actually we'll give several examples where this is clearly the case that the logarithm is easy easier to differentiate than the function okay so itcould be that this is an easier quantity to understand so we want to relate it back to the function U so we have to so I'm going to write it slightly different way so uh let's write it interms of primes here so the basic identity is the chain rule again and the derivative of the logarithm well maybe I'll write it out this way first so this is would be D of log U du time dby DX of U okay these are the two
factors and that's the same thing so remember what the derivative of the logarithm is this is what is it one over U so here I have a one over U and here I have a du DX so I'mgoing to encode this uh on the next board here which is the sort of the main formula that you always need to remember which is that log U Prime is equal to U Prime over U okay that's thethat's the one to remember here yeah did you
get the question is how did I get this step here all right so this is the chain rule okay the rate of change of U with respect log U with respect to X is the rate of change oflog U with respect to U times the rate of change of U with respect to X that's the
chain all right so now I've I've I've worked out this this identity here and now let's show how it it handles um this case d by DX a x let's do this one so in order to get thatone I would take U is equal to a to X all right and now let's just take a look at what log U is log U is equal to X loga all right now I claim that this is pretty easy to differentiate again it may seem hard but it's actually quite easy so maybe somebody can Hazard a guess what's the derivative of x log
a x log a it's just log a right so this is that same thing that I was talking about before which is if you've got 3x and you're taking its derivative with respect to X here that's just threethat's the kind of thing you have here again don't be put off by this massive piece of junk here it's a constant right soagain keep that in mind it it comes up regularly in this in this kind of question all right so there's our formula that is the derivative of the the logarithmic derivative is this but let's just rewrite that rightthat's the same thing as U Prime over U which is log U Prime is equal to log a right so this is our differentiation formula so here we have U Prime U Prime is equal to U * loga if I just multiply through by U and that's what we wanted that's d by DX of a x is equal to uh log a I'll reverse the order of the two which is customary time a
x all right so this is this is the way that logarithmic differentiation works it's the same arithmetic as the previous method uh but we don't have to convert to base e we're just keeping track of the exponents anddoing the differentiation on the exponents and multiplying through at the end okay so so now I I'm going to do two trickier examples which illustrate logarithmic
differentiation
again these could be done equally well by using base e but I but I won't do it method one and Method two always both work all right so here's a second example again this is the problem when youhave moving
exponents but this time we're going to complicate Matters by having both a moving X exponent and a moving base all right so we have a function U which is well maybe I'll call it V since we already hada function U which is X to the X a really complicated looking function here so again you can you can handle this by converting to base e method one but we'll do the logarithmic differentiation version all right soI take the logs of both sides okay and now I differentiateit and now when I differentiate this here I have to use the product rule this time instead of having log a a constant I have a variable here so I have two factors I have log X when Idifferentiate with respect to X when I differentiate with respect to uh this Factor here I get x times the derivative of that which is 1x okay so here's here's my formula almost finished so I have here V Prime
over V is equal to now I'm going to multiply these two things together I'll put it on the other side because I don't want to get it mixed up with uh log X + one the quantity all rightand now I'm almost done I have uh V Prime is equal to V * 1 + log X and that's just d by DX x x is = X x * 1 + log X right that's that's
it so these two methods always work for for moving
exponents
so the next thing that I'd like to do is another fairly tricky example and this one
is this one is not uh strictly speaking within calculus although we're going to use the tools that we've just described to to uh carry it out in fact it will use some calculus in the very end right andwhat I'm going to do is I'm I'm going to evaluate the limit as n goes to Infinity of 1 + 1 / n to the^
n so now the reason why I want to uh discuss this is this is a this is turns out to have a very interesting answer and it's a problem that you can approach exactly by this method and thereason is that it has a moving exponent the exponent n here is changing and so if you want to keep track of that a good way to do that is to use logarithms so in order to figure outthis limit what we're going to do is we're take the log of it and figure out what the limit of the log is instead of the log of the limit those will be the same thing so we're goingto take the natural log of this quantity
here and that's n log 1 + 1 n
and now I'm going to rewrite this in a form which will make it more recognizable so what I'd like to do is I'm going to write n uh or maybe I should say it this way Delta X isequal to 1 n all right so if n is going to Infinity then this Delta X is going to be going to zero so this is more familiar teritory for us uh in this class anyway so let's rewriteit so here we have 1 over Delta X and then that is multiplied by log of 1 + Delta X all right so n is the reciprocal of Delta X now I want to change this in a veryvery minor way I'm going to subtract Zero from it so that's the same thing so what I'm going to do is I'm going to subtract log of one from it that's just equal to zero right so this is
not a problem and I'll put some parentheses around this all right now you're supposed to recognize all of a sudden what this thing what pattern this fits into this is the thing which we need to calculate in orderto calculate the derivative of the log function okay so this is in the limit as Delta X goes to zero equal to the derivative of log X where well the base point is x = 1 that's where we'reevaluating that's the x0 that's the base value but this is the difference quotient that's exactly what it is and so this by definition tends to this limit here but we know what the derivative of the log function isthe derivative of log function is 1
/x so this limit is
one okay so we got it we got the limit and now we just have to work backwards to figure out what this limit that we've got over here is
so let's do that so let's see here the log approached one so the limit as n goes to Infinity of 1 + 1 n to the N so sorry the log of this yeah let's write it this wayso this is the same thing as well the thing that we know is the log of this right 1 + 1 n the n and goes to Infinity that's the one that we just figured out but now thisthing is the exponential of that so it's really e to this power here so this guy is the same as the limit of the log of the limit of this thing which is the same as the limit logof the limit the limit of the log and the log of the limit are the same log Lim equals Lim log okay so I take the logarithm I take the exponential that just just undoes what I did before
and so this limit is just one so this is e to the one and so this limit that we want here is equal to
e so I claim that with this step we've actually closed Loop finally because we have an honest numerical way to calculate e the first there are many such but this one is a perfectly honest numerical way to calculatee we we had this e we didn't know exactly what it was it was this m of there was M OFA the logarithm and so on we have all that stuff but we really need need to nail downwhat this number e is and this is telling us if you take for example 1 + 1 over 100 to the 100th power that's going to be a very good perfectly decent anyway approximation to e so this isan a numerical approximation which is all we can ever do with this kind of irrational number and so that closes the loop and we now have a coherent uh uh family of functions which are actually well defined and
for which we have practical methods to calculate okay so see you next time