Transcript
Use with ChatGPT / Claude Auto-scroll A
the following content is provided under a Creative Commons license your support will help MIT open courseware continue to offer highquality educational resources for free to make a donation or to view additional materials from hundreds of MIT courses visitMIT open courseware at
ocw.mit.edu uh today we're going to uh hold off just a little bit on um boiling water and uh talk uh about another application of integrals and we'll get to the uh the witches cauldron in the middle the thingthat I'd like to start with today is average
value this is something that I mentioned a little bit earlier and there was a misprint on the board so I want to make sure that we have uh the definition straight and also the reasoning straight this is oneof the most important applications of integrals of the most important examples if you take the average of a bunch of numbers that looks like this and uh we can view this as sampling uh a function as we wouldwith a reman sum and what I said uh last week was that this tends to this expression here which is called the continuous average so this guy is the continuous
average or just the average of
F and I want to explain that uh just to make sure that we're all in the same page in general if you have a function and you want to inter the integral our first interpretation was that it's somethinglike the area under the
curve but average value is another reasonable interpretation namely if you uh take equally spaced points here starting with x0 X1 X2 all the way up to xn which is the left point B and then we have values y1which is f of X1 Y2 which is f of X2 all the way up to YN which is f of xn and again the spacing here that we're talking about is B minus a/ n all right so rememberthat spacing that's going to be the connection that we'll draw then the remon sum
is y1 through YN the sum of y1 through YN multiplied by Delta X and that's what tends as Delta X goes to zero to the
integral the only change in point of view if I want to write this limiting property which is right above here the only change between here and here is that I want to divide by the length of the intervalB minus a so I I will divide by B minus a here and divide by B minus a over here and then uh just check uh what this thing actually is uh Delta x / B minus a whatis that factor well if we look over here to what Delta X is it's uh if you divide by B minus a it's 1/n so the factor Delta x / B minus a is 1/ n that's what I put over here the sum of y1 through YN / n and as this tends to zero it's the same as uh n goingto Infinity those are the same things so the the average value and the integral are very closely related there's only this difference that we're dividing by the by the length of the interval I want to give an example
which is an incredibly simple-minded one but it will come into play later on so let's take the example of a constant and this is I hope will make you slightly less confused about what I just wrote uh aswell as making you think that this is as simple-minded and reasonable as it as it should be if I check what the average value of this constant is it's given by this relatively complicated formula here that is Ihave to integrate the function C well it's just the constant C and however you do this as an anti-derivative is thinking it as a rectangle the answer that you're going to get is C here so work that outthe answer is C and so the fact that the average of C is equal to C which had better be the case for averages explains the denominator explains the 1 over B minus a there that's cooked up exactly
so that the average of a constant is what it's supposed to be otherwise we have the wrong normalizing Factor we've clearly got a a piece of nonsense on our hands and incidentally it also explains the 1 / nin the previous in the very first Formula that I wrote down the reason why this is called the average or one reason why it's the right thing is that if you took the same constant C for y allthe way across there n times if you divide it by n you get back C that's what we mean by average value and that's why the N is
there all right so that was a an easy example now uh none of the examples that we are going to give are going to be that all that complicated but they will get sort of steadily more sophisticated thesecond example is going to be the average height
of uh um a point on a
semicircle and maybe I'll draw a picture of the semicircle first here and we'll just make it the one the standard Circle uh the unit circle so maybe I should called it a unit
semicircle this is the point1 this is the point1 and we're picking a point over here and we're going to uh take the typical or the average height uh here integrating with respect to DX so sort of continuously withrespect to DX well what is that well according to the rule it's 1 over B minus a * the sorry it's it's it's it's up here in the Box 1 over B minus a the integral from A toB F ofx DX that's 1 over + 1 - -1 the integral from -1 to 1 < TK of 1 - x^2 DX all right because the height is is y is equal to right this is y isequal to the < TK of 1 -
x^2 and to evaluate this is not as difficult as it seems this is a half times this quantity here which we can interpret as an area it's the area of the semicircle all right so this is the areaof the
semicircle which we know to be half the area of the circle so it's pi over 2 and so the answer here the average height is pi over 4
four now later in the class and actually not in this unit we'll actually be able to calculate the anti-derivative of this uh so in other words we'll be able to calculate this analytically for right now we just havethe geometric reason why it's why the value of this is pi over 2 and we'll do that uh in the in the fourth unit when we do a lot of techniques of integration all right so here's an exampleturns out the average height of this this is is pi over 4 now the next example that I want to give introduces a little bit of confusion and I'm not going to resolve this confusion completely uh but I'mgoing to try to get you used to it I'm going to take the average height
again um but now with respect
to to ArcLength which is usually denoted Theta now this brings up an extremely important feature of averages which is that you have to specify the variable with respect to which the average is taking place and the answer will be differentdepending on the variable so it's not going to be the same well can't spell the word length here just like the plural of witches last time well we'll work on that we'll fix all of our that's that's anancient uh Gaelic word I think Len or something okay uh all right so now so now let me show you that it's not quite the same here it's especially exaggerated if I maybe I shift this this little intervalDX over to the to the to the right hand end then you can see that the little portion that corresponds to it which is the D Theta piece has a different length from the DX piece and indeed as
you come down here these very short portions of DX length have much longer portions of theta length so that the the the average that we're taking when we do it with respect to Theta is going to emphasize thelow values more they're going to be more exaggerated and the average should be lower than than the average that we got here so we should expect a different number and it's not going to be pi over 4 it'sgoing to be something else whatever it is it should be smaller than Pi over4 now let's set up the the integral the integral follows the same rule it's just one over the length of the interval times the integralover the interval of the function it's the integral but now where does Theta range this time Theta goes from 0 to Pi so the integral is from 0 to Pi and the thing we divide by is is pi
and the integration requires us to know the formula for the height which is sin Theta in terms of theta of course it's the same Asun of 1 - x^2 but it's expressed in terms of theta so it's thisand here's our here's our average okay sorry put this this up
here so that's the the formula for the height all right so let's work it out this one we have the advantage of being able to work out because we know the anti-derivative of s Theta uh it happens withthis Factor Pi it's it's negative cosine Theta all right and so that's -1 over piun * cosine Pi sorry cosine Pius cosine 0 which is uh1 over piun * -2 which is 2 /Pi just a second and and sure enough if you check it you'll see that 2 over Pi is less than I over 4 because pi^ s is bigger than 8
Yeah questiondid uh the question is how did I get sin Theta and the answer is uh on this diagram if if Theta is over here then this height is this and this is the angle Theta then the height isthe sign
okay another question I'm so tiny bit confused to what that average means first of all and secondly what would you say that this example two is with respect to the aage X yeah the question is what is thefirst one the first one is average of height of a point on the semicircle and this one is with respect to X so what this reveals is that it's ambiguous to say what the average value of something isunless you've explained what the underlying average variable
is over what the then the next question is how should you interpret this uh this value that is what what came out of this calculation uh and the the answer is only sort of embedded in this calculation itselfif you if you so here's a way of thinking of it which is anticipating our next subject which is probability which is suppose you picked uh a number at random in this interval with equal likelihood one place andanother and then you saw what height was above that that would be the interpretation of this first average value and the second one is I picked something at random on this circle and equally likely any possible point onthis circle according to its length and then I and then I asked what the height of that point is and those are just different
things another
question cosine of pi shouldn't it be zero no cosine of uh it's negative 1 cosine of pi is netive 1
cosine sorry yeah no cosine of 0 is 1 cosine of pi is negative 1 and so they cancel that that is they don't cancel it's minus1 minus one which is minus 2 key Point all right
yeah I don't think I behind you just repeat it all right let me let me repeat uh so the question is the question was to repeat the reasoning by which I uh guessed in advance that probably this wasgoing to be the relationship between the average value with respect to Arc Length versus the average value with respect to this horizontal distance all right and it had to do with the previous way this diagram was drawn whichis comparing an interval in DX with an interval in in Theta a little section in Theta and when you're near the top they're nearly the same that is it's more or less balanced it's a little curved here they'rea little different but here it becomes very exaggerated the D Theta lengths are much longer than the DX lengths which means that the importance given by the Theta variable to these parts of the circle is larger relative to
these parts whereas if you look at this section versus this section for the DX they give equal weights to these two equal lengths but here with respect to Theta this is relatively short and this is much larger soas I say d the Theta variable is emphasizing the lower parts of the semicircle more that's because this length is shorter and this length is longer whereas these two are the same it's a it's a balancing act ofof the of the relative weights I'm going to I'm going to say that again in a different way and maybe maybe this will the lower part is more important for Theta
a ah so the question is but shouldn't it have a bigger value because it's a longer length never with averages whatever the length is we're always dividing we're always compensating by the total we have the integral from 0to Pi but we're dividing by pi here we had the integral from minus1 to one but we're dividing by two so we divide by something different each time and this is very very important it's that the average ofa constant is that same constant regardless of which one we did so if it were a constant we would always compensate for the length so the length never matters see if it's if it's the integral from 0 to1 million or 100 let's say one over 100 CDX it's just the same it's always that c it doesn't matter how long it is because we compensate right that's really the difference between an integral and an average is
that we're dividing by the total all right now I want to introduce another notion which is actually what's underlying these two two examples that I just just wrote down and this is by far uh the one which youshould emphasize the most in your in your thoughts because it is much more flexible and and uh uh is much more typical of real life problems so the idea of a weighted average is the following you take theintegral say from A to B of some function but now you multiply by a weight and you have to divide by the total and What's the total going to be it's the integral from A to B of thistotal weighting that we have now why is this the correct notion I'm going to explain it to you in two ways the first is this very simple-minded thing that I wrote on the board there with the constants
what we want is the average value of C to be C otherwise this makes no sense as an average now let's just look at this definition here and see that that's correct if you integrate C from A toB W of X DX and you divide by the integral from A to B W of X DX not surprisingly the C factors out it's a constant so this is C * the integral A to B W ofxDX divided by the same thing and that's why we picked it we picked it so that these things would cancel and this would give C all right that's that's the this so in the previous case this property explainsthe denominator and again over here it explains the denominator
and let me just give you one more explanation which is U maybe a a real life pretend real life example uh you you you have a stock which you bought for $10 uh one year and then six monthslater you bought some more for $20 and then you bought some more for $30 all right now what's the average price of your stock well it depends on how many shares you bought if you you bought this manyshares the first time and this many shares the second time and this many shares the third time this is the total amount that you spent and the total price sorry the average price is the total price divided bythe total number of shares and this is the discreet analog of this continuous averaging process here the function f now so I use W for weight the function f now is the fun whose values are 10 20 and
30 and the weightings are the relative importance of the different
purchases all right so again these wi are
weights all right I there was another question out in the audience at some point over here yes when um you can't do that in way you can't right uh right very very good point so um in the inthis in this part in this numerator here uh the statement is um in this example we factored out C but here we cannot factor out F ofx that's that's extremely important and that is the whole point so inother words the average the weighted average is very interesting when because it's an you have to do two different integrals to figure it out for uh in in general when it happens that this is C it's an extremelyboring integral which in fact because it's an average you don't even have to calculate it all Factor it out and cancel these things and never bother to calculate these two numbers so these massive numbers just cancel right so
it's very special property of a constant that it factors
out all right that was our first discussion and now um with this example I I'm going to go back to the to the heating up of the witches cauldron and we'll use uh average value to illustrate the integralthat we get in that context as
well I remind you let's see the situation uh with the witch's cauldron was this
the first important thing is that therewere all right whoops let's let's uh so this is the big cauldron here this is the one whose height is 1 meter and whose width is 2 m and it's a a parabola of Revolution here and it hadabout um a approximately 1,600 l init this curve was was was y =
x^2 and the situation that I described at the end of last time was that the initial
temperature was T is equal to 0° C and the final temperature instead of being a constant temperature we were we were heating this guy up from the bottom and it was hotter on the
bottom then on the top and the final temperature was given by the formula T is equal to 100 minus 30 * the height y so at y equals 0 at the bottom it's100 and at the top T is just equal to 70 degrees okay so this is the the final configuration uh for the temperature and the question was how much energy do we need
so so the first observation here and this is the the the the reason for giving this example is that it's important to realize that you want to use the
method of diss in this case the reason so it doesn't have to do with you shouldn't think the discs first but what you should think of is the horizontal we must use horizontals because T is constant on horizontalsit's not constant on verticals if we set things up with shells as we did last time to compute the volume of this then T will vary along the shell and we won't be we'll still have an averaging probleman integral problem along the vertical portion but if we do it this way T is constant on this whole level here and so there's no more uh calculus involved in calculating what the contribution is of Any Given levelso T is constant on
horizontals actually in Disguise this is that same trick that we have here we can Factor constants out of integrals you could view it as an integral but the point is that it's more M than that all right nowI have to set it up for you and in order to do that I need to remember what the equation is which is y = x^2 and the formula for um uh the total amount of energy is goingto be um uh volume times the number of degrees that's going to be equal to the energy that we need here and so let's add it up it's the integral from 0 to one and this is with respectto Y so the Y level goes from 0 to one this top levels y equals 1 this bottom level is y equals zero and the uh disc that we get this is is the point x comma y here
is rotated around and its radius is X
so the thickness is dy and the area of the disc is pi x^2 and the thing that we're averaging is T well we're not yet averaging we're just integrating it we're just adding up the
total now I'm just going to plug in the various values for this and what I'm going to get is T again is 100us 30 Y and this radius is measured up to this very end so x^2 is yso this is pi y Dy and this is the integral that we'll be able to evaluate Yeah question all right
well let's carry this
out uh let's finish off the calculation here uh let's see this is equal to um what is it equal to well I I'll put it over here it's okay it's equal to 50 PI y^ 2us right because thisis 100 Pi y and then there's a 30 right this is this is 100 Pi Yus 30 pi y^2 and I have to take the anti-derivative of that so I get 50 Pi y^ 2 and I get uh10 pi y cubed evaluated at 0 and one and that is uh 40
Pi now now I I I spent a tremendous amount of time uh last time focusing on units because I want to tell you uh how to get a realistic number out of this and uh there's a there's asubtle Point here that I that I pointed out last time that had to do with changing meters to centimeters I claim that I've I've treated those correctly so what we have here is that the answer is in degreesthat is Celsius times cubic met these are the correct units and now I can translate this into uh Celsius is spelled with a c there that's interesting uh Celsius uh I can translate this into uh into units thatyou're more familiar with so let's try 40 Pi de * m cubed and then do the conversion factors first of all there's 1 calorie per uh degree times uh a milliliter that's one conversion and then uh let's see
I'm going to have to translate from centimeters so I have here uh 100 cm per meter cubed so these are the two conversion factors that I needand so I get 40 Pi * 10 6 that's 100 cubed and this is uh in
calories right so how much is this well it's a little better maybe to do it in 40 Pi * 1,000 uh kilo calories because these are the ones that you actually see on your um nutrition uh labels ofof foods and uh so so this number is around 125 or so uh let's see is that about right let's make sure I've got these numbers right yeah this is about 125 40 * pi and uh so soone candy bar this is a Halloween example so one candy bar is about 250 kilocalories all right so this is a half a candy
bar so the answer to our question is that it takes takes 500 candybars to heat up this this thing yeah okay so that's that's our that's our example now yeah
question say it again what does the integral give us this integral is the the the integral represents the following thing so the question is what does this integral give us so here's the integral here it is Rewritten sothat it can be calculated and what this integral is giving us is the following thing you have to imagine the following idea you've got a little chunk of water in here and you're going to raise it from 0degrees all the way up to whatever the target temperature is and so that little milliliter of water if you like has to be raised from zero to some number which is a function of of the height it's somethingbetween 70 and 100° and the one right above it also has to be raised to a temperature although a slightly different temperature and what we're doing with the integral is we're adding up all of those degrees and the
calorie represents how much it takes one calorie represents how much it takes to raise by one degree one milliliter of water 1 Cub centim of water that's the definition ofcalorie and we're adding it up so in other words each of these cubes is one thing and now we have to add it up over this massive thing which is 1,600 lers and we have a lot of differentlittle cubes and that's what we did when we when we glomed them all together that's what the integral is doing for us other
questions all right now I want to connect this with with weighted averages before before we before we go on because that was the reason why I did weighted averages first I'm going to compute also the average final
temperature so final because this is the interesting one the average starting temperature is very boring at zero the average final temperature is it's the individually the temperatures are different and the answer here is it's the integral from 0to one of T time piy Dy divided by the integral from 0 to 1 of Pi y Dy so this is the total temperature weighted appropriately to the volume of water that's involved at that temperature divided by thetotal volume of water and we computed these two numbers the number in the numerator is what we called 40 pi and the number in the denominator actually this is this is easier than what we did last time withshells you can just look at this and see that it's the area under a triangle it's Pi / 2 and so the answer here is 80° this is the average temperature note that this is a weighted average the
weighting here is different according to the height the the weighting factor is pi * y that's the waiting factor and that's not surprising there's when when Y is small there's less volume down here up above those are moreimportant volumes because there's more water up at the top of the cauldron than there is down at the bottom of the cauldron if you compare this to the ordinary average if you take the maximum temperature plus the minimumtemperature divided by two that would be 100 + 70 / 2 you would get uh uh 85 degrees and that's bigger why because the cooler water is on top and the actual average the TR the correct weighted averageis lower than the uh than this fake average which is not the the the true average of in this context all right so the weighting is is that the thing is getting fatter near the top
all right so now I'm going to do another example of weighted average and this example is uh uh also very much worth your while it's the other incredibly important one in interpreting uh integrals and it it's a veryvery simple example of a function f the waiting will be different but the functions F will be of a very particular T kind namely the function f will be practically be a constant but not quite it's going tobe a constant on one interval and then zero on the rest so we'll we'll we'll do those weighted averages now this subject is called probability
in in probability what we do well I'm going to I'm just going to give some examples here I'm going to pick a point in quotation marks atrandom in uh the region y less than x less than 1 - x^2 that's this this shape here well let's draw it up here let's draw it right down here for now so somewhere in here some some pointx comma Y and then I need to tell you uh according to what this this random really means this is uh a proportional to area if you like proportional
to area so area inside of the section and then the question that we're going to answer right now is what is the chance that or it's called usually called probability that X is bigger than a
half now let me show you thatthis what's going on here and this is always the case with things in probability so first of all we have a name for this this is called the probability that X is bigger than a half and so that'swhat it's called in in our notation here and what it is is the
probability is always equal to the part divid by the whole it's a ratio just like the one over there and which is the part and which is the hole well in this picture it's the hole is the uhwhole Parabola and the part is the section X bigger than 12 and it's just the ratio of those two areas
let's write that down that's the integral from a half to one of 1 - x^2 DX divided the integral from -1 to 1 1 - x^2 DX and again the waiting Factor here is 1 - x^2 and tobe a little bit more specific here the in the the the starting point a is1 and the end point is is + one all right so this is the probability that X is less than a half and ifyou work it out it's uh it turns out to be 518 we won't do it all right yeah
um what we're trying to do with probability so so uh I can't repeat your question but I try to try to say because it was a little bit too complicated but it it was not correct okay uh whatwe're taking is we have two possible things that could happen either let's put it this way uh let's let's make it a gamble somebody um picks a point in here at random and when and and uh uh umthat we're trying to figure out what your chances are of winning in other words the chances the person picks something in here versus something in there all right and the interesting thing is so what percent of the timedo you do you win the answer is it's some fraction of one and in order to figure that out I have to figure out the total area here versus the total of the entire all the way from minus
one to one the beginning to the end all right so in the numerator I put sucess and in the denominator I put all possibilities so that right and that that's the interpretation of this so so maybe I didn'tunderstand your
question Factor uh Y is 1 - x s The Waiting factor that has to do with how you compute areas under curves the curve here is y equal to 1 - x^2 and so in order to calculate howmuch areas between a half and one I have to integrate that's the interpretation of this this is the area under that curve this integral and the denominator is the area under the whole thing okay yeah anotherquestion ah yikes it was supposed to be the same question as over here thank
you this has something to do with waiting factors here's the weight Factor well it's the relative important from the point of view of this probability of these places versus those uh that is so this is a waiting Factorbecause it's telling me that in some sense this number five uh 18 um yeah actually that makes me think that this number is probably wrongwell I'll let you calculate it out it looks like it should be less than a quarter here because there's this is a quarter of the total distance and there's a little less in here than there is in themiddle so in fact it probably should be less than a quarter the
answer the equation of the curve is 1 - x^2 it's the reason why it's the waiting factor is that we're interpreting in the question has to do with the area under that curve and so this is showing ushow much is relatively important versus how much is not this is these parts are relatively important these parts are less important according to area because we've said that area is the way we're making the choice all right soI don't have quite enough time to tell you about my next example instead I'm just going to tell you what the general formula is and we'll do our example next time I'll tell you what it's going to beso here's the the the general
formula for probability here we're going to imagine that we're are we have a a total range which is maybe going from A to B and we have some intermediate values X1 and X2 and then we're going to tryto compute the probability that some variable that we picked at random occurs between X1 and X2 and by definition we're saying that it's an integral it's the integral from X1 to X2 of the weight DX divided by theintegral all the way from A to B of the weight so again this is the part divided by thewhole and the relationship between this and the weighted average that we had earlier was that the function f ofx is a kind of a strange function it's it's zero and one it's just the picture if you like isthat you have this this waiting factor and it's going from A to B but then in between there we have the part that we're interested in which is between X1 and X2 and it's the ratio of this inner
part to the whole thing that we're interested in
all right tomorrow I'm going to try to do a realistic example and I'm going to tell you what it is but we'll take it up tomorrow it's the following thing sh I told you it was going to betomorrow but we still have a whole minute so I'm going to tell you what the problem is so this is going to be a a target practice problem all right you have a Target here and you're throwing dartsat thisTarget and um so so you you're throwing darts at this Target and somebody is standing next to the dartboard your little brother is standing next to the dartboard here and the question is how likely you are to hityour little brother so this will let's see you'll see whether you like that or not actually I was the little brother so I don't know which way you want to go we'll go either way we'll find out next
time