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 today we're going to continue our discussion going to continue our discussion of methods of integ ation the method that I'm going to describe to today handles a whole class of functions of the following form you take Pofx / q ofx and this is known as a rational
function and all that means is that it's a ratio of two
pols which are these functions P of x and q ofx we'll handle all such functions by a method which is known as partial
fractions and what this does is it splits p over Q into um what you could call easier
pieces all right so that's going to be some kind of algebra and that's what we're going to spend most of our time doing today I'll start with an example and all of my examples will be uh illustrating moreGeneral method me the example is uh to integrate the function uh 1X -1 + say 3/x + 2 DX now that's that's easy to do it's just we already know the answer it's natural log of x -1 +3 * natural log of x + 3 plus a constant so that's done
okay so now here's the difficulty that is going to arise the difficulty is that I can start with this function which is perfectly manageable and then I can add these two functions together the way I do the wayI add fractions so that's getting a common denominator
and uh so that that gives me x + 2 here + 3 * x -1 and now if I combine together all of these terms then altogether I have 4x + 2 - 3 that's I guess - oneand then if I multiply out the denominator that's x^2 plus uh oh that two turned into a three that's interesting I hope there aren't too many more of those Transformations is there another one
here oh the it it it happened earlier on wow that's an interesting vibration there okay thank you all right so I guess uh yeah my my my threes were speaking to my twos somewhere in my past huh okayall right anyway I think this is now
correct okay so so the problem is the following this is the problem with this this integral was easy right I'm calling it easy we already know how to do it over here but now over here it's it's
disguised it's the same function but it's no longer clear how to integrate it if you're faced with this one you say what am I supposed to do and we have to get around that difficulty and so uh whatwe're going to do is we're going to unwind this disguise so we have the the algebra problem that we
have oh wow there must be something in the water in uh inuh impressive wow okay let's see is 2/3 equal to three Hales yeah holy cow all right well that's good well I'll keep you awake today with several other transpositions here okay so our our algebra problem is to isto detect um the Easy Pieces which are
inside inside and the and the and the method that we're going to use the one that we'll emphasize anyway is one algebraic trick which is which is a a a shortcut which is called the coverup method but we'regoing to talk about even more General things than that but anyway this is where we're headed is something called the coverup method all right so that's our intro and I'll just have to remember that two is not threeI'll keep on repeating that all right so now here I'm going to describe to you how we unwind this this disguise the first step is we write down the function we want to integrate which was this and nowwe have to undo the first damage that we did so the first step is to factor the denominator
and that factors we happen to know the factors so I'm not going to carry this out but this can be a rather difficult step but we're we're going to assume that it's done for the purposes of illustration hereso I factor the denominator and now the second thing that I'm going to do is what I'm going to call the setup here how I'm going to set things up and I'll I'll I'll tell you what these thingsare more statically in a second and the setup is that I want to somehow detect what I did before and I'm going to write some unknowns
here what I expect is that this will break up into two pieces one with the denominator xus one and the other with the denominator x + 2 okay so now my third step is going to be to solvefor A and B and then I'm done if I do that that's the the complete unwinding of this
disguise and this is where the coverup method comes in handy this is this this method that I'm about to describe now you can do the algebra in a clumsy way or you can do it in a quick wayand we'd like to get efficient about the algebra involved and so let me show you what the what the first step in the trick is we're going to solve for a um uh by multiplying by uh xus onenow notice if you multiply by xus one in that equation two what you get is this you get 4x - 2 divided the x - 1es cancel you get this on the left hand side and on the righthand side you get a the xus 1es cancel again and then we get this extra term which is B * x + 2 * x -1 now the trick here and we're going to get even better trick in
just a second the trick here is that I didn't try to clear the denominators completely I was very efficient about the way I did it I just cleared one factor and the result here is very useful namely ifI plug in now xals 1 this term drops out to all right so what what I'm going to do now is I'm going to plug in xal
1 and what I get on the left hand side here is 4 Min - 1 and 1 + 2 and on the left hand side I get a that's the end all right this is my formula for aa happens to be equal to
one and that's of course what I expect a better be one because the thing broke up into 1X - 1 + 3x + 2 so this is this is the correct answer there was a question out here whichI missed maybe answer question I had beginning uh are are uh pols defined as functions with whole powers or could they be square roots are pols defined as functions with whole powers or and they be square roots that'sthe question the answer is they only have whole powers so for instance here I only have the power one and zero here I have the powers two 1 and zero in the denominator square roots are no good forthis
method another question why did why did I set x equals 1 uh the reason why I set xals 1 was that it works really fast you can't know this in advance that's part of the method all right itjust turns out to be the best thing to do the fastest way of getting at the coefficient a now the Curious Thing let me just pause for a second before I do it if I had plugged xal 1into the original equation I would have gotten nonsense because I would have gotten zero in the denominator and that seems like the most horrible thing to do the worst possible thing to do is to set x equals toone on the other hand what we did is a trick we multiplied by xus one and that turned the equation into this so now in Disguise I multiplied by zero but that turns out to be legitimate because what
really this equation is true for all X except one and then instead of taking xals 1 I can really take x ts to one that's really what I mean the limit as X goes to one the equation isstill valid then so I'm using the worst case the case that looks like it's dividing by zero and it's helping me because it's canceling out all the information in terms of B so that the advantage here is isthis cancellation that occurs on in this part all right so that's the method we're going to shorten it much much more in a second but let me carry it out for the uh other coefficient as well so theother coefficient I'm going to to to solve for solve for b I'm going to multiply by x + 2 and when I do that I get 4 x -1 / x -1 that's the left hand side the very
top expression there and then down below I get a * x -1 * x + 2 and then again the B uh the the X+ 2s cancel so I get B sitting Al and now I'm going to dothe same trick I'm going to set x = -2 that's the value where the uh uh which is going to knock out this a term here so that cancels this term completely and what we get here all toldis -8 -1 / - 2 -1 is equal to B in other words b equal 3 which was also what it was supposed to be B was this number three right here which I'm now not going to changeto two because I know that it's not two there was a question
all right all right now this is the method which is called coverup but it's really carried out much much faster than this so I'm going to review the method and I'm going to show you uh what it isin general so the first step is to factor the denominator Q that's what I labeled one over there that was the factorization of the denominator up top the second step is what I'm going to call the setup that'sstep two and that's where I knew what I was aiming for in advance and I'm going to have to explain to you in every instance exactly what the setup should be that is what the unknowns should be andwhat Target simplified uh expression we're aiming for so that's the setup and then the third step is what I'll Now call cover upwhich is just a very fast way of doing what I did on this last board which is solving for the unknown coefficients so now let me perform it for you again over here so it's 4X minus one divided
so this is this is to eliminate writing here handwriting it makes it much faster so this part uh just uh uh factoring the denominator that was that was one that was step one and then step two again isthe setup which is setting it up like
this all right that's the setup and now I claim that without writing very much I can figure out what A and B are just by staring at this so now what I'm going to do is I'm just goingto think what I did over there and I'm just going to do it directly so the so let me show you what the the method consists of visually I'm going to cover up that is knock out this factorand focus on this number here and I'm going to plug in the thing that makes the zero which is xals 1 so I'm plugging in xals 1 to this left hand side and what I get is 4 Min- 1 / 1 + 2 is equal to a all right now that's the same thing I did over there I just did it with by skipping the intermediate algebra step which is a lot of writing so the
cover up method really amounts to the following thing I'm thinking of multiplying this over here it cancels this and it gets rid of everything else and it just leaves me with a on the right hand side and Ihave to get rid of it on this side so in other words by eliminating this I am isolating a on the right hand side so the cover up is that I'm covering this and getting a out of itsimilarly I can do the same thing with B it's focused on the the value xal min-2 and B is what I'm getting on the right hand side and then I have to cover up this all right so ifI cover up that then what's left over with xal minus 2 is again - 8 -1 / um -2 -1 all right so this is the way the method gets carried out in practice uh writing essentially the the
least you can now when you get to uh several variables it it becomes uh just way more convenient to do this so now let me just uh review when cover up works so this cover up methodworks if Q of X has distinct linear
factorsand so you need two things here it has to factor completely the denominator has to factor completely and the degree of the numerator has to be strictly less than the degree of thedenominator I'm going to give you an example here so for instance and this uh tells you the general pattern of the of the setup also say you had x^2 + 3x + uh 8 let's say over x -1* x - 2 * x + 5 so here I'm going to tell you the setup the setup is going to be a over x -1 + B over x -2 2 + C over x + 5 andit will always break up into something so no M however many factors you have you'll have to put in a term for each of those and then you can find each number here by this coverup
method now we're done with that and now we have to go on to the algebraic complications so what would the first typical algebraic complication B it would be repeated roots or repeated
factors now let me get one that doesn't come out to be extremely ugly here so this is what we'll call example two and this is going to work when the degree you'll always need that the degree of thenumerator is less than the degree of the denominator and Q has now repeated linear factors so let's see which example I wanted to to show you so let's just give this here I'll just repeat the the um thedenominator with an with an extra Factor likethis now the main thing you need to know since I've already performed the factorization for you already performed step one this is step one here you have to factor things all the way and it's that's already been donefor you and here's what the setup is the setup is that it's of the form a x -1 + b/ x -1 2 we need another term for the square here plus C over x + 2 in general
if you have more Powers you just need to keep on putting in those Powers you need all one for each of the powers why does it have to be squared okay so uh good question so why in theworld am I doing this uh let me just give you one hint as to why I'm doing this okay um it's very very much like the decimal expansion of a number or say the uh base 2 expansion ofa number so for example um the number 716 is um 0 over2 + 1/ 2^ 2+ uh 1 over 2 cubed plus is that right so it's 416 plus 2 plus 1 over 2 4th it's this sort ofthing and I'm getting this power and this power if I have higher Powers I'm going to have to have more and more so this is what happens when I have a 2 to the 4th I have to represent
things like this that's that's what's coming out of this piece with the repetitions here of the powers this is just an analogy
with what we're doing yeah another question over here yes so this is an example but it's meant to represent the general case and I will also give you a a general picture for sure once you have the secondpower here you'll need both the first and the second power mentioned over here and since there's only a first power over here I only have to mention a first power over there if if this were a three herethere would be one more term which would be the 1 for x -1 cub in the denominator that that's what you you just said Okay now what's different about this setup is that the coverup method although it worksit doesn't work so well it doesn't work quite as well cover up works for the coefficients B and c not a we will have a quick method for the numbers B and C to figure out what they are
but it will be a little slower to get to a which we will dolast let me show you how it
works first of all I'm going to do the ordinary cover up with C so for C I just want to do the same old thing that I did before I cover up this and that's going to get ridof all the junk except for the C term so I have to plug in xal -2 and I get X sorry I get - 2^ 2 + 2 in the numerator and I get - 2 -1 the quantitysquar in the denominator remember I'm covering this up so that's all there is on the left hand side and on the right hand side all there is is
C everything else got killed off because it was x -2 * that that's zero times all that other stuff and the xus 2 over here canceled this is the shortcut that I just described and this is much fasterthan doing all that arithmetic and algebra so Al together this is a a six over over nine right so it's uh it's uh C is equal to 6 over 9 which is
2/3 now the other one which is easy to do I'm going to do by the slow method first but there's a that you can omit a term the idea is to cover up the other bad Factor cover upso I'll do it both of the fast way and the slow way I'll do it the fast way first and then I'll show you the slow way the fast way is to cover this up and then I haveto cover up everything else that gets eliminated and that includes everything but B so I get B on this side and I get one on that side so that's 1 2 + 2 / 1 + 2 so inother words uh B is equal to
1 that was pretty fast so let me show you what metic was hiding behind that what algebra was hiding behind it what I was really doing isthis and multiplying through by x -1 2 so I got
this so this canel here so this B just stand stands alone and then I have here c x + 2 x -1 2 notice again I I I cleared fed out that one this term from the denominator andsent it over to the other side now what's happening is that when I set xals 1 here this term is dying this term is going away because there's more powers in the numerator than in the denominator this isstill zero and this one is gone also so all that's left is B now I cannot pull that off with single power of xus one I can't expose the a term it's the B term that I can exposebecause I can multiply through by this thing squared If I multiply through by just x - one what'll happen here is I won't have canceled this x - one squ it's useless I still have a zero in the
denominator I'll have B over Z when I plug in xals 1 which I can't use again the cover up method is giving us b and c not not a
all right now for the last term for a I'm going to just have to be uh straightforward about it
and so I I I'll just suggest for a plug in your favorite number so plug in my favorite number
which is xal 0 and you won't be able to plug in x equal 0 if you've already used it here the two numbers we've already used are x = 1 and x = -2 but we haven't used xequals 0 yet so that's good I'm going to plug in now xal 0 into the equation what do I get I get 0^ 2 + 2 / -1 uh * 2 is equal to uh let's see uh ais the thing that I don't know so it's a over1 plus b over x -1 2 so B is 1 so that's 1/ -1 2ar and then C was 2/3 23 over uh x + 2 so that's 0+ 2
don't don't give up at this point this is a lot of algebra you really have to plug in all these numbers right you make one arithmetic mistake and you're always going to get the wrong answer this is veryarithmetically
intensive however it does simplify at this point we have 2 over two that's 1 is equal to a + 1 + A3 so let's see a on the other side this becomes a is equal to A3 and that'sit this is this is the end we've we've simplified our our uh function and now it's easy to
integrate question another
question it
yeah uh so the question is if you if x equals z has already been used what do I do and the answer is uh pick something else um and you said pick a random number and that's that's rightexcept that if you really picked a random number it would be um 4.125 67843 which would be difficult what you want to prove pick is the easiest possible number you can think of yeah
if you had as in as in this sort of situation here uh more uh more Powers wouldn't you have more variables very good question that's absolutely right this was a 3X3 system in Disguise for these three unknowns ab and c what we started with in the previous problem was two variables it's over here the variables A and B and as the degree of the Pol denominator goes up the the number of variables goes up itgets more and more and more complicated more and more arithmetically intensive well so the question is how would you solve it if you have two unknowns that's exactly the the point here we we um this is a systemof simultaneous equations for unknowns and we have little tricks for isolating single variables otherwise we're stuck with solving the whole system and you'd have to solve a whole system by elimination various other
tricks all right as I say I'll say a little more about that later now I'm going to get I have to get one step more
complicated with my next
example my next example
is going to have a a quadratic Factor so still I'm sticking to the degree of the polinomial in the numerator is less than the degree of the polinomial in the denominator and I'm going to take the case whereQ has a quadratic
Factor let me just again illustrate this by example I have here xus one x^2 + 1 I'll make it about as easy as they come now the setup will be slightly different here here's the setup I've it's alreadyfactored I've already done as much as I can do I can't Factor this x^2 + 1 into linear factors unless you know about complex numbers if you know about complex numbers this method becomes much easier and it comesback to the coverup method which is the way that the coverup method was originally conceived by heavyside but you won't get to that until 1803 so we'll we'll wait this by the way is a method which is usedfor integration but it was invented to uh do something with lass transforms and inversion of certain kinds of differential equations by heavy side and uh he that's so it came much later than integration but anyway it's a very
convenient method okay so here's the setup with this one again we want a a a term for this x- one factor and now we're going to also have a term with the denominator x^2 + 1 but this isthe difference it's now going to be a first deegree polinomial one degree down from the quadratic
here right so this is what I'm always I've been keep on calling the setup this is number two you have to know that in advance based on the pattern that you see on the left hand side yes ifthe degree of the numerator is equal to that of the denominator does this none of this works the question is if the degree of the numerator so in this case if the degree of the numerator If This Werecubed and this is matching with the denominator which is total of degree three uh the answer is that uh this does not work it it definitely doesn't work and we're going to have to do something totally different tohandle it which turns out fortunately to be much easier than this but we will deal with that at the end all right so keep keep this in mind this is an easy way to make a mistake if you
start with a higher degree numerator you'll never get the right answer all right so now uh let's so so I have my setup now and now uh what can I do well I claim that I can still docover up for
a it's the same idea I cover this guy up and if I really multiply by it it would knock everything out but a so I cover this up and I plug in xals 1 so I get here 1^2 / 1^ 2 + 1 is equal to a in other words is equal to a half Again cover up is pretty fast as you can can see it's not it's not too bad now at this next
stage I want to find B and C and the best idea is the slow way here it's not too terrible but it's just what we're going to do which is to clear the denominators completely so for B andCuh just clear the
denominator that means multiply through by by that whole business now when you do that on the left hand side you're going to get X squar because I got rid of the whole denominator on the right hand side whenI bring this up the xus one will cancel with this so the a term will be a * x^2 + 1 and the B uh BX plus C term will have a remain factor of x -1 because thex^2 + 1 will cancel again the arithmetic here is not tooterrible now I'm going to do the following I'm going to look at the X squterm on the left hand side and the right hand side and that will give me one equation for b and c and then I'm going to do the same thing with another term the x s term on theleft hand side the coefficient is one it's one * x^2 on the other side it's um a but remember I actually have a so I'm going to put it in it's a half all right so this is the
a term and so I get a halftimes x s and then the only other x s is when this BX multiplies this x so BX * X is BX s so this is the other coefficient on on Xsqu is B and that force is to be a
half and last of all I'm going to do the X to the 0o power term or otherwise known as the constant term and on the left hand side the constant term is zero there is no constant term onthe right hand side there's a constant term a half time 1 that's half here and then there's another constant term which is this constant times this minus1 which is minus
C and so the conclusion here is uh that c is equal to ahalf another question yeah
uh there's there's also an x to the zero power hidden in there here I sorry an x to the one power that's what you were asking about sorry there's also an x to the one power the only reasonwhy I didn't go to the X to the one power is that it turns out with these two I didn't need it the other thing is that by experience I know that the extreme ends of the multiplication arethe easiest ends and the middle terms have tons of cross terms and so I don't like the middle term as much because it always involves more arithmetic so I stick to the lowest and highest terms if I canso I was that was really a sneaky thing I just I did that without without saying anythingyes ah another good question could I just set x equals z absolutely in fact that's equivalent to picking out the X to the 0 term and you could plug in numbers if you wanted that's another way of doing
this besides doing doing that so you can also plug in numbers can plug in numbers xal 0 uh actually not xal 1 right uh minus one uh 2 Etc not one just because we've already used it we won'tget interesting information out yes Professor could you do the observation of the x s coefficient for that one in finding a if uh so the question is could I have done it of this this other way with apolinomial with this with this other one yes absolutely so in other words what I've taught you now is two two choices which are equally reasonable it the one that I picked was the one that was the fastest forthis me guy and the one that was fastest for this one but I could have done the other way around yeah so there there there are a lot of ways of solving simultaneous equations yeah another question the question
is the following so now everybody can understand the question it's if this instead of being x^2 + 1 this were X Cub + 1 all right so that's an important case to understand that's a case in which thisthis denominator is not fully factored so it's an X Cub plus 1 you would have to factor out an x + one all right so that would be a situation like this you have an X Cub + 1but that's x + 1 * x^2 uh + x + 1 this kind of thing uh if that's the right uh there must be a minus sign in here maybe okay something like thisright isn't that what itis I think this is right but anyway the point is you have to factor it all right and then you have a linear and a quadratic so the the you're you're always going to be faced eventually with linears
and linear factors and quadratic factors if you have a cubic that means you haven't factored sufficiently so you're still back in step one uh in the X Cub + one case in the X Cub + 1 case weare out of luck until we've completed the factorization once we've completed the factorization we're going to have to deal with these two factors as denominators okay so it'll be it'll be this plus something over X plus one plusa a BX plus C type of thing over this this thing here that's what's eventually going to happen all right but but hold hold on to that idea let me let me uh carry out one more example hereall
right so I figured out what all the the values are but I think it's also worth it to remember now that we also have to carry out the integration
what I've just shown you is that the integral of X2 DX over x -1 * x^2 + 1 is equal to and I've split it up into these pieces so what are the pieces the pieces are a halfx -1 plus a half X over x^2 + 1 right this is the a term this is the B term and then there's the C
term so we better remember that we know how to anti- differentiate these things and as in other words I want to finish the problem the others were pretty easy so I didn't bother to finish my sentence but hereI want to be careful and have you realize that there's something more to do first of all we have the the first one is no problem that's that's this the second one actually is not too bad either thisis by the advanced guessing method my favorite method something like the logarithm because that's what's going to appear in the denominator and then if you differentiate this you're going to get 2x over this but here we have ahalf so altogether it's a quarter of this all right so I fixed the coefficient here and then the last one you have to think back to some level of memorization here and remember that this is a half the
arct
tangent all
right why did I go to a quarter because in Disguise for this guy I was thinking d by DX of natur natural log of x^2 + 1 is 2x x^2 + 1 because it's the derivative of this dividedby itself that's the right this is uh the derivative of log U is U Prime over U log U Prime = U Prime over U that was the what I applied and what I had was a half soI need a total of a quarter to canc so 24s
is2 all right now I got to get you out of one more deep hole and I'm going to save the general pattern for next time but I do want to clarify one thing
so let's let's handle this thing what if the degree of p is bigger than or equal to the degree of
Q that's the that's the thing that I claimed was easier and I'm going to describe to you how it's done now in analogy with numbers you might call this an improper
fraction that's the that's the thing that it should Echo uh in in in your mind when you're thinking about this and I'm just going to do it by example here let's see I cooked up an example so thatI don't make an arithmetic mistake along the way so there are two or three steps that I need to explain so here's an example the denominator is degree 2 the numerator is degree 3 it well exceeds so there'sa problem here our method is not going to work and the first step that I want to carry out is to reverse step one that is I don't want the factorization for what I'm going to do next Iwant it multiplied out that means I have to multiply through so I get x^2 um + x - 2 all right back to the the starting place here all right and now the next thing that I'm going to
do is I'm going to use long division that's how you convert an improper fraction to a proper fraction now this is something you were supposed to learn in um in uh I don't know grade four grade no Iknow grade three grade four grade five grade six Etc okay so here's how it works in the case of Pol it's kind of amusing so we're dividing we're dividing this polinomial into that one and so the quotient tofirst order here is X that is that's going to match the top terms so I get X Cub + x^2 - 2x that's the product and now I subtract and it cancels so we get here - x^2 +2 X that's the difference and now I need to divide this next term in and I need a Min -1 all right so -1 * this is - x^2 - x + 2 and I subtract and the X
squs cancel and here I get + 3x - 2 okay now this thing has a name this is called the quotient and this thing also has a name this is called the
remainder and now I'll show you how it works by sticking it in to the answer here the quotient is x -1 and the remainder is let's get down there 3x - 2 / x^2 + x - 2 allright so the punch line here is that this thing is easy to integrate right this is easy and this one you can use now you can use cover up the method that we had before because the degree ofthe numerator is now below the degree of the denominator it's now first degree and this is second degree what you can't is use cover up to start out with here that will give you the wrong answer all rightso that's the end for today and see you next time