overview - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Overview of the DEtools[rifsimp] Command

 

Description

Examples

Description

  

The rifsimp algorithm is essentially an extension of the Gaussian elimination and Groebner basis algorithms to systems of nonlinear PDEs.

  

This help page presents successively more involved examples of the use of rifsimp for the simplification of systems of equations, explaining what the algorithm does, and introducing ideas that are helpful for effective use of the algorithm.

Examples

Example 1: rifsimp form of a linear algebraic system

withDEtools:

rifsimpx2y=1,x+2z=4

tableSolved=x=2z+4,y=32z

(1)

This is the same result that one would expect from the Gaussian elimination algorithm. Note that rifsimp has chosen to solve for x and y in terms of z. For this problem the order of solving, called a ranking, is x > y > z (the default ranking for rifsimp). Given the inequality, rifsimp looks at the unknowns in an equation, and chooses the greatest one to solve for. This is a purely illustrative example, because Maple has specialized functions that solve such systems.

Example 2: rifsimp form of a linear ODE system

sys3xtdiffxt,t=0,diffxt,t,t2xt=0

sys3xtⅆⅆtxt=0,ⅆ2ⅆt2xt2xt=0

(2)

rifsimpsys

tableSolved=xt=0

(3)

As described in the prior example, rifsimp requires a ranking to determine the unknown for which to solve in an equation. For this ODE system, the ranking (using prime notation for derivatives) defaults to the following:

x<x'<x''<x'''<

So the first equation is solved for x' giving x' = 3*x. The second equation is then differentially simplified with respect to the first, and gives 3*x'-2*x = 0 after the first simplification, and finally 7*x = 0 after the second. This equation is then solved for x, then back substitution into the first equation gives 0 = 0.

For more general systems, rifsimp accounts for all of the derivative consequences of a system in a systematic and rigorous way.

Example 3: rifsimp form of a nonlinear algebraic system

sysx102x5y2+y4y3+1&comma;2x104x5y2+2y4+3y33&comma;x5y2+y31

sysx102x5y2+y4y3+1&comma;2x104x5y2+2y4+3y33&comma;x5+y3y21

(4)

rifsimpsys

tableConstraint=x5y2=0&comma;y31=0

(5)

The output was returned in the Constraint entries which means algebraic constraints as opposed to differential constraints. For this system, rifsimp gives the Groebner basis form of the algebraic system as output, as can be seen by running the Groebner package on the same system (with the appropriate ranking).

GroebnerBasissys&comma;tdegx&comma;y

y31&comma;x5y2

(6)

In general, rifsimp on algebraic systems is closer to a factoring case splitting Groebner basis (see rifsimp[nonlinear], and Maple's Groebner package).  rifsimp does not use Maple's Groebner package, but instead its own, optimized for differential elimination.

Example 4: rifsimp form of a nonlinear ODE system

sysxt3+xt+1=0&comma;diffxt&comma;t&comma;t3diffxt&comma;t=0&comma;diffxt&comma;t&comma;t&comma;t2diffxt&comma;t=0

sysxt3+xt+1=0&comma;&DifferentialD;2&DifferentialD;t2xt3&DifferentialD;&DifferentialD;txt=0&comma;&DifferentialD;3&DifferentialD;t3xt2&DifferentialD;&DifferentialD;txt=0

(7)

rifsimpsys

tableSolved=&DifferentialD;&DifferentialD;txt=0&comma;Constraint=xt3+xt+1=0

(8)

Now the output is present in both the Solved and Constraint lists. The equation is present in the constraint list because the leading indeterminate of the equation occurs nonlinearly (for information on the leading indeterminate, please see rifsimp[ranking]). Again, to obtain the answer, a ranking of the derivatives was required. The ranking used ranks "higher derivatives in x(t) before lower derivatives". This is a fairly standard ranking called the total degree ranking.

It is clear that the solution of the constraint equation gives xt=constant, so from that point of view, the equation in the derivative of xt is redundant, but it needs to be retained for the proper functioning of other algorithms, such as initialdata, and rtaylor. The additional equation in the Solved is a differential consequence of the Constraint, as can be verified through differentiation. This redundant equation is called a spawn equation, as it is a differential constraint spawned (through differentiation by t) from the nonlinear equation. Redundant equations can be removed with the clean or fullclean options as follows (see rifsimp[options]):

rifsimpsys&comma;clean=spawn

tableConstraint=xt3+xt+1=0

(9)

rifsimpsys&comma;fullclean

tableConstraint=xt3+xt+1=0

(10)

Example 5: rifsimp form of a linear PDE system

sysdiffux&comma;y&comma;x&comma;xydiffux&comma;y&comma;x=0&comma;diffux&comma;y&comma;y=0

sys2x2ux&comma;yyxux&comma;y=0&comma;yux&comma;y=0

(11)

rifsimpsys

tableSolved=xux&comma;y=0&comma;yux&comma;y=0

(12)

In this example, rifsimp used the default ranking (where indices are used to denote differentiation)

u<ux<uy<uxx<uxy<uyy<

This ranking satisfies the following properties:

1. 

It is preserved under differentiation (u < u[x] implies u[x] < u[xx]).

2. 

u is less than any derivative of u.

These two properties are crucial for the termination of the algorithm. Fortunately, the default rankings chosen by rifsimp obey these properties, so these do not have to be considered. In general, many such orderings are possible, and methods for specifying them are discussed in rifsimp[ranking] and checkrank.

As an illustration, we will manually simplify the above system to rifsimp form. As the first step, we solve each equation for its leading derivative (given the ranking described above). This gives  u[xx] = y u[x] and u[y] = 0. Alas, we do not have our final answer, but no differential simplifications remain. How is this possible? Well, for PDE systems we have one further consideration called integrability conditions.

After looking at our solved system for a time, we may realize that differentiation of the first equation by y and differentiation of the second equation by x twice will give the derivative u[xyy] on the left hand side of both equations. If the solution to the system is differentiable to third order (an assumption implicitly made by rifsimp), we differentiate the equations to the described order and subtract, giving the new, nontrivial equation

0=DyuxxDxxuy=Dyyux+Dxx0=yuxy+ux

Differential simplification of this equation with respect to the current system yields u[x] = 0, which is then used to simplify the system and give us the answer returned by rifsimp.

To summarize, for systems of linear PDEs, the rifsimp form of the system can be obtained by the following heavily simplified algorithm, for a given input ranking <:

 Rifsimp-Linear(input: system, <)

    neweqns := system

    rifsys := empty

    while neweqns not empty do

       rifsys := rifsys union neweqns

       rifsys := diff-gauss-elim(rifsys,rifsys,<)

       neweqns := integrability-cond(rifsys)

       neweqns := diff-gauss-elim(neweqns,rifsys,<)

    end-while

    return(rifsys)

 end

Care must be taken in how the diff-gauss-elim routine operates on the solved rifsys.

Example 6: rifsimp form of a nonlinear PDE system

This system is considered in the paper Reid et al., 1996 (see Rif) and is used as an example in Rust, 1998. For the ranking u<ux<uy<uxx<uxy<uyy<..., the initial system consists of one leading linear PDE, uxxuxy=0 (with leading derivative uxx), and one leading nonlinear, PDE uy2u+uy=0 (with leading derivative uy). No linear elimination can be done in the single leading linear PDE, so the leading nonlinear PDE is differentiated with respect to both independent variables to spawn the two leading linear PDEs: 2uy+1uxyux=0 and 2uy+1uyyuy=0 (for more information on spawning, see rifsimp[nonlinear]). These are solved for their leading derivatives, yielding uxy=ux2uy+1 and uyy=uy2uy+1, subject to the pivot or inequation condition 2uy+1<>0. Integrability conditions are then taken across the leading linear PDE and simplified subject to the system, yielding one more PDE: uxuyux2=0. When this equation is spawned, the resulting equations vanish to zero upon reduction by the current system, so the algorithm then terminates. In summary, constraints are treated algebraically, and the leading linear equations are treated differentially. The system is then viewed modulo the constraint equations, using the concept of a relative basis, rigorously described in the thesis of Rust (see references on the Rif help page).

sysdiffux&comma;y&comma;x&comma;xdiffux&comma;y&comma;x&comma;y=0&comma;diffux&comma;y&comma;y2+diffux&comma;y&comma;yux&comma;y=0

sys2x2ux&comma;y2xyux&comma;y=0&comma;yux&comma;y2+yux&comma;yux&comma;y=0

(13)

rifsimpsys

tableSolved=2x2ux&comma;y=xux&comma;y2yux&comma;y+1&comma;2xyux&comma;y=xux&comma;y2yux&comma;y+1&comma;2y2ux&comma;y=yux&comma;y2yux&comma;y+1&comma;Pivots=2yux&comma;y+10&comma;Constraint=xux&comma;y2xux&comma;yyux&comma;y=0&comma;yux&comma;y2+yux&comma;yux&comma;y=0&comma;Case=2yux&comma;y+10&comma;2y2ux&comma;y

(14)

Example 7: rifsimp form of a nonlinear PDE system with cases

This problem arises from the determination of Lie symmetry groups for different values of a,b for the ODE:

ODEdiffyx&comma;x&comma;x2a2yx3+2abxyxb

ODE&DifferentialD;2&DifferentialD;x2yx2a2yx3+2abxyxb

(15)

The Lie symmetry determining equation can be obtained through use of the DEtools[odepde] function as follows:

syscoeffsnumerDEtoolsodepdeODE&comma;ξ&comma;ηx&comma;y&comma;yx&comma;_y1

sys2y2ξx&comma;y&comma;2y2ηx&comma;y22xyξx&comma;y&comma;6yξx&comma;ya2y3+6yξx&comma;yabxy3yξx&comma;yb+22xyηx&comma;y2x2ξx&comma;y&comma;4xξx&comma;ya2y3+2yηx&comma;ya2y36ηx&comma;ya2y2+4xξx&comma;yabxy2yηx&comma;yabxy+2ηx&comma;yabx+2ξx&comma;yaby2xξx&comma;yb+yηx&comma;yb+2x2ηx&comma;y

(16)

When viewed as a system in xi and eta, it is a linear system, but if we are also considering a,b to be unknowns, the system becomes effectively nonlinear. Now what we want to accomplish is to find the equations for the symmetry generators for all values of a,b. We can do this by allowing rifsimp to perform case splitting on the system using the casesplit option (see rifsimp[cases] for more detail).

ansrifsimpsys&comma;casesplit

anstable1=tableSolved=ηx&comma;y=0&comma;ξx&comma;y=0&comma;Pivots=a0&comma;b0&comma;Case=a0&comma;yξx&comma;y&comma;b0&comma;ηx&comma;y&comma;2=tableSolved=xηx&comma;y=0&comma;xξx&comma;y=ηx&comma;yy&comma;yηx&comma;y=ηx&comma;yy&comma;yξx&comma;y=0&comma;b=0&comma;Pivots=a0&comma;Case=a0&comma;yξx&comma;y&comma;b=0&comma;ηx&comma;y&comma;3=tableSolved=3xy2ηx&comma;y=0&comma;3y3ηx&comma;y=0&comma;2x2ηx&comma;y=b2xξx&comma;yyηx&comma;y&comma;2x2ξx&comma;y=3yξx&comma;yb+22xyηx&comma;y&comma;2xyξx&comma;y=2y2ηx&comma;y2&comma;2y2ξx&comma;y=0&comma;a=0&comma;Case=a=0&comma;yξx&comma;y&comma;casecount=3

(17)

The structure of the output of rifsimp has changed form into a recursive table for multiple cases. The returned table has a casecount entry, and individual rifsimp answers for each case indexed by the numbers 1,2,3. For the three cases, the form of the Solved equations for xi,eta is different. This indicates that for different values of a,b the structure of the Lie symmetry group is different, and provides the systems that must be satisfied for each group. This case splitting also covers all possible values of a,b, so it fully describes the dependence of the determining system on these values, and no other systems for other values of  a,b exist.

The  structure of the case tree can be observed in a plot using caseplot.

caseplotans

See Also

caseplot

checkrank

DEtools[odepde]

Groebner

Rif

rifsimp

rifsimp[cases]

rifsimp[nonlinear]

rifsimp[rankings]