Separation of variables
So far, you’ve seen differential equations like
which can be solved by integrating both sides with respect to . When the right-hand side depends on both and , a common method is separation of variables.
The idea is to rewrite the equation so that:
- all -terms (and ) are on one side
- all -terms (and ) are on the other side
This works when the differential equation can be written in the form
If the equation can’t be rewritten as a product of a function of and a function of , then separation of variables won’t apply.
Examples
Find the particular solution to the differential equation
given the initial condition .
Step 1: Rewrite the equation to separate the variables
Start by rewriting the exponential so the and parts are separated:
A reliable way to separate variables is:
- multiply both sides by
- move the expression with to the side with
In this case, multiplying both sides by and gives:
Step 2: Integrate both sides
Because the integral is indefinite, add the constant of integration .
Conventionally, it’s added to the side with the independent variable (in this case, ), or the right hand-side.
Step 3: Apply the initial condition if given
If no initial condition is given, solve for to get the general solution.
However, in this case the initial condition is , meaning we substitute and to find :
So the equation becomes
Now solve for by taking the natural log of both sides:
This is the specific solution that satisfies the differential equation.
Next is an example to find the general solution using separation of variables. The answer will include .
Find the general solution to
Solution
First, factor the right-hand side so it’s written as a product:
Now separate the variables. Multiply by , then divide by :
Integrate both sides:
Solve for by exponentiating both sides:
Using the product rule of exponents, rewrite the equation as:
Since , we can absorb the sign from the absolute value into the constant and redefine it as an arbitrary nonzero real constant . This gives the general solution:
Note: Exponential solutions are typically written in this form, with the constant multiplied in front of the exponential, for clarity and simplicity.
Find the particular solution to
with the initial condition .
Solution
Separate the variables:
Integrate both sides:
Use the initial condition to find :
Substitute and solve for :
Multiply both sides by :
Divide to isolate :
Find the particular solution to
with the initial condition
Solution
Separate the variables:
Integrate both sides. On the left, -substitution with is used.
Use the initial condition to find :
Substitute and solve for :
If
and when , find when .
Solution
Even though the variables are and (instead of and ), the separation steps are the same.
Separate the variables:
Integrate both sides:
Use the initial condition when to find :
So
Note: The initial condition tells you is positive at , so take the positive branch:
Now evaluate at :
Lastly, here is a problem similar to a multi-part free-response question from the 2022 AB exam:
Consider the differential equation
Let be the particular solution to the differential equation with initial condition .
a) Write an equation for the line tangent to the solution curve at the point and use it to approximate .
b) Given for , is the approximation from part a) an overestimate or underestimate for ?
c) Use separation of variables to find the particular solution to the differential equation with initial condition .
Solutions
a) Equation of tangent line at
The equation of the tangent line to at is
Here, . To find , evaluate the differential equation at and :
So the tangent line is
To approximate , plug into the tangent line:
b) Underestimate or overestimate?
Since on , the graph is concave down on that interval.
For a concave down function, the tangent line lies above the curve. That means the tangent-line (linear) approximation from part (a) is an overestimate of the actual value .
c) Particular solution with
Separate the variables:
Integrate both sides:
Rewrite the left integrand as a power:
Use the initial condition to find :
Now solve for :