Transcript
The following content is provided under a Creative Commons license. Your support will help MIT OpenCourseWare continue to offer high-quality educational resources for free. To make a donation or to view additional materials from hundreds of MIT courses, visit MIT OpenCourseWare at ocw.mit.edu. We're starting a new unit today. And so this is unit two and it's called applications of differentiation. Okay. So, the first application, and we're going to do two today, is what are known as linear approximations. Oops, that should have two P's in it. Approximations. So, that can be summarized with one formula, but it's going to take us at least half an hour to explain how this formula is used.
So, here's the formula. It's f of x is approximately equal to its value at a at a base point plus the derivative times x minus x zero. All right, so this is the main formula for right now. Put it in a box. And let me just describe then I'll describe what it means again and several other times. So, first of all, what it means is that if you have a curve which is y = f of x, it's approximately the same as its tangent line. So, this other side is the equation of the tangent line. So, let's give an example. I'm going to take the function f of x which is log x and then its derivative is 1 over x. And uh so, let's take the base point x 0 is equal to 1.
That's pretty much the only place where we know uh the logarithm for sure. And so, what we plug in here now are the values. So, f of 1 is uh the log of 0 or sorry, the log of 1, which is 0. And f prime of 1, well, that's 1 over 1, which is 1. All right? So, now we have an approximation formula, which if I copy down what's right up here, it's going to be log x is approximately So, f of 0 is is 0, right? Plus 1 * x - 1. All right? So, I plugged in here for x places, I evaluated the coefficients and this is the dependent variable. So, so all told, if you like, what I have here is that the logarithm of x is approximately x minus 1.
And let me draw a picture of this. So, here's the graph of log x. And then I'll draw in the tangent line at the place that we're considering, which is x = 1. So, here's the tangent line. All right, I separated a little bit, but really I probably should have drawn it a little closer there to show you. The whole point is that these two are nearby. But they're not nearby everywhere. So, this is this is uh the line y = x - 1. All right, that's the tangent line. They're nearby only when x is near 1. So, say in this little realm here. So, when x is approximately 1 this is true. Once you get a little farther away, this straight line the straight green line will separate from the graph.
But near this place, they're close together. All right, so the idea again is that the curve the curved line is approximately the tangent line, and this is one example of it. All right, so I want to explain this in in in one more way and then we want to discuss it systematically. So, the second way that I want to describe this uh requires me to remind you what the definition of the derivative is. So the definition of a derivative is that it's the limit as delta X goes to zero of delta F over delta X. That's one way of writing it. All right? And this is the way we defined it. And one of the things that we did in the first unit was we looked at this backwards.
We used the derivative, knowing the derivatives of functions to evaluate some limits. So you were supposed to do that on your uh hour test. There were some examples there, at least one example, where that was the easiest way to do the problem. So in other words, you can read this equation both ways. This is really, of course, the same equation written twice. Now, what's new about what we're going to do now is that we're going to take this expression here, delta F over delta X, and we're going to say, "Well, when delta X is fairly near zero, this expression is going to be fairly close to the limiting value.
So this is approximately F prime of X zero." All right? So that, I claim, is the same as what's in the box in pink that I have over here. All right? So this equa- this approximation formula here is the same as this one. This is an average rate of change, and this is an infinitesimal rate of change, and they're nearly the same. That's the claim. So you'll have various exercises in which this approximation is the useful one to to use, and I will as I said, I'll be illustrating this a little bit today. Now, let me just explain why those two formulas in the boxes are the same. All right? So let's just start over here and explain that.
So the the smaller box is the same thing if I multiply through by delta X as delta F is approximately F prime of X zero delta X. All right? And now if I just write out what this is, it's F of X uh right? Uh minus F of X zero. I'm going to write it this way, which is approximately F prime of X zero. And this is X minus X zero. So, here I'm using the notations delta X is X minus X zero. And so, this is the change in F. This is just rewriting what delta X is. And now, the only the last step is just to put the constant on the other side. So, F of X is approximately F of X zero plus F prime of X zero X minus X zero.
So, this is this this is exactly what I had in the just to begin with. All right? So, these two are just algebraically the same statement. This one one other way of looking at it. All right. So, now I want to I want to go through some systematic discussion here of several linear approximations, which you're going to be wanting to memorize. And rather than it's being hard to memorize these, it's supposed to remind you. So, you have a lot of extra reinforcement in remembering derivatives of all kinds. So, when we when we carry out these systematic discussions, it's we want to make things absolutely as simple as possible.
And so, one of the things that we do is we always use the base point to be x zero. So, I'm always going to have x zero is equal to zero in these uh standard list of formulas that I'm going to uh going to use. And if I put x zero equals zero, then this formula becomes f of x a little bit simpler to read. It becomes f of x is f of zero plus f prime of zero times x. All right? So, this is probably the form that you'll want to remember most. That's again just a linear approximation, but one always has to remember, and this is a a a a a very important thing, it this one only worked near x is one. This approximation here really only works when x is near x zero.
All right? So, that's a little addition that you need to throw in. So, this one works when x is near zero. Right? You can't expect it to be true far away. The curve can go anywhere it wants when it's far away from the point of tangency. So, okay. So, let's work this out. Let's do it for the sine function, for the cosine function, and for e to the x to begin with. Yeah, question. Yeah, when does this one work? Well, so this The question was when does this one work? Again, this is when x is approximately x zero. Cuz it's actually the same as this one over here. Okay? And indeed, that's what's going on when we when we take this this limiting value.
Delta x going to zero is the same. Delta x small. So, another way of saying it is that delta x is All right? Now, exactly what we mean by small will also be explaining. But, uh it it is a matter of to some extent of intuition as to how much how good it is. In In practical cases, people will really care about how small it is before the approximation is useful. And that's a serious issue. All right. So, let me carry out these approximations for X. Again, this is always for X near zero. All right? So, all of these are going to be for X near zero. So, in order to make this computation, I have to evaluate the function.
It's Right, I need to plug in two numbers here. In order to get this expression. I need to know what f of zero is, and I need to know what f prime of zero is. If this is the function f of X, then I'm going to make a little table over to the right here with f prime, and then I'm going to evaluate f of zero, and then I'm going to evaluate f prime of zero, and then read off what the answers are. All right. So, first of all, if the function is sine X, the derivative is cosine X. The value of f at zero, that's sine of zero, is zero. The derivative is cosine. Cosine of zero is one. So, there we go. So, now we have the uh coefficients zero and one.
So, this number is zero, and this number is one. So, what we get here is zero plus one times X. So, this is approximately X. All right. There's the linear approximation to sine X. Similarly, so now this is a routine matter to just read this off of this table. We'll do it for the cosine function. If you differentiate the cosine, what you get is negative sine x. All right? The value at zero is one. So, that's cosine of zero at one. The value of the minus sine at zero is zero. So, this is going back over here, one plus zero times x. So, this is approximately one. This linear function happens to be constant.
And finally, if I do e to the x, its derivative is again e to the x. And its value at zero is one. The value of the derivative at zero is also one. So, both of the terms here, f of zero and f prime of zero, they're both one, and we get one plus x. All right. So, these are the linear approximations. You can memorize these. You'll probably remember them either this way or that way. This collection of information here encodes the same collection of information as we have over here for the values of the function and the values of their derivatives at zero. So, let me just emphasize again the geometric point of view by drawing pictures of these results.
So, first of all, for the sine function, here's the Whoop. Here's the sine. Well, close enough. Okay? So, that's Boy, now that is quite some sine, isn't it? I don't know. Let's try to make the two bumps be the same height, roughly speaking. All right? Anyway, the tangent line we're talking about is here. And this is y equals x. And this is the function sine x. And near zero, those things coincide pretty closely. The cosine function, I'll put that underneath, I guess. I think I can fit it. Make it a little smaller here. All right. So, for the cosine function, we're up here. It's y = 1. Well, no wonder the tangent line is constant.
It's horizontal. All right. The tangent line is horizontal, so the the function corresponding is is is constant. So, this is y = cosine x. All right. And finally, if I draw y = e to the x, that's coming down like this. And the tangent line is here. And it's y = 1 + x. The value is 1, and the slope is 1. All right. So, this is how to remember it graphically, if you like. This analytic picture is extremely important and will help you to deal with sines, cosines, and exponentials. Yeah, question. What do you normally use linear approximations for? The question is, what do you normally use linear approximations for?
Good question. We're getting there. First, we're getting a little library of them, and I'll give you a few examples. Okay. So, now I need to to finish the catalog with two more examples, which are just a little bit slightly more challenging and a little bit less obvious. So, the next couple that we're going to do are um log of 1 + x and 1 + x to the power r. Okay, these are the last two that we're going to write down and that you need to uh think about. Now, the procedure is the same as over here. Namely, I have to write down f prime and I have to write down f of 0 and I have to write down f prime of 0 and then I'll have the coefficients to be able to fill in what the uh approximation is.
So, f prime is 1 over 1 + x in the case of the logarithm and f of 0 if I plug in, that's that's log of 1, which is 0. And f prime, if I plug in 0 here, I get 1. And similarly, if I do it for this one, I get r 1 + x to the r - 1. And when I plug in f of 0, I get 1 to the r, which is 1. And here, I get r * 1 to the r - 1, which is r. All right? So, so the corresponding statement here is that log 1 + x is approximately x. And 1 + x to the r is approximately 1 + rx. All right? That's 0 + 1 * x and here we have 1 + r * x. And now, I I do want to make a connection explain to you what's going on here uh in the connection with the first example.
We already did the logarithm once. Let's just point out that these are two computations are the same or practically the same. Um here I use the base point one. But because of my sort of convenient form, which will end up I claim being much more convenient for pretty much every purpose, we want to do these things near x is approximately zero. All right? You cannot expand a logarithm and and understand a tangent line for it at x equals zero because it goes down to minus infinity. Similarly, if you try to graph a 1 + x to the r or x to the r without the one here, you'll discover that sometimes the slope is infinite and so forth.
So, this is a bad choice of point. One is a much better choice of of a place to expand around and then we shift things so that it looks like it's x equals zero by shifting by the one. So, the connection with um with the previous example is that the what we wrote before I could write as the logarithm of u is u minus one. Right? That's just recopying what I have over here except with the letter u rather than the letter x. And then I plug in um uh u is equal to uh 1 + x. And then that, if I copy it down, you see that I have an u in place of 1 + x, that's the same as this. And if I write out u minus one, if I subtract one from u, that means that it's x.
So, that's what's on the right-hand side there. So, these are the same computation. I've just uh changed the the variable. All right. So, now I I I I want to try to address the the question that was that was asked uh about how this is used and and and what the importance is. And uh what I'm going to do is is just give you one example here and then try to emphasize uh the first way in which this is a useful idea. So, so, or maybe this is the second example, if you like. So, we'll call this example two, maybe, since we already have. So, let's just take the logarithm of 1.1. Just a second. Let's take the logarithm of 1.1.
So, I claim that according to our rules, I can glance at this and I can immediately see that that it's approximately a tenth. So, what did I use here? I used that the log of 1 + X is approximately X, and the value of X that I used was a tenth. All right? So, that is the formula. So, let me I should put a box around these two formulas, too. That's this formula here, applied with X equals a tenth. I'm claiming that a tenth is a is a sufficiently small number, sufficiently close to zero that this is an okay statement. All right? Now, I want to So, the first question that I want to ask you is which do you think is a more complicated thing, the left-hand side or the right-hand side?
I claim that this is a more complicated thing. You'd have to go to a calculator to to punch out and figure out what this thing is. This is easy. You know what a tenth is. All right? So, the distinction that I want to make is that this half this part, well, I'm sorry, this is hard, and this is easy. All right? Now, that may look contradictory, but I want to just do it right above as well. This is hard, and this is easy. Okay? This looks uglier, but actually this is the hard one, and this is giving us information about it. Now, let me show you why that's true. Look down this column here. These are the hard ones, hard functions.
These are the easy functions. What's easier than this? Nothing. Okay, well, yeah, zero, that's easier, but Okay, over here it gets even worse. These are the hard functions and these are the easy ones. All right? So, that's the main advantage of linear approximation is you get something much simpler to deal with. And if you've made a valid approximation, you can make much progress on problems. Okay, we'll we'll be doing some more examples, but I saw some more questions before I made that point. Yeah. Is that ln 1.1 or ln 1? Is this ln of 1.1 or what? ln 1.1 Uh, this is this is a paren there. It's ln of 1.1.
It's the it's the digital number, right? I guess I've never used that before a decimal point, have I? I don't know. Okay. Uh, other questions? Okay. So, let let let's continue here. Let Let me give you some more examples where uh it becomes even uh more vivid, if you like, that this approximation is is giving us something a little simpler to deal with. So, here's example three. I want to uh find the uh linear approximation near x = 0. I also when I when I write this expression near x = 0, that's the same thing as this. That's the same thing as saying X is approximately zero. All right? of the function e to the minus 3x divided by square root 1 plus x.
All right? So, here's a function. Okay. Now, what I claim I want to use for the purposes of this approximation are just the sum of the approximation formulas that we've already derived. All right? And just to combine them algebraically. So, I'm not going to do any calculus. I'm just going to remember. So, with e to the minus 3x, it's pretty clear that I should be using this formula for e to the x. For the other one, it may be slightly less obvious, but we have uh powers of 1 plus x over here. All right? So, let's plug those in. I'll put this up so that you can remember it. And we're going to carry out this approximation.
So, first of all, I'm going to write this so that it's slightly more suggestive. Namely, I'm going to write it as a product. And there you can now see the exponent uh in this case, r equals a half a minus a half that we're going to use. Okay? So, now I have e to the minus 3x 1 plus x to the minus a half, and that's going to be approximately Well, I'm going to use this formula. I have to use it correctly. Uh x is replaced by minus 3x, so this is 1 minus 3x. And then over here, I can just copy verbatim the other approximation formula with r equals minus a half. So, this is times 1 minus a half x.
All right? And now, I'm going to carry out the multiplication. So, this is 1 minus 3x minus a half x plus 3 halves x squared. Hm. Okay. So, now Here's Here's our formula. So, now this isn't where things stop. And indeed, in this kind of arithmetic that I'm describing now, things are actual easier than they are in ordinary algebra and arithmetic. The reason is that there's another step which I'm now going to perform, which is that I'm going to throw away this term here. All right? I'm going to ignore it. In fact, I didn't even have to work it out because I'm going to throw it away. So, the reason is that already when I passed from this expression to this one, that is from this type of thing to this thing, I was already throwing away quadratic and higher order terms.
So, this isn't the only quadratic term. There are tons of them. I have to ignore all of them if I'm going to ignore some of them. In fact, I only want to be left with the linear stuff. Because that's all I'm really getting a valid computation for. So, this is approximately 1 minus So, let's see. It's a total of 7 halves x. All right? And this is the the the answer. This is the linear part. So, the x squared term is negligible. So, we drop x squared term terms and higher. All those terms should be lower order. If you imagine F is a 10th or maybe a 100th, then these terms will end up being much smaller.
All right, so we we have a rather crude approach and that's really the simplicity and that's the savings. Okay. So now since this unit is called applications and these are indeed applications to math, I also wanted to give you a um a real-life application or a place where linear approximations come up in real life. So maybe we'll call this example four. This is supposedly a real-life example. I'll try to persuade you that it is. Um so so I like this example because it's got a lot of math as well as physics in it. So here I am on the surface of the Earth and here is is a satellite going this way at some velocity V.
Okay? And this satellite has a clock on it because this is a GPS satellite and it has a has a time T. Okay? But I have a watch. In fact, it's right here. And I have a time which I keep which is T prime. And there's an interesting relationship between T and T prime which is called time dilation. And this is uh from special relativity. And it's the following formula. T prime is equal to T divided by the square root of 1 minus V squared over C squared. Where V is the velocity of the satellite and C is the speed of light. Okay? So, now I'd like to get a rough idea of how different my watch is from the clock on the satellite.
All right? So, I'm going to use this same approximation. We've already used it once. I'm going to write T, but but now let me just remind you the situation here is we have something of the form 1 minus U to the minus 1/2. All right? That's the That's what's happening when I multiply through here. So, with U equal to V squared over C squared. All right? So, so in real life, of course, the expression that you're going to use the linear approximation on isn't necessarily itself linear. It can be any physical quantity. So, in this case it's V squared over C squared. And now the approximation formula says that this is approximately equal to Well, again, it's the same rule.
There's an R and then X is minus U, so this is minus minus 1/2, so it's it's uh 1 plus 1/2 uh U. All right? So, this is approximately by the same rule, this is T T prime is approximately T times 1 plus 1/2 V squared over C squared. Now, I promised you that this would be a real-life problem. So, the question is when when people were designing these GPS systems, they they run clocks on the satellites. You're you're down there, you're making your measurements. You're you're talking to the to the satellite by by or you're receiving its signals from its radio. The question is, is this going to cause problems in the in the um transmission?
And there are there are dozens of such problems that you have to check for. So, in this case, what actually happens is that V is about 4 km per second. That's how fast the GPS satellites actually go. In fact, they had to decide to put them at a certain altitude, and they could have tweaked this if they'd put them at different places. Um anyway, the speed of light is 3 * 10 to the fifth kilometers per second. All right? So, this number V squared over C squared is approximately 10 to the minus 10th. All right? Now, if you actually keep track of how much of an error that would make in a GPS location, what you would find is maybe it's a millimeter or something like that.
So, in fact, it it doesn't matter. So, that's that's nice. But in fact, the engineers who were designing these systems actually did use this very computation, exactly this. And the way that they used it was they decided that because the clocks were different, when the uh satellite broadcasts its radio frequency, that frequency would be shifted, would be offset. And they decided that the fidelity was so important that they would send the satellites off with this kind of exactly this offset to compensate for the way the signal is. So, from the point of view of good reception on your little GPS device, they changed the frequency at which the uh transmitter in the satellites according to exactly this rule.
And incidentally, the reason why they didn't they ignored higher order terms, the sort of quadratic terms, is that if you if you take u squared, that's a size 10 to the minus 20th. And that really is totally negligible. That doesn't matter to any measurement at all. That's on the measure on the order of nanometers, and it's it's not important for any of the uh uses to which GPS is put. Okay, so that's a real example of uh of a use of um linear approximations. All right, so uh let's take a little pause here. I'm going to now uh switch gears and talk about quadratic approximations. But before I do that, let's have some more questions.
Yeah. Okay. So, the question was asked, suppose I did this by a different method, all right? Suppose I applied the original formula here. Namely, I defined the function f of x, which was this function here. All right? And then I plugged in its value at x equals zero, and the value of its derivative at x equals zero. So, the answer is yes, it's also true that if I call this function f of x, then it must be true that the linear approximation is f of x zero plus f prime of I'm sorry, it's it's at zero. So, it's f of x zero f prime of x zero times x, right? So, that should be true. That's the That's the formula that we're we're using it's up there in the in the pink also, all right?
So, this is the formula. So, now what about f of zero? Well, if I plug in zero here, I get 1 * 1. So, this thing is 1. So, that's no surprise, and that's what I got. All right? If I computed f prime by the product rule, it would be an annoying, somewhat long computation, and because of what we've just done, we know what it has to be. It has to be -7/2. Because this is a shortcut for doing it. This is faster than doing that. But, of course, that's a legal way of doing it. When you get to second derivatives, you'll quickly discover that this method that I've just described is is complicated, but far superior to differentiating this expression twice.
Uh would you have to throw away an x squared term if you differentiated? No. And in fact, we didn't really have to do that here. If you differentiate and then plug in x equals zero. So, if you differentiate this and you plug in x equals zero, you get -7/2. You differentiate this and you plug in x equals zero, this term still drops out because it's just a a 3x when you differentiate, and then you plug in x equals zero, it's gone, too. And similarly, if you're up here, it goes away, and similarly over here, it goes away. So, the higher order terms never influence the the this this computation here.
This just captures the linear features of the of the function. All right. So, now I want to go on to quadratic approximation and we're now we're going to elaborate on this formula. So, uh linear approximation, huh? Well, that should have been linear approximation. Liner, that's interesting. Okay, so that that that was wrong. But, now we're going to change it to quadratic. So, suppose we we talk about a quadratic approximation here. Now, the quadratic approximation is going to be just an elaboration one more step of detail uh from the linear. In other words, it's an extension of the linear approximation.
And so, we're adding one more term here. And the extra term turns out to be related to the second derivative, but there's a factor of two. All right. So, this is the formula for the quadratic approximation. And this chunk of it, of course, is the linear part. This time I'll spell linear correctly. All right. So, the linear part is the first piece and the quadratic part is the second piece. Now, I want to develop the same catalog of uh of of functions as I as I had before. In other words, I want to extend our formulas to uh to the uh higher order terms. And if you do that for the this example here, maybe I'll even illustrate with this example before I go on.
If you do it with this example here, just to give you a flavor for what goes on. What turns out to be the case, so this is the linear version. And now I'm going to compare it to the quadratic version. So, the quadratic version turns out to be this. That's what turns out to be the, uh, quadratic approximation. And when I uh, use this example here, so this is 1.1, which is the same as log of 1 plus a tenth, right? So, that's approximately a tenth minus a half 1/10 squared. Right? So, 1/200. So, that turns out instead of being, um, a tenth, that's point uh, what is it? Uh, 0.095 or something like that.
It's a little bit less. All right? It's not 0.1, but it's pretty close. Okay? So, the if you like, the correction is in the is in lower in the in the decimal expansion. All right. So, now let me let me actually check a few of these. I'll carry them out. And what I'm going to probably save for next time is explaining to you So, this is why this factor of a half. And we're going to do this later. Do this do this next time. You can certainly uh, do well to stick with uh this presentation for one more lecture, so we can see this reinforced. All right? So So now I'm going to uh work out these derivatives of the higher-order terms.
And let me do it for the uh X approximately zero case. So So first of all, I want to add in the extra term here. All right? Here's the extra term for the quadratic part. And now, in order to figure out what's going on, I'm going to need to compute also second derivatives. So here I need a second derivative, and I need to throw in the value of that second derivative at zero. All right? So this is what I'm going to need to compute. So if I do it, for example, for the sine function, I already have the linear part. I need this last bit. So I differentiate the sine function twice, and I get, I claim, minus the sine function.
The first derivative is the cosine, and the cosine derivative is the minus the sine. And when I evaluate it at zero, I get, lo and behold, zero. Sine of zero is zero. So actually, the quadratic approximation is the same. It's zero times X squared. There's no X squared term here. So that's why this is such a terrific uh uh approximation. It's also the quadratic approximation. For the cosine function, if you differentiate twice, you get The derivative is this minus the sine, and the derivative of that is minus the cosine. All right? So that's f double prime. And now, if I evaluate that at zero, I get -1.
And so, the term that I have to plug in here, this -1 is the coefficient that appears right here. So, I need a -1/2 x squared extra. All right? And if you do it for the e to the x, you get an e to the x, and you get a one, and so you get a plus a half x squared here. All right? Now, I'm going to finish uh these two in just a second, but I first want to tell you about the geometric significance of this quadratic term. So, here we go. Um geometric significance of the quadratic term. So, the geometric significance is is is best to describe just by drawing a picture here. And I'm going to draw the picture of the cosine function.
And remember, we already had the tangent line. So, the tangent line was this horizontal here. All right? And that was y = 1. But, you can see intuitively, that doesn't even tell you whether this function is above or below one there. Doesn't tell you much. It's sort of begging for there to be a little more information to tell us what the function is doing nearby. And indeed, that's what this second expression does for us. It's some kind of parabola underneath here. So, this is y = 1 - 1/2 X squared. Which is a much better fit to the curve than the horizontal line. All right? And this is if you like this is the best fit parabola.
So, it's going to be the closest parabola to the um to the to the curve. And that's more or less the significance. Uh it's much much closer. All right. I want to uh give you Well, so I I I think we'll save these other derivations for next time because I think we're out of time now. So, we'll do these next time.