8.7 Solving separable differential equations — Learn
Prerequisites: Section 3.5, integration reverses differentiation; Section 8.2, exponential growth and decay.
Objectives: recognise a separable differential equation; separate the variables; integrate both sides; find a general solution and a particular solution.
By the end of this section you can solve the growth and decay equations of the chapter from first principles, rather than reading the answer off a formula.
Separable equations
A differential equation is separable when it can be rearranged so that all the terms are on one side and all the terms are on the other:
Here is a function of alone and is a function of alone.
The equation is separable, because it is times . So is , and so is every equation in this chapter.
To solve a separable equation, divide both sides by and integrate with respect to :
which is usually written in the shorter form
Two standard integrals
Chapter 3 integrated powers of . Two more standard results are needed here, and both come from reversing a derivative you already know.
because the derivative of is .
because the derivative of is .
The first of these is why the solutions in this chapter contain logarithms before they contain exponentials. The two operations undo each other.
The general solution
Integrate each side, then tidy the constant. The constant from the left and the constant from the right combine into one.
Example 1. Solve .
Divide by and integrate:
Raise to both sides. The constant becomes a multiplier, written :
This is the general solution. Different values of give different curves, and every one of them obeys the equation.
The short segments show the gradient the equation gives at each point. Choose the starting point and the curve through it appears, so you can see that the constant is nothing more than which point you started from.
Example 2. Solve .
Multiply both sides by :
Multiply by and rename the constant, :
The sign is fixed later by an initial condition.
Example 3. Solve .
Use the index law , then separate:
Take logarithms:
The constant stays inside the logarithm, because is the quantity that was integrated.
Particular solutions
An initial condition gives the value of at one value of . It fixes the constant and turns the general solution into a particular solution.
Example 4. Find the particular solution of for which when .
The general solution is . Substitute , :
Example 5. A body falls through a fluid so that , with when . Find in terms of .
Separate. Divide by :
Rearrange:
The condition at gives , so
The velocity approaches m/s, the terminal velocity, where the drag balances gravity.
Progress check
Back to the chapter problem. The lake clears according to
- Separate the equation and integrate both sides to find the general solution.
- Use the initial condition to find the particular solution.
- Set and solve for , the time to reach the safe level.
This is the same answer that Section 8.5 found from the equilibrium formula. The separation method shows where the exponential comes from.
You should now be able to
- recognise a separable differential equation;
- use the standard integrals and ;
- separate the variables and integrate both sides;
- tidy the constant of integration;
- use an initial condition to find a particular solution;
- solve the growth, decay and cooling equations from first principles.