]>
Book Contents Previous Section 9.59 OrderedVariableList Next Section 9.61 PartialFraction Book Index

## 9.60 OrderlyDifferentialPolynomial

Many systems of differential equations may be transformed to equivalent systems of ordinary differential equations where the equations are expressed polynomially in terms of the unknown functions. In Axiom, the domain constructors OrderlyDifferentialPolynomial (abbreviated ODPOL) and SequentialDifferentialPolynomial (abbreviation SDPOL) implement two domains of ordinary differential polynomials over any differential ring. In the simplest case, this differential ring is usually either the ring of integers, or the field of rational numbers. However, Axiom can handle ordinary differential polynomials over a field of rational functions in a single indeterminate.

The two domains ODPOL and SDPOL are almost identical, the only difference being the choice of a different ranking, which is an ordering of the derivatives of the indeterminates. The first domain uses an orderly ranking, that is, derivatives of higher order are ranked higher, and derivatives of the same order are ranked alphabetically. The second domain uses a sequential ranking, where derivatives are ordered first alphabetically by the differential indeterminates, and then by order. A more general domain constructor, DifferentialSparseMultivariatePolynomial (abbreviation DSMP) allows both a user-provided list of differential indeterminates as well as a user-defined ranking. We shall illustrate ODPOL(FRAC INT), which constructs a domain of ordinary differential polynomials in an arbitrary number of differential indeterminates with rational numbers as coefficients.

dpol:= ODPOL(FRAC INT)

OrderlyDifferentialPolynomialFractionInteger

Type: Domain

A differential indeterminate w may be viewed as an infinite sequence of algebraic indeterminates, which are the derivatives of w. To facilitate referencing these, Axiom provides the operation makeVariable makeVariable OrderlyDifferentialPolynomial to convert an element of type Symbol to a map from the natural numbers to the differential polynomial ring.

w := makeVariable('w)$dpol

theMap(...)

Type: (NonNegativeInteger -> OrderlyDifferentialPolynomial Fraction Integer)
z := makeVariable('z)$dpol

theMap(...)

Type: (NonNegativeInteger -> OrderlyDifferentialPolynomial Fraction Integer)

The fifth derivative of w can be obtained by applying the map w to the number 5. Note that the order of differentiation is given as a subscript (except when the order is 0).

w.5

w 5

Type: OrderlyDifferentialPolynomial Fraction Integer
w 0

w

Type: OrderlyDifferentialPolynomial Fraction Integer

The first five derivatives of z can be generated by a list.

[z.i for i in 1..5]

[z 1,z 2,z 3,z 4,z 5]

Type: List OrderlyDifferentialPolynomial Fraction Integer

The usual arithmetic can be used to form a differential polynomial from the derivatives.

f:= w.4 - w.1 * w.1 * z.3

w 4-w 1 2 z 3

Type: OrderlyDifferentialPolynomial Fraction Integer
g:=(z.1)**3 * (z.2)**2 - w.2

z 1 3 z 2 2-w 2

Type: OrderlyDifferentialPolynomial Fraction Integer

The operation D D OrderlyDifferentialPolynomial computes the derivative of any differential polynomial.

D(f)

w 5-w 1 2 z 4-2 w 1 w 2 z 3

Type: OrderlyDifferentialPolynomial Fraction Integer

The same operation can compute higher derivatives, like the fourth derivative.

D(f,4)

w 8-w 1 2 z 7-8 w 1 w 2 z 6+(-12 w 1 w 3-12 w 2 2)z 5-2 w 1 z 3 w 5+(-8 w 1 w 4-24 w 2 w 3)z 4-8 w 2 z 3 w 4-6 w 3 2 z 3

Type: OrderlyDifferentialPolynomial Fraction Integer

The operation makeVariable makeVariable OrderlyDifferentialPolynomial creates a map to facilitate referencing the derivatives of f, similar to the map w.

df:=makeVariable(f)$dpol

theMap(...)

Type: (NonNegativeInteger -> OrderlyDifferentialPolynomial Fraction Integer)

The fourth derivative of f may be referenced easily.

df.4

w 8-w 1 2 z 7-8 w 1 w 2 z 6+(-12 w 1 w 3-12 w 2 2)z 5-2 w 1 z 3 w 5+(-8 w 1 w 4-24 w 2 w 3)z 4-8 w 2 z 3 w 4-6 w 3 2 z 3

Type: OrderlyDifferentialPolynomial Fraction Integer

The operation order order OrderlyDifferentialPolynomial returns the order of a differential polynomial, or the order in a specified differential indeterminate.

order(g)

2

Type: PositiveInteger
order(g, 'w)

2

Type: PositiveInteger

The operation differentialVariables differentialVariables OrderlyDifferentialPolynomial returns a list of differential indeterminates occurring in a differential polynomial.

differentialVariables(g)

[z,w]

Type: List Symbol

The operation degree degree OrderlyDifferentialPolynomial returns the degree, or the degree in the differential indeterminate specified.

degree(g)

z 2 2 z 1 3

Type: IndexedExponents OrderlyDifferentialVariable Symbol
degree(g, 'w)

1

Type: PositiveInteger

The operation weights weights OrderlyDifferentialPolynomial returns a list of weights of differential monomials appearing in differential polynomial, or a list of weights in a specified differential indeterminate.

weights(g)

[7,2]

Type: List NonNegativeInteger
weights(g,'w)

[2]

Type: List NonNegativeInteger

The operation weight weight OrderlyDifferentialPolynomial returns the maximum weight of all differential monomials appearing in the differential polynomial.

weight(g)

7

Type: PositiveInteger

A differential polynomial is isobaric if the weights of all differential monomials appearing in it are equal.

isobaric?(g)

false

Type: Boolean

To substitute differentially, use eval eval OrderlyDifferentialPolynomial. Note that we must coerce 'w to Symbol, since in ODPOL, differential indeterminates belong to the domain Symbol. Compare this result to the next, which substitutes algebraically (no substitution is done since w.0 does not appear in g).

eval(g,['w::Symbol],[f])

-w 6+w 1 2 z 5+4 w 1 w 2 z 4+(2 w 1 w 3+2 w 2 2)z 3+z 1 3 z 2 2

Type: OrderlyDifferentialPolynomial Fraction Integer
eval(g,variables(w.0),[f])

z 1 3 z 2 2-w 2

Type: OrderlyDifferentialPolynomial Fraction Integer

Since OrderlyDifferentialPolynomial belongs to PolynomialCategory, all the operations defined in the latter category, or in packages for the latter category, are available.

monomials(g)

[z 1 3 z 2 2,-w 2]

Type: List OrderlyDifferentialPolynomial Fraction Integer
variables(g)

[z 2,w 2,z 1]

Type: List OrderlyDifferentialVariable Symbol
gcd(f,g)

1

Type: OrderlyDifferentialPolynomial Fraction Integer
groebner([f,g])

[w 4-w 1 2 z 3,z 1 3 z 2 2-w 2]

Type: List OrderlyDifferentialPolynomial Fraction Integer

The next three operations are essential for elimination procedures in differential polynomial rings. The operation leader leader OrderlyDifferentialPolynomial returns the leader of a differential polynomial, which is the highest ranked derivative of the differential indeterminates that occurs.

lg:=leader(g)

z 2

Type: OrderlyDifferentialVariable Symbol

The operation separant separant OrderlyDifferentialPolynomial returns the separant of a differential polynomial, which is the partial derivative with respect to the leader.

sg:=separant(g)

2 z 1 3 z 2

Type: OrderlyDifferentialPolynomial Fraction Integer

The operation initial initial OrderlyDifferentialPolynomial returns the initial, which is the leading coefficient when the given differential polynomial is expressed as a polynomial in the leader.

ig:=initial(g)

z 1 3

Type: OrderlyDifferentialPolynomial Fraction Integer

Using these three operations, it is possible to reduce f modulo the differential ideal generated by g. The general scheme is to first reduce the order, then reduce the degree in the leader. First, eliminate z.3 using the derivative of g.

g1 := D g

2 z 1 3 z 2 z 3-w 3+3 z 1 2 z 2 3

Type: OrderlyDifferentialPolynomial Fraction Integer

Find its leader.

lg1:= leader g1

z 3

Type: OrderlyDifferentialVariable Symbol

Differentiate f partially with respect to this leader.

pdf:=D(f, lg1)

-w 1 2

Type: OrderlyDifferentialPolynomial Fraction Integer

Compute the partial remainder of f with respect to g.

prf:=sg * f- pdf * g1

2 z 1 3 z 2 w 4-w 1 2 w 3+3 w 1 2 z 1 2 z 2 3

Type: OrderlyDifferentialPolynomial Fraction Integer

Note that high powers of lg still appear in prf. Compute the leading coefficient of prf as a polynomial in the leader of g.

lcf:=leadingCoefficient univariate(prf, lg)

3 w 1 2 z 1 2

Type: OrderlyDifferentialPolynomial Fraction Integer

Finally, continue eliminating the high powers of lg appearing in prf to obtain the (pseudo) remainder of f modulo g and its derivatives.

ig * prf - lcf * g * lg

2 z 1 6 z 2 w 4-w 1 2 z 1 3 w 3+3 w 1 2 z 1 2 w 2 z 2

Type: OrderlyDifferentialPolynomial Fraction Integer
Book Contents Previous Section 9.59 OrderedVariableList Next Section 9.61 PartialFraction Book Index