
Description


•

This helppage is directed to people interested in programming new methods or just curious about dsolve's structure. For standard users, it is recommended to not to change dsolve's defaults; be aware that changing these defaults without clearly understanding what is being done may just result in a significant loss in dsolve's performance.

•

Many of the defaults of dsolve can be changed by assigning some appropriate environment variables, used by dsolve as solving parameters (see also dsolve,Lie). Also, new solving methods can be plugged into dsolve's structure, any of the existing solving methods can be removed, and the order in which they are applied can be changed. This page has the purpose of providing the required information concerning all these subjects.

•

By default, dsolve will try to solve all the intermediate integrals found during the solving process, but in some cases it will prefer using the inert Int instead (for instance when large and complexstructure answers by int may complicate the solving process). It is then possible to set up the integrator used by dsolve by assigning _Env_odsolve_int to one of: int; `PDEtools/int` or Int. The default is `PDEtools/int`. The use of int as the integrator will force the evaluation of integrals in all cases, and the acceptance by dsolve of all the answers returned by int. The use if Int as the integrator will prevent the evaluation of integrals in general (in many cases speeding up the solving process but sometimes making it impossible). The use of `PDEtools/int` as the integrator permits dsolve to monitor the answers returned by int as to avoid the most usual complications which may happen in the posterior steps of the solving process. In all the cases, if at the end of the solving process an answer involve integrals, these will finally be expressed using Int.

•

All dsolve's solving schemes belongs to 3 different blocks of routines:


1) classification schemes


2) semiclassification schemes


It is possible to turn ON / OFF each of these 3 sectors separately by assigning true or false to each of: _Env_use_class, _Env_use_semiclass and _Env_use_Lie. Methods belonging to 1) are expected to return an answer in all the cases (if the given ODE satisfies the corresponding pattern), Methods belonging to 2) involve some "trial and error" which may sometimes not lead to an answer, even when the ODE matches the appropriate pattern in principle. Finally, the method of symmetries is mostly used with nonclassifiable ODEs, involves looking for particular solutions for the PDE for the coefficients of possible infinitesimal generators of invariance Lie groups, and the success of the scheme cannot be determined a priori in general.

•

Concerning the classification methods presently used by dsolve, they can be seen via:

>

ODEtools/init(): # to load the routines

>

indices(`dsolve/methods`); # a table of solving methods

$\left[{1}\right]{\,}\left[{3}{\,}{\mathrm{nonlinear}}\right]{\,}\left[{2}{\,}{''linear\_homogeneous\; other''}\right]{\,}\left[{2}{\,}{\mathrm{nonlinear}}\right]{\,}\left[{1}{\,}{\mathrm{high\_degree}}\right]{\,}\left[{2}{\,}{''linear\_homogeneous\; in\; Normal\; Form''}\right]{\,}\left[{2}{\,}{''development''}\right]{\,}\left[{2}{\,}{\mathrm{linear\_homogeneous}}\right]{\,}\left[{\mathrm{high}}{\,}{\mathrm{linear\_homogeneous}}\right]{\,}\left[{2}{\,}{''linear\_homogeneous\; all\; methods''}\right]{\,}\left[{3}{\,}{''development''}\right]{\,}\left[{\mathrm{high}}{\,}{\mathrm{linear\_nonhomogeneous}}\right]{\,}\left[{1}{\,}{''special''}\right]{\,}\left[{1}{\,}{\mathrm{semiclass}}\right]{\,}\left[{3}{\,}{\mathrm{linear\_nonhomogeneous}}\right]{\,}\left[{1}{\,}{\mathrm{extra}}\right]{\,}\left[{\mathrm{high}}{\,}{\mathrm{nonlinear}}\right]{\,}\left[{\mathrm{high}}{\,}{''development''}\right]{\,}\left[{2}{\,}{''hypergeometric''}\right]{\,}\left[{1}{\,}{''development''}\right]{\,}\left[{2}{\,}{''special\_functions''}\right]{\,}\left[{3}{\,}{\mathrm{linear\_homogeneous}}\right]{\,}\left[{2}{\,}{''linear\_homogeneous\; as\; given''}\right]{\,}\left[{2}{\,}{\mathrm{linear\_nonhomogeneous}}\right]$
 (1) 

Methods for 1st order ODEs

$\left[{\mathrm{quadrature}}{\,}{\mathrm{linear}}{\,}{\mathrm{Bernoulli}}{\,}{\mathrm{separable}}{\,}{\mathrm{inverse\_linear}}{\,}{\mathrm{homogeneous}}{\,}{\mathrm{Chini}}{\,}{\mathrm{lin\_sym}}{\,}{\mathrm{exact}}{\,}{\mathrm{Abel}}{\,}{\mathrm{pot\_sym}}\right]$
 (2) 

Methods for 2nd order linear homogeneous ODEs

>

`dsolve/methods`[2,'`linear/homogeneous`'];

${{\mathrm{dsolve/methods}}}_{{2}{\,}{\mathrm{linear/homogeneous}}}$
 (3) 

During the solving process, once the differential order and the subtype of problem was identified, dsolve tries the related methods in the order displayed above. This order can be changed as desired, and methods can be plugged or removed too. For example consider removing 'Bernoulli' from the solving scheme and changing the order as to try exact before Chini; this can be achieved via:

>

`dsolve/methods`[1] :=
subs(['Bernoulli'=NULL, exact=Chini, Chini=exact], `dsolve/methods`[1]);

${{\mathrm{dsolve/methods}}}_{{1}}{:=}\left[{\mathrm{quadrature}}{\,}{\mathrm{linear}}{\,}{\mathrm{separable}}{\,}{\mathrm{inverse\_linear}}{\,}{\mathrm{homogeneous}}{\,}{\mathrm{exact}}{\,}{\mathrm{lin\_sym}}{\,}{\mathrm{Chini}}{\,}{\mathrm{Abel}}{\,}{\mathrm{pot\_sym}}\right]$
 (4) 
•

Since the methods used by dsolve are those appearing in the table `dsolve/methods`, it is possible to plugin a new solving method by you as well, provided that some basic rules are followed. These rules will be explained in the next update of the helppages of the package.



