A linear ODE is an ODE of the form:
Example
An example of linear ODE would be:
and we can rewrite it (multiplying by
In the particular case in which
The resolution of this type of equations is divided into two steps.
- Solve the homogeneous part.
We solve the equation:
Example
In our example, we have:
- Find a particular solution to the non homogeneous ODE.
We are going to use the method change of constants. Calling
Let's designate that as a solution:
We solve the latter equation (it is enough to integrate both sides) and we already have a particular solution.
Example
In our example, we take
and, integrating, we obtain:
Thus,
Finally, the solution of the linear equation is
Notice that the constant appears in the homogeneous solution (it does not make sense to put integration constants in the homogenous part).
Therefore, in our example, the solution of the ODE is: