Transcript
Use with ChatGPT / Claude Auto-scroll A
The following content is provided under a Creative Common 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.mmit.edu.
Last time we left off with a question having to do with playing with blocks.And this is supposed to get give us a visceral feel for for something anyway having to do with series.And the question was whether I could stack these blocks build a stack so that I'm going to try it here up.I'm already off balance here.See the question is can I build this so that the um let's draw a picture of it so that the uh first block is like this.The next block is like this.And maybe the next block is like this.And notice there's no visible means of support for this block.It's completely to the left of the first block.And the question is uh will this fall down or at least
or more precisely eventually we'll ask you know how far can we go?Now before you answer this question um the claim is that that this is a kind of a natural physical question which involves some important answer no matter whether the answer is you can do it or you can't.So this is the good kind of math question where no matter what the answer is if when you figure out the answer you're going to get something interesting out of it because there are two possibilities.Either there's a limit to how far to the left we can go in which case that's a very interesting number or else there is no limit you can go arbitrarily far and that's also interesting and curious and that'sthe difference between convergence and divergence the the thing that we were talking about up to now concerning series so my first question is do you think that I can get it uh get it so that this thing doesn't
fall down with with well, you see, I have about eight blocks here or so.So, you you can vote now.How many in favor that I can that I can succeed in doing this sort of thing with maybe more than three blocks.How many in favor?All right, somebody's voting twice there.That's good.I like that.Um, how about how about opposed?Uh, so I I that was really close to a tie.All right.Uh, but I think that there was slightly more opposed.I don't know.You guys who were in the back maybe could tell.Anyway, it was it was pretty close.All right.So, now I'm going because this is a real life thing.I'm going to try to do it.All right.All right.So, now I'm going to tell you what the trick is.The trick is to do it backwards.
When most people are playing with blocks, they decide to build it from the bottom up, right?But we're going to build it from the top down.From the top down.And that's going to make it possible for us to do the optimal thing at each stage.So when I build it from the top down, the best I can do is well, it'll fall off.I I need to have it less, you know, halfway across.That's the best I can do.So the top one I'm going to build like that.I'm going to take it as far to the left as I can.And then I'm gonna put the next one down as far to the left as I can.And then the next one as far to the left as I can.Oh, that was a little too far.And then I'm going to do the next one as far to the left as I can.
And then I'm going to do the next one.Well, let's line it up first.As far to the left as I can.All right.And then the next one as far to the left as I can.All right.Now, those of you who are in this line can see.All right, I succeeded.All right, this is that's over the edge.All right, so it can be done.All right.All right.So now we know that we can get farther than you know we can we can we can make it overflow.So the question now is how far can I get?Okay.Do you think I can get to here?Can I Can I get to the end over here?So, how many how many people think I can get this this far over to here?How many people think I can get this far?Well, you know, remember I'm going to have to use more than just this one more block that I've got.
I don't Right.Obviously, I'm thinking actually I do have some more blocks at home, but okay, we're not going to.But anyway, you think I can get over to here?How many people say yes?And how many people say no?More people said no than yes.All right.So maybe the the stopping place is some mysterious number in between here.All right.Well, okay.So now now we're going to do the arithmetic and we're going to figure out what happens with this with this problem in in Okay.Let's let's do it.All right.So now again the idea is the idea is we're going to start with the top
the top block.We'll call that block number one.
And then the farthest if you like to the right that you can put a block underneath it is exactly halfway.All right.Well, that's the best job I can do.Now, in order to make my units work out easily, I'm going to decide to call the length of the block two.All right?And that means if I start at location zero, then the first place where I am is supposed to be halfway and that will be one.Okay.So, so the first step in the process is one more to the right or if you like if I were building up, which is what you would actually have to do in real life, it would be one tothe left.Okay.Now, the next one, now here's the the the the way that you start figuring out the arithmetic.The next one is is based on a physical principle which is that I the farthest I can stick this next block underneath is at what's called the center of mass of these two which is exactly halfway here.
That is there's a quarter of this guy and a quarter of that guy balancing each other.All right.So that's as far as I can go.If I go farther than that it'll fall over.So that's the absolute farthest I can do.So the next block is going to be over here.And a quarter of two is a half.So this is three halves here.All right.So we went to one, we went to three halves here.And then I'm going to keep on going with this eventually.All right.So we're going to figure out what happens with this with this stack.Question.How do you know that this is the best way to optimize your The question is how do I know that this is the best way to optimize?Um I'm I can't answer that question, but I can tell you that it's the best way if I start with the top like this and the next one like this, right?
Because I'm doing the farthest possible at each stage.That actually has a name in in computer science that's called the greedy algorithm.I'm trying to do the best possible at each stage.The greedy algorithm starting from the bottom is an extremely bad strategy because when you do that you stack it this way and it almost falls over and then the next time you can't do anything.So the greedy algorithm is terrible from the bottom but it turn this is the greedy algorithm starting from the top and it turns out to do much better than the greedy algorithm starting from the bottom.But of course I'm not addressing whether there might not be some other incredibly clever strategy where I wiggle around and make it go up.That's I'm I'm not an addressing that question.All right.It turns out this is the best you could do, but that's not not clear.
All right.So now here here we have this thing and now I have to figure out what the arithmetic pattern is so that I can figure out what I was doing with those shapes.
So let's let's uh uh figure out the the a thought experiment here.All right.Now, the thought experiment I want to imagine to you for you is you've got a stack of a bunch of blocks.And this is the first n blocks.
All right.And now we're going to put one underneath it.And what we're going to figure out is the center of mass of those n blocks, which I'm going to call C subn.Okay.And that's the place where I'm going to put this very next block.I'll put it in a different color here.Here's the new the next block over.And the next block over is the n plus first block.
And now I want you to think about what's going on here.If the center of mass of the first n blocks is this number, this new one, it's of length two and its center of mass is one further to the right than the center of mass that we had before.So in other words, I've added to this configuration of n blocks one more block which is shifted whose center of mass is not lined up with the center of mass of this but actually over farther to the tothe right.Right?So the new center of mass of this new block or this is the extra piece of information that I want to observe is that this thing has a center of mass at CN + 1.It's one unit over because this total length is two.So right in the middle there is one over according to my units.
All right.Now, this is going to make it possible for me to figure out what the new center of mass is.So, CN + one is the center of mass
of n +1 blocks.Now, this is really only in the horizontal variable, right?I'm not I'm not keeping track of the center of mass.Actually, this thing is hard to build because the center of mass is also rising.It's getting higher and higher, but I'm only keeping track of its left right characteristic.So this is the xcoordinate of it.
All right.So now here's the idea.I'm combining the white ones, the n blocks, with the pink one, which is the one on the bottom.And there are n of the white ones, and there's one of the pink one.And so in order to get the center of mass of the hole, I have to take the weighted average of the two.That's n * cn plus 1 times the uh center of mass of the pink one, which is cn + one.And then I have to divide if it's weighted average is a total of n plus1 blocks by n +1.Now this is going to give me the new center of mass of my configuration at the n plus1 first stage.And now I can just do the arithmetic and figure out what this is.And the two CN combine I get n +1 * cn + 1 / n +1.
And if I combine these two things and do the cancellation, that gives me this recurrence formula.CN + one is equal to CN plus there's a little extra.These two cancel.That gives me the CN.But then I also have 1 over 1 uh n + one.
That's how much gain I can get in the center of mass by adding one more block.That's how much I can shift things over uh depending on how we're thinking of things to the to the left or the right depending on which direction we're building them.
All right.So now I'm going to work out the formulas.First of all, C1 that was the center of the first block.I put its left end at zero.The center of the first block is at one.That means that C1 is one.Okay.C2 according to this formula and actually I worked it out.We'll check it in a second.C2 is C1 + 1 /2, right?That's the case N= 1.So this is 1 plus a half.That's what we already did.That's the three halves number.And now the next one is C2 + a3.That's the formula again.And so that comes out to be 1 + a half plus a third.And now you can see what the pattern is.CN, if you just keep on going here, CN is going to be 1 + a half plus a third plus a 4th plus 1 / n.
So now I would like you to vote again.Do you think I can now that we have the formula, do you think I can get over to here?How many people think I can get over to here?How many people think I can't get over to here?Oh, there's still a lot of people who do.So it's still almost 50/50.That's that's amazing.Well, so we'll address that in a in a in a few minutes.So now let me tell you what's going on.This CN of course is the same as what we called last time Sn.And remember that we actually estimated the size of this guy.This is related to what's called the harmonic series.And what we showed was that log n is less than sn which is less than s n + one.All right.Now I'm going to call your attention to the red part which is the divergence part of this estimate which is this one for the time being.
All right, which is saying that this thing is growing.And what this is saying is that as n goes to infinity,
log n goes to infinity.So that means that um sn goes to infinity
because of this inequality here.It's bigger than log n.And so if n is big enough, we can get as far as we like.All right.So I can get to here.And at least half of you, at least the ones who voted.That was I don't know.We have a quorum here, but I'm not sure.We certainly didn't have a majority on either side.Anyway, this thing does go to infinity.So in principle, if I had enough blocks, I could get it over to get it over to here.All right.And that's the meaning of divergence in this case.
On the other hand, I want to discuss with you and the reason why I use this example is I want to discuss with you also what's going on with this other inequality here and what its significance is whichis that it's going to take us a lot of numbers n a lot of blocks to get up to a certain level.In other words, I can't do it with just eight blocks or nine blocks.In order to get over here, I'd have to use quite a few of them.So, let's just see how many it is.So, I I worked this out carefully and let's see what I got.So to get across the lab tables.
All right.Um this this distance here I I already did this secretly.Uh but I I don't actually even have enough of these to show you, but well 1 2 3 4 5 6 and a half.I guess that's enough.So it's six and a half.So it's it's two lab tables is 13 of these blocks.All right.So there are 13 blocks
which is equal to 26 units.Okay.That's how far to get across I need.And uh the first one is already two.So it's really 26 minus 2 which is 24 which is that's what I need.Okay.So I need log n to be equal to 24
roughly speaking in order to get that far.So let's just see how how how big that is.All right, I think I worked this out.
So let's see that means that n is equal to e to the 24th.And if you if you realize that these blocks are 3 cm high.Okay, let's see how many how many that we would need here.That's kind of a lot.Let's see.It's 3 cm time um e 24th which is about 8 * 10 the 8 m.Okay.And that is twice the distance to the moon.
All right.So, um, so, okay, I could do it maybe, but, uh, I would need a lot of blocks, right?It's not not very plausible here.All right, so those of you who voted against this were actually sort of half right.And in fact, if you wanted to get it to the wall over there, which is over 30 pe feet, the height would be about the um diameter of the observable universe.That's kind of kind of a long way.Um there there's there's one other thing that that that I wanted to to point out to you about this shape here, which is that if you if you lean to the left, right, if you if you put yourhead like this, of course, you have to be on your side to look at it.This this curve um is is the um is the shape of a of a of a logarithmic curve.
So in other words, if you think of this, the the vertical is the x- axis and the the the horizontal that way is the vertical is the up direction.Then this thing is growing very very very very slowly.If you send the x-axis all the way up to the moon, you're still the graph still hasn't gotten across the lab tables here.It's only partway there.If you go twice the distance to the moon up that way, it's gotten finally to that end.All right.So that's how slowly the logarithm grows.It grows very very slowly.And if you look at it another way, if you stand on your head, you can see a uh an exponential curve and see so you get some sense as to the growth properties of these functions.And fortunately, these are protecting us from uh from all kinds of stuff that would happen if there weren't exponentially small tails in the world.
like you know I could walk through this wall which I wouldn't like doing.Um okay now so this is our last example and and the important number we for unfortunately we didn't discover another important number there wasn't an amazing number place where this stopped all we discovered again is is some propertyof infinity so infinity is still a nice number and the theme here is just that infinity isn't just one thing it's a has a character which is a rate of growth and you shouldn't just think of there beingone order of infinity.There are lots of different orders and some of them have different meaning from others.All right, so that's the the theme I wanted to to do and just have an a visceral example of infinity.Now, we're going to move on now to some other kinds of uh techniques and this is going to be our last subject.
What we're going to talk about is what are known as power series.Now, we've already seen our first power series,and I'm going to remind you of that.
So, here we are with power series.Our
first series was was this one.
And we mentioned last time that it was equal to 1 over 1 - x for x less than one.
This one is known as the geometric series.I didn't use the letter x last time.I used the letter a.But this is known as a geometric series.
Now I'm going to show you one reason why this is true, why the formula holds, and it's just the kind of manipulation that uh was done when these things were first introduced.Uh and here's the the idea of a of a proof.So suppose
that this sum is equal to some number s which is the sum of all of the these numbers here.The first thing that I'm going to do is I'm going to multiply by x.Okay.So if I multiply by x, let's think about that.I multiply by x on both the left and the right hand side.Then on the left side I get x + x^2 + x cubed plus and so forth.And on the right side I get s * x.
And now I'm going to subtract the two equations one from the other.And there's a very very substantial cancellation.This whole tail here gets canceled off.And the only thing that's left is the one.So when I subtract I get one on the left hand side and on the right hand side I get s time uh minus s * x.All right.
And now uh that can be rewritten as s * 1 - x.And so I've got my my formula here.This is 1 over 1 - x is equal to s.Right.
Now, this reasoning is has one flaw.It's not complete.And the this reasoning is is is basically correct but it's incompleteuh because it requires
that s exists
for example it doesn't make any sense in the case x= 1.So for example in the case s x x= 1 we have 1 + 1 + 1 + etc equals whatever we call s and then when we multiply through by 1 we get 1 + 1 + 1 += s * 1.And now you see that the subtraction gives us infinity minus infinity is equal to infinity minus infinity.That's what's really going on in the argument in this in this context.So it's just nonsense.I mean it doesn't give us anything meaningful.So the the this argument it's great and it gives us the right answer but not always and the times when it gives us the answer the correct answer is when the series is convergent and that's why we careabout convergence because we want manipulations like this to be allowed.
So the good case, this is the red case that we were describing last time and it's the bad case.But what we want is the good case, the convergent case.And that is the case when x is less than one.So this is the convergent case
now.Okay.So there are there are much more detailed things to check exactly what's going on.But I'm going to just say general words about how you recognize convergence.And then we're not going to worry about so much about convergence because it works very very well and it's always easy to diagnose when there's convergence with a power series.All right.So here's the general setup.
The general setup is that we have not just the coefficients one all the time but any numbers heredot dot dot and we abbreviate that with this summation notation.This is the sum a n x to the n n n n n n n n n n n n n n n n n n n n n= 0 to infinity and that's what's known as a powerseries.
Fortunately, there's a very simple rule about how power series converge and it's the following.There's a magic number r which depends on these numbers here such that and this thing is known as a radius of convergence
in the problem that we had it's this number one here this thing works for x less than one in our case it's maybe x less than r so that's some symmetric interval right that's the same as minus rless than x less than are and uh this is the so where there's convergence okay where the series converges
converges and then there's the region where every computation that you give will give you nonsense.So x greater than r is the um sum a n x to the n diverges.Um and x= r is very delicate
borderline
and will not be used by us.
Okay, we're going to stick inside the radius of convergence.Now, the way you'll be able to recognize this is the following.What always happens is that these numbers tend to zero exponentially fast
fast for X in R anddoesn't even tend to zero at all for X greater than R.All right.So, so you'll just it'll be totally obvious when you look at this series here.What's happening when x less than r is that the numbers are getting smaller and smaller.I'm less than one.When x is bigger than one, the numbers are getting bigger and bigger.There's no chance that the series converges.So that's going to be the case with all power series.there's going to be a cutoff and it'll be one particular number and below that it'll be obvious that you have convergence and you'll be able to do computations and above that every formula will be wrong and won't makesense.So it's a very clean thing.There is this very subtle borderline but we're not going to discuss that in this in this class and it's actually not used uh uh in direct studies of power series.
How do you tell when it's when the numbers are declining exponentially fast versus it's just In other words, 1 /x you zero.The question is how could why why was I able to tell you this word here?Why was I able to tell you not only is it going to zero but it's going exponentially fast?I'm telling you extra information.I'm telling you it always goes exponentially fast.You can identify it.In other words, in other words, in other words, you'll see it and it will happen every single time.I'm just promising you that it works that way.And it's really for the same reason that it works that way here that these are powers.And what's going on over here is there are it's close to powers with these a right there's a long discussion of radius of convergence in many textbooks but really it's it's not necessary all right for this purpose.
Yeah.The question was how do you find r?Yes.So I just said there's a long discussion of how you find the radius of convergence in textbooks, but we will we will not be discussing that here and it won't be necessary for you because it will be obviousin any given series what what the r is.It will always be either one or infinity.It will always work for all x or maybe it'll stop at some point but it'll be very clear where it stops as it is for the for the geometric series.All right.Okay.So now I need to give you the the basic facts and give you a few examples.
So why are we looking at these series?
Uh the answer is we're looking at these series because the role that they play is exactly the reverse of this inequal of this equation here.That is and this is a theme which I've tried to emphasize throughout this course.You can read equalities in two directions.Both are interesting.Typically you can think I don't know what the value of this is.Here's a way of evaluating it.In other words, the left side the the right side is a formula for the left side.Or you can think of the left side as being a formula for the right side.
And the idea of series is that they're flexible enough to represent all of the functions that we've encountered in this course.Uh this is the tool which is very much like the decimal expansion which allows you to represent numbers like the square root of two.Now we're going to be representing all the numbers all the functions that we know e to the x arc tangent s cosine all of those functions become completely flexible and completely available to us and computationally available to usdirectly.So that's that's what this is a tool for and it's just like decimal expansions giving you a handle on all real numbers.
So here's how it works.the rules for um convergent power series
um are just like
polomials.
All of the manipulations that you do for power serieses are essentially the same as for polomials.So what kinds of things do we do with polomials?We add them.We multiply them together.We do substitutions, right?We take one function of another function.We divide them.
Okay.And these are all really not very surprising operations and we'll be able to do them with power series 2.The ones that are interesting really interesting for calculus are the last two.We differentiate them and we integrate them.
And all of these operations we'll be able to do for power series as well.
So now let's explain the high points of this which is mainly just the differentiation and the integration part.So if I take a series like this
and so forth, the formula for its derivative is just like polomials.That's what I just said.It's just like polinomials.So the derivative of the constant is zero.The derivative of this term is a1.This one is + 2 a2x.This one is 3 a3 x^2 + etc.That's the formula.Similarly, if I integrate,
well, there's an unknown constant which I'm going to put first rather than last, which corresponds sort of to the a z term which is going to get wiped out.That a zero term suddenly becomes a zox and the anti-derivative of this next term is a1x^2 over 2 and the next term is a2x cubed over 3 and so forth.Yeah.Question is that a series or a polomial?Is this a series or a polomial?Good question.It's a polomial if it ends.If it goes on infinitely far, then it's a series.They look practically the same.Polinomials and series.There's this little dot dot dot here.Is this a series or a polinomial?It's the same rule.If it stops at a finite stage, this one stops at a finite stage.If it goes on forever, it goes on forever.So, I thought that series add up finite numbers.
You can add up terms of x in the series.Uh so u an interesting question.So the the the question that was just asked is I thought that a series added up finite numbers.You could add up x.That was that was what you said, right?Okay.Now notice that I pulled that off on you by changing the letter a to the letter x at the very beginning of this commentary here.This is a series.For each individual value of x, it's a number.So in other words, if I plug in here x equals a half, I'm going to add one plus a half plus a/4 plus an eighth and I'll get a number which is two.And I'll plug in a number over here and I get a number.On the other hand, I can do this for each value of x.So the interpretation of this is that it's a function of x.
And similarly, this is a function of x.it works when you plug in the possible values of x between minus1 and one.So there's so there there's there's really no distinction there.It's just I slipped it past you.These are functions of x.And the notion of a power series is this idea that you put coefficients on a series, but then you allow yourself the flexibility to stick powers here.And that's exactly what we're what we're doing.Okay.There there are other kinds of series where you stick other interesting functions in here like ss and cosiness.There are lots of other series that people study and these are the simplest ones and all of those examples are extremely helpful for representing functions but we're only going to do this example here.All right.So here are the the the two rules.And now there's only one other complication here which I have to explain to you before giving you a bunch of examples to show you that this works extremely well.
And the last thing that I have to do for you is explain to you something called Taylor's formula.
Taylor's formula is the way you get from the representation that we're used to of functions to the representation in the form of these coefficients.When I gave you the function e to the x, it didn't look like a polomial.And we have to figure out which of these guys it is if it's going to fall into our category here.And here's the formula.I'll explain to you how it works in a second.So the formula is f ofx turns out there's a formula in terms of the derivatives of f.Namely, you differentiate n times and you evaluate it at zero and you divide by n factorial and multiply by x to the n.So here's the here's Taylor's formula.This tells you what the uh tailaylor series is.Now about half of our job for the next few minutes is going to be to give examples of this.
But let me just explain to you why this has to be.If you pick out this number here, this is the a n the magic number a n here.So let's just illustrate it.If f ofx happens to be a 0 + a1 x + a2 x^2 + a3 x cubed plus dot dot dot and now I differentiate it right I get a1 + 2 a2x + 3 a3 x^2 if Idifferentiate it another time I get 2 a2 + 3 sorry 3 * 2 a3 x + dot dot dot and now a third time I get 3 * 2 a3 plus etc.So this next term is really in disguise 4 * 3 * 2 x sorry uh a 4x that's what really comes down if I kept track of the fourth term there.So now here is my function.But now you see if I plug in xals 0 I can pick off the third term.
F triple prime of 0 is equal to 3 * 2 * a3.Right?Because all the rest of those terms when I plug in zero are just zero.Here's the the formula.And so the the the pattern here is this.And what's really going on here is this is really 3 * 2 * 1 a3.And in general,
a n is equal to f nth derivative / n factorial.And of course, n factorial, I remind you, is n * n -1 * n - 2 all the way down to one.
Now there's one more crazy convention which is always used which is that there's something very strange here down at zero which is that zero factorial turns out has to be set equal to one.All right.So that's that's what you do in order to make this formula work out and that's one of the reasons for this convention.
All right.So my my uh next goal is to is to give you some examples and let's do
let's do a couple.So here's well you know I'm gonna have to let you see a few of them next time.But let me just let me just tell you this one which is by far the most impressive.
So what happens with e to the x if the function is f ofx is e to the x is that its derivative is also e to the x and its second derivative is also e to the x andit just keeps on going that way.They're all the same.So that means that these numbers in Taylor's formula in the numerator the nth derivative is very easy to evaluate.It's just e to the x.And if I evaluate it at xals 0 I just get one.So all of those numerators are one.So the formula here is the sum n= 0 to infinity of 1 / n factorial x to the n.
In particular, we now have an honest formula for e to the first power which is just e, which if I plug it in x= 1, I get 1.This is the n=0 term plus one.This is the n= 1 term plus 1 over2 factorial plus 1 over 3 factorial plus 1 over 4 factorial.
All right.So this is our first honest formula for e and also this is how you you compute the exponential function.
Finally,
if you take a function like sinx, what you'll discover is that we can complete the sort of strange business that we did at the beginning of the course or cossinex
where we took the uh linear and quadratic approximations.Now, we're going to get complete formulas for these functions.Sin x turns out to be equal to x - x cub over 3 factorial + x 5 over 5 factorial - x 7th / 7 factorial etc.And cossine x is equal to 1 - x^2 over 2 factorial.That's the same as this 2 here plus x 4th over 4 factorial - x 6 / 6 factorial plus etc.Now these may feel like they're hard to memorize because I've just pulled them out of a hat.Uh, I do expect you to know them.They're actually extremely similar formulas.The exponential here just has this collection of factorials.The sign is all the odd powers with alternating signs and the cosine is all the even powers with alternating signs.So all three of them form part of the same family.
So this will actually make it easier for you to remember rather than harder.And and so with that, I'll leave the practice on differentiation for next time.And good luck everybody.I'll talk to you individually.