Welcome back everyone. In this video, we're going to take a look at a third growth model, commonly referred to as logistic growth. That's going to be the best of both worlds between the inhibited growth and the uninhibited growth. So we like about the inhibited growth model as it does have this idea of a maximum population. Your population can't just grow, grow, grow, grow, grow without bounds, right? It has a carrying capacity built into it. But the inhibited growth still is insufficient to grow, to model every growth model. While the growth shrinks, when you get close to the maximum population, for inhibited growth, you have rapid, rapid growth when you're far away from the, when you're far away from the maximum population. That works really well when you're like cooling temperatures and such, but for a population of organisms, that's not exactly the best model. If your population is so small, it actually might be difficult for organisms to find each other, reproduce, mate, spread, all of that. In which case, the more, the more the more population is, the more you can grow, but also you can't grow too big. So what we want to do is look for a growth model that's a compromise, and that's this logistic growth model. So consider the following differential equation. We'll give you some explanation of why this was chosen in just a second. So take the equation dp over dt equals kp times 1 minus p over m. So what is this thing doing right here? Well, the first thing to note is, as p goes to 0, right, if your population is really, really small, and that's how I want you to interpret this, if you have small population, what that means is, this expression 1 minus p over m, well, this would converge, well, this will, this will converge to 1 minus 0 over m. Well, that's gonna be 1 minus 0. That is 1. And that situation, we then get that our derivative p prime, it will be approximately kp times 1, the 1 minus p over m becomes 1, and thus you get kp. And so what we see right here is that when our population is small, this right here, kp, this is gonna look like uninhibited growth. It looks like there's no end to how big this thing can grow. All right, so when it's small, it'll look like natural exponential growth. On the other hand, as the population gets closer to the maximum population, we see that we get 1 minus p over m. This thing will converge towards 1 minus m over m, which is 1 minus 1, which is now 0. And so in this situation, we see that p prime will be approximately kp times 0, that is 0. And so what's happening here is that when p gets closer to m, this looks like there's no growth whatsoever. And that's because this is now inhibited growth. And so this model, this logistic model here, then in fact, finds this hybrid between inhibited growth and uninhibited growth. And how did we come up with this thing? Well, this model is based upon the following assumptions. All models here are based upon assumptions. And this model, p prime, we're assuming is jointly, it's jointly proportional to two things. We have the size, the current size, which is p, and we have the so-called relative, relative elbow room, which is this quantity 1 minus m over p. Let's give some explanation. Oh, I wrote that upside down. 1 minus p over m. To give some explanation of what that thing means here, if we take the elbow room we talked about before, m minus p, that's how much capacity is there to grow towards the maximum. Divide that by the maximum. And this is going to give us a percentage. This will tell us what percentage we have growth left. And so this is this relative growth, a relative elbow room we were talking about. And this would be, could be written as 1 minus p over m. Like so. So we see that this differential equation has built into it. These assumptions about when it's small, it'll grow slowly. When it's big, it'll grow slowly. But when you're in the middle, it'll grow rapidly. This is the Goldilocks of growth models. Not too hot, not too cold. That's when it'll grow rapidly. So great. We came up with a differential equation. That's sort of like the first part of this. But now how do we solve this differential equation? Well, just like inhibited growth, this differential equation, p prime, we'll write dp over dt. This is a separable differential equation. kp times 1 minus m over p. We can separate the variables, in which case we're going to get dp over p times 1 minus m over p. Like so. And this will equal k dt. Integrating both sides, once you've separated the variables, the right-hand side is pretty much a cinch. It's going to look like kt plus a constant. The left-hand side is going to take a lot more effort. So to begin with, we actually have this rational expression for which to integrate it, we need to have to do a partial fraction decomposition.  I don't really like fractions inside of fractions. So to begin with, oh, did I write, I wrote the fraction upside down again. I'm sorry. I keep on doing that. Let me fix this real quick. So this should be p over m. And I'll also kill off the other erroneous instances of this. So we have p over m. And then we have here p over m. Great. So to clear the baby fractions inside of the mom fraction there, we're going to times the top and bottom by m. And so to distribute the m onto this piece right here, this would give us m over p times m minus p. And so this thing we want to decompose into partial fractions, we're going to get a over p plus b over m minus p. If we cleared the denominators, this will give us m is equal to a times m minus p plus bp. And so let's try some cool annihilating values. If we take p to equal zero, that'll annihilate the b. And we're left with m is equal to a m. That is to say a equals 1. And then likewise, if we take p to equal m, that'll annihilate a. And you're going to get that m equals bm. Divide both sides by m. You get b equals 1, like so.  And so returning to the integral, we now have to integrate 1 over p dp plus the integral of 1 over m minus p dp. This is equal to kt plus a constant. The first one, the first integral, 1 over p, that's going to give us the natural log of p. I'm ignoring the absolute value here because the population does have to be positive here. For the second one, you're going to get minus the natural log of m minus p. Again, we can't be bigger than the maximum, so m minus p is positive. This equals kt plus c. Combining the logarithms, we're going to get the natural log of p over m minus p, kt plus c. And so for matters of convenience, we're actually going to flip this thing upside down. Actually, I guess another way of saying it is if we actually times both sides of the equation by negative 1 over here, this gives us the natural log of m minus p over p, and this is equal to negative kt plus c. The gelatinous cube absorbs the negative sign, and we have the following equation here. So then to get rid of the natural log, we'll take the natural exponential of both sides. We get m minus p over p, and this is equal to e to negative kt plus a constant. And like we've seen before, a gelatinous cube in the exponent actually becomes a coefficient out front. Cross-multiply, that is times both sides by p. So the p's cancel over here. We're going to get m minus p is equal to c, e to negative kt times p. Add p to both sides. We now are going to have m equals p plus p, c, e to the negative kt, like so. Act around the p on the right. So you get one plus e, sorry, c, e to negative kt. This is equal to m. And so divide both sides by the coefficient that we see right here. And now we get the logistic model we were looking for, p equals big fraction m on top, one plus c, e to the negative kt on the bottom. All right, it takes a little bit of effort, but let's go back up to what we had already written on the screen, and here we go. p equals m over one plus c, e to the negative t. As we've seen in other examples, we do have to investigate what is this constant c right here. If you plug in p or t equals zero, you're going to get p zero equals the maximum population on top, one plus c, e to the zero, that is m over one plus c. Cross-multiply, you're going to get p times one plus c is equal to m. In that case, I guess we could, well, we want to solve for c, so let's just divide by m. We're going to get one plus c equals m over p, that is c equals m over p minus one. And I guess I should be writing p here as p naught. This is the initial population. To find a common denominator, the one becomes a p naught over p naught. And so this thing would then become what we see over here. c equals m minus p naught over p naught. And so this would be the initial relative elbow room. That's this coefficient. So these coefficients c always have to do with some type of initial value. Let's look at a quick example of how one could use this to try to make predictions about a population. So let's write the solution of the initial value problem given by the following differential equation. So we have p prime equals 0.08 p times one minus p over 1,000. And we have an initial value of 100 organisms in this population. So we should hopefully recognize that this right here is the logistic differential equation. Our k value is 0.08. We see it right here. And our population, maximum population is 1,000, which we see right here. So we don't have to go through driving the derivative, or the general solution all over again, because we just saw that. We use the logistic model the way we saw just a moment ago. The population is going to equal the maximum population over one plus c e to the negative kt. So the maximum population was 1,000. So 1,000 over one plus. We got to calculate the c value. c was the maximum minus p naught over p naught. This initial relative elbow room, we get 1,000 minus the initial population of 100 divided by 100. So you're going to get 900 over 100. We end up with a coefficient of 9. We're going to go in right here. So we get 9 times e to the negative k, negative 0.08t. And so this right here gives us the logistic equation that we want to model this data with. And for many science classes or college algebra classes, this is where things start. They give you the natural exponential growth model. They give you Newton's law of cooling. They give you the logistic model. And they don't give you the darndest clue on where it came from. And that's because there's some impressive differential equations that show us where it comes from. But once we know it, we can just use it by plugging in the initial conditions here. And so now let's make some calculations about p 40 and p 80. So if we were to do that p 40, this is going to look like 1,000 on top, 1 plus 9 e to the negative 0.08 times 40. And this is some number we're going to shove into a calculator. I'm not going to go through all the details of this, but this would be approximately 731.6. And so again, rounding here, we probably would say something like, oh, this would be 731 or 730, something like that. If we do the 80 value, p of 80, same basic idea of 1,000 over 1 plus 9 e to the negative 0.08 times 80. Again, this is a number we're going to throw into a calculator here. And the calculator will estimate this thing to be approximately 985.3. And so again, we probably would round this to like 985, 980, 990, something like that because we can't have a percentage. Another question to ask here is when will it reach 900? So when will the population equal 900? Well, that one's a little bit more challenging to do so, but we can do it. So we're asking ourselves, when is the population equal to 900? So equal 1,000 over 1 plus 9 e to the negative 0.08. So we can use a calculator to help us out here, but algebraically, if you go through this, you're going to cross-multiply these things together. So you end up with 900 times 1 plus 9 e to the negative 0.08 t. This is equal to 1,000. Like so, I'm just going to divide both sides by 900 at this moment, in which case we then get 1 plus 9 e to the negative 0.08 t. This is equal to 10 ninths or 1 and a ninth. In which case then if we subtract 1 from both sides, we end up seeing that we get 9 e to the negative 0.08 t equals just 1 ninth. Divide both sides by 9. Do that over here. You're going to get 1 over 81. And then we have to take the natural log of both sides. You're going to get the natural log, sorry, you're going to get negative 0.08 t is equal to the natural log of 1 over 81, which is the same thing as negative natural log of 81, like so. And then if you divide both sides by negative 0.08, we get t equals, it's a double negative. So you're going to get 1 over 0.08 times the natural log of 81. Now 81 of course is the same thing as 3 to the fourth. We can use that. I also don't really like dividing by decimals. It just kind of feels a little uncocher. So you can move that over. You can move that over. So moving the decimal places and bringing this four out in front. This fraction here would simplify to be 50. There's a little bit of details going on there. I'm skipping, but really we're not doing any calculus at this moment. This is just some algebra that's now devolved and just just arithmetic. This would be approximately 54.9. So around 55 time units is when this population will reach 900. And so once we have this algebraic equation in hand, we can use it to answer questions about what's the population at this time, when will the population reach this, and other types of analyses that we do in an algebra class. And that's why these functions like these models like logistic growth and natural exponentials are given to an algebra student is that with the function in hand, they can analyze it using their algebraic tools. But they're nowhere prepared to understand why one uses that function. And now something always baffled me when I was an algebra student. Where did the world that this logistic model come from? But when you see the solution as a differential equation, it actually is quite natural. When you look at the original logistic model, it's like, oh, we want to be jointly proportional to the current size in the current elbow room. Great, that makes sense a lot. And so those assumptions are very natural. And that leads to what seems like an unnatural equation, but it's actually quite natural. This is why the number E is such a natural number, so to speak, is that although it's an irrational number, so from like an arithmetic point of view, it seems completely unnatural. But from a differential equation point of view, the assumption was very natural, and it leads to these exponential like expressions. And so as we finish off this lecture, lecture 27, I just want to mention that these three growth models we've seen, uninhibited growth, inhibited growth, and logistic growth, these do not account for every growth model, not every decay model that one could have. Other factors that we haven't considered could be like seasonal growth or cyclical growth. Maybe there's some type of cycle or pattern to when things grow. You could have things like migration or an exodus, things are leaving. Maybe there's a minimum population that if our population gets too small, then you can't grow anymore. You actually decay, right? Think of like the white rhino or something.  There's issues like predator and prey. That's actually kind of an interesting problem, right? If you have a large population of prey, it becomes easier for the predators to eat them. But then when they start eating them too much, the predator population will get bigger because there's a lot of opportunity for food. But then the prey population gets small and then it's too hard for the predators to find enough food for everyone. So some of the predators fall down, but then the prey goes up. And there's a lot of reasons, a lot of context, a lot of assumptions that go into finding a good growth model. We've only seen some of the very basic examples. I don't want you to think this is all of it. But hopefully this gets you excited. So in the news, when you read about the spread of an infectious disease, are you an infectious disease called Facebook? Or when you look at the other type of statistical analysis about things growing and decaying, you can have some appreciation of where those things came from. It came from solving differential equations much like the logistic model. Now, we should also mention that all the examples we saw in this lecture do, they were solved as several different, separable differential equations. Of course, not every differential equation is separable. There are many times where it will be here, you know, inseparable. And so we're going to learn some more techniques of solving differential equations in our next lecture. See you then.


Bah, what's up everybody once again is Brandon Shawn and today this is pretty big if you guys have seen the Fetty Watt video a lot of people have a huge question about spamming people and I want to go ahead and break that myth so just to be clear if you guys have seen the Fetty Watt video I did see some of the comments and I said I'll make a video that were in doubt like Nicola Zunis said so his solution was to spam everywhere that track must be shit it won a Grammy but hey that's not up to me I am foreign said I hear everywhere that this is spam it's like a major sin online everyone seems to hate it but this is great advice so I appreciate it I am foreign seems to understand it but I want to talk about the fact that everybody's saying it's spamming let's find one more comment James Ernest said BS that's not how he got famous by posting songs on social media spamming people all day you will get hated and blocked note and no time every hit song I think he means for every hit song there are people behind it pushing you out to the masses if you don't know who are the elites in the biz do you a research how they made a pop song so he has a very conspiracy theory type perspective on how making songs and blowing up works I hate taking a little while getting into the media videos but that context is very necessary to understand why and what I'm about to talk about the difference between marketing and spamming see I didn't even realize people didn't understand these difference but it's all good I'm gonna give it a try give it a shot let's think about it this way when you got dudes posted up on the corner hollering at girls what's up girl that could be considered spam even if you did discriminate inside I went that particular girl if it's irrelevant to the girl you aren't a viable option for her she could just say your spamming every single YouTube commercial that you've ever seen every single TV commercial you didn't necessarily welcome that brand into your life they just popped up on the screen that could be considered spam as far as your concern maybe they did their best to say hey this is a particular audience that I think will be interested in this product so I'll be putting it in the middle of this show for commercials but you aren't interested so as far as you're concerned it's kind of spam or is that marketing was marketing again increasing the awareness of a product service person whatever marketing is something that you cannot avoid if you want to be successful in anything people have to be aware of your music before they listen to your music they have to be aware of you as an artist before they can buy into you as an artist you have to be aware that McDonald's exists before you go to McDonald's you have to be aware that they have fries before you buy fries at McDonald's or maybe that might come across as spam but that's up to you you choose the audience and you try to place yourself hoping to be as relevant as possible to that audience where and when you think they will be most likely to be receptive but even when it comes to marketing people don't necessarily listen or receive or act on marketing the very first time how many times have you heard about something in particular and you said that seems cool I might want to do that but you never actually went to that movie or decided for real to go to that movie until a friend asked you were already aware of it but then that friend put you in the action or maybe you saw an album or you saw a song but you never listened to it to a friend gave you say hey man this is dope so then you listen to it marketing doesn't necessarily come to fruition the first time you see it which is why a study I was doing and why we're talking about this in the first place he was posting and posting and putting this stuff in front of people's face so much eventually they gave it a listen cuz they probably didn't listen the first second third for or even fifth time that they saw it study show oftentimes in marketing a lot of times they say it takes about 11 times for people to see something before they actually act on it in terms of buying into a brand or what just checking out a brand or checking out a song checking out a product it is relevant to them and you making yourself aware to as many people as possible as quickly as possible is really just hopefully finding her right people because it's not a perfect science you don't necessarily know if everybody in a certain category will like your stuff you want to save yourself energy find people that you think might like your stuff and flood their attention with what you're doing but all of them might not like it so to some people you might be spam but to others you might be a god-seeing and they're happy to see your shit you can't be worried about the people who see you if you spam because think about how short people's attention spans are today how many times have you been on Instagram and you did a long scroll you know we got that scroll session they might I might be about to go to sleep or something like that scroll you see that funny post you see that other posts and you like and you see that cute chicken you like damn but by the time you get to the internet scroll there's some post that you even like you push that little heart button and you can't remember what it was about or you can't even remember whose page that it was on that's how people's attentions work especially with the internet and the massive amount of content that we have coming at us at one time five minutes later you like damn I want to tell my friend about that meme and you can't remember how you got to it you can't remember what page was on you can't even remember exactly the words that were on the meme that's how people's attention spans work so if you're not constantly getting in front of people a lot of times they aren't going to remember you you have to make yourself known and then known and then known until eventually there's a strong connection made and they know who you are and then they might even block you but at least they know who you are because rule number one of marketing is what get awareness you have to get awareness before you can sell somebody on anything I started a music festival we just did last Saturday had over a thousand people there I'll do a deeper breakdown on that later but a huge part of it was being in front of people's face as much as possible leveraging social media there's a great way to do it so you don't necessarily feel like spam but even if you get blocked think back to the Fetty Wap video where DJ Envy said man I blocked you eventually but later on like eight months later people were like yo Envy man we probably have to put this song on the radio in about two months and DJ Envy was like no put this on now we have to ride this wave this song is hot now we want to be at the front of the wave so not only did he block him but once he blocked him he knew who he was right because he actually went out his way to block him that's a stronger action than just continue and stroll by and don't you prefer people to actually know who you are you don't really have to worry about getting blocked to people liking you or not you just have to make sure you up shit is quiet anyway I don't usually do these rant type videos often we're going to codify this information in a series in a marketing and psychology series so y'all could really understand the detail and how people actually think about what you're saying and what you're doing because artists have been conditioned to do actually the opposite often times of what makes them successful and they're getting bad advice from people who don't actually do shit they just have opinions but until then just understand this spam is a relative term you can't worry about spamming people I did that video on why your shit isn't selling if you aren't fanatical as fuck about pushing your stuff on people who else will be excited about it now some of these other artists you might get confused by when you don't see some artists who post their stuff a lot they only post every once in a while but they have a huge machine behind them so when they actually do get big and they blow up they aren't posting but they have a record label or some kind of group or team that's blasting all their stuff for them so that blast or that spam or that marketing whatever you want to call it is happening is just not happening from them so they look like they're not trying but trust me don't get confused by this smokescreen because so much of the entertainment industry that's why I call entertainment because they're entertaining people and a huge part of entertainment like magic is to hide the actual way something is happening people try to hide the real to make themselves look like they're not trying and look like it's low effort but it ain't back that's it hit that subscribe button