Lesson 7.4 · Differential Equations
Separation of variables
Slope fields show what solutions look like, but often you want an exact formula. For a large and important class of differential equations, you can get one with a single idea: move everything involving to one side, everything involving to the other, and integrate.
Separable equations
Definition
Separable differential equation
A first-order differential equation is separable if it can be written as
a function of alone times a function of alone.
For example, , and are all separable. The equation is not, because a sum can't be split into a product of an part and a part.
The method
Separation of variables
To solve :
- Separate: .
- Integrate both sides: , and add one constant .
- Use the initial condition to find (do this as soon as you can).
- Solve for , choosing signs and a domain consistent with the initial condition.
Why is this legal? If is a solution, then . Integrating both sides with respect to , and using substitution on the left (), gives exactly the equation in step 2. Writing and as if they were separate pieces is shorthand for that substitution.
You only need one constant. If you wrote on the left and on the right, you could subtract to combine them into a single constant anyway.
Worked example: A solution involving a square root
Find the particular solution of with .
Solution. Separate and integrate:
Use : , so . Multiply by 2: .
Now , but the initial value is positive, so take the positive root:
Worked example: An exponential solution
Find the particular solution of with .
Solution. Separate and integrate:
Use : , so . Then
Since and the solution is never 0, stays positive, so .
Check: . ✓
Common mistake
Add the constant when you integrate, not after you solve for . In the example above, a common error is to write , exponentiate to get , and then tack on "" to get . That function is not a solution of unless . On the AP exam, a missing or misplaced constant of integration costs most of the points for the problem.
The domain of a particular solution
A particular solution is only valid on an interval that contains the initial point and on which the formula (and the differential equation) make sense. Sometimes that interval is much smaller than you'd expect.
Worked example: A solution that blows up
Find the particular solution of with , and state its domain.
Solution. Separate and integrate:
Use : , so . Then
This formula is undefined at . The solution must be a differentiable function on an interval containing , so its domain is . The pieces of the graph outside that interval belong to the formula, but not to this solution.
Worked example: Solving with exponentials on both sides
Find the particular solution of with .
Solution. Rewrite , then separate by multiplying both sides by :
Use : , so and . Then , and taking the natural log,
Since for every , this solution is valid for all real .
Tip
Always check your final answer in two ways: it should satisfy the initial condition, and differentiating it should give back the original differential equation. Both checks take less than a minute.
Practice
Find the particular solution of with .
Enter an expression, e.g. 3x^2 - 2x + 1
Find the particular solution of with .
Enter an expression, e.g. 3x^2 - 2x + 1
Find the particular solution of with .
Enter an expression, e.g. 3x^2 - 2x + 1
Find the particular solution of with .
Enter an expression, e.g. 3x^2 - 2x + 1
Find the particular solution of with .
Enter an expression, e.g. 3x^2 - 2x + 1
Find the particular solution of with .
Enter an expression, e.g. 3x^2 - 2x + 1
Let be the particular solution of with . What is the domain of ?