This is one of the simplest techniques when solving differential equations and sometimes it is introduced in first year calculus while studying integration. This technique is used when it is possible to isolate the variables, using algebra and differentials, on separate sides of the equal sign. This allows us to integrate both sides of the equation individually with only one variable on each side. An equation that allows us to apply this technique is called a separable differential equation.
The idea with this technique is that the differential equation is in a form where we can isolate the two variables to each side of the equal sign. Then we can integrate each side separately. It's really that easy. The trick is to use algebra to get the equation into the right form. Also, some instructors (most, from what I've seen), do a trick with constants that confuse a lot of people. So, we will go through that so that, if your instructor does it, you will know why. Let's do an example to demonstrate the technique.
Example
This simple example will demonstrate the technique.
Find \(y\) for \( y' = x \)
First, we rewrite the derivative so that it is more obvious what we need to do.
\(\displaystyle{ y' = x ~~~ \to ~~~ \frac{dy}{dx} = x }\)
Now we write the differential equation by 'moving' the \(dx\) to the other side. It looks like we are multiplying \(dx\) on both sides but that's not what is really happening. However, it helps me remember what to do by thinking of it this way. What we are doing is writing the equation in differential form. So now we have
\(\displaystyle{ \frac{dy}{dx} = x ~~~ \to ~~~ dy = x~dx}\)
Now we integrate both sides. On the left we integrate with respect to \(y\), on the right with respect to \(x\).
\(\displaystyle{
\begin{array}{rcl}
\int{dy} & = & \int{x~dx} \\
y + c_1 & = & \frac{x^2}{2} + c_2
\end{array}
}\)
Okay, so now we have two constants, one from each integration (don't forget these constants; they are extremely important when solving differential equations). We are going to move \(c_1\) to the other side and combine it with \(c_2\).
\(\displaystyle{ y = \frac{x^2}{2} + c_2-c_1 }\)
Let \( C = c_2 - c_1 \). We then rewrite this as
\(\displaystyle{ y = \frac{x^2}{2} + C }\) and we are done.
What many instructors do is skip the steps showing the two constants and combining them, i.e. \( C = c_2 - c_1 \) . They just jump to one constant. This can be confusing at first, if you don't know what is happening.
Here is an in-depth video discussing first-order linear equations, separation of variables and steady-state and transient solutions.
open videoclose video
Instructions - - Unless otherwise instructed, solve these separable differential equations and find the particular solution, if possible, giving your answers in exact terms.
From the \(dv/ds\) term, we can tell that \(s\) is the independent variable and \(v\) is the dependent variable, so that the solution will be \(v(s)\). Let's try separation of variables.
Most of this should be easy to follow. There just a few clarifications in order.
1. We can combine all constants under the square root into one by letting \(C=1+c_1\). This is not required but cleans up the equation.
2. Adding \(1\) to each side after integrating allows us to complete the square.
4. When taking the square root, don't assume your answer will be positive. Use \( \pm \) unless you can show that the result will always be positive (or negative).
3. Depending on what your instructor requires, you may not need to solve for \(v\). Check to see what they require.