Learning Objectives
- 4.3.1 Use separation of variables to solve a differential equation.
- 4.3.2 Solve applications using separation of variables.
We now examine a solution technique for finding exact solutions to a class of differential equations known as separable differential equations. These equations are common in a wide variety of disciplines, including physics, chemistry, and engineering. We illustrate a few applications at the end of the section.
Separation of Variables
We start with a definition and some examples.
Definition
A separable differential equation is any equation that can be written in the form
The term ‘separable’ refers to the fact that the right-hand side of the equation can be separated into a function of times a function of Examples of separable differential equations include
The second equation is separable with and the third equation is separable with and and the right-hand side of the fourth equation can be factored as so it is separable as well. The third equation is also called an autonomous differential equation because the right-hand side of the equation is a function of alone. If a differential equation is separable, then it is possible to solve the equation using the method of separation of variables.
Problem-Solving Strategy
Separation of Variables
- Check for any values of that make These correspond to constant solutions.
- Rewrite the differential equation in the form
- Integrate both sides of the equation.
- Solve the resulting equation for if possible.
- If an initial condition exists, substitute the appropriate values for and into the equation and solve for the constant.
Note that Step 4. states “Solve the resulting equation for if possible.” It is not always possible to obtain as an explicit function of Quite often we have to be satisfied with finding as an implicit function of
Example 4.10
Using Separation of Variables
Find a general solution to the differential equation using the method of separation of variables.
Solution
Follow the five-step method of separation of variables.
- In this example, and Setting gives as a constant solution.
- Rewrite the differential equation in the form
- Integrate both sides of the equation:
Let Then so the equation becomes
- To solve this equation for first multiply both sides of the equation by
Now we use some logic in dealing with the constant Since represents an arbitrary constant, also represents an arbitrary constant. If we call the second arbitrary constant the equation becomes
Now exponentiate both sides of the equation (i.e., make each side of the equation the exponent for the base
Again define a new constant (note that
This corresponds to two separate equations: and
The solution to either equation can be written in the form
Since it does not matter whether we use plus or minus, so the constant can actually have either sign. Furthermore, the subscript on the constant is entirely arbitrary, and can be dropped. Therefore the solution can be written as
- No initial condition is imposed, so we are finished.
Checkpoint 4.10
Use the method of separation of variables to find a general solution to the differential equation
Example 4.11
Solving an Initial-Value Problem
Using the method of separation of variables, solve the initial-value problem
Solution
Follow the five-step method of separation of variables.
- In this example, and Setting gives as constant solutions.
- Divide both sides of the equation by and multiply by This gives the equation
- Next integrate both sides:
(4.4)
To evaluate the left-hand side, use the method of partial fraction decomposition. This leads to the identity
Then Equation 4.4 becomes
Multiplying both sides of this equation by and replacing with gives
- It is possible to solve this equation for y. First exponentiate both sides of the equation and define
Next we can remove the absolute value and let be either positive or negative. Then multiply both sides by
Now collect all terms involving y on one side of the equation, and solve for
- To determine the value of substitute and into the general solution. Alternatively, we can put the same values into an earlier equation, namely the equation This is much easier to solve for
Therefore the solution to the initial-value problem is
A graph of this solution appears in Figure 4.15.
Checkpoint 4.11
Find the solution to the initial-value problem
using the method of separation of variables.
Applications of Separation of Variables
Many interesting problems can be described by separable equations. We illustrate two types of problems: solution concentrations and Newton’s law of cooling.
Solution concentrations
Consider a tank being filled with a salt solution. We would like to determine the amount of salt present in the tank as a function of time. We can apply the process of separation of variables to solve this problem and similar problems involving solution concentrations.
Example 4.12
Determining Salt Concentration over Time
A tank containing of a brine solution initially has of salt dissolved in the solution. At time another brine solution flows into the tank at a rate of This brine solution contains a concentration of of salt. At the same time, a stopcock is opened at the bottom of the tank, allowing the combined solution to flow out at a rate of so that the level of liquid in the tank remains constant (Figure 4.16). Find the amount of salt in the tank as a function of time (measured in minutes), and find the limiting amount of salt in the tank, assuming that the solution in the tank is well mixed at all times.
Solution
First we define a function that represents the amount of salt in kilograms in the tank as a function of time. Then represents the rate at which the amount of salt in the tank changes as a function of time. Also, represents the amount of salt in the tank at time which is kilograms.
The general setup for the differential equation we will solve is of the form
INFLOW RATE represents the rate at which salt enters the tank, and OUTFLOW RATE represents the rate at which salt leaves the tank. Because solution enters the tank at a rate of L/min, and each liter of solution contains kilogram of salt, every minute of salt enters the tank. Therefore INFLOW RATE =
To calculate the rate at which salt leaves the tank, we need the concentration of salt in the tank at any point in time. Since the actual amount of salt varies over time, so does the concentration of salt. However, the volume of the solution remains fixed at 100 liters. The number of kilograms of salt in the tank at time is equal to Thus, the concentration of salt is kg/L, and the solution leaves the tank at a rate of L/min. Therefore salt leaves the tank at a rate of kg/min, and OUTFLOW RATE is equal to Therefore the differential equation becomes and the initial condition is The initial-value problem to be solved is
The differential equation is a separable equation, so we can apply the five-step strategy for solution.
Step 1. Setting gives as a constant solution. Since the initial amount of salt in the tank is kilograms, this solution does not apply.
Step 2. Rewrite the equation as
Then multiply both sides by and divide both sides by
Step 3. Integrate both sides:
Step 4. Solve for
Eliminate the absolute value by allowing the constant to be either positive or negative:
Finally, solve for
Step 5. Solve for
The solution to the initial value problem is To find the limiting amount of salt in the tank, take the limit as approaches infinity:
Note that this was the constant solution to the differential equation. If the initial amount of salt in the tank is kilograms, then it remains constant. If it starts at less than 50 kilograms, then it approaches 50 kilograms over time.
Checkpoint 4.12
A tank contains kilograms of salt dissolved in liters of water. A salt solution of is pumped into the tank at a rate of and is drained at the same rate. Solve for the salt concentration at time Assume the tank is well mixed at all times.
Newton’s law of cooling
Newton’s law of cooling states that the rate of change of an object’s temperature is proportional to the difference between its own temperature and the ambient temperature (i.e., the temperature of its surroundings). If we let represent the temperature of an object as a function of time, then represents the rate at which that temperature changes. The temperature of the object’s surroundings can be represented by Then Newton’s law of cooling can be written in the form
or simply
The temperature of the object at the beginning of any experiment is the initial value for the initial-value problem. We call this temperature Therefore the initial-value problem that needs to be solved takes the form
where is a constant that needs to be either given or determined in the context of the problem. We use these equations in Example 4.13.
Example 4.13
Waiting for a Pizza to Cool
A pizza is removed from the oven after baking thoroughly, and the temperature of the pizza when it comes out of the oven is The temperature of the kitchen is and after minute the temperature of the pizza is We would like to wait until the temperature of the pizza reaches before cutting and serving it (Figure 4.17). How much longer will we have to wait?
Solution
The ambient temperature (surrounding temperature) is so The temperature of the pizza when it comes out of the oven is which is the initial temperature (i.e., initial value), so Therefore Equation 4.4 becomes
To solve the differential equation, we use the five-step technique for solving separable equations.
- Setting the right-hand side equal to zero gives as a constant solution. Since the pizza starts at this is not the solution we are seeking.
- Rewrite the differential equation by multiplying both sides by and dividing both sides by
- Integrate both sides:
- Solve for by first exponentiating both sides:
- Solve for by using the initial condition
Therefore the solution to the initial-value problem is
To determine the value of we need to use the fact that after minute the temperature of the pizza is Therefore Substituting this information into the solution to the initial-value problem, we have
So now we have When is the temperature Solving for we find
Therefore we need to wait an additional minutes (after the temperature of the pizza reached That should be just enough time to finish this calculation.
Checkpoint 4.13
A cake is removed from the oven after baking thoroughly, and the temperature of the cake when it comes out of the oven is The temperature of the kitchen is and after minutes the temperature of the cake is
- Write the appropriate initial-value problem to describe this situation.
- Solve the initial-value problem for
- How long will it take until the temperature of the cake is within of room temperature?
Section 4.3 Exercises
Solve the following initial-value problems with the initial condition and graph the solution.
Find the general solution to the differential equation.
Find the solution to the initial-value problem.
For the following problems, use a software program or your calculator to generate the directional fields. Solve explicitly and draw solution curves for several initial conditions. Are there some critical initial conditions that change the behavior of the solution?
[T]
[T]
Most drugs in the bloodstream decay according to the equation where is the concentration of the drug in the bloodstream. If the half-life of a drug is hours, what fraction of the initial dose remains after hours?
A drug is administered intravenously to a patient at a rate mg/h and is cleared from the body at a rate proportional to the amount of drug still present in the body, Set up and solve the differential equation, assuming there is no drug initially present in the body.
[T] How often should a drug be taken if its dose is mg, it is cleared at a rate mg/h, and mg is required to be in the bloodstream at all times?
A tank contains kilogram of salt dissolved in liters of water. A salt solution of kg salt/L is pumped into the tank at a rate of L/min and is drained at the same rate. Solve for the salt concentration at time Assume the tank is well mixed.
A tank containing kilograms of salt dissolved in liters of water has two salt solutions pumped in. The first solution of kg salt/L is pumped in at a rate of L/min and the second solution of kg salt/L is pumped in at a rate of L/min. The tank drains at L/min. Assume the tank is well mixed. Solve for the salt concentration at time
[T] For the preceding problem, find how much salt is in the tank hour after the process begins.
Torricelli’s law states that for a water tank with a hole in the bottom that has a cross-sectional area of and with a height of water above the bottom of the tank, the rate of change of volume of water flowing from the tank is proportional to the square root of the height of water, according to where is the acceleration due to gravity. Note that where is the cross-sectional area of the tank. Solve the resulting initial-value problem for the height of water, assuming a tankof radius with a circular hole of radius ft.
For the following problems, use Newton’s law of cooling.
The liquid base of an ice cream has an initial temperature of before it is placed in a freezer with a constant temperature of After hour, the temperature of the ice-cream base has decreased to Formulate and solve the initial-value problem to determine the temperature of the ice cream.
[T] The liquid base of an ice cream has an initial temperature of before it is placed in a freezer with a constant temperature of After hours, the temperature of the ice-cream base has decreased to At what time will the ice cream be ready to eat? (Assume is the optimal eating temperature.)
[T] You are organizing an ice cream social. The outside temperature is and the ice cream is at After minutes, the ice cream temperature has risen by How much longer can you wait before the ice cream melts at
For Exercises 159—162, assume a cooling constant of and assume time is in minutes.
You have a cup of coffee at temperature and the ambient temperature in the room is Assuming a cooling rate write and solve the differential equation to describe the temperature of the coffee with respect to time.
[T] You have a cup of coffee at temperature that you put outside, where the ambient temperature is After minutes, how much colder is the coffee?
You have a cup of coffee at temperature and you immediately pour in part milk to parts coffee. The milk is initially at temperature Write and solve the differential equation that governs the temperature of this coffee.
You have a cup of coffee at temperature which you let cool minutes before you pour in the same amount of milk at as in the preceding problem. How does the temperature compare to the previous cup after minutes?
Prove the basic continual compounded interest equation. Assuming an initial deposit of and an interest rate of set up and solve an equation for continually compounded interest.
Assume an initial nutrient amount of kilograms in a tank with liters. Assume a concentration of kg/L being pumped in at a rate of L/min. The tank is well mixed and is drained at a rate of L/min. Find the equation describing the amount of nutrient in the tank.
Leaves accumulate on the forest floor at a rate of g/cm2/yr and also decompose at a rate of per year. Write a differential equation governing the number of grams of leaf litter per square centimeter of forest floor, assuming at time there is no leaf litter on the ground. Does this amount approach a steady value? What is that value?
Leaves accumulate on the forest floor at a rate of g/cm2/yr. These leaves decompose at a rate of per year. Write a differential equation governing the number of grams of leaf litter per square centimeter of forest floor. Does this amount approach a steady value? What is that value?