Skip to content

0203 Separation of Variables

Separable Equations

We will now learn our first technique for solving differential equation. An equation is called separable when you can use algebra to separate the two variables, so that each is completely on one side of the equation. We illustrate with some examples.
Example 1. Solve
Solution. We rewrite the equation as . Then separate the variables Next we integrate both sides. We can amalgamate the two constants of integration into one constant: The absolute value signs can be removed, but then the right hand side might be positive or negative. We write this as Finally we replace the constant by to get the solution Note. For the more rigorously minded an expression like might give pause. However, this formal method is justified by the chain rule, in the same way change of variable (-substitution) is justified for integration.

Lost Solutions

Example 2. Find all the solutions to the DE Solution. First, note there is a constant solution: . It is easy to see this is a solution by substituting it into - both sides of the equation become 0. We need to note this because, as we will see, the separation of variables method will not find this particular solution.
Now let's solve the DE by separation of variables.
1. Separate variables: 2. Integrate: 3. Solve for : Notice that the constant solution is not in the parametrized family found by separation variables. We call this a lost solution because it is lost by separation of variables.
How did it get lost? The answer is in step above, where the term is only valid if . In general, for the separable DE , all the roots of give lost (constant) solutions.
Example 3. Find all the lost solutions of .
Solution. The factor has roots and . Therefore the lost solutions are the constant functions and .

The Most Important DE

Even though we already know the solution, we should test our new technique on the DE for exponential growth/decay.
Example 4. Solve .
Solution. Separate variables:
Integrate:
Exponentiate:
Remove absolute value:
Let the constant :
All solutions to the DE are If you look carefully you'll see we did one rather sneaky thing. The solution is a lost solution, yet it appears to have been found by the separation of variables (set ). What happened is that when we renamed as we should have noticed that the exponential is never 0, so . Essentially, we included the lost solution by being a little sloppy and then getting lucky. We do not recommend this technique as a way to do mathematics!