Logistic Growth Models
Transcript
So now let's look at how do we solve when we have a nonlinear or how do we set up a nonlinear model. Again solving them you've done but this is just how to actually set up a nonlinear model. So going back to exponential growth, exponential growth is where the rate of change of your population is proportional to the size of the population. And so therefore your growth rate is the rate of change divided by the size. Well that's great except what
if that rate of change isn't constant. So in exponential growth problems we assume the rate of change is constant but what if it's not constant? What if it's actually to a function of your population size? In other words your rate of change is the population size times this rate, this function of where it's changing. We want to look at what this looks like and what this becomes. And so let's get this what we call a logistic growth model. And this
is where the environment can only sustain a limited number of individuals we call that M. It's called a caring capacity is another way to think of it. So if you think about a petri dish it only has so much food. The whole idea of the petri dish is it provides food for the organisms that are growing in it. At some point those organisms no longer can sustain it. There's no longer any food left in the petri dish. So at some point they
went out of food, they went out of space because they've taken up most of space as a petri dish. So then it starts to die off because you can't get that. So if you go beyond the caring capacity you're going to die off if you are you won't grow anymore if you're below the caring capacity. So the idea is what does this look like? So let's look at a function. And let's say that at this caring capacity therefore your F of your caring capacity
M is equal to zero because there's going to be no growth. So once you hit that caring capacity if you actually get the size of your population is the caring capacity you're not going to grow at all. So there's no growth there. So let's think about what this might look like and what it would be. Let's talk about at the start of time whatever time period starts you're going to have some growth. Let's call that I don't know give it a name let's
call it R. All right so let's think about we've got these two pieces here these two points at time zero and this is your your function at time zero you're going to have a value of R and at time M maybe not actually called time this is actually at time this is population size so sorry not time but population size at time M you can be zero and so you got to think about how do we get from R from time zero zero R to M zero and there's different
ways you can do this. One way is to come straight line so you could go linearly to there. You could also go a curve that comes up and goes down to it like that or you could have one where you have a curve that slow starts slower and then or starts fast and slows down. So we could have all these different ones to look at. We are going to go ahead and assume it's the linear because it's easier. So we're going to go ahead and assume the linear one
is the one we want. So if that's the one we're going to have then F of P is going to equal well the equation of a line which is slope times your variable plus your wire set. Okay cool so let's find the slope remember the slope is just the point between two points is just a difference in the y's over the difference in the x's. So my y's are difference is M minus R sorry not M sorry zero minus R over top of because this height is zero and this height
is R and then over top of M minus zero. So we get that it's minus R over M. Okay B is your starting point your wire set so B zero B is going to be zero R. That's where you started. Alright so now we can get our equation F of P is going to equal my slope plus my R and my wire set so R minus M sorry R over M times P. So there is your function and from that we can then get the different equation. So then now the different equation and we'll
go to a new page on this. Now my different equation would be that dP dt is going to equal my remember it's P times F of P. This is going to be equal to P times my F of P which we just came up with is R minus R over M times P. So we end up with this wonderful equation. To make life a little bit easier just for doing some of the derivation I'm going to go ahead and let R equal A and I'm going to let R over K or R over M sorry equal we'll
call it B. And so therefore my largest equation now becomes dP dt is equal to P times A minus B times P. It just makes life a little bit easier for us to do the work. And this is known as a logistic equation. And we can now solve this. The solution to this is the logistic function and the graph is called the logistic curve. And we can actually go ahead and graph up one. So I'm going to go ahead and go into a different equation drawing the draw slope
fields. So we're going to go get our slope field. I happen to like the Buffden University site one. And we're going to go ahead and put this in. We're going to put in it's my independent variable which is in this case X times A minus B. Well let's call A I don't know let's call A five and B one. Times my actually sorry it's not my independent variable it's my dependent variable. And so we have this equation now. So let's just say that
this is what we have. I think I need a multiplication symbol here. And let's just put one here just to make sure. Hmm it's not graphing out. So we did graph. Y times. And there we have it. And I'm going to change this window a little bit. Maybe that's my problem I can't see enough the window. So let's let our X's go to maybe 10 and maybe our Y will go up to 10. Now maybe 100 or 1000. There 10 was right. I don't know why it stopped
here. Okay so here's our graph. And you can see from this that if you were to come up and come along you're going to notice you're going to have an asymptote here. And in fact this is a autonomous system because it doesn't involve the dependent variable the independent variable it's just a dependent variable. So this is autonomous. So this is an autonomous equation. And notice we do have a horizontal asymptote in here. But if we're forward to plot one up let's pick a starting point. You can see it's going to come along. When it started here we're going to come up and then we're going to level off. And so this gets you to the idea of the carrying capacity. All right. The solution to a logistic equation is well let's talk about how we would do this. Well one of the things you notice is this is separable. So we could in fact solve this by doing a separable notation, separable solution.
So we'll start with our differential equation. And then we will solve this differential equation. So the solving this it is a separable equation. You have one over P times A minus B times P. Dp is equal to dt. And then we just need to take the integral of both sides. And the integral of P, one over P times A minus B P is negative one over A natural log of A minus B times P over top of P. And of course the integral of t, dt is just t. So t plus C.
And then we just need to solve this for P. So the first thing I'd probably do is take this negative one over A to the other side through negative At plus C. And then get rid of the natural log by raising E to both sides. And so you have A minus B times P over P is equal to C even negative At. Oh wait, I don't think I think I wasn't supposed to have this negative sign here. I apologize. Sorry. Oh no, I know what I did. Ah, I do want the negative
sign there. But what I want to do is to take in the negative sign over to this side. I'm going to leave it on this side. And I'm going to take it up to this negative power up there. Makes life a little bit nicer just to not have that negative sign. What that does for us is it actually flips this one over top, upside down. So this will be P over A minus B times P. So that being the case, we will now solve the rest of this for P first multiply
both sides by the denominator. I forgot to bring my C down. All right, so then we have is we would then, let's see, P plus B CE to the At times P is equal to A CE to the At. Multiplying that through and taking it over to the side. Take your P out. And then P is going to be A times C E to the At over top of one plus B CE to the At. And so there's your answer. We don't particularly like having this E to the At all over the place. So if I divide through by E to the negative At, I'll get rid of it
from the top. Then we'll put one down here and get rid of that one there. So this is just another way to look at it. Just a different way. It's the same idea. Remember this was an initial condition. So P of zero was R, we'll call that P zero. We'll talk about wherever you start your population at. I will mention that A over B does not equal P zero. And if it did, then we would have some problems and things would cancel out that we don't
want to cancel out. All right, so there's our equation and there's our logistic function. And we already saw the logistic curve. Another equation that we can also work with is what we call chemical equation. Oh, I should mention, by the way, on this, that as P goes to infinity, this thing will go to A over B. So, because you can see that as T goes to infinity, the E to the negative AT goes to zero. So we have AC over BC, which is going to give me A over
B. And that's another reason why we can't let A over B equal P zero because that is your carrying capacity. And if you're already at the carrying capacity, then you can't go anywhere. So that's why we're not letting that happen. All right. And if you happen to have, I should mention also one more thing, sorry, is if you have a harvesting factor, this is assuming there's no harvesting going on. If you have a harvesting factor, then you have more things that go on and it actually would change out what's happening with this. And you would not hit the carrying capacity because you would be harvesting some. So it does change a little bit. We're now going to look at chemical reactions. Suppose you have A grams of chemical A and B grams of chemical B and M parts of A and N parts of B form C when combined. And so that's how we do chemical reactions. We actually put
two chemicals together in different parts and they react in such a way that they'll form a new compound. We call it C. X of T is the amount of grams of chemical C formed at time T. And what we want to do is we want to come up with what this different equation would look like. So the number of grams of A remaining at time T would be, well, you started with A and you took some out. You took some out that made your C. And the ratio
you took them out is M over M plus N. And the reason that is, is that again, you take M of A to make some of it and you take N of B to make some of it and you get this ratio of the combination of these. And then M of the number of grams of B remaining at time T would be B minus N over M plus N of X of T. And same kind of thing is N is how much you had to take. M plus N is the combination. So if you have M, let's say you have five
grams of A and two grams of B. So you'd have five over seven. So five-sevenths that would go away because five-sevenths of it made it X. And two-sevenths of it would go to making B, making C. So that's why this works this way. And the rate will form a product of A and B that's not transformed. So this is how much is left. So this means some of it went away and this fraction went away because some of it went to make your new thing. But some
of it's left. And so we can look at how much is left of A and how much is left of B. And the product of those will get you, tell you what is left to be transferred. And it's proportional, so that's why we had that proportionality constant in there. And this kind of shows you how it puts together. And so what we want to do is kind of figure out what this is. And so two chemicals, let's say A and B, are combined to form a chemical C. The rate or
velocity of reaction is proportional to the product of the instantaneous amount of A and B not converted to C. Initially, there are 100 grams of A and 50 grams of B. And for each gram of B, two grams of A is used. It is observed that 10 grams of C is formed in five minutes. So how much is formed in 20 minutes? And what is the limiting amount of C after a long time? How much of the chemicals A and B remain after a long time? That's kind
of the question we're asking. So let's see how we go about doing this and what this looks like. So I don't really use the formula that much, and that's why I kind of didn't spend a lot of time on it, is that I want to look at how to do this in general. And that's what it's a better way to look at it. So first off, we have 100 grams of the one chemical. So remember, we have, there's 100 grams of A and 50 grams of B. So we're going to call
M 100 grams and N 50 grams. And you can call them anything you want. I don't really care. I just decided to call them this. And we're told that there are two grams of A are used for one and one gram of B. So for every gram of B, we use two grams of A. All right, so we have that information also. X of t, give it a name, is a number of grams of C present at time t. You obviously at the start, you don't have any of C. So at the start, you
have nothing of C. We also happen to know that after five minutes, there's 10 grams of C. So we're told that in the pot. Okay. So again, let's say we have A, A is the number of grams of A. And little b is the number of grams of B. Okay. Now for every gram of B, you get two grams of A. So if that's the case, if you have one gram of B, you get two grams of A. If you have two grams of B, you'll get four grams of A. If you have three grams
of B, you'll have six grams of A. If you have B grams of B, you'll get two B grams of A. So that tells me that A is equal to 2B. All right. Also, you can't get the amount that's going to be formed of C can't exceed A and B together. So in fact, A plus B has to give you X. So that means that since we now know that A is equal to 2B, 2B plus B is equal to X. So 3B is equal to X. So now let's look at the amount of A remaining. So let's look
at the amount of A remaining at time T. All right. So that would be what we started with 100 grams of it. We are going to have for every -- we're going to have two grams go away. And there's going to be three grams total. So it's two-thirds of what we started with. Okay. And then we also can look at the amount of -- so think of this as -- is that you have two -- if you have three grams of something, two of it -- two-thirds of it went to A, went
away from A. So there's a third of left of that basically of A because two-thirds is gone. The amount of B remaining at time T, well, that will be how much we started with. We started with 50 grams. And for every gram of B, there's going to be three grams of there, of X. So you get a one-third of it gone away. Think of it that way. So now we know that we can look at DX of T, the rate of change is proportional. We were told that in the
problem that the rate of change was proportional to the product of the instantaneous amount of A and B not converted. So DX DT is proportional to the amount of A not converted and the amount of B not converted. And if you think about this, this makes sense because as you get less and less A, you're not going to have a very fast reaction. And if you're less and less B, you're not going to get a very fast reaction. But when they have a lot of both,
you're going to have a much faster reaction. Portionality means that we have a portionality constant. So we'll throw that in. And here is your equation. This is, in fact, separable. And so you can actually go ahead and separate it out and solve it. I would probably do a little bit of simplifying here. One of the things I noticed is I don't like fractions. So I would pull two-thirds out. And when I pull two-thirds out, that means I'm going
to get 150 minus X here because I'm taking two-thirds out. So think of it as two-thirds of 100 is 150. And then you're going to take two-thirds out of this one. Or actually, I'm going to take one-third out of this one. And one-third of this one is going to give me 150 minus X also. So we end up with two-ninths times your proportionality constant times 150 minus X squared. And so now we can actually go ahead and solve this. This is now separable.
And so you can solve this equation. I'll let you do that. Once you actually take the separated and find the solution, remember that you were told that the amount after five minutes of C is 10. That will allow you to find that K. And then your zero will allow you to find your constant. Thank you.

Ask anything
We've read this whole study set, so questions about it get the best answers.