Nathan Wakefield, Christine Kelley, Marla Williams, Michelle Haver, Lawrence Seminario-Romero, Robert Huben, Aurora Marks, Stephanie Prahl, Based upon Active Calculus by Matthew Boelkins
We have seen several ways that differential equations arise in the natural world, from the growth of a population to the temperature of a cup of coffee. In this section, we look more closely at how differential equations give us a natural way to describe various phenomena. As we’ll see, the key is to understand the different factors that cause a quantity to change.
Example8.45.
Any time that the rate of change of a quantity is related to the amount of a quantity, a differential equation naturally arises. In the following two problems, we see two such scenarios; for each, we want to develop a differential equation whose solution is the quantity of interest.
Suppose you have a bank account in which money grows at an annual rate of 3%.
If you have $10,000 in the account, at what rate is your money growing?
Suppose that you are also withdrawing money from the account at $1,000 per year. What is the rate of change in the amount of money in the account? What are the units of this rate of change?
Suppose that a water tank holds 100 gallons and that a salty solution, which contains 20 grams of salt in every gallon, enters the tank at 2 gallons per minute.
How much salt enters the tank each minute?
Suppose that initially there are 300 grams of salt in the tank. How much salt is in each gallon at this point in time?
Finally, suppose that evenly mixed solution is pumped out of the tank at the rate of 2 gallons per minute. How much salt leaves the tank each minute?
What is the total rate of change in the amount of salt in the tank?
Example 8.45 demonstrates the kind of thinking we will be doing in this section. In each of the two examples we considered, there is a quantity, such as the amount of money in the bank account or the amount of salt in the tank, that is changing due to several factors. The governing differential equation states that the total rate of change is the difference between the rate of increase and the rate of decrease.
Example8.46.
In the Great Lakes region, rivers flowing into the lakes carry a great deal of pollution in the form of small pieces of plastic averaging 1 millimeter in diameter. In order to understand how the amount of plastic in Lake Michigan is changing, construct a model for how this type pollution has built up in the lake.
Solution.
First, some basic facts about Lake Michigan.
The volume of the lake is cubic meters.
Water flows into the lake at a rate of cubic meters per year. It flows out of the lake at the same rate.
Each cubic meter flowing into the lake contains roughly cubic meters of plastic pollution.
Let’s denote the amount of pollution in the lake by , where is measured in cubic meters of plastic and in years. Our goal is to describe the rate of change of this function; so we want to develop a differential equation describing .
First, we will measure how increases due to pollution flowing into the lake. We know that cubic meters of water enters the lake every year and each cubic meter of water contains cubic meters of pollution. Therefore, pollution enters the lake at the rate of
wateryear plastic watercubic m of plastic per year.
Second, we will measure how decreases due to pollution flowing out of the lake. If the total amount of pollution is cubic meters and the volume of Lake Michigan is cubic meters, then the concentration of plastic pollution in Lake Michigan is
cubic m of plastic per cubic m of water.
Since cubic meters of water flow out each year 6
and we assume that each cubic meter of water that flows out carries with it the plastic pollution it contains
, then the plastic pollution leaves the lake at the rate of
plastic water wateryearcubic m of plastic per year.
The total rate of change of is thus the difference between the rate at which pollution enters the lake and the rate at which pollution leaves the lake; that is,
.
We have now found a differential equation that describes the rate at which the amount of pollution is changing. To understand the behavior of , we apply some of the techniques we have recently developed.
Because the differential equation is autonomous, we can sketch as a function of and then construct a slope field, as shown in Figure 8.47 and Figure 8.48.
Figure8.47.Plot of vs. for .
Figure8.48.Plot of the slope field for .
These plots both show that is a stable equilibrium. Therefore, we should expect that the amount of pollution in Lake Michigan will stabilize near cubic meters of pollution.
Next, assuming that there is initially no pollution in the lake, we will solve the initial value problem
.
Separating variables, we find that
.
Integrating with respect to , we have
,
and thus changing variables on the left and antidifferentiating on both sides, we find that
Finally, multiplying both sides by and using the definition of the logarithm, we find that
.(8.1)
This is a good time to determine the constant . Since when , we have
,
so .
Using this value of in Equation (8.1) and solving for , we arrive at the solution
.
Superimposing the graph of on the slope field we saw in Figure 8.48, we see, as shown in Figure 8.49
We see that, as expected, the amount of plastic pollution stabilizes around cubic meters.
Figure8.49.The solution and the slope field for the differential equation .
There are many important lessons to learn from Example 8.46. Foremost is how we can develop a differential equation by thinking about the “total rate = rate in - rate out” model. In addition, we note how we can bring together all of our available understanding (plotting vs. , creating a slope field, solving the differential equation) to see how the differential equation describes the behavior of a changing quantity.
We can also explore what happens when certain aspects of the problem change. For instance, let’s suppose we are at a time when the plastic pollution entering Lake Michigan has stabilized at cubic meters, and that new legislation is passed to prevent this type of pollution entering the lake. So, there is no longer any inflow of plastic pollution to the lake. How does the amount of plastic pollution in Lake Michigan now change? For example, how long does it take for the amount of plastic pollution in the lake to halve?
It is a straightforward and familiar exercise to find that the solution to this equation is . The time that it takes for half of the pollution to flow out of the lake is given by where . Thus, we must solve the equation
In the upcoming activities, we explore some other natural settings in which differential equations model changing quantities.
Example8.50.
Suppose you have a bank account that grows by 5% every year. Let be the amount of money in the account in year .
What is the rate of change of with respect to ?
Suppose that you are also withdrawing $10,000 per year. Write a differential equation that expresses the total rate of change of .
Sketch a slope field for this differential equation, find any equilibrium solutions, and identify them as either stable or unstable. Write a sentence or two that describes the significance of the stability of the equilibrium solution.
Suppose that you initially deposit $100,000 into the account. How long does it take for you to deplete the account?
What is the smallest amount of money you would need to have in the account to guarantee that you never deplete the money in the account?
If your initial deposit is $300,000, how much could you withdraw every year without depleting the account?
Hint.
Small hints for each of the prompts above.
Answer.
.
.
The only equilibrium solution is .
years.
At least $200000.
Up to $15000 every year.
Solution.
Let be the amount of money in a bank account in year that grows by 5% every year.
The rate of change of with respect to is .
If $10000 is being withdrawn every year, then
.
Following is a slope field for the differential equation in (b).
Equilibrium solutions occur where and so the only equilibrium solution is . This means that if you have $200000 in the account, then the amount of money in the account will remain constant at $200000.
Suppose we initially have $100000 in the account. We will solve the initial value problem
.
Using separation of variables, we find that
,
and since , we have
.
To determine when the account will be depleted, we solve the equation for . Since , it follows and thus , so the account will be depleted in about 13.86 years.
You must have at least $200000 in the account to make sure the account will never be depleted.
Now suppose the initial deposit is $300000 and we want to what amount we can withdraw every year without depleting the account. So the initial value problem is
.
The solution to this initial value problem is
.
To make sure the account is never depleted, we need to be greater than or equal to 0. Solving the inequality , we obtain . We can withdraw up to $15000 every year and the account will not be depleted.
Example8.51.
A dose of morphine is absorbed from the bloodstream of a patient at a rate proportional to the amount in the bloodstream.
Write a differential equation for , the amount of morphine in the patient’s bloodstream, using as the constant proportionality.
Assuming that the initial dose of morphine is , solve the initial value problem to find . Use the fact that the half-life for the absorption of morphine is two hours to find the constant .
Suppose that a patient is given morphine intravenously at the rate of 3 milligrams per hour. Write a differential equation that combines the intravenous administration of morphine with the body’s natural absorption.
Find any equilibrium solutions and determine their stability.
Assuming that there is initially no morphine in the patient’s bloodstream, solve the initial value problem to determine . What happens to after a very long time?
To what rate should a doctor reduce the intravenous rate so that there is eventually 7 milligrams of morphine in the patient’s bloodstream?
Hint.
Small hints for each of the prompts above.
Answer.
, where is a positive constant.
.
, where is a positive constant.
The equilibrium solution is stable.
.
About 2.426 milligrams per hour.
Solution.
We will use the differential equation , where is a positive constant.
With an initial condition of when , the solution for the initial value problem is
.
Using a half-life of 2 hours, we see that when . This gives , from which it follows that .
Noting that the rate of change of the drug in the body will be the difference between the positive contributions of the dosage of 3 milligrams per hour and the decay of per hour, it follows that , where is a positive constant.
To find the equilibrium solutions, we solve the equation for . This gives . The graph of as a function of is a straight line with a negative slope. (The slope is .) So when , and the is an increasing function of . When , and the is a decreasing function of . This means that the equilibrium solution is a stable equilibrium solution.
We use the initial condition when and solve the corresponding IVP. Separating variables,
,
so
,
and thus
.
Solving for in the usual way gives us
,
where is a constant that arises from the integration constant. Using the initial condition, we obtain , so . Hence, the solution to the initial condition problem is .
We let be the unknown intravenous rate of morphine (in milligrams per hour). Notice that if we replace with in the differential equation and obtain , the solution process is the same and the equilibrium solution is . So if we want the equilibrium solution to be , we then have , so . The intravenous rate of morphine should be 2.426 milligrams per hour.
and we try to determine the values of the constants ,,. The latter situation is explored in Example 8.52.
Example8.52.
We have learned some of the many important applications of differential equations, and learned some approaches to solve or analyze them. Here, we consider an important approach that will allow us to solve a wider variety of differential equations.
Let’s consider the familiar differential equation from exponential population growth given by
,(8.2)
where is the constant of proportionality. While we can solve this differential equation using methods we have already learned, we take a different approach now that can be applied to a much larger set of differential equations. For the rest of this example, let’s assume that . We will use our knowledge of Taylor series to find a solution to the differential equation (8.2).
To do so, we assume that we have a solution and that has a Taylor series that can be written in the form
,
where the coefficients are undetermined. Our task is to find the coefficients.
Assume that we can differentiate a power series term by term. By taking the derivative of with respect to and substituting the result into the differential equation (8.2), show that the equation
must be satisfied in order for to be a solution of the DE.
Two series are equal if and only if they have the same coefficients on like power terms. Use this fact to find a relationship between and .
Now write in terms of . Then write in terms of .
Write in terms of . Then write in terms of .
Write in terms of . Then write in terms of .
Observe that there is a pattern in (b)-(e). Find a general formula for in terms of .
Write the series expansion for using only the unknown coefficient . From this, determine what familiar functions satisfy the differential equation (8.2). (Hint: Compare to a familiar Taylor series.)
Solution.
Differentiation term by term gives
.
We then substitute this series into the differential equation (8.2) to obtain the equation
When we write the first few terms of the series on either side of our differential equation we obtain
.
Equating the constant terms gives us .
Equating the degree 1 terms gives us or . Since , we have .
Equating the degree 2 terms gives us or . Since , we have .
Equating the degree 3 terms gives us or . Since , we have .
Equating the degree terms gives us or . It appears that , so we have
.
Since we have
.
So the functions that satisfy the differential equation (8.2) are the exponential functions of the form .
As Example 8.52 shows, it can be useful to treat an unknown function as if it has a Taylor series, and then determine the coefficients from other information. In other words, we define a function as an infinite series of powers of and then determine the coefficients based on something besides a formula for the function. This method allows us to approximate solutions to many different types of differential equations, even if we cannot solve them explicitly. This is different from our work with Taylor series since we are not using an original function to generate the coefficients of the series.
Differential equations arise in a situation when we understand how various factors cause a quantity to change.
We may use the tools we have developed so far (slope fields, Euler’s methods, the method for solving separable equations, and approximating solutions using Taylor series) to understand a quantity described by a differential equation.
A tank contains L of pure water. A solution that contains kg of sugar per liter enters the tank at the rate L/min. The solution is mixed and drains from the tank at the same rate.
A tank contains kg of salt and L of water. A solution of a concentration kg of salt per liter enters a tank at the rate L/min. The solution is mixed and drains from the tank at the same rate.
A young person with no initial capital invests dollars per year in a retirement account at an annual rate of return . Assume that investments are made continuously and that the return is compounded continuously.
Congratulations, you just won the lottery! In one option presented to you, you will be paid one million dollars a year for the next 25 years. You can deposit this money in an account that will earn 5% each year.
Set up a differential equation that describes the rate of change in the amount of money in the account. Two factors cause the amount to grow—first, you are depositing one millon dollars per year and second, you are earning 5% interest.
If there is no amount of money in the account when you open it, how much money will you have in the account after 25 years?
The second option presented to you is to take a lump sum of 10 million dollars, which you will deposit into a similar account. How much money will you have in that account after 25 years?
Do you prefer the first or second option? Explain your thinking.
At what time does the amount of money in the account under the first option overtake the amount of money in the account under the second option?
When a skydiver jumps from a plane, gravity causes her downward velocity to increase at the rate of meters per second squared. At the same time, wind resistance causes her velocity to decrease at a rate proportional to the velocity.
Using to represent the constant of proportionality, write a differential equation that describes the rate of change of the skydiver’s velocity.
Find any equilibrium solutions and decide whether they are stable or unstable. Your result should depend on .
Suppose that the initial velocity is zero. Find the velocity .
A typical terminal velocity for a skydiver falling face down is 54 meters per second. What is the value of for this skydiver?
How long does it take to reach 50% of the terminal velocity?
Suppose that you have a water tank that holds 100 gallons of water. A briny solution, which contains 20 grams of salt per gallon, enters the tank at the rate of 3 gallons per minute.
At the same time, the solution is well mixed, and water is pumped out of the tank at the rate of 3 gallons per minute.
Since 3 gallons enters the tank every minute and 3 gallons leaves every minute, what can you conclude about the volume of water in the tank.
How many grams of salt enters the tank every minute?
Suppose that denotes the number of grams of salt in the tank in minute . How many grams are there in each gallon in minute ?
Since water leaves the tank at 3 gallons per minute, how many grams of salt leave the tank each minute?
Write a differential equation that expresses the total rate of change of .
Identify any equilibrium solutions and determine whether they are stable or unstable.
Suppose that there is initially no salt in the tank. Find the amount of salt in minute .
What happens to after a very long time? Explain how you could have predicted this only knowing how much salt there is in each gallon of the briny solution that enters the tank.
The general differential equations of the form is called Airy’s equation. These equations arise in many problems, such as the study of diffraction of light, diffraction of radio waves around an object, aerodynamics, and the buckling of a uniform column under its own weight.
can be used to model an undamped vibrating spring with spring constant (note that is an unknown function of ). So the solution to this differential equation will tell us the behavior of a spring-mass system as the spring ages (like an automobile shock absorber). Assume that a solution has a Taylor series that can be written in the form
where the coefficients are undetermined. Our job is to find the coefficients.
Differentiate the series for term by term to find the series for . Then repeat to find the series for .
Substitute your results from part (a) into the Airy equation and show that we can write Equation (8.3) in the form
.(8.4)
At this point, it would be convenient if we could combine the series on the left in (8.4), but one written with terms of the form and the other with terms in the form . Explain why