A separable differential equation is a first-order equation that can be written as
The rate of change is a function of
Separable equations model many basic processes, including exponential growth and decay, Newton’s law of cooling and logistic population growth.
How to Tell if a Differential Equation Is Separable
Write the equation as
| Equation | Separable? | Reason |
|---|---|---|
| yes | ||
| yes | ||
| yes | factors as | |
| yes | ||
| yes | ||
| no | a sum, not a product | |
| no | ||
| no | the |
If
How to Solve Separable Differential Equations
- Separate the variables. Rewrite
as . - Integrate both sides, the left side with respect to
and the right side with respect to . - Add one constant
, on the side. - Solve for
if possible. If not, leave the answer as an implicit equation. - Use the initial condition, if there is one, to find
. - Check for constant solutions. Every
with gives a solution that step 1 divided away.
In symbols, the method turns the differential equation into an equation between two integrals:
Why Separation of Variables Works
Treating
On the left,
You only need one constant. Integrating both sides gives
Example 1: Exponential Growth
Solve
Separate and integrate:
Exponentiate both sides:
Dividing by
Example 2: Solving dy/dx = xy
Solve
Exponentiating as in Example 1 gives
Each value of
Example 3: An Initial Value Problem
Solve
Multiply both sides by
Use the initial condition before solving for
Check:
Example 4: Factoring First
Solve
The right side factors as
This gives
The constant solution here is
Example 5: An Exponential Right Side
Solve
Since
Take the natural log of both sides:
The solution only exists where
Example 6: An Implicit Solution
Solve
Multiply by 2 and rename
The solutions are circles centered at the origin. This is an implicit solution: it describes the curves without solving for
Example 7: Newton’s Law of Cooling
A cup of coffee at 90°C sits in a 20°C room. After 10 minutes, it has cooled to 60°C. When will it reach 30°C?
Newton’s law of cooling says the temperature changes at a rate proportional to the difference from the room:
This is separable:
So
Now use
To reach 30°C, solve
Separable vs Linear Equations
Many first-order equations are separable, linear, both or neither.
| Equation | Separable | Linear | Method |
|---|---|---|---|
| yes | yes | either | |
| yes | no | separation of variables | |
| no | yes | integrating factor | |
| no | yes | integrating factor | |
| no | no | numerical methods |
Separation of variables is usually faster when it works. When an equation is linear but not separable, use an integrating factor.
Common Mistakes
- Separating a sum.
can’t be written as , so it isn’t separable. Only products separate. - Forgetting the constant. Add
as soon as you integrate. Adding it after solving for gives the wrong family: isn’t a solution of . - Adding a constant on both sides. One constant is enough. Two constants just combine into one.
- Finding
too late. It’s often easier to plug in the initial condition right after integrating, before solving for . - Losing constant solutions. Dividing by
assumes . Check the values where . - Mishandling the constant when exponentiating. From
, you get , not . The constant becomes a factor: .
For more examples, see Section 4.3 of the free textbook OpenStax Calculus Volume 2.
Practice Problems
Try each one before opening the answer. The practice set has 12 more with instant checking.
Problem 1. Which of these is separable:
Show answer
Answer:
Problem 2. Solve
Show answer
Separating gives
Answer:
Problem 3. Solve
Show answer
Answer:
Problem 4. Find the general solution of
Show answer
Answer:
Problem 5. Solve
Show answer
Answer:
Problem 6. Find every constant solution of
Show answer
A constant solution needs
Answer:
Separable equations are the first type most courses solve by hand. When an equation won’t separate but is linear in