Let's consider, with , an ODE of first order . We will say that the EDO is separable if we can rewrite it as , that is, if we can move everything that depends on to one side of the equality and everything that depends on to the other.
Example
An example of separable ODE would be , since we can put everything that depends on the varible to one side of the equality and everything that depends on to other by dividing the entire equationby :
In our case, then
Then we integrate both sides of the equality and we obtain the solution:
Let's note that we have added a constant, since, when integrating a function, we do not know if there was a constant. Now we try to isolate in terms of and obtain the solution.
Example
For example, in the case shown previously:
Something that is worth noting is that when we operated to get all the variables in one side, we may be losing some of the solutions. In a way in order to put all the on one side we assumed that . However, if we look at the ODE we can realize that is actually a solution of the ODE, as far as is also zero.
As we have already said, sometimes, we will have to solve a PVI. In the example we found all the solutions of the ODE. To find the solution of a PVI it is enough to impose the initial conditions and find the concrete constant that assures that the initial condition is satisfied.
Example
Let's consider, for example the PVI:
From the previous example we know that the solutions are: .
Let's look, then, tat he value of so that we have :
Therefore, the solution to our PVI is: .
We are going to show some more examples:
Example
Solve the ODE:
This is a separable ODE since we can put everything that depends on to one side and everything that depends on to other.
In effect:
Now we proceed as we said:
where is the constant that would be determined by the initial conditions.
Example
Solve the ODE:
We observe that in this case we already have separated variables.
So let's proceed to the integrals:
Example
Solve the ODE:
It is again a separable ODE when we divide all the terms by . So its solution is obtained in the following way: