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.
We start with a definition and some examples.
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 Equation \ref can be separated into a function of \(x\) times a function of \(y\). Examples of separable differential equations include
\[ \begin y' &=(x^2−4)(3y+2) \label \\[4pt] y' &=6x^2+4x \label\\[4pt] y' &=\sec y+\tan y \label \\[4pt] y' &=xy+3x−2y−6. \label \end \]
Equation \ref is separable with \(f(x)=6x^2+4x\) and \(g(y)=1\), Equation \ref is separable with \(f(x)=1\) and \(g(y)=\sec y+\tan y,\) and the right-hand side of Equation \ref can be factored as \((x+3)(y−2)\), so it is separable as well. Equation \ref is also called an autonomous differential equation because the right-hand side of the equation is a function of \(y\) alone. If a differential equation is separable, then it is possible to solve the equation using the method of separation of variables.
Note that Step 4 states “Solve the resulting equation for \(y\) if possible.” It is not always possible to obtain \(y\) as an explicit function of \(x\). Quite often we have to be satisfied with finding y as an implicit function of \(x\).
Find a general solution to the differential equation \(y'=(x^2−4)(3y+2)\) using the method of separation of variables.
Follow the five-step method of separation of variables.
1. In this example, \(f(x)=x^2−4\) and \(g(y)=3y+2\). Setting \(g(y)=0\) gives \(y=−\dfrac\) as a constant solution.
2. Rewrite the differential equation in the form
3. Integrate both sides of the equation:
Let \(u=3y+2\). Then \(du=3\dfrac\,dx\), so the equation becomes
4. To solve this equation for \(y\), first multiply both sides of the equation by \(3\).
Now we use some logic in dealing with the constant \(C\). Since \(C\) represents an arbitrary constant, \(3C\) also represents an arbitrary constant. If we call the second arbitrary constant \(C_1,\) where \(C_1 = 3C,\) the equation becomes
Now exponentiate both sides of the equation (i.e., make each side of the equation the exponent for the base \(e\)).
Again define a new constant \(C_2= e^\) (note that \(C_2 > 0\)):
Because of the absolute value on the left side of the equation, this corresponds to two separate equations:
The solution to either equation can be written in the form
Since \(C_2>0\), it does not matter whether we use plus or minus, so the constant can actually have either sign. Furthermore, the subscript on the constant \(C\) is entirely arbitrary, and can be dropped. Therefore the solution can be written as
Note that in writing a single general solution in this way, we are also allowing \(C\) to equal \(0\). This gives us the singular solution, \(y = -\dfrac\), for the given differential equation. Check that this is indeed a solution of this differential equation!
5. No initial condition is imposed, so we are finished.
Use the method of separation of variables to find a general solution to the differential equation
Hint
First factor the right-hand side of the equation by grouping, then use the five-step strategy of separation of variables.
Answer
Using the method of separation of variables, solve the initial-value problem
Follow the five-step method of separation of variables.
1. In this example, \(f(x)=2x+3\) and \(g(y)=y^2−4\). Setting \(g(y)=0\) gives \(y=±2\) as constant solutions.
2. Divide both sides of the equation by \(y^2−4\) and multiply by \(dx\). This gives the equation
3. Next integrate both sides:
To evaluate the left-hand side, use the method of partial fraction decomposition. This leads to the identity
Then Equation \ref becomes
\[\dfrac\left (\ln|y−2|−\ln|y+2| \right)=x^2+3x+C.\nonumber \]
Multiplying both sides of this equation by \(4\) and replacing \(4C\) with \(C_1\) gives
4. It is possible to solve this equation for \(y.\) First exponentiate both sides of the equation and define \(C_2=e^\):
Next we can remove the absolute value and let a new constant \(C_3\) be positive, negative, or zero, i.e., \(C_3 =\pm C_2\) or \(C_3 = 0.\)
Then multiply both sides by \(y+2\).
Now collect all terms involving \(y\) on one side of the equation, and solve for \(y\):
5. To determine the value of \(C_3\), substitute \(x=0\) and \(y=−1\) into the general solution. Alternatively, we can put the same values into an earlier equation, namely the equation \(\dfrac=C_3e^\). This is much easier to solve for \(C_3\):
Therefore the solution to the initial-value problem is
A graph of this solution appears in Figure \(\PageIndex\).
Find the solution to the initial-value problem
with \(y(0)=−3\) using the method of separation of variables.
Hint
Follow the steps for separation of variables to solve the initial-value problem.
Answer
Many interesting problems can be described by separable equations. We illustrate two types of problems: solution concentrations and Newton’s law of cooling.
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.
A tank containing \(100\) L of a brine solution initially has \(4\) kg of salt dissolved in the solution. At time \(t=0\), another brine solution flows into the tank at a rate of \(2\) L/min. This brine solution contains a concentration of \(0.5\) kg/L 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 \(2\) L/min, so that the level of liquid in the tank remains constant (Figure \(\PageIndex\)). 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.
First we define a function \(u(t)\) that represents the amount of salt in kilograms in the tank as a function of time. Then \(\dfrac\) represents the rate at which the amount of salt in the tank changes as a function of time. Also, \(u(0)\) represents the amount of salt in the tank at time \(t=0\), which is \(4\) 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 \(2\) L/min, and each liter of solution contains \(0.5\) kilogram of salt, every minute \(2(0.5)=1\) kilogram of salt enters the tank. Therefore INFLOW RATE = \(1\).
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 \(t\) is equal to \(u(t)\). Thus, the concentration of salt is \(\dfrac\) kg/L, and the solution leaves the tank at a rate of \(2\) L/min. Therefore salt leaves the tank at a rate of \(\dfrac⋅2=\dfrac\) kg/min, and OUTFLOW RATE is equal to \(\dfrac\). Therefore the differential equation becomes \(\dfrac=1−\dfrac\), and the initial condition is \(u(0)=4.\) 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 \(1−\dfrac=0\) gives \(u=50\) as a constant solution. Since the initial amount of salt in the tank is \(4\) kilograms, this solution does not apply.
Step 2. Rewrite the equation as
Then multiply both sides by \(dt\) and divide both sides by \(50−u:\)
Step 3. Integrate both sides:
Step 4. Solve for \(u(t)\):
Eliminate the absolute value by allowing the constant to be positive, negative, or zero, i.e., \(C_1 = \pm e^\) or \(C_1 = 0\):
Finally, solve for \(u(t)\):
Step 5. Solve for \(C_1\):
The solution to the initial value problem is \(u(t)=50−46e^.\) To find the limiting amount of salt in the tank, take the limit as \(t\) approaches infinity:
Note that this was the constant solution to the differential equation. If the initial amount of salt in the tank is \(50\) kilograms, then it remains constant. If it starts at less than \(50\) kilograms, then it approaches \(50\) kilograms over time.
A tank contains \(3\) kilograms of salt dissolved in \(75\) liters of water. A salt solution of \(0.4\) kg salt/L is pumped into the tank at a rate of \(6\) L/min and is drained at the same rate. Solve for the salt concentration at time \(t\). Assume the tank is well mixed at all times.
Hint
Follow the steps in Example \(\PageIndex\) and determine an expression for INFLOW and OUTFLOW. Formulate an initial-value problem, and then solve it.
Initial value problem:
Answer
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 \(T(t)\) represent the temperature of an object as a function of time, then \(\dfrac\) represents the rate at which that temperature changes. The temperature of the object’s surroundings can be represented by \(T_s\). Then Newton’s law of cooling can be written in the form
The temperature of the object at the beginning of any experiment is the initial value for the initial-value problem. We call this temperature \(T_0\). Therefore the initial-value problem that needs to be solved takes the form
with \(T(0)=T_0\), where \(k\) is a constant that needs to be either given or determined in the context of the problem. We use these equations in Example \(\PageIndex\).
A pizza is removed from the oven after baking thoroughly, and the temperature of the oven is \(350°F.\) The temperature of the kitchen is \(75°F\), and after \(5\) minutes the temperature of the pizza is \(340°F\). We would like to wait until the temperature of the pizza reaches \(300°F\) before cutting and serving it (Figure \(\PageIndex\)). How much longer will we have to wait?
The ambient temperature (surrounding temperature) is \(75°F\), so \(T_s=75\). The temperature of the pizza when it comes out of the oven is \(350°F\), which is the initial temperature (i.e., initial value), so \(T_0=350\). Therefore Equation \ref becomes
To solve the differential equation, we use the five-step technique for solving separable equations.
1. Setting the right-hand side equal to zero gives \(T=75\) as a constant solution. Since the pizza starts at \(350°F,\) this is not the solution we are seeking.
2. Rewrite the differential equation by multiplying both sides by \(dt\) and dividing both sides by \(T−75\):
3. Integrate both sides:
4. Solve for \(T\) by first exponentiating both sides:
\[\begine^ <\ln|T−75|>&=e^ \\ |T−75| &=C_1e^, & & \text C_1 = e^C. \\ T−75 &=\pm C_1e^ \\ T−75 &=Ce^, & & \text C = \pm C_1\text < or >C = 0.\\ T(t) &=75+Ce^. \end \nonumber \]
5. Solve for \(C\) by using the initial condition \(T(0)=350:\)
Therefore the solution to the initial-value problem is
To determine the value of \(k\), we need to use the fact that after \(5\) minutes the temperature of the pizza is \(340°F\). Therefore \(T(5)=340.\) Substituting this information into the solution to the initial-value problem, we have
So now we have \(T(t)=75+275e^.\) When is the temperature \(300°F\)? Solving for \(t,\) we find
Therefore we need to wait an additional \(23.5\) minutes (after the temperature of the pizza reached \(340°F\)). That should be just enough time to finish this calculation.
A cake is removed from the oven after baking thoroughly, and the temperature of the oven is \(450°F\). The temperature of the kitchen is \(70°F\), and after \(10\) minutes the temperature of the cake is \(430°F\).
Determine the values of \(T_s\) and \(T_0\) then use Equation \ref.
Answer a
Initial-value problem \[\dfrac=k(T−70),\quad T(0)=450\nonumber \]
Answer b
Answer c
Approximately \(114\) minutes.