casesplit - Maple Help

PDEtools

 casesplit
 split into cases and sequentially decouple a system of equations taking into account its integrability conditions

 Calling Sequence casesplit(sys, optional_1, optional_2,...)

Parameters

 sys - single DE, or list or set of DEs; any system of differential equations optional_1, optional_2, ... - (optional) arguments can be given in any order and are described as follows ranking - list or set of solving variables represented by names or functions, or list or set of them caseplot - indicates that in addition to the splitting into cases a graphical representation of the splitting is to be plotted ivars={y1, y2, ...} - indicates that {y1, y2,...} are independent variables regardless of whether they appear in the unknowns of the system ivars=[y1, y2, ...] - the right-hand side is a list; indicates the ranking ordering for the independent variables lex - useful to produce ODEs from PDEs, indicates the use of an elimination ranking for the independent variables instead of the default orderly one lex(f(y1, y2...) - indicates the elimination ranking ordering of the independent variables to be as in f parameters=P - P is a list or set of names or functions that are solving variables with lower priority than any other variable fast=boolean - if boolean = true then run only one round of computations; if false run always two, otherwise let casesplit decide singsol=false - avoid the computation of the singular cases when the system is nonlinear arbitrary=A - avoid splitting into cases with respect to elements of A, where A is a list or set of names or functions ctl=N - compute with a timelimit of N seconds per case mindim=N - discard cases with solution space of dimension less than N rankingused = ... - the right-hand side is a name that will be assigned the ranking used for the unknowns of the system ivarsused = ... - the right-hand side is a name that will be assigned the independent variables of the system with the ordering they were ranked rif - default, force splitting by using the Rif subpackage of DEtools diffalg - force splitting by using the DifferentialAlgebra package

Description

 • The casesplit function receives one DE,  or a set or a list of DEs (it is also possible to include inequations and non-differential equations) and splits the system into regular systems associated with different cases. The union of the non-singular solutions of these regular systems returned is equal to the full set of solutions, including the singular ones, of the original input system. Each regular system automatically satisfies all the integrability conditions. The splitting into cases is performed by using the Rif subpackage of DEtools (default), or using the DifferentialAlgebra package when the keyword 'diffalg' is given as an optional argument. casesplit also works with anticommutative variables set using the Physics package using the approach explained in PerformOnAnticommutativeSystem.
 • The casesplit command is useful for studying the different cases of a given DE system, uncoupling the system in different ways using different orderings for the solving variables (rankings), and determining whether the system is inconsistent. The casesplit command can also be used to remove redundancies and to make the system complete, including simplifying it by using all its integrability conditions. All these tasks are automatically performed each time casesplit is invoked.
 • Ranking is a fundamental concept related to the splitting process performed through casesplit. A ranking is basically an ordering of the variables of the problem (herein called solving variables) in the form of a list of functions or symbol variables, as in $\left[f\left(x\right),g\left(x\right),h\left(x\right),a\right]$ (one can also specify functions by using only their names as in $\left[f,g,h,a\right]$). Different rankings imply different uncoupling orderings and, hence, different manners of splitting and uncoupling the DE system (see checkrank, DifferentialAlgebra[Tools][Display], and the examples below).
 • In the case of a system of ordinary differential equations (ODEs), provided the system is not subdetermined, the default output of casesplit consists of a sequence of uncoupled ODE systems, where the uncoupling ordering used is that of the solving variables in the ranking. The ranking is provided by the user as a list or automatically set by casesplit. That means, for instance, that if a system depending on the functions $\left[f\left(x\right),g\left(x\right),h\left(x\right)\right]$ is given with this list as ranking, the equations in each returned system are of the form $[\mathrm{..}f\left(x\right)\mathrm{..}=\mathrm{..}\left(f\left(x\right),g\left(x\right),h\left(x\right)\right)\mathrm{..},\mathrm{..}g\left(x\right)=\mathrm{..}\left(g\left(x\right),h\left(x\right)\right)\mathrm{..},\mathrm{..}h\left(x\right)\mathrm{..}=\mathrm{..}\left(h\left(x\right)\right)]$. So, the last equation involves only $h\left(x\right)$, the next to the last equation involves $g\left(x\right)$ and $h\left(x\right)$, and the first equation involves the three functions. This is called sequential uncoupling.
 • In the case of a system of partial differential equations (PDEs), the situation is the same as with ODEs but the concept of sequential uncoupling requires clarification. Concretely, instead of one equation related to each function, one could receive many equations. For instance, if a system depending on the functions $\left[f\left(x,y,z\right),g\left(x,y,z\right),h\left(x,y,z\right)\right]$ is given and with this list as ranking, the equations in each returned system are of the form $[\mathrm{eqs}\left(f=\mathrm{..}\left(f,g,h\right)\mathrm{..}\right),\mathrm{eqs}\left(g=\mathrm{..}\left(g,h\right)\mathrm{..}\right),\mathrm{eqs}\left(h=\mathrm{..}\left(h\right)\mathrm{..}\right)]$, where $\mathrm{eqs}\left(h=\mathrm{..}\left(h\right)\mathrm{..}\right)$ means equations (possibly PDEs) only depending on 'h' and so on.
 • The casesplit command also works with systems of equations that involve mathematical functions, provided that they have a differential equation representation that is rational in the independent variables, the function and its derivatives - i.e a differential polynomial form. That is indeed the case of most of the mathematical functions as well as of indefinite integrals, fractional and symbolic (generic) powers. For example, the exponential function, $f\left(x\right)={ⅇ}^{x}$ satisfies ${f}^{\text{'}}=f$. When these functions are present in the system, they are replaced by auxiliary unknowns representing them and the corresponding differential equations they satisfy are added to the system, the system is processed, and before returning these auxiliary unknowns are replaced by the actual functions they represent.
 • The arguments of mathematical functions present in the system can be arbitrary algebraic expressions, possibly including other mathematical functions, with no limits to the levels of nesting, for example: $g\left(x\right)={ⅇ}^{\mathrm{BesselJ}\left(n,\sqrt{x}\right)}$. These cases are processed by first performing changes of variables that result in a differential polynomial form representing the expression, then proceeding as explained in the previous item.
 • The casesplit command also works with systems that involve unknown functions whose arguments are not just variables (i.e.: of type name) but generic algebraic expressions. Provided that some conditions are met, through changes of variables the system of equations can be transformed into an equivalent system where the transformed functions all depend on simple variables of type name, this system is processed, a further change of variables to revert to the original variables is performed, and the result is returned.
 • Finally, casesplit works as well with systems that involve D derivatives evaluated at points represented by algebraic expressions. The key idea is that any D derivative of this type can be mapped into a function of variables not of type name that can in turn be represented in differential polynomial form as a first order PDE, obtained by running backwards what is know as the PDE characteristic strip solving method. This approach makes it possible to perform differential elimination with these objects, as well as solving PDE systems in terms of arbitrary functions, that, at some point in the solving process, become functions of algebraic expressions (variables not of type name) and where the intermediate subsystem involves D derivatives of these functions.

Input and Output

 • The first argument sys can be one DE, or a set or a list of DEs, possibly including inequations and non-differential equations (such as algebraic constraints). Equations are entered by using $\mathrm{expr1}=\mathrm{expr2}$, or expr1. In this case it is assumed that expr1 = 0. Inequations are entered by using $\mathrm{expr1}\ne \mathrm{expr2}$.
 • The output of casesplit is a sequence of expressions representing the different cases (possibly only one) and corresponding equations and inequations (these are the ones returned by the corresponding Equations and Inequations commands of DifferentialAlgebra). Each case is returned as a function of two operands and displayed as $[\mathrm{eq1},\mathrm{eq2},...]&\mathrm{where}[\mathrm{ineq1}\ne 0,\mathrm{ineq2}\ne 0,...]$. Both operands are lists. This printing is obtained, however, by using a print/foo mechanism, and the true structure of each returned case is a function casesplit/ans( [ eq1, eq2, ...], [ ineq1 <> 0, ineq2 <> 0, ...] ).
 • The actual splitting of a system obtained when calling casesplit is basically computed through various calls to different commands of the DifferentialAlgebra package, or optionally the DEtools[Rif] package. These are the two Maple differential elimination packages.
 • Apart from simplifying the steps required by a direct use of DifferentialAlgebra, casesplit radically extends the domain of computation of DifferentialAlgebra or DEtools[Rif]. Concretely, casesplit can split a system into regular cases even when this system contains non-polynomial objects, such as fractional or abstract powers, most Maple known functions (for example, exponentials, logarithms, trigonometric, and special functions) and also any arbitrary composition of these non-polynomial objects, for example, $\mathrm{exp}\left(\mathrm{sqrt}\left(\mathrm{BesselJ}\left(...\right)\right)\right)$.
 • This extension of the domain of computation is performed by rewriting all non-polynomial objects by using auxiliary functions of the form $\mathrm{_Fn}$ (n being an integer) and adding to the input system the polynomial (algebraic and differential) equations these $\mathrm{_Fn}$ functions satisfy (see dpolyform). For example, ${ⅇ}^{x}$ is replaced by $\mathrm{_F1}\left(x\right)$, and the auxiliary ODE $\frac{{ⅆ}^{2}}{ⅆ{x}^{2}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}\mathrm{_F1}\left(x\right)=\mathrm{_F1}\left(x\right)$ is added to the system. These auxiliary functions, the equations they satisfy, and their consequences are removed before returning the output.

Optional arguments

 • All arguments after the first one are optional and can be included in any order.
 • When the solving variables are not specified, casesplit takes all unknown functions found in the DE system as solving variables, and uses its own heuristic methods to determine what could be the best uncoupling ordering for the given system. However, it is possible to specify a ranking, which indicates the solving variables and their order. When the ranking to be specified involves only one variable, it can be given as this variable, or its name, for example, $f$ for $f\left(x,y,z\right)$. In all cases the ranking can be specified as a list or a set of solving variables, functions can be indicated by only their names, and this set or list can include 'symbol' solving variables (equivalent to functions with all derivatives equal to zero).
 • When the ranking is given as a set or list, each of its elements can, in turn, also be a set or list of names or functions. For example, $\left[\left\{f,g\right\},h,\left[j,k\right]\right]$, $\left[\left\{f,g\right\},h,\left\{j,k\right\}\right]$, and $\left\{h,\left[f,g\right],\left\{j,k\right\}\right\}$ are valid rankings. In such cases, the solving ordering for the elements inside each set $\left\{...\right\}$ is decided by casesplit. Only one level of nested list or sets is allowed.
 • Using standard terminology, a ranking as in $\left[f,g,h\right]$ - also called lexicographic or elimination ranking - leads to a splitting using a lexicographic ordering. When a ranking is given as a nested list, for example $\left[\left[f,g,h\right]\right]$, the splitting is performed by using a total degree ordering. These rankings are also called total degree or orderly rankings. Total degree rankings, however, generally do not result in the uncoupling of the given system. They simplify the system by using integrability conditions, and so check for inconsistencies as well as lead to a version of the system with the lowest differential order. This usually leads to faster computations than when using lexicographic ordering. To understand the meaning associated with a given ranking, use the checkrank or DifferentialAlgebra[Tools][Display] commands. Input rankings in casesplit have exactly the same meaning they have in calls to commands of the DifferentialAlgebra package.
 • When the ranking is not specified, you can see the ranking used by setting infolevel[casesplit] := 2. Setting this variable to $3$ causes the display of the input sent to RosenfeldGroebner or DEtools[rifsimp], as well.
 • The independent variables of a given system are determined by default as the variables on which the unknown functions of the system depend. However, there may be cases in which other variables, not present in the unknown functions of the system, are also independent variables of the problem. These extra independent variables can be indicated using the ivars = {...} optional argument. In such a case, these variables are added to those determined as the independent variables of the problem. This is useful, for example, when the unknowns of the system depend - say - on x, y, but the equations involve - say - z, and you are not interested in solutions depending on z.
 • By default, the solving ordering for the independent variables of the system is automatically determined by casesplit, such that lower order differentiation variables are ranked lower. Alternatively, this ordering can be enforced to be anyone using the optional argument ivars = [...], specifying its right-hand side as a list with the desired ordering, leading in most of the cases to slight differences in the output (see DifferentialAlgebra[Tools][Display]).
 • By default, the ranking used with respect to the independent variables is of orderly type (see paragraphs above). To specify an elimination lexicographical ranking add the keyword lex anywhere in the calling sequence. Combining this option with the ivars = [...] option (right-hand side as a list) is useful to generate ODEs from PDE systems when that is possible. The ODEs appearing in the output are the consequence of using an elimination ranking for the independent variables. When ivars = [...] is not given, but lex is given, the elimination raking is set with the ordering for the independent variables chosen by casesplit; or when lex(f) is given, where f is an unknown of the system, the ordering used for ranking the independent variables will be that of the function f.
 • By default, all unknown functions found in the system and not indicated in the ranking are considered solving variables "with less priority", and are automatically inserted at the end of the ranking. Note however that symbol variables found in the system require an explicit declaration in the ranking to be considered as "solving variables". "Solving variables" with less priority can also be indicated using the optional argument parameters={...} where the right-hand side can also be a list.
 • In the case of DE systems, the default strategy of casesplit is to solve the system in two rounds. In the first round, a simpler ranking is used to express the more differentiated solving variables with respect to the other ones. Typically this ranking is built as $[[\mathrm{f1},\mathrm{f2},...]]$, and relies on a faster "total degree" process. In the second round, each of the systems (equations and inequations) obtained in the first round are processed separately, but this time with the ranking given by the user (or set by casesplit if no ranking is given). When the optional argument 'fast' is given, casesplit processes the system in only one round. In such a case, if the ranking is given it is used. Otherwise, the ranking is set as $[[f,g,h,...]]$ (that is, total degree ordering) and usually does not lead to an uncoupling of the system.
 • By default, casesplit splits a nonlinear problem into all the related (perhaps only one) regular cases. This set of regular cases can also be understood as consisting of the main case (general case) plus all the possible singular cases. To avoid spending time in computing these singular cases, one can use the singsol=false optional argument, leading to the computation of only the general case.
 • By using the optional argument arbitrary=A, where A is a list or set of names or functions, one can force casesplit to avoid considering these functions as solving variables and so avoid splitting into cases with respect to them. This option is quite useful for computations in which the value of some unknown functions must remain arbitrary. It also typically reduces the computation time significantly.
 • By default, casesplit splits a problem into cases regardless of the time required to compute each case. There are problems, however, for which this default is not practical since some of the cases would take too much time to compute. For these cases, use the ctl=N optional argument to impose a timelimit of N seconds per case, at the cost of missing the output of cases requiring more than N seconds to be computed.
 • The optional argument mindim=N is useful when we know, in advance, that we are not interested in cases in which the solution space has dimension less than N. This option saves computing time.
 • If rankingused = .. is passed as argument, where the right-hand side is assignable (e.g., a name), the ranking used for the unknowns will be assigned to that right-hand side.
 • If ivarsused = .. is passed as argument, where the right-hand side is assignable (e.g., a name), the independent variables of the system, with the ordering they were ranked, will be assigned to that right-hand side.
 • By default, casesplit makes use of the Rif subpackage of DEtools. In most cases, however, it is possible to perform the same computations by using the DifferentialAlgebra package instead of Rif, by giving the extra argument diffalg. Any of the following optional arguments imply on computations which casesplit can only run using Rif: singsol=false, arbitrary, ctl=N.

Examples

The casesplit routine can be used for many different purposes. These examples are organized as follows: first, some typical situations; then, three worked examples in the framework of integrating factors and symmetries for second order ODEs; and finally, an illustration of how different rankings can be used to obtain different results in a DE system with many variables.

 > with(PDEtools):
 > with(DEtools):

For convenience, first declare some functions of $t$ to be displayed using only their names (for example, $f\left(t\right)$ as $f$), and $t$ as the prime variable (see PDEtools[declare]).

 > declare( [f(t), g(t), h(t), j(t), y(t)], prime=t);
 ${f}{}\left({t}\right){}{\mathrm{will now be displayed as}}{}{f}$
 ${g}{}\left({t}\right){}{\mathrm{will now be displayed as}}{}{g}$
 ${h}{}\left({t}\right){}{\mathrm{will now be displayed as}}{}{h}$
 ${j}{}\left({t}\right){}{\mathrm{will now be displayed as}}{}{j}$
 ${y}{}\left({t}\right){}{\mathrm{will now be displayed as}}{}{y}$
 ${\mathrm{derivatives with respect to}}{}{t}{}{\mathrm{of functions of one variable will now be displayed with \text{'}}}$ (1)

The splitting of a single nonlinear ODE into three cases (two of them related to singular solutions) is illustrated here.

 > ode[1] := diff(y(t),t,t)^2 + 2*diff(y(t),t,t)*y(t)^3*diff(y(t),t) - 4*y(t)^2*diff(y(t),t)^3;
 ${{\mathrm{ode}}}_{{1}}{≔}{{\mathrm{y\text{'}\text{'}}}}^{{2}}{+}{2}{}{\mathrm{y\text{'}\text{'}}}{}{{y}}^{{3}}{}{\mathrm{y\text{'}}}{-}{4}{}{{y}}^{{2}}{}{{\mathrm{y\text{'}}}}^{{3}}$ (2)
 > [casesplit(ode[1])];
 $\left[\left[{{\mathrm{y\text{'}\text{'}}}}^{{2}}{=}{-}{2}{}{\mathrm{y\text{'}\text{'}}}{}{{y}}^{{3}}{}{\mathrm{y\text{'}}}{+}{4}{}{{y}}^{{2}}{}{{\mathrm{y\text{'}}}}^{{3}}\right]\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{\mathbf{where}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left[{{y}}^{{3}}{}{\mathrm{y\text{'}}}{+}{\mathrm{y\text{'}\text{'}}}{\ne }{0}\right]{,}\left[{\mathrm{y\text{'}}}{=}{-}\frac{{{y}}^{{4}}}{{4}}\right]\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{\mathbf{where}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left[{y}{\ne }{0}\right]{,}\left[{\mathrm{y\text{'}}}{=}{0}\right]\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{\mathbf{where}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left[{y}{\ne }{0}\right]{,}\left[{y}{=}{0}\right]\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{\mathbf{where}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left[\right]\right]$ (3)

To see a graphical representation of this splitting use the caseplot option

 > casesplit(ode[1], 'caseplot');
 ${\mathrm{========= Pivots Legend =========}}$
 ${\mathrm{p1}}{=}{{y}}^{{3}}{}{\mathrm{y\text{'}}}{+}{\mathrm{y\text{'}\text{'}}}$
 ${\mathrm{p2}}{=}{y}$
 ${\mathrm{p3}}{=}{\mathrm{y\text{'}}}$
 $\left[{{\mathrm{y\text{'}\text{'}}}}^{{2}}{=}{-}{2}{}{\mathrm{y\text{'}\text{'}}}{}{{y}}^{{3}}{}{\mathrm{y\text{'}}}{+}{4}{}{{y}}^{{2}}{}{{\mathrm{y\text{'}}}}^{{3}}\right]\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{\mathbf{where}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left[{{y}}^{{3}}{}{\mathrm{y\text{'}}}{+}{\mathrm{y\text{'}\text{'}}}{\ne }{0}\right]{,}\left[{\mathrm{y\text{'}}}{=}{-}\frac{{{y}}^{{4}}}{{4}}\right]\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{\mathbf{where}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left[{y}{\ne }{0}\right]{,}\left[{\mathrm{y\text{'}}}{=}{0}\right]\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{\mathbf{where}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left[{y}{\ne }{0}\right]{,}\left[{y}{=}{0}\right]\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{\mathbf{where}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left[\right]$ (4)

To identify which of these cases lead to the singular solutions, it suffices to note that singular solutions depend on fewer arbitrary constants, that is, they are solutions to ODEs of lower differential order. If there is only one input equation, it can be given directly (no braces or square brackets are required) and there is no need for a ranking specification.

When there are more variables, the ranking given can lead to different regular systems. For the following example, the ranking was chosen by casesplit's heuristics.

 > sys[1] := {diff(y(t),t)=-x(t)^2,diff(x(t),t)=y(t)};
 ${{\mathrm{sys}}}_{{1}}{≔}\left\{{\mathrm{x\text{'}}}{=}{y}{,}{\mathrm{y\text{'}}}{=}{-}{{x}{}\left({t}\right)}^{{2}}\right\}$ (5)

If infolevel is set to a greater integer (possible settings are 1 through 5), more detailed information about the computation method is displayed.

 > infolevel[:-casesplit] := 2;
 ${{\mathrm{infolevel}}}_{{\mathrm{casesplit}}}{≔}{2}$ (6)
 > casesplit(sys[1]);
 -> Solving ordering to be used: [y, x]
 Ranking for 1st round is: [[y, x]] Ranking for 2nd round is: [y, x]
 1st round is performed, original system is split into 1 cases
 2nd round is performed; processing answer ...
 $\left[{y}{=}{\mathrm{x\text{'}}}{,}{\mathrm{x\text{'}\text{'}}}{=}{-}{{x}{}\left({t}\right)}^{{2}}\right]\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{\mathbf{where}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left[\right]$ (7)

Here, the results of the other possible ranking, $\left[x,y\right]$, are shown.

 > [casesplit(sys[1],[x, y])];
 Ranking for 1st round is: [[x, y]] Ranking for 2nd round is: [x, y]
 1st round is performed, original system is split into 1 cases
 2nd round is performed, original system is now split into 2 cases. Processing answer ...
 $\left[\left[{x}{}\left({t}\right){=}{-}\frac{{\mathrm{y\text{'}\text{'}}}}{{2}{}{y}}{,}{\mathrm{y\text{'}\text{'}\text{'}}}{=}\frac{{-}{2}{}{{y}}^{{3}}{+}{\mathrm{y\text{'}\text{'}}}{}{\mathrm{y\text{'}}}}{{y}}{,}{{\mathrm{y\text{'}\text{'}}}}^{{2}}{=}{-}{4}{}{\mathrm{y\text{'}}}{}{{y}}^{{2}}\right]\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{\mathbf{where}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left[{y}{\ne }{0}\right]{,}\left[{x}{}\left({t}\right){=}{0}{,}{y}{=}{0}\right]\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{\mathbf{where}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left[\right]\right]$ (8)

This also shows that different rankings may lead to a different number of cases. However, the union of the set of solutions to each case is always equal to the solution to the original problem independent of the ranking used.

The uncoupling of systems with many variables is a more difficult problem. In some cases, as in the following ODE system, the uncoupling ordering determined by casesplit succeeds.

 > sys[2] := {diff(g(t),t) = -f(t)^(1/2), diff(j(t),t) = -h(t), diff(f(t),t) = h(t)+g(t), diff(diff(h(t),t),t) = j(t)+g(t)^(1/2)};
 ${{\mathrm{sys}}}_{{2}}{≔}\left\{{\mathrm{h\text{'}\text{'}}}{=}{j}{+}\sqrt{{g}}{,}{\mathrm{f \text{'}}}{=}{h}{+}{g}{,}{\mathrm{g\text{'}}}{=}{-}\sqrt{{f}}{,}{\mathrm{j\text{'}}}{=}{-}{h}\right\}$ (9)
 > casesplit(sys[2]);
 -> Solving ordering to be used: [j, h]
 Ranking for 1st round is: [[j, h, f, _F1, g, _F2]] Ranking for 2nd round is: [j, h, f, _F1, g, _F2]
 1st round is performed, original system is split into 2 cases
 2nd round is performed; processing answer ...
 $\left[{j}{=}{2}{}{\mathrm{g\text{'}\text{'}\text{'}\text{'}}}{}{\mathrm{g\text{'}}}{+}{6}{}{\mathrm{g\text{'}\text{'}\text{'}}}{}{\mathrm{g\text{'}\text{'}}}{-}{\mathrm{g\text{'}\text{'}}}{-}\sqrt{{g}}{,}{h}{=}{2}{}{\mathrm{g\text{'}}}{}{\mathrm{g\text{'}\text{'}}}{-}{g}{,}\sqrt{{f}}{=}{-}{\mathrm{g\text{'}}}{,}{\mathrm{g\text{'}\text{'}\text{'}\text{'}\text{'}}}{=}{-}\frac{{16}{}{\mathrm{g\text{'}\text{'}\text{'}\text{'}}}{}{\mathrm{g\text{'}\text{'}}}{+}{12}{}{{\mathrm{g\text{'}\text{'}\text{'}}}}^{{2}}{+}{4}{}{\mathrm{g\text{'}}}{}{\mathrm{g\text{'}\text{'}}}{-}\frac{{\mathrm{g\text{'}}}}{\sqrt{{g}}}{-}{2}{}{\mathrm{g\text{'}\text{'}\text{'}}}{-}{2}{}{g}}{{4}{}{\mathrm{g\text{'}}}}\right]\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{\mathbf{where}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left[{\mathrm{g\text{'}}}{\ne }{0}\right]{,}\left[{j}{=}{0}{,}{h}{=}{0}{,}{f}{=}{0}{,}{g}{=}{0}\right]\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{\mathbf{where}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left[\right]$ (10)

In the answer above, we see from the displayed information (userinfo) that the ranking chosen by casesplit's heuristics was $\left[j,h,f,g\right]$. This means that each returned case has $j$ expressed in terms of $h,f,g$, then $h$ in terms of $f,g$, $f$ in terms of $g$ and, eventually, a condition on $g$ alone. This is the case for all input systems provided that they are not subdetermined (for instance, too many functions for too few equations).

Regarding the functions $\mathrm{_F1}$ and $\mathrm{_F2}$ displayed in the userinfo, they were introduced to transform the non-polynomial system into a polynomial one by extending the system with auxiliary functions $\mathrm{_F1}$ and $\mathrm{_F2}$ and related auxiliary equations. They are removed before returning the answer. To see the polynomial version of the problem actually processed use the dpolyform command.

It is important to remember that, depending on the input system, the ranking chosen by casesplit heuristics may not be the best one. It could, for example, lead to an uncoupling process with too many large intermediate equations. In such a case, the user's suggestion in the form of a different ranking may solve the problem.

In other cases, independent of the ranking, the differential elimination process may be to expensive in time. For these cases one can use the ctl=N optional argument to impose a timelimit of $N$ seconds per case, at the cost of missing the output of cases requiring more time to compute.

 > infolevel[:-casesplit] := 1;
 ${{\mathrm{infolevel}}}_{{\mathrm{casesplit}}}{≔}{1}$ (11)

casesplit works with systems involving mathematical functions whose arguments are arbitrary algebraic expressions provided they can be represented in differential polynomial form, which is possible provided that each constituting part of the expression, by itself, admits a differential polynomial form. For example

 > f(x) = exp(BesselJ(nu, sqrt(x)));
 ${f}{}\left({x}\right){=}{{ⅇ}}^{{\mathrm{BesselJ}}{}\left({\mathrm{\nu }}{,}\sqrt{{x}}\right)}$ (12)

A differential polynomial form for this expression is

 > dpolyform((12), no_Fn);
  (13)

These differential polynomial forms can be verified for correctness as usual using odetest or pdetest when it is the case of PDEs. In this case, we test that $f\left(x\right)={ⅇ}^{\mathrm{BesselJ}\left(\mathrm{\nu },\sqrt{x}\right)}$ satisfies this ODE

 > odetest((12), (13));
 $\left[{0}\right]$ (14)

So, if such an expression appears in the system of equations received by casesplit its differential polynomial form is constructed as in the above, this equation is added to the system and the expression replaced by the auxiliary unknown $f\left(x\right)$, this extended system is processed and before returning a result $f\left(x\right)$ is replaced back by the original expression it represented.

When unknown functions whose arguments are algebraic expressions (i.e. not variables of type name) are present in the system, when possible, a change of variables is performed such that the transformed functions all depend on variables of type name, the transformed system is tackled, and a further change of variables to revert to the original variables is performed before the result is returned. For example,

 > F(y-I*x) + G(y+I*x) = H(x);
 ${F}{}\left({y}{-}{I}{}{x}\right){+}{G}{}\left({y}{+}{I}{}{x}\right){=}{H}{}\left({x}\right)$ (15)

The natural ranking for this system takes $H$ higher than $F$ or $G$ (i.e. write $H$ as a function of the other ones)

 > casesplit((15));
 $\left[{H}{}\left({x}\right){=}{F}{}\left({y}{-}{I}{}{x}\right){+}{G}{}\left({y}{+}{I}{}{x}\right)\right]\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{\mathbf{where}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left[\right]$ (16)

Writing $F$ or $G$ as a function of $H$, however, turns evident the (otherwise implicit) relationship between the derivatives of $G$ (or $F$) and $H$. To see this, rank $F$ and $G$ higher $H$

 > casesplit((15), [F, G]);
 $\left[{F}{}\left({y}{-}{I}{}{x}\right){=}{-}{G}{}\left({y}{+}{I}{}{x}\right){+}{H}{}\left({x}\right){,}{\mathrm{D}}{}\left({G}\right){}\left({y}{+}{I}{}{x}\right){=}{-}\frac{{I}}{{2}}{}{{H}}_{{x}}\right]\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{\mathbf{where}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left[\right]$ (17)

These arbitrary objects whose arguments are not of type name can appear nested, and provided a differential polynomial form exists for each component of the composition of expressions, a differential polynomial form exists for the composition, and with that casesplit can handle the case when it appears in a given system of equations. For example, a differential polynomial form for this composite expression is:

 > F(x, t) = H(t*x+G(1/t));
 ${F}{}\left({x}{,}{t}\right){=}{H}{}\left({t}{}{x}{+}{G}{}\left(\frac{{1}}{{t}}\right)\right)$ (18)
 > dpolyform((18), no_Fn);
 $\left[{{F}}_{{t}{,}{x}}{=}\frac{{{F}}_{{t}}{}{{F}}_{{x}{,}{x}}}{{{F}}_{{x}}}{+}\frac{{{F}}_{{x}}}{{t}}\right]\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{\mathbf{where}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left[{{F}}_{{x}}{\ne }{0}\right]$ (19)
 > pdetest((18), (19));
 $\left[{0}\right]$ (20)

When the system involves D derivatives evaluated at points that are represented by algebraic expressions, these derivative can be mapped into a function of variables not of type name that can in turn be represented in differential polynomial form as explained in the Description section. This is particularly useful to tackle PDEs. For example

 > pde := diff(u(x, t), x, t) = D(D(D(f)))(x - t) ;
 ${\mathrm{pde}}{≔}{{u}}_{{t}{,}{x}}{=}{{\mathrm{D}}}^{\left({3}\right)}{}\left({f}\right){}\left({x}{-}{t}\right)$ (21)

A differential polynomial form for this pde is given by

 > dpolyform(pde, no_Fn);
 $\left[{{u}}_{{t}{,}{x}{,}{x}}{=}{-}{{u}}_{{t}{,}{t}{,}{x}}\right]\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{\mathbf{where}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left[\right]$ (22)

This is a higher order PDE that can be solved in terms of arbitrary functions

 > pdsolve((22));
 $\left\{{u}{}\left({x}{,}{t}\right){=}\mathrm{f__1}{}\left({t}\right){+}\mathrm{f__2}{}\left({x}\right){+}\mathrm{f__3}{}\left({t}{-}{x}\right)\right\}$ (23)

and from this solution, a solution to the original problem can be derived.

A PDE example where we indicate that 'f(x,y,z)' is our solving variable. Hence, $h\left(x\right)$ and $g\left(y,z\right)$ are viewed as function parameters of the problem.

 > pde[1] := diff(f(x,y,z),x,y)*diff(f(x,y,z),y)=h(x)*g(y,z);
 ${{\mathrm{pde}}}_{{1}}{≔}{{f}}_{{x}{,}{y}}{}{{f}}_{{y}}{=}{h}{}\left({x}\right){}{g}{}\left({y}{,}{z}\right)$ (24)
 > [casesplit(pde[1], f)];  # [f] or [f(x,y,z)]
 $\left[\left[{{f}}_{{x}{,}{y}}{=}\frac{{h}{}\left({x}\right){}{g}{}\left({y}{,}{z}\right)}{{{f}}_{{y}}}\right]\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{\mathbf{where}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left[{{f}}_{{y}}{\ne }{0}\right]{,}\left[{{f}}_{{y}}{=}{0}{,}{h}{}\left({x}\right){=}{0}\right]\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{\mathbf{where}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left[{g}{}\left({y}{,}{z}\right){\ne }{0}\right]{,}\left[{{f}}_{{y}}{=}{0}{,}{g}{}\left({y}{,}{z}\right){=}{0}\right]\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{\mathbf{where}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left[\right]\right]$ (25)

The following is a PDE system which is inconsistent.

 > pde[2] := [diff(u(x,y),x) + v(x,y) = y, diff(u(x,y),y)+v(x,y)=0, diff(v(x,y),x) = diff(v(x,y),y)];
 ${{\mathrm{pde}}}_{{2}}{≔}\left[{{u}}_{{x}}{+}{v}{}\left({x}{,}{y}\right){=}{y}{,}{{u}}_{{y}}{+}{v}{}\left({x}{,}{y}\right){=}{0}{,}{{v}}_{{x}}{=}{{v}}_{{y}}\right]$ (26)
 > casesplit(pde[2]);
 Warning: System is inconsistent

A series of worked examples follows.

Worked example I

 > declare(y(x), prime=x);
 ${y}{}\left({x}\right){}{\mathrm{will now be displayed as}}{}{y}$
 ${\mathrm{derivatives with respect to}}{}{x}{}{\mathrm{of functions of one variable will now be displayed with \text{'}}}$ (27)
 > ode[3] := diff(y(x),x,x)=y(x)*diff(y(x),x)*x;
 ${{\mathrm{ode}}}_{{3}}{≔}{\mathrm{y\text{'}\text{'}}}{=}{y}{}{\mathrm{y\text{'}}}{}{x}$ (28)

Show that the ode[3] has no integrating factors depending on less than three variables.

There are three possible cases to consider: $\mathrm{\mu }$(x,y), $\mathrm{\mu }$(x,y'), and $\mathrm{\mu }$(y,y'). Starting with $\mathrm{\mu }$(x,y), we first set the PDE which must be satisfied by this integrating factor (see odepde).

 > odepde(ode[3], _mu = mu(x,y(x)));
 ${{\mathrm{_y1}}}^{{2}}{}{{\mathrm{\mu }}}_{{y}{,}{y}}{+}{2}{}{{\mathrm{\mu }}}_{{x}{,}{y}}{}{\mathrm{_y1}}{+}{y}{}{\mathrm{\mu }}{}\left({x}{,}{y}\right){+}{2}{}{\mathrm{_y2}}{}{{\mathrm{\mu }}}_{{y}}{+}{{\mathrm{\mu }}}_{{x}{,}{x}}{+}{{\mathrm{\mu }}}_{{x}}{}{y}{}{x}$ (29)

Now, noting that the PDE above is polynomial in $y'$ and $y''$ (represented by $\mathrm{_y1}$ and $\mathrm{_y2}$, respectively), take the corresponding coefficients and set each one to zero to obtain a PDE system for $\mathrm{\mu }$(x,y). These tasks (setting the determining PDE above and splitting it into a system by setting each coefficient of $y''$ equal to zero) are automatically performed by gensys.

 > sys[3] := [ gensys(ode[3], _mu = mu(x,y)) ];
 ${{\mathrm{sys}}}_{{3}}{≔}\left[{{\mathrm{\mu }}}_{{y}}{,}{{\mathrm{\mu }}}_{{y}{,}{y}}{,}{{\mathrm{\mu }}}_{{x}{,}{y}}{,}{y}{}{\mathrm{\mu }}{}\left({x}{,}{y}\right){+}{{\mathrm{\mu }}}_{{x}{,}{x}}{+}{{\mathrm{\mu }}}_{{x}}{}{y}{}{x}\right]$ (30)

Taking into account the integrability conditions implicit in the system above, this system simplifies to the following.

 > casesplit(sys[3]);
 $\left[{\mathrm{\mu }}{}\left({x}{,}{y}\right){=}{0}\right]\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{\mathbf{where}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left[\right]$ (31)

This shows that there is no solution other than the trivial $\mathrm{\mu }$ = 0.

For the case  $\mathrm{\mu }$(x,y'):

 > sys[4] := [ gensys(ode[3], _mu = mu(x,diff(y(x),x))) ];
 ${{\mathrm{sys}}}_{{4}}{≔}\left[{{\mathrm{\mu }}}_{{\mathrm{_y1}}{,}{\mathrm{_y1}}}{}{x}{}{\mathrm{_y1}}{+}{2}{}{{\mathrm{\mu }}}_{{\mathrm{_y1}}}{}{x}{,}{{\mathrm{\mu }}}_{{\mathrm{_y1}}{,}{x}}{,}{{\mathrm{\mu }}}_{{\mathrm{_y1}}{,}{x}}{}{x}{}{\mathrm{_y1}}{+}{{\mathrm{\mu }}}_{{\mathrm{_y1}}}{}{\mathrm{_y1}}{+}{{\mathrm{\mu }}}_{{x}}{}{x}{+}{\mathrm{\mu }}{}\left({x}{,}{\mathrm{_y1}}\right){,}{{\mathrm{\mu }}}_{{\mathrm{_y1}}}{}{{\mathrm{_y1}}}^{{2}}{}{x}{+}{{\mathrm{\mu }}}_{{x}{,}{x}}\right]$ (32)
 > casesplit(sys[4]);
 $\left[{\mathrm{\mu }}{}\left({x}{,}{\mathrm{_y1}}\right){=}{0}\right]\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{\mathbf{where}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left[\right]$ (33)

So, there is no solution of the form $\mathrm{\mu }$(x,y'). Finally, for $\mathrm{\mu }$(y,y'):

 > sys[5] := [ gensys(ode[3], _mu = mu(x,diff(y(x),x))) ];
 ${{\mathrm{sys}}}_{{5}}{≔}\left[{{\mathrm{\mu }}}_{{\mathrm{_y1}}{,}{\mathrm{_y1}}}{}{x}{}{\mathrm{_y1}}{+}{2}{}{{\mathrm{\mu }}}_{{\mathrm{_y1}}}{}{x}{,}{{\mathrm{\mu }}}_{{\mathrm{_y1}}{,}{x}}{,}{{\mathrm{\mu }}}_{{\mathrm{_y1}}{,}{x}}{}{x}{}{\mathrm{_y1}}{+}{{\mathrm{\mu }}}_{{\mathrm{_y1}}}{}{\mathrm{_y1}}{+}{{\mathrm{\mu }}}_{{x}}{}{x}{+}{\mathrm{\mu }}{}\left({x}{,}{\mathrm{_y1}}\right){,}{{\mathrm{\mu }}}_{{\mathrm{_y1}}}{}{{\mathrm{_y1}}}^{{2}}{}{x}{+}{{\mathrm{\mu }}}_{{x}{,}{x}}\right]$ (34)
 > casesplit(sys[5]);
 $\left[{\mathrm{\mu }}{}\left({x}{,}{\mathrm{_y1}}\right){=}{0}\right]\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{\mathbf{where}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left[\right]$ (35)

From these three results, we conclude that ode[3] has no integrating factors depending on only two variables.

Worked example II

Show that ode[4] has only one point symmetry, $\left[\mathrm{_ξ}=1,\mathrm{_η}=0\right]$.

 > ode[4] := diff(y(x),x,x) - 3*y(x)*diff(y(x),x) - 3*a*y(x)^2 - 4*a^2*y(x) - b = 0;
 ${{\mathrm{ode}}}_{{4}}{≔}{\mathrm{y\text{'}\text{'}}}{-}{3}{}{y}{}{\mathrm{y\text{'}}}{-}{3}{}{a}{}{{y}}^{{2}}{-}{4}{}{{a}}^{{2}}{}{y}{-}{b}{=}{0}$ (36)

First, set up the PDE system for the symmetry (the infinitesimal symmetry generators $\mathrm{\xi }$ and $\mathrm{\eta }$). Again, this can be done by using odepde to obtain the determining PDE and then splitting it by taking coefficients or in one step by using gensys.

 > sys[6] := [ gensys(ode[4], [xi(x,y), eta(x,y)]) ];
 ${{\mathrm{sys}}}_{{6}}{≔}\left[{{\mathrm{\xi }}}_{{y}{,}{y}}{,}{-}{6}{}{{\mathrm{\xi }}}_{{y}}{}{y}{+}{{\mathrm{\eta }}}_{{y}{,}{y}}{-}{2}{}{{\mathrm{\xi }}}_{{x}{,}{y}}{,}{-}{12}{}{{\mathrm{\xi }}}_{{y}}{}{{a}}^{{2}}{}{y}{-}{9}{}{{\mathrm{\xi }}}_{{y}}{}{a}{}{{y}}^{{2}}{-}{3}{}{{\mathrm{\xi }}}_{{y}}{}{b}{-}{3}{}{{\mathrm{\xi }}}_{{x}}{}{y}{-}{3}{}{\mathrm{\eta }}{}\left({x}{,}{y}\right){+}{2}{}{{\mathrm{\eta }}}_{{x}{,}{y}}{-}{{\mathrm{\xi }}}_{{x}{,}{x}}{,}{-}{8}{}{{\mathrm{\xi }}}_{{x}}{}{{a}}^{{2}}{}{y}{-}{6}{}{{\mathrm{\xi }}}_{{x}}{}{a}{}{{y}}^{{2}}{+}{4}{}{{\mathrm{\eta }}}_{{y}}{}{{a}}^{{2}}{}{y}{+}{3}{}{{\mathrm{\eta }}}_{{y}}{}{a}{}{{y}}^{{2}}{-}{4}{}{\mathrm{\eta }}{}\left({x}{,}{y}\right){}{{a}}^{{2}}{-}{6}{}{\mathrm{\eta }}{}\left({x}{,}{y}\right){}{a}{}{y}{-}{2}{}{{\mathrm{\xi }}}_{{x}}{}{b}{+}{{\mathrm{\eta }}}_{{y}}{}{b}{-}{3}{}{{\mathrm{\eta }}}_{{x}}{}{y}{+}{{\mathrm{\eta }}}_{{x}{,}{x}}\right]$ (37)
 > casesplit(sys[6]);
 $\left[{\mathrm{\eta }}{}\left({x}{,}{y}\right){=}{0}{,}{{\mathrm{\xi }}}_{{x}}{=}{0}{,}{{\mathrm{\xi }}}_{{y}}{=}{0}\right]\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{\mathbf{where}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left[\right]$ (38)

The system above has only the solution $\left[\mathrm{_ξ}=\mathrm{_C1},\mathrm{_η}=0\right]$, which is equivalent to $\left[\mathrm{_ξ}=1,\mathrm{_η}=0\right]$.

Worked example III

 > ode[5] := diff(y(x),x,x) - diff(y(x),x)^2/y(x) - g(x)*y(x)*diff(y(x),x) - diff(g(x),x)*y(x)^2 = 0;
 ${{\mathrm{ode}}}_{{5}}{≔}{\mathrm{y\text{'}\text{'}}}{-}\frac{{{\mathrm{y\text{'}}}}^{{2}}}{{y}}{-}{g}{}\left({x}\right){}{y}{}{\mathrm{y\text{'}}}{-}{\mathrm{g\text{'}}}{}{{y}}^{{2}}{=}{0}$ (39)

Determine the conditions on $g\left(x\right)$ such that ode[5] has point symmetries with both infinitesimals different from zero.

First, set up the determining PDE system for the infinitesimals $\mathrm{\xi }$ and $\mathrm{\eta }$.

 > sys[7] := gensys(ode[5], [xi(x,y), eta(x,y)], y(x));
 ${{\mathrm{sys}}}_{{7}}{≔}{-}{{\mathrm{\xi }}}_{{y}{,}{y}}{}{{y}}^{{2}}{-}{{\mathrm{\xi }}}_{{y}}{}{y}{,}{-}{2}{}{g}{}\left({x}\right){}{{\mathrm{\xi }}}_{{y}}{}{{y}}^{{3}}{+}{{\mathrm{\eta }}}_{{y}{,}{y}}{}{{y}}^{{2}}{-}{2}{}{{\mathrm{\xi }}}_{{x}{,}{y}}{}{{y}}^{{2}}{-}{{\mathrm{\eta }}}_{{y}}{}{y}{+}{\mathrm{\eta }}{}\left({x}{,}{y}\right){,}{-}{3}{}{\mathrm{g\text{'}}}{}{{\mathrm{\xi }}}_{{y}}{}{{y}}^{{4}}{-}{g}{}\left({x}\right){}{{\mathrm{\xi }}}_{{x}}{}{{y}}^{{3}}{-}{\mathrm{g\text{'}}}{}{\mathrm{\xi }}{}\left({x}{,}{y}\right){}{{y}}^{{3}}{-}{g}{}\left({x}\right){}{\mathrm{\eta }}{}\left({x}{,}{y}\right){}{{y}}^{{2}}{+}{2}{}{{\mathrm{\eta }}}_{{x}{,}{y}}{}{{y}}^{{2}}{-}{{\mathrm{\xi }}}_{{x}{,}{x}}{}{{y}}^{{2}}{-}{2}{}{{\mathrm{\eta }}}_{{x}}{}{y}{,}{-}{2}{}{\mathrm{g\text{'}}}{}{{\mathrm{\xi }}}_{{x}}{}{{y}}^{{4}}{+}{\mathrm{g\text{'}}}{}{{\mathrm{\eta }}}_{{y}}{}{{y}}^{{4}}{-}{\mathrm{\xi }}{}\left({x}{,}{y}\right){}{\mathrm{g\text{'}\text{'}}}{}{{y}}^{{4}}{-}{g}{}\left({x}\right){}{{\mathrm{\eta }}}_{{x}}{}{{y}}^{{3}}{-}{2}{}{\mathrm{g\text{'}}}{}{\mathrm{\eta }}{}\left({x}{,}{y}\right){}{{y}}^{{3}}{+}{{\mathrm{\eta }}}_{{x}{,}{x}}{}{{y}}^{{2}}$ (40)

Note that the dependent variable $y$ is also specified. Otherwise, gensys complains since ode[5] contains derivatives of both $y$ and $g$, and it cannot determine the dependent variable of the problem. $y$ could be specified as the second argument as well. Now state, using inequations, that both infinitesimals should be different from zero.

 > ineqs[7] := xi(x,y) <> 0, eta(x,y) <> 0;
 ${{\mathrm{ineqs}}}_{{7}}{≔}{\mathrm{\xi }}{}\left({x}{,}{y}\right){\ne }{0}{,}{\mathrm{\eta }}{}\left({x}{,}{y}\right){\ne }{0}$ (41)

Next, run casesplit. In doing so, different rankings could lead to what is wanted. Use $\left[\left[\mathrm{\xi },\mathrm{\eta }\right],g\right]$ to solve for $\left[\mathrm{\xi },\mathrm{\eta }\right]$ as functions of $g$, plus separated extra conditions on $g$ alone (these are the conditions we want). When solving for $\left[\mathrm{\xi },\mathrm{\eta }\right]$, do not uncouple $\mathrm{\xi }$ from $\mathrm{\eta }$. This uncoupling is irrelevant since it would take more time and resources to be computed, and only the conditions on $g$ are wanted.

 > [casesplit([sys[7], ineqs[7]], [ [xi,eta], g ])];
 $\left[\left[{\mathrm{\xi }}{}\left({x}{,}{y}\right){=}\frac{{2}{}{{g}{}\left({x}\right)}^{{2}}{}{\mathrm{\eta }}{}\left({x}{,}{y}\right){}{\mathrm{g\text{'}\text{'}}}{-}{2}{}{g}{}\left({x}\right){}{\mathrm{\eta }}{}\left({x}{,}{y}\right){}{{\mathrm{g\text{'}}}}^{{2}}}{{{g}{}\left({x}\right)}^{{2}}{}{\mathrm{g\text{'}\text{'}\text{'}}}{}{y}{-}{5}{}{g}{}\left({x}\right){}{\mathrm{g\text{'}}}{}{\mathrm{g\text{'}\text{'}}}{}{y}{+}{4}{}{{\mathrm{g\text{'}}}}^{{3}}{}{y}}{,}{{\mathrm{\eta }}}_{{x}}{=}\frac{{\mathrm{\eta }}{}\left({x}{,}{y}\right){}{g}{}\left({x}\right){}{\mathrm{g\text{'}\text{'}\text{'}}}{}{\mathrm{g\text{'}}}{-}{2}{}{\mathrm{\eta }}{}\left({x}{,}{y}\right){}{g}{}\left({x}\right){}{{\mathrm{g\text{'}\text{'}}}}^{{2}}{+}{\mathrm{\eta }}{}\left({x}{,}{y}\right){}{{\mathrm{g\text{'}}}}^{{2}}{}{\mathrm{g\text{'}\text{'}}}}{{{g}{}\left({x}\right)}^{{2}}{}{\mathrm{g\text{'}\text{'}\text{'}}}{-}{5}{}{g}{}\left({x}\right){}{\mathrm{g\text{'}}}{}{\mathrm{g\text{'}\text{'}}}{+}{4}{}{{\mathrm{g\text{'}}}}^{{3}}}{,}{{\mathrm{\eta }}}_{{y}}{=}\frac{{\mathrm{\eta }}{}\left({x}{,}{y}\right)}{{y}}{,}{\mathrm{g\text{'}\text{'}\text{'}\text{'}}}{=}\frac{{3}{}{{g}{}\left({x}\right)}^{{2}}{}{{\mathrm{g\text{'}\text{'}\text{'}}}}^{{2}}{-}{10}{}{g}{}\left({x}\right){}{\mathrm{g\text{'}}}{}{\mathrm{g\text{'}\text{'}}}{}{\mathrm{g\text{'}\text{'}\text{'}}}{+}{6}{}{g}{}\left({x}\right){}{{\mathrm{g\text{'}\text{'}}}}^{{3}}{+}{4}{}{{\mathrm{g\text{'}}}}^{{3}}{}{\mathrm{g\text{'}\text{'}\text{'}}}{-}{3}{}{{\mathrm{g\text{'}}}}^{{2}}{}{{\mathrm{g\text{'}\text{'}}}}^{{2}}}{{2}{}{{g}{}\left({x}\right)}^{{2}}{}{\mathrm{g\text{'}\text{'}}}{-}{2}{}{g}{}\left({x}\right){}{{\mathrm{g\text{'}}}}^{{2}}}\right]\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{\mathbf{where}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left[{\mathrm{\eta }}{}\left({x}{,}{y}\right){\ne }{0}{,}{{g}{}\left({x}\right)}^{{2}}{}{\mathrm{g\text{'}\text{'}\text{'}}}{-}{5}{}{g}{}\left({x}\right){}{\mathrm{g\text{'}}}{}{\mathrm{g\text{'}\text{'}}}{+}{4}{}{{\mathrm{g\text{'}}}}^{{3}}{\ne }{0}\right]{,}\left[{{\mathrm{\xi }}}_{{x}}{=}{-}\frac{{\mathrm{g\text{'}}}{}{\mathrm{\xi }}{}\left({x}{,}{y}\right){}{y}{+}{g}{}\left({x}\right){}{\mathrm{\eta }}{}\left({x}{,}{y}\right)}{{g}{}\left({x}\right){}{y}}{,}{{\mathrm{\xi }}}_{{y}}{=}{0}{,}{{\mathrm{\eta }}}_{{x}}{=}\frac{{{\mathrm{g\text{'}}}}^{{2}}{}{\mathrm{\xi }}{}\left({x}{,}{y}\right){}{y}{+}{g}{}\left({x}\right){}{\mathrm{\eta }}{}\left({x}{,}{y}\right){}{\mathrm{g\text{'}}}}{{{g}{}\left({x}\right)}^{{2}}}{,}{{\mathrm{\eta }}}_{{y}}{=}\frac{{\mathrm{\eta }}{}\left({x}{,}{y}\right)}{{y}}{,}{\mathrm{g\text{'}\text{'}}}{=}\frac{{{\mathrm{g\text{'}}}}^{{2}}}{{g}{}\left({x}\right)}\right]\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{\mathbf{where}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left[{\mathrm{\eta }}{}\left({x}{,}{y}\right){\ne }{0}{,}{g}{}\left({x}\right){\ne }{0}{,}{\mathrm{\xi }}{}\left({x}{,}{y}\right){\ne }{0}\right]{,}\left[{{\mathrm{\xi }}}_{{x}{,}{x}}{=}\frac{{2}{}{{\mathrm{\eta }}}_{{x}{,}{y}}{}{y}{-}{2}{}{{\mathrm{\eta }}}_{{x}}}{{y}}{,}{{\mathrm{\xi }}}_{{x}{,}{y}}{=}{-}\frac{{-}{{\mathrm{\eta }}}_{{y}{,}{y}}{}{{y}}^{{2}}{+}{{\mathrm{\eta }}}_{{y}}{}{y}{-}{\mathrm{\eta }}{}\left({x}{,}{y}\right)}{{2}{}{{y}}^{{2}}}{,}{{\mathrm{\xi }}}_{{y}{,}{y}}{=}{-}\frac{{{\mathrm{\xi }}}_{{y}}}{{y}}{,}{{\mathrm{\eta }}}_{{x}{,}{y}{,}{y}}{=}\frac{{{\mathrm{\eta }}}_{{x}{,}{y}}{}{y}{-}{{\mathrm{\eta }}}_{{x}}}{{{y}}^{{2}}}{,}{{\mathrm{\eta }}}_{{y}{,}{y}{,}{y}}{=}\frac{{-}{{\mathrm{\eta }}}_{{y}}{}{y}{+}{\mathrm{\eta }}{}\left({x}{,}{y}\right)}{{{y}}^{{3}}}{,}{{\mathrm{\eta }}}_{{x}{,}{x}}{=}{0}{,}{g}{}\left({x}\right){=}{0}\right]\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{\mathbf{where}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left[{\mathrm{\eta }}{}\left({x}{,}{y}\right){\ne }{0}{,}{\mathrm{\xi }}{}\left({x}{,}{y}\right){\ne }{0}\right]\right]$ (42)

In the answer above, we see three systems, each one associated to different conditions on $g\left(x\right)$, and both $\mathrm{\xi }$ and $\mathrm{\eta }$ expressed in terms of each other and $g$.

The last example illustrates the use of different rankings. Consider the following PDE system.

 > sys[8] := [-diff(mu(x,y),y)-A(y)*mu(x,y)=0, 3*mu(x,y)*F(x)*y^2 - diff(mu(x,y),x) + diff(mu(x,y),y)*H(x) + diff(mu(x,y),y)*F(x)*y^3-B(x)*mu(x,y) = 0, mu(x,y)*diff(H(x),x) + diff(mu(x,y),x)*F(x)*y^3 + diff(mu(x,y),x)*H(x) + mu(x,y)*diff(F(x),x)*y^3 = 0];
 ${{\mathrm{sys}}}_{{8}}{≔}\left[{-}{{\mathrm{\mu }}}_{{y}}{-}{A}{}\left({y}\right){}{\mathrm{\mu }}{}\left({x}{,}{y}\right){=}{0}{,}{3}{}{\mathrm{\mu }}{}\left({x}{,}{y}\right){}{F}{}\left({x}\right){}{{y}}^{{2}}{-}{{\mathrm{\mu }}}_{{x}}{+}{{\mathrm{\mu }}}_{{y}}{}{H}{}\left({x}\right){+}{{\mathrm{\mu }}}_{{y}}{}{F}{}\left({x}\right){}{{y}}^{{3}}{-}{B}{}\left({x}\right){}{\mathrm{\mu }}{}\left({x}{,}{y}\right){=}{0}{,}{\mathrm{\mu }}{}\left({x}{,}{y}\right){}{\mathrm{H\text{'}}}{+}{{\mathrm{\mu }}}_{{x}}{}{F}{}\left({x}\right){}{{y}}^{{3}}{+}{{\mathrm{\mu }}}_{{x}}{}{H}{}\left({x}\right){+}{\mathrm{\mu }}{}\left({x}{,}{y}\right){}{\mathrm{F\text{'}}}{}{{y}}^{{3}}{=}{0}\right]$ (43)

You can assign the ranking for the unknowns and/or the ordering used for the independent variables by passing the optional arguments rankingused = R and/or ivarsused = ii, where the right-hand sides, R and ii, can actually be any assignable objects. For example, discarding the singular cases for simplicity, the triangularization of this system and ranking and ordering of independent variables used for that are:

 > casesplit(sys[8], rankingused = 'R', ivarsused = 'ii', singsol = false);
 $\left[{B}{}\left({x}\right){=}\frac{{3}{}{{\mathrm{\mu }}{}\left({x}{,}{y}\right)}^{{2}}{}{F}{}\left({x}\right){}{{\mathrm{\mu }}}_{{y}{,}{y}}{}{{y}}^{{2}}{-}{6}{}{\mathrm{\mu }}{}\left({x}{,}{y}\right){}{F}{}\left({x}\right){}{{{\mathrm{\mu }}}_{{y}}}^{{2}}{}{{y}}^{{2}}{-}{6}{}{{\mathrm{\mu }}{}\left({x}{,}{y}\right)}^{{2}}{}{F}{}\left({x}\right){}{{\mathrm{\mu }}}_{{y}}{}{y}{-}{\mathrm{\mu }}{}\left({x}{,}{y}\right){}{{\mathrm{\mu }}}_{{y}{,}{y}}{}{{\mathrm{\mu }}}_{{x}}{+}{{{\mathrm{\mu }}}_{{y}}}^{{2}}{}{{\mathrm{\mu }}}_{{x}}}{{{\mathrm{\mu }}{}\left({x}{,}{y}\right)}^{{2}}{}{{\mathrm{\mu }}}_{{y}{,}{y}}{-}{\mathrm{\mu }}{}\left({x}{,}{y}\right){}{{{\mathrm{\mu }}}_{{y}}}^{{2}}}{,}{H}{}\left({x}\right){=}\frac{{-}{\mathrm{\mu }}{}\left({x}{,}{y}\right){}{F}{}\left({x}\right){}{{\mathrm{\mu }}}_{{y}{,}{y}}{}{{y}}^{{3}}{+}{F}{}\left({x}\right){}{{{\mathrm{\mu }}}_{{y}}}^{{2}}{}{{y}}^{{3}}{-}{3}{}{{\mathrm{\mu }}}_{{y}}{}{\mathrm{\mu }}{}\left({x}{,}{y}\right){}{F}{}\left({x}\right){}{{y}}^{{2}}{-}{6}{}{{\mathrm{\mu }}{}\left({x}{,}{y}\right)}^{{2}}{}{F}{}\left({x}\right){}{y}}{{{\mathrm{\mu }}}_{{y}{,}{y}}{}{\mathrm{\mu }}{}\left({x}{,}{y}\right){-}{{{\mathrm{\mu }}}_{{y}}}^{{2}}}{,}{\mathrm{F\text{'}}}{=}{-}\frac{{F}{}\left({x}\right){}{{\mathrm{\mu }}}_{{x}}}{{\mathrm{\mu }}{}\left({x}{,}{y}\right)}{,}{A}{}\left({y}\right){=}{-}\frac{{{\mathrm{\mu }}}_{{y}}}{{\mathrm{\mu }}{}\left({x}{,}{y}\right)}{,}{{\mathrm{\mu }}}_{{y}{,}{y}{,}{y}}{=}\frac{{2}{}{\mathrm{\mu }}{}\left({x}{,}{y}\right){}{{{\mathrm{\mu }}}_{{y}{,}{y}}}^{{2}}{}{{y}}^{{2}}{-}{{\mathrm{\mu }}}_{{y}{,}{y}}{}{{{\mathrm{\mu }}}_{{y}}}^{{2}}{}{{y}}^{{2}}{+}{8}{}{\mathrm{\mu }}{}\left({x}{,}{y}\right){}{{\mathrm{\mu }}}_{{y}{,}{y}}{}{{\mathrm{\mu }}}_{{y}}{}{y}{-}{6}{}{{{\mathrm{\mu }}}_{{y}}}^{{3}}{}{y}{+}{2}{}{{\mathrm{\mu }}{}\left({x}{,}{y}\right)}^{{2}}{}{{\mathrm{\mu }}}_{{y}{,}{y}}{-}{2}{}{\mathrm{\mu }}{}\left({x}{,}{y}\right){}{{{\mathrm{\mu }}}_{{y}}}^{{2}}}{{{\mathrm{\mu }}}_{{y}}{}{\mathrm{\mu }}{}\left({x}{,}{y}\right){}{{y}}^{{2}}{+}{2}{}{{\mathrm{\mu }}{}\left({x}{,}{y}\right)}^{{2}}{}{y}}{,}{{\mathrm{\mu }}}_{{x}{,}{y}}{=}\frac{{{\mathrm{\mu }}}_{{y}}{}{{\mathrm{\mu }}}_{{x}}}{{\mathrm{\mu }}{}\left({x}{,}{y}\right)}\right]\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{\mathbf{where}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left[{F}{}\left({x}\right){\ne }{0}{,}{{\mathrm{\mu }}}_{{y}}{}{y}{+}{2}{}{\mathrm{\mu }}{}\left({x}{,}{y}\right){\ne }{0}{,}{-}{{\mathrm{\mu }}}_{{y}{,}{y}}{}{\mathrm{\mu }}{}\left({x}{,}{y}\right){+}{{{\mathrm{\mu }}}_{{y}}}^{{2}}{\ne }{0}\right]$ (44)
 > R, ii;
 $\left[{B}{,}{H}{,}{F}{,}{A}{,}{\mathrm{\mu }}\right]{,}\left[\left[{y}{,}{x}\right]\right]$ (45)

Suppose however that you are interested in an answer expressing $\mathrm{\mu }$, $A$, and $B$ in terms of $F$ and $H$, as well as some conditions on $F$ and $H$ is wanted. Then, the corresponding ranking is:

 > [ [mu,A, B], [F, H] ];
 $\left[\left[{\mathrm{\mu }}{,}{A}{,}{B}\right]{,}\left[{F}{,}{H}\right]\right]$ (46)

If, in addition, these conditions on $F$ and $H$ expressed with $F$ as a function of $H$, as well as a condition involving $H$ alone, are wanted, then the ranking would be $\left[\left[\mathrm{\mu },A,B\right],F,H\right]$. If, moreover, $m$ as a function of $A$ and $B$ is wanted, the ranking would be $\left[\mathrm{\mu },\left[A,B\right],F,H\right]$. The ranking $\left[\mathrm{\mu },A,B,F,H\right]$ also works, but in general, when asking for "more uncoupling", the time and memory spent is greater. For the purpose assumed in this example, $\left[\left[\mathrm{\mu },A,B\right],\left[F,H\right]\right]$ is the least expensive ranking leading to what is requested, while $\left[\mathrm{\mu },A,B,F,H\right]$ is the most expensive one.

To see what the specified ranking represents more formally, one can query the diffalg[print_ranking] command as follows. Define the differential ring of the problem and then issue the query.

 > DR := diffalg[differential_ring](notation = diff, derivations = [x,y], ranking = [[mu, A, B], [F, H]]);
 ${\mathrm{DR}}{≔}{\mathrm{PDE_ring}}$ (47)
 > diffalg[print_ranking](DR);
 In lists, leftmost elements are greater than rightmost ones. The derivatives of [mu, A, B] are ordered by grlexA: _U [tau] > _V [phi] when     |tau| > |phi| or     |tau| = |phi| and _U > _V w.r.t. the list of indeterminates or     |tau| = |phi| and _U = _V and tau > phi w.r.t. [x, y] Any derivative of [mu, A, B] is greater than any derivative of [F, H] The derivatives of [F, H] are ordered by grlexA.

casesplit also works with anticommutative variables, using the approach explained in PerformOnAnticommutativeSystem.

 > with(Physics):

Set first $\mathrm{\theta }$ and $Q$ as suffixes for variables of type/anticommutative (see Setup)

 > Setup(anticommutativepre = {theta, Q});
 $\mathrm{* Partial match of \text{'}}\mathrm{anticommutativepre}\mathrm{\text{'} against keyword \text{'}}\mathrm{anticommutativeprefix}\text{'}$
 $\mathrm{_______________________________________________________}$
 $\left[{\mathrm{anticommutativeprefix}}{=}\left\{{Q}{,}{\mathrm{\theta }}\right\}\right]$ (48)

A PDE system example with one unknown anticommutative function $Q$ of four variables, two commutative and two anticommutative; to avoid redundant typing in the input that follows and redundant display of information on the screen, use PDEtools:-declare, and PDEtools:-diff_table, that also handles anticommutative variables by automatically using Physics:-diff when Physics is loaded

 > PDEtools:-declare(Q(x, y, theta[1], theta[2]));
 ${Q}{}\left({x}{,}{y}{,}{{\mathrm{\theta }}}_{{1}}{,}{{\mathrm{\theta }}}_{{2}}\right){}{\mathrm{will now be displayed as}}{}{Q}$ (49)
 > q := PDEtools:-diff_table(Q(x, y, theta[1], theta[2])):

Now we can enter derivatives directly as the function's name indexed by the differentiation variables and see the display the same way; two PDEs

 > pde[1] := q[x, y, theta[1]] + q[x, y, theta[2]] - q[y, theta[1], theta[2]] = 0;
 ${{\mathrm{pde}}}_{{1}}{≔}{{Q}}_{{x}{,}{y}{,}{{\mathrm{\theta }}}_{{1}}}{+}{{Q}}_{{x}{,}{y}{,}{{\mathrm{\theta }}}_{{2}}}{-}{{Q}}_{{y}{,}{{\mathrm{\theta }}}_{{1}}{,}{{\mathrm{\theta }}}_{{2}}}{=}{0}$ (50)
 > pde[2] := q[theta[1]] = 0;
 ${{\mathrm{pde}}}_{{2}}{≔}{{Q}}_{{{\mathrm{\theta }}}_{{1}}}{=}{0}$ (51)

The simplification of this system taking into account its integrability conditions

 > casesplit([pde[1], pde[2]]);
 $\left[{{Q}}_{{x}{,}{y}{,}{{\mathrm{\theta }}}_{{2}}}{=}{0}{,}{{Q}}_{{{\mathrm{\theta }}}_{{1}}}{=}{0}\right]\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{\mathbf{where}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left[\right]$ (52)

Compatibility

 • The PDEtools[casesplit] command was updated in Maple 2017.