Separation of variables
So far, you’ve seen differential equations like , which can be solved by integrating both sides with respect to .
When the derivative 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
and rearranged into
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.
General vs. particular solutions
To analyze a differential equation, check if you are given an initial starting point.
-
General solution: No initial condition is given. Your goal is to isolate , and the final answer will always contain .
-
Particular Solution: An initial condition is given. Use this point to solve for the exact value of .
Case 1: General solutions (keeping )
Find the general solution to each differential equation:
1a)
1b)
Solutions
1a)
1. Separate the variables:
Multiply by and divide by :
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.
3. Isolate :
Exponentiate both sides to undo the natural log:
Using the product rule of exponents (), rewrite the right side:
Since is just a constant, we can absorb the absolute value bars and replace with a new arbitrary constant, :
1b)
1. Separate the variables:
2. Integrate both sides:
3. Isolate :
Multiply by and take the reciprocal of both sides. The constant stays locked in the denominator:
Case 2: Particular solutions (solving for )
Find the particular solution to each differential equation given the initial condition.
2a) with initial condition
2b) with initial condition .
Solutions
2a) with initial condition
1. Separate the variables:
2. Integrate both sides:
3. Plug in the initial condition to find :
4. Substitute back into the equation and solve for :
Note: The initial condition states that (a negative value) when . Therefore, select the negative root branch:
2b) with initial condition .
1. Separate the variables:
2. Integrate both sides:
On the left, -substitution with is used.
3. Use the initial condition to find :
4. Substitute and solve for :
Method: Pre-separation algebra
You may have to factor or apply exponent rules before the variables can be separated.
Find the general solution to each differential equation:
3a)
3b)
Solutions
3a)
1. Factor the right-hand side:
2. Separate the variables:
3. Integrate both sides:
4. Isolate :
3b)
1. Rewrite the expression
By applying exponent rules,
2. Separate the variables:
3. Integrate both sides:
4. Isolate :
Take the natural log of both sides.
Finding a value from a particular solution
If
and when , find when .
Solution
In this case, is the independent variable (instead of ).
1. Separate the variables:
2. Integrate both sides:
3. Use the initial condition when to find :
*4. Solve for :
Note: The initial condition tells you is positive at , so take the positive branch:
Now evaluate at :