Transcript

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 visit MIT open courseware at ocw.mit.edu and this last little bit is something which is not yet on the web but anyway when I was walking out of the room last time I noticed that I'd written down the wrong formula for C1 minus C2 there's a misprint there's a minus sign that's wrong uh I claimed last time that C1 minus C2 was plus a half but actually it's minus a half if you go through the calculation that we did with the anti-derivative of sinx cosine X we get these two possible answers and if they're to be equal then if we just subtract them you get C1 minus C2 plus a half is equal to zero so C1 minus C2 is equal to a half all right so those were all of the corrections again everything here will be on the web but uh just wanted to make it all clear to you all right so here we are this is our last day of the of the uh second unit applications of differentiation and I have uh one of the uh most fun topics to introduce to you which is differential equations and we have a whole course on differential equations which is called 1803 and uh so we're only going to do just a little bit but I'm going to teach you one technique which fits in precisely with what we've been going what we've been doing already which is differentials the first and simplest kind of differential equation is the rate of change of X with respect to Y is equal to some function f ofx that's a perfectly good differential equation and we already discussed last time that the solution that is the function y is going to be the anti-derivative or the integral of X now for the purposes of today we're going to consider this problem to be solved that is you can always do this you can always take anti-derivatives and um uh for our purposes now that is uh for this for now we only have one technique to find anti-derivatives and that's called substitution it has a very small variant which we called Advanced guessing and that works just as well and that's basically all that you'll ever need to do as a practical matter uh these are the ones you'll face for now ones that you can actually see what the answer is or you'll have to make a substitution now the first tricky example or the first maybe interesting example of a differential equation which I'll call example two is going to be the following d by DX plus X acting on Y is equal to zero so that's our our first differential equation that we're going to try to solve apart from this standard anti-derivative approach this operation here has has a name this is actually has a name it's called the annihilation operator and it's called that in in quantum mechanics and there's a corresponding creation operator where you change the sign from plus to minus and this is one of the simplest differential equations the reason why it's studied in quantum mechanics at all is that it has very simple solutions that you can just write out so we're going to solve this this equation it's the one that uh governs the ground state of the harmonic oscillator all right so it has a lot of fancy words associated with it but it's a fairly simple differential equation it works perfectly by the method that we're going to propose so the first step in the solution is just to rewrite the equation by putting the uh the one of the terms on the right hand side so this is dy DX is equal to - x * y now here is where you see the difference between this type of equation and the previous type in the previous equation we just had a function of X on the right hand side but here the rate of change depends on both X and Y so it's not clear at all that we can solve this kind of equation but there is a a remarkable trick which works very well in this case which is to use multiplication to use this idea of differentials that we talked about last time namely we divide by Y and multiply by DX so now we've separated the equation we've uh separated out the differentials and what's going to be important for us is that the left hand side is expressed solely in terms of Y and the right hand side is expressed solely in terms of X we'll go through this in in in careful detail so now the idea is if you've set up the equation in terms of differentials as opposed to ratios of differentials or rates of change now I can use livets as notation and integrate these differentials take their anti-derivatives and we know what each of these is namely the left hand side is just ah well that's tough okay yeah yeah I had an I had an opare who actually did a lot of Taekwondo and in fact she could she could definitely defeat any of you in any encounter I I I promise you okay anyway uh so let's go back we have we want to take the anti-derivative of this so remember so remember this is the anti- deriv this is the function whose derivative is one over Y and now there's a slight novelty here here we're differentiating the variable as X and here we're differentiating the variable as y so the anti-derivative here is natural log of Y and the anti-derivative on the other side is - x^2/2 and they differ by a constant so we have this relationship here all right now that's almost the end of the story we have to exponentiate to express Y in terms of X so e to log y isal to e - x^2 2 + C and now I can rewrite that as Y is equal to uh I'll write it as a e- x^2 over two where a is equal to e to the C and incidentally we're just taking the case y positive here we'll we'll we'll talk about what happens when Y is negative in in a few minutes all right so here's the answer to the question almost except for this fact that I pi picked out y y positive really the solution is y is equal to any multiple of eus x^2 2 any constant a a positive negative or zero any constant will do and we should double check that to make sure if you take d by DX of Y right that's going to be uh D that's going to be a * D DX of e- x^2 2 and now by the chain rule you can see that this is a time uh the factor minus X that's the derivative of the exponent with respect to X time the exponential and now if you just rearrange that that's - x * y all right so it does check these are solutions to the equation the a didn't matter it didn't matter whether it was positive or negative now this function is is is known as the normal distribution so it fits beautifully with a lot of probability and a probabilistic interpretation of quantum mechanics this is sort of the where the particle is all right so next what I'd like to do is just go through the the method in general and point out when it works and then I'll make a few comments just to make sure that you understand uh uh the technicalities of dealing with constants and so forth so first of all the general method of separation of variables and here's when it works it works when you're faced with a differential equation of the form FX G of Y that's the situation that we had and I'll just illustrate that just to remind you here here's our equation it's in that form and the function f ofx is minus X and the function G of Y is just Y and now the way the method works is this separation step from here to here this is the key step all right this is the only uh sort of conceptually a remarkable step which all has to do with the fact that liet fixed his notations up so that this works perfectly and so that involves taking the Y so dividing by G of Y and multiplying by DX it's comfortable because it feels like ordinary arithmetic even though these are differentials and then uh we just anti-differentiate so we have a function H which is the integral of Dy G of Y and we have another function which is f note they are functions of completely different variables here integral of f ofx DX now in our example we did that we carried out this anti- differentiation and this function turned out to be log Y and this function turned out to be - x^2 / 2 and then we write the relationship which is that um if these are both anti-derivatives of the same thing then they have to differ by a constant or in other words h of Y has to equal to f ofx plus C where C is constant so let's now notice that this kind of equation is what we call an implicit equation it's not quite a formula for y directly it defines y implicitly that's that top line up here right that's the implicit equation in order to make it an explicit equation which is what is underneath what I have to do is take the inverse so I write it as Y is equal to H inverse of f ofx + C now in real life the calculus part is often pretty easy and it can be quite messy to do the uh inverse operation so sometimes we just leave it alone in the implicit form but it's also satisfying sometimes to write it in in the in the final form here okay now I want to I got to give you a few little pieces of commentary before for those of you who walked in a little bit late this will all be on the web so just a few pieces of commentary uh so if you like some some some remarks the first remark is that I could have written uh could have written natural log of absolute Y is equal to - x^2 / 2 + C all right we we learned last time that the anti-derivative works also for for the negative value so this would work for y not equal to zero both for positive and negative values and you can see that that would have captured most of the rest of the solution namely absolute y would be equal to a e- x^2 / 2 by the same reasoning as before and then that would mean that y was equal to plus or minus a e- x^2 2 which is really just what we got right because in fact I I didn't bother with this uh because actually in most and and the reason why I'm going through this by the way carefully this time is that you're going to be faced with this very frequently the exponential function comes up all the time and so therefore you want to be completely comfortable dealing with it uh so so this time I had the positive a well the negative a fits in either this way or I can throw it in because I know that that's that's going to work that way but of course I double check to be to be confident now this still leaves out one value so this still leaves out so if if you like what I have here now is a is equal to plus or minus capital A the the capital A one being the positive one but this still leaves out one case which is y equals z which is an extremely boring but uh solution but nevertheless a solution to this problem if you plug in zero here for y you get zero if you plug in zero here for y you get that these two sides are equal right 0 equals 0 it's not a very interesting answer to the question but it's still an answer and so y equals 0 is left out well that's not so surprising that we missed that solution because in the process of carrying out these operations I divided by y right I did did that I did that right here so that's what happens if you're going to do various nonlinear operations in particular if you're going to divide by something if it happens to be zero you're going to miss that solution or you might have problems with that solution but we have to live with that because we want to get ahead and we want to get the formulas for for various Solutions all right so that's the first remark that I wanted to make and now the second one is also well it's almost related to what I was just discussing right here that I'm erasing and that's the following I could have also written I could have also written log y + C1 is = to - x^2 / 2 + C2 where C1 and C2 are different constants when I'm faced with this anti- differentiation I just taught you last time time that you want to have an arbitrary constant here and there in both slots so I perfectly well could have written this down but notice that I can rewrite this as log Y is equal to - x^2 / 2 + C2 - C1 I can subtract and then if I just combine these two guys together and name them C I have a different concept in other words it's Superfluous and redundant to have two arbitrary constants here because they can always be combined into one so two constants are Superfluous can always be combined so we just never do it this first way it's just extra writing it's a waste of time there's one other subtle remark which which you won't actually appreciate until you've done several problems in this direction which is that the constant appears additive here in this first solution to the problem but when I do this nonlinear operation of exponentiation it now becomes multiplicative constant and so in general there's a free constant somewhere in the problem but it not always an additive constant it's only an additive constant right at the first step when you take the anti-derivative and then after that when you do all your other nonlinear operations it can turn into anything at all so you should always expect it to be something slightly more interesting than an additive constant although occasionally it stays an additive constant the last little bit of commentary that I want to make just goes back to the uh original problem here which is right here uh the example one and I want to solve it even though this is simple-minded but example one via separation so that you see uh uh a variables so that you see what it does the situation is this and the separation just means you put the DX on the other side so this is dy is equal to F ofx DX and then we integrate and the anti-derivative of Dy is just y so this is the the solution to the problem and it's just what we wrote before it's just a just a funny notation and it and it it comes to the same thing as the anti-derivative okay so now we're going to go on to uh a trickier problem a trickier example we need one or two more just to get some practice with this method everybody happy so far question yeah uh so the question is how do we deal with this ambiguity uh I'm summarizing very very uh briefly what what I heard well you know sometimes a is bigger than zero sometimes a is less than zero sometimes it's not so there's a name for this this guy which is that this is what's called the general solution in other words the whole family of solutions is the answer to the question now it could be that you're given extra information if you're given extra information that might be and this is very typical in such problems you have the rate of change of the function which is what we've given but you might also have the place where it starts which would be say it starts at three all right now if you have that extra piece of information then you can nail down exactly which function it is all right if you do that if you plug in 3 you see that uh a * e- 0^ 2 over 2 is equal to 3 so so a is equal to 3 and the answer is y = 3 e- x^2 / 2 and similarly if it's negative if this if it starts out negative it'll stay negative for instance if it starts out zero it'll stay zero this particular function here so the so the the answer to your question is how do you deal with the ambiguity the answer is that you you simply say what the solution is and the solution is not one function it's a family of functions it's a list and you have to have a param what's known as a parameter and that parameter gets nailed down if you tell me more information about the function not the rate of change but something about the values of the function here that's the general solution the general solution is this solution and I'm showing you here that you could get to most of the general solution there's one thing that's left out namely the case a equals z this so in other words I would not go through this method I would only use this which is simpler but then I have to understand that I haven't gotten all the solutions this way I'm going to need to throw in all the rest of the solutions so in the back of your head you always have to have something like this in mind so that you can generate all the solutions this is very suggestive right the Restriction it turns out that the Restriction a greater than zero is is Superfluous is unnecessary but that we only get by further thought and by checking other another question over here the aim of differential equations is to solve them just as with algebraic equations uh they they usually differential equations are telling you something about the balance between an acceleration and a and a a velocity if you're you know you have a falling object it might have a resistance there's it's it's telling you something so actually sometimes in applied problems formulating what differential equation describes a situation is very important and in order to to see that that's the right thing you have to have solved it to see that it fits the data that you're that you're getting the question is can you solve for x instead of Y the answer is sure you can that that's the same thing as uh so so that would be the inverse function of the function that we're officially looking for but yeah it's legal in other words often times we're stuck with just the implicit some implicit formula and sometimes we're stuck with a formula X is a function of Y versus y as a function of X that's not the way in which the the function is specified is something that can be complicated as you'll see in the next example it's not necessarily the best thing to think about a function y is a function of X well in the in the in the example the fourth example all right we're going to go on and do our next example here okay so the Third example is going to be taken as a kind of geometry problem I'll draw a picture of it suppose you have a curve with the following property if you take a point on the curve and you take the ray you take the ray from the origin to the curve whoops well that's not going to be one that I want I think think I'm going to want something which is steeper because what I'm going to insist is that the tangent line be twice as steep as the um as the ray from the origin so in other words slope of tangent line equals twice slope of Ray from origin all right so that's the slope of this orange line is twice the slope of the pink line now these kinds of geometric problems can be written very succinctly with uh rates of with uh differential equations namely it's just the following dydx that's the slope of the tangent line is equal to well remember what the slope of this Ray is if this point I need a notation if this point is X comma Y which is a point on the curve so the slope of this pink line is what y overx so if it's twice it there's the equation okay now we only have one method for solving these equations so let's use it it says to separate variables so I write Dy / y here is equal to 2 DX / X that's the basic separation that's the procedure that we're always going to use and now if I integrate that I find that on the right hand side I have the logarithm of Y and on the left hand I'm sorry the left hand side I have the logarithm of Y on the right hand side I have twice the logarithm of X plus a constant so let's see what happens to this example this is an implicit uh equation and of course we have the problems of the plus and minus signs which I'm not going to worry about until later so let's exponentiate and see what happens we get e to the log Y is equal to e to the 2 log X + C so again this is y on the left hand side and on the right hand side if you think about it for a second it's e to the log X s which is X2 so this is X squ and then there's an e to the C so that's another one of these a factors here all right a is equal to e to the C so the answer is well I'll draw the picture and I'm going to cheat as I did before we skipped the case y negative we really only did the case y positive so far but if you think about it for a second and we'll check it in a second you're going to get all of these parabas here so the solution is this family of functions and they can be bending down as well as up so these are the solutions to this equation every single one of these curves has the property if you pick a point on it the tangent line has twice the slope of the ray to the origin and the the the formula if you like of the general solution is y ax^2 a is uh any any constant question yeah so again it so so first of all one thing so there there there are two approaches to this one is to check it and make sure that it's right when a formula works for some family value sometimes it works for others but another one is to realize that these things will usually work out this way because in this argument here I allowed the absolute value all right and that would have been a perfectly legal thing for me to do I could have put in absolute values here in which case I would have gotten that the absolute value of this was equal to that and and now you see I've covered the plus and minus cases all right so it's it's that same idea this implies that Y is equal to either plus a x^2 or minus a x^2 depending on which which sign you pick so that allows me for the curves above and the curves below because because it's really true that the anti-derivative here is this function it's defined for y Nega so let's just double check in this case what's happening we have the Y = ax^2 and we want to compute dydx to make sure that it satisfies the equation that I started out with and what I see here is that this is 2 ax and now I'm going to write this in a suggestive way I'm going to write it as 2 ax^2 / X and sure enough this is 2 y / X it does not matter whether a it works for a positive a negative a equal Z it's okay again we didn't pick up by this method the a equals z case and that's not surprising because we divide it by y there's another thing to watch out about about this example so there's another warning which I have to give you and this is a subtlety which you definitely won't get to uh in in any detail until you get to a higher level ordinary differential equations course but I do want to warn you about it right now which is that if you look at the equation you need to watch out that it's undefined at xal 0 it's undefined at x equals z we also divided by x and x is also a problem now that actually has an important consequence which is that strangely knowing value here and knowing the rate of change doesn't specify this function this is bad uh and it's violates one of our pieces of intuition and what's going wrong is that the rate of change was was not specified it's undefined at x equals z so there's a problem here and in fact if you think carefully about what this function is doing it could come in on one branch and leave on a completely different branch it doesn't really have to obey any rule across x equals z so you should really be thinking of these things as Rays emanating from the from the origin the origin was a special point in the whole geometric problem rather than is being complete parabas that that's a very subtle point I I I don't expect you to uh to uh be able to say anything about it but I just want to warn you that you know it really is true that when X is Z there's a problem for this function for this for this differential equation all right so now well so so now let me um say our next problem next example is just another geometry question so here's example four I'm just going to use the example that we've already got because there's uh only so much time left here the fourth example is to take the curves curves perpendicular to the parabas this is another geometry problem and by specifying that the curves are perpendicular to these parabas I'm telling you what their slope is so let's think about that what's the new equation the new Diffy Q is the following it's that the slope is equal to the negative reciprocal of the slope of the tangent line of tangent to the parabola okay so that's the that's the equation that's actually fairly easy to write down because it's minus1 / 2 uh y / X right that's the slope of the uh Parabola right 2 y / X so let's rewrite that now this is the X goes in the numerator so it's - x over 2 Y and now I want to solve this one well again there's only one technique which is we're going to separate variables and we separate the differentials here so we get 2 y Dy equal - x DX that's just looking at the equation that I have which is right over here dydx is equal to - x over 2 Y and cross multiply F to get this and now I can take the anti-derivative this is y^2 and the anti-derivative over here is - x^2 / 2 + a constant and so the solutions are uh x^2 / 2 + y^2 is equal to some C some constant C now this time things don't work the same and they they you can't expect them always to work the same I claimed that this must be true but I unfortunately I cannot insist that every c will work as you can see here only the positive number c can work here so the the the the picture is that something slightly different happened here and you have to live with this is that sometimes not all the constants will work because there's more to the problem than just the anti- differentiation and here there are fewer answers rather than more answers in the other case we had to add in some answers here we have to take them away some of them don't make any sense and the only ones we can get are the ones which are of this form where this is say some radius squared well maybe I shouldn't call it a radius I'll just call it a parameter a s and these are of course ellipses and uh you can see that the ellipses The length here is what it's uh it's uh the square root of 2 a and the the semiaxis vertical semi-axis is a so this is the kind of ellipse that we've got and if I draw it on the on the previous diagram I think it's somewhat suggestive here they're ellipses are are kind of eggs they're a little bit longer than they are high and they go like this and if I drew them pretty much right they should be making right angles at all these places okay last little bit here again to be you've got to be very careful with these Solutions and so there's warning here too so let's take a look at the this is the implicit solution to the equation and this is the one that tells us what the shape is but we can also have the explicit solution and if I solve for the explicit solution it's Y is equal to either plus sare < TK of uh a^ 2 - x^2 / 2 or Y = to minus thek a^ 2 - x^2 2 all right these are the the explicit Solutions and now we notice something that we should have noticed before which is that an ellipse is not a function it's it's only the top half if you like that's giving you a solution to this equation or maybe the bottom half that's giving you a solution to the equation so the the one over here this one is the top halves and this one over here is the bottom halves and there's something else that's interesting which is that we have a problem at y equal 0 yal 0 is where X is uh of 2 * a that's when we get to this end here and what happens is a solution comes around and it stops it has a vertical slope vertical slope and the solution stops but really that's not so unreasonable after all look at the formula there was a y in the denominator here when Y is equal to zero the slope should be infinite and so you know this this this this equation is just giving us what it geometrically and intuitively should be giving us at that at that stage okay so that is the introduction to ordinary equations again there's only one technique which is uh we're not done yet though you know we have a whole four minutes left and we're going to review now so fortunately this review is very short um fortunately for you I handed out to you exactly what you're going to be covering on the test and it's what's printed here but there's a whole two pages of discussion and I want to give you very very clear-cut uh instructions here this is usually the hardest test of this course people usually do terribly on it and uh I'm going to try to stop that by making it a little bit easier and now here's here's what we're going to do I'm telling you exactly what type of problems they're going to be on the test these are these six it's also written on your sheet your handout it's also just what was asked last on last year's test you should go and you should look at last year's test and see what types of problems they are we I really really I'm going to ask the same questions or the same type of questions all right not the same questions all right so that's what's going to happen on the test and let me just tell you say one thing which is the main theme of the class and I will I will open up we'll have time for one question after that the main theme of this unit is simply the following that information about derivative and sometimes maybe the second derivative tells us information about F itself and that's just what we were doing here with ordinary differential equations and that was what we were doing way at the beginning when we did approximations

Seek backward 5s ←
Longer seek (10s) Shift ←
Play Space Seek forward 5s →
Longer seek (10s) Shift →
0:00 Auto-scroll A Copy link at current time S

Lec 16 | MIT 18.01 Single Variable Calculus, Fall 2007