>
|
|
| (2) |
>
|
|
| (3) |
Consider the following 4th order ODE:
>
|
|
| (4) |
>
|
|
| (5) |
Once we know ODE4 is fully exact we can reduce it to a first order linear ODE straightforwardly; this reduction can be performed interactively, for instance, using the firint command as follows:
>
|
|
| (6) |
>
|
|
| (7) |
>
|
|
| (8) |
and the first order LODE above - ODE1 - can be solved using dsolve leading to the solution to ODE4
>
|
|
| (9) |
>
|
|
| (10) |
The solution above is essentially the same one obtains by calling dsolve directly:
>
|
|
| (11) |
How it works
To detect that ODE4 is fully exact, we first look at the equation's adjoint:
>
|
|
| (12) |
This adjoint contains only third and fourth order derivatives, and hence can be seen as a first order ODE in y'''. This means that the original fourth order ODE4 can be obtained by differentiating 3 times a certain first order linear ODE1 (not the one obtained with firint lines above). In turn, this ODE1 can be obtained directly from the adjoint equation ADJ above by replacing y''' -> y and calculating the adjoint again:
>
|
|
| (13) |
>
|
|
| (14) |
Actually, differentiating 3 times the equation above one reobtains the original fourth order ODE:
>
|
|
| (15) |
>
|
|
| (16) |
The method just explained works with ODEs of arbitrary order, and - as in the homogeneous case - if the given fully exact LODE is non-homogeneous, then it can be obtained by differentiating a non-homogeneous linear first order ODE, and this fact can be detected in the same way by analyzing the adjoint of the homogeneous part of the given LODE.
One of the interesting properties of this method is that a closed form "solution-formula" can be written directly, for all differential orders and for the "non-homogeneous case" (the homogeneous one is just a particular case) - thus shortcutting all the steps and the need for first solving the homogeneous part to afterwards finding a particular solution, for instance, through variation of parameters.
What is at the base of this method is the fact that integrating factors for a LODE are solutions of its adjoint (see for instance Murphy's book and others in dsolve, references).