Here is an ODE depending on an arbitrary function .
A pair of symmetry infinitesimals for this ODE is given by (see symgen):
From these infinitesimals, a related integrating factor for ODE is given by:
Note that when the ODE is given as an equation , it is converted to the form before calculating mu.
Let's see the change on the ODE type produced by mu.
Here is a second order example with two integrating factors. Its solution is obtained using them to reduce the ODE order by two at once.
Eliminating from these two first integrals and renaming in one of them we obtain the ODE solution; this process is performed internally by dsolve to arrive at:
A third order ODE example and two integrating factors for it:
For ODE3 above, using its defaults intfactor found two integrating factors. If however we use the try_hard=true option, an integrating factor depending on an arbitrary function is obtained.
Integrating factors can be tested using mutest, which returns zero when the integrating factor is correct, meaning that it cancels the appropriate integrating factor PDE system (see odepde).
A fourth order ODE example and an integrating factor polynomial in the highest possible derivative (for an ODE of order n, mu can depend at most on the nth-1 derivative).
A second order ODE with three integrating factors:
Of the three integrating factors found, only two of them lead to different reductions of order. The reduction obtained using is as follows.
The reduction obtained using :
The reduction obtained using :
When the algorithms implemented in intfactor fail in computing integrating factors - or to investigate the existence of more or different type of integrating factors - we can give a hint to intfactor by using the option _mu = some_mu_form, where some_mu_form contains some unknowns - functions of the ODE variables or just symbols - whose values are to be determined. For example, for the following ODE we use intfactor to compute - if possible - integrating factors of the form for some function to be determined.
In this example, we indicate a form for the integrating factor which depends on 4 symbolic constants to to be determined.