Separation of variables
So far, you’ve seen differential equations like
which you can solve 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 you can’t rewrite it as a product of a function of and a function of , then separation of variables won’t apply.
Find the particular solution to the differential equation
With 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 to the side with
Multiply both sides by :
Step 2: Integrate both sides
Step 3: Apply the initial condition if given
If no initial condition is given, you would solve for to get a general solution. Here, the initial condition is , so substitute it to find :
So the equation becomes
Now solve for by taking the natural log of both sides:
Examples
- 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:
Absorb the sign into the constant (since is still an arbitrary nonzero constant). This gives the standard general-solution form:
- Find the particular solution to
with .
Solution
Separate the variables:
Integrate both sides:
Use the initial condition to find :
Substitute and solve for :
Multiply both sides by :
Divide:
- Find the particular solution to
with
Solution
Separate the variables:
Integrate both sides. (On the left, you can use -substitution with .)
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 you 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) Underapproximate or overapproximate?
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 .
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 :