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

Online Help

All Products    Maple    MapleSim


DEtools

  

ratsols

  

find rational function solutions of a linear ODE

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

ratsols(lode, v)

ratsols(coeff_list, g, x)

Parameters

lode

-

linear differential equation

v

-

dependent variable of the lode

coeff_list

-

list of coefficients of a linear ode

g

-

right-hand side of the equation

x

-

independent variable of the lode

Description

• 

The ratsols command returns a basis of the rational function solutions of a linear differential equation having rational function coefficients.

• 

The first calling sequence has a linear differential equation in diff or D form as the first argument, and the variable in the differential equation as the second argument. A system of differential equations can be given as a list of the equations as the first argument and a list of the variables as the second argument.

• 

A second calling sequence accepts the following.

  

- For the first argument, the list of coefficients of a linear ode

  

- For the second, the right-hand side of such an equation

  

- For the third argument, the independent variable of the lode

  

A system of differential equations can be given as a list of lists of list of coefficients of a linear odes as the first argument, a list of the right-hand sides of such equations as the second argument and the independent variable as the third argument. Each equation is represented as the sum of lodes in one variable. Each is given as a list of coefficients, so one equation is given as a list of lists of coefficients and a system as a list of lists of lists. This input sequence is convenient for programming with the ratsols routine.

  

The list of coefficients is given in order from low differential order to high differential order and does not include the nonhomogeneous term.

• 

In the case of a homogeneous equation, a basis is returned (as a list in the scalar case and as a list of lists in the system case). In the nonhomogeneous case, the return value is a two-element list, with the first element a basis for the homogeneous case and the second element a particular rational solution (if it exists).

• 

In the system case, the function invokes LinearFunctionalSystems[RationalSolution] to find solutions.

Examples

withDEtools:

Homogeneous case

odet2+tdiffzt,`$`t,3t2+3t+1diffzt,`$`t,2+t+4+2tdiffzt,t1+4t+2t2zt=0:

ratsolsode,zt

t

(1)

odeD2zt3tDzt+3t2zt:

ratsolsode,zt

t,t3

(2)

ode3t2,3t,1:

ratsolsode,0,t

t,t3

(3)

Nonhomogeneous case

odediffzt,`$`t,2+2tdiffzt,t+1t4zt=2t2+1t6:

ratsolsode,zt

,1t2

(4)

System case

sysx3diffy1x,x+y2x,diffy2x,xxy1x=x:

varsy1x,y2x:

ratsolssys,vars,

1x,x,−1,0

(5)

sysp0,x3,1,x,0,1:

ratsolssysp,0,x,x

1x,x,−1,0

(6)

See Also

dcoeffs

DEtools

dsolve

LinearFunctionalSystems[RationalSolution]