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

Online Help

All Products    Maple    MapleSim


DEtools

  

rifsimp

  

simplify overdetermined polynomially nonlinear PDE or ODE systems

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

rifsimp(system, options)

rifsimp(system, vars, options)

Parameters

system

-

list or set of polynomially nonlinear PDEs or ODEs (may contain inequations)

vars

-

(optional) list of the main dependent variables

options

-

(optional) sequence of options to control the behavior of rifsimp

Description

• 

The rifsimp function can be used to simplify or rework overdetermined systems of polynomially nonlinear PDEs or ODEs and inequations to a more useful form -- relative standard form. The rifsimp function does not solve PDE systems, but provides existence and uniqueness information, and can be used as a first step to their solution. As an example, inconsistent systems can be detected by rifsimp.

• 

Basically, given an input PDE system, and a list of dependent variables or constants to solve for, rifsimp returns the simplified PDE system along with any existence conditions required for the simplified system to hold.

• 

Detailed examples of the use of rifsimp for various systems (along with some explanation of the algorithm) can be found in rifsimp[overview].

• 

Other options are sometimes required along with the specification of the system and its solving variables. For common options, please see rifsimp[options], and for more advanced use, please see rifsimp[adv_options].

• 

For a description of all possible output configurations, see rifsimp[output].

Examples

1. Overdetermined Systems

As a first example, we have the overdetermined system of two equations in one dependent variable y(x).

sys1xdiffyx,x2diffyx,x,x22xdiffyx,xdiffyx,x,xyxdiffyx,x,x,x+xyx2diffyx,x,x,x2yxdiffyx,x,x+diffyx,x2=0,diffyx,xdiffyx,x,x+yxdiffyx,x,x,x+2yx2diffyx,x,x24yxdiffyx,x,xdiffyx,x2+2diffyx,x4=0

sys1xⅆⅆxyx2ⅆ2ⅆx2yx22xⅆⅆxyxⅆ2ⅆx2yxyxⅆ3ⅆx3yx+xyx2ⅆ3ⅆx3yx2yxⅆ2ⅆx2yx+ⅆⅆxyx2=0,ⅆⅆxyxⅆ2ⅆx2yx+yxⅆ3ⅆx3yx+2yx2ⅆ2ⅆx2yx24yxⅆ2ⅆx2yxⅆⅆxyx2+2ⅆⅆxyx4=0

(1)

Now call rifsimp.

withDEtools:

ans1rifsimpsys1

ans1tableCase=yx0,ⅆ3ⅆx3yx,Solved=ⅆ2ⅆx2yx=ⅆⅆxyx2yx,Pivots=yx0

(2)

We see that the system has been reduced (for the case y(x) not identically zero) to one much simpler equation that can now be handled with Maple's dsolve.

dsolveans1Solved,yx,explicit

yx=ⅇc__1xc__2

(3)

In addition to assisting dsolve in obtaining exact solutions, the simplified form can be used in combination with the initialdata function to obtain the required initial data for the solved form.

id1initialdataans1Solved

id1tableFinite=yx0=c__1,Dyx0=c__2,Infinite=

(4)

In this case, it gives us the expected results for a second order ODE, but it can also calculate the required initial data for more complex PDE systems (see initialdata for more information). Numerical methods can now be successfully applied to the reduced system, with initial conditions of the type calculated by initialdata.

dsolveconvertans1Solved,setuniony0=1,Dy0=2,yx,numeric,output=Array0,0.25,0.5,0.75,1.0

xyxⅆⅆxyx0.1.2.0.2500000000000001.648721254011623.297442508023240.5000000000000002.718281358456285.436562716912570.7500000000000004.481687976095218.963375952190411.7.3890539480692114.7781078961384

(5)

Finally, we can also obtain a formal power series (Taylor series) for the local solution of this problem (see rtaylor for more information).

tay_serrtaylorans1Solved,order=4

tay_seryx=yx0+Dyx0xx0+Dyx02xx022yx0+Dyx03xx036yx02+Dyx04xx0424yx03

(6)

The above series is fully determined when given the initial data described earlier:

tay_serrtaylorans1Solved,id1,order=4

tay_seryx=c__1+c__2xx0+c__22xx022c__1+c__23xx036c__12+c__24xx0424c__13

(7)

2. Inconsistent Systems

rifsimp can often determine whether a system is inconsistent.

sys2diffux,y,x2+diffux,y,y,y=0,ux,y3diffux,y,x+x=0:

rifsimpsys2

tablestatus=system is inconsistent

(8)

3. Constrained Mechanical Systems

This example shows the use of rifsimp as a preprocessor for a constrained mechanical system (that is, a Differential-Algebraic Equation or DAE system). The method of Lagrange formulates the motion of a bead of nonzero mass m on a frictionless wire of shape Phi(x,y) under gravity as follows:

ConstrainedSysm0,Φxt,yt=0,mdiffxt,t,t=λtD1Φxt,yt,mdiffyt,t,t=λtD2Φxt,ytmg

ConstrainedSysm0,Φxt,yt=0,mⅆ2ⅆt2xt=λtD1Φxt,yt,mⅆ2ⅆt2yt=λtD2Φxt,ytmg

(9)

Note that a mass falling under gravity without air resistance corresponds to:

Φx,y0

Φx,y0

(10)

We pick the example of a pendulum, so the bead moves on a circular wire.

Φx,yx2+y21

Φx,yx2+y21

(11)

ConstrainedSys

m0,xt2+yt21=0,mⅆ2ⅆt2xt=2λtxt,mⅆ2ⅆt2yt=2λtytmg

(12)

Such constrained systems present great difficulties for numerical solvers. Of course, we could eliminate the constraint using polar coordinates, but in general this is impossible for mechanical systems with complicated constraints. For example, just replace the constraint with another function, so that the wire has a different shape.

Φ2x,yx4+y41

Φ2x,yx4+y41

(13)

(See Reid et al., 1996, given in the reference and package information page Rif). The pendulum is the classic example of such systems that have been the focus of much recent research due to their importance in applications.

SimpSysrifsimpConstrainedSys

SimpSystableConstraint=mgyt3+ⅆⅆtyt2mmgyt+2λtyt22λt=0,xt2+yt21=0,Case=xt0,ⅆⅆtxt,yt1yt+10,ⅆⅆtλt,Solved=ⅆ2ⅆt2yt=mg+2λtytm,ⅆⅆtλt=3mgⅆⅆtyt2,ⅆⅆtxt=ytⅆⅆtytxt,Pivots=m0,xt0,yt10,yt+10

(14)

initialdataSimpSys

tableConstraint=_C33_C5_C6+2_C32c__1_C3_C5_C6+_C42_C62c__1=0,_C32+c__221=0,Finite=λt0=c__1,xt0=c__2,yt0=_C3,Dyt0=_C4,g=_C5,m=_C6,Infinite=,Pivots=_C60,c__20,_C310,_C3+10

(15)

Although there is no simplification as in the previous examples, rifsimp has found additional constraints that the initial conditions must satisfy (Constraint and Pivots in the initialdata output), and obtained an equation for the time derivative of lambda(t). Maple's dsolve[numeric] can then be used to obtain a numerical solution, in the manner of the previous example.

4. Lie Symmetry Determination

This example shows the use of rifsimp to assist in determination of Lie point symmetries of an ODE. Given the ODE:

ODE2x2yxdiffyx,x,xx2diffyx,x2+1+yx2

ODE2x2yxⅆ2ⅆx2yxx2ⅆⅆxyx2+1+yx2

(16)

We can obtain the system of PDE for it's Lie point symmetries via:

syscoeffsnumerDEtoolsodepdeODE,ξ,ηx,y,yx,_y1

sys22y2ξx,yx3y2yξx,yx3y,22y2ηx,yx3y242xyξx,yx3y2yηx,yx3y+ηx,yx3,42xyηx,yx3y222x2ξx,yx3y23yξx,yx3y+3yξx,yxy32xηx,yx3y,22x2ηx,yx3y22xξx,yx3y+2xξx,yxy3+yηx,yx3yyηx,yxy3+ηx,yx3+ηx,yxy22ξx,yy3

(17)

We can then use rifsimp to greatly simplify this system:

rifsysrifsimpsys

rifsystableSolved=2x2ηx,y=ηx,yx+ξx,yyx3,xξx,y=ηx,yy,yηx,y=ηx,yy,yξx,y=0

(18)

From this point, pdsolve can be used to obtain the infinitesimals for the Lie point symmetries via:

pdsolverifsysSolved

ηx,y=c__3lnx2+c__2lnx+c__1y,ξx,y=xc__3lnx2+c__22c__3lnx+c__1c__2+2c__3

(19)

See Also

checkrank

DifferentialAlgebra[RosenfeldGroebner]

dsolve[numeric]

initialdata

PDEtools[casesplit]

Rif

rifsimp[adv_options]

rifsimp[cases]

rifsimp[nonlinear]

rifsimp[options]

rifsimp[output]

rifsimp[overview]

rifsimp[ranking]