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

Online Help

All Products    Maple    MapleSim


Monomial orders for multivariate polynomials

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Basis(J, tord)

NormalForm(f, J, tord)

LeadingTerm(f, tord)

Parameters

J

-

a list or set of polynomials or a PolynomialIdeal

tord

-

one of the monomial orders described below

f

-

a polynomial

Description

• 

A monomial order is a function for ordering the terms of multivariate polynomials. The commands in the Groebner package use monomial orders to define multivariate division, where the leading term of a polynomial is cancelled repeatedly using the leading terms of a set of polynomials. This leads naturally to the idea of a Groebner basis, where the multivariate division process produces a canonical remainder or normal form.

• 

To ensure termination, a monomial order < should satisfy the following three properties:

– 

It must be a total ordering of all the monomials of the polynomial ring.

– 

It must be a well-ordering, that is, every set of monomials must have a least element.

– 

If U, V, and W are monomials and U < V, then W*U < W*V.

• 

These properties are satisfied by the following orders which are built in to Maple:

– 

plex(x[1],...,x[n]) pure lexicographic order with x[1] > x[2] > ... > x[n]. This order is used to eliminate variables and solve systems of polynomial equations, however the resulting Groebner bases can be huge. Monomials are compared first by their degree in x[1], with ties broken by degree in x[2], etc.

– 

grlex(x[1],...,x[n]) graded lexicographic order with x[1] > x[2] > ... > x[n]. Monomials are compared first by their total degree (see degree), with ties broken by lexicographic order. This order is not used very often because "tdeg" tends to be faster.

– 

tdeg(x[1],...,x[n]) graded reverse lexicographic order (also called "grevlex" in the literature). Monomials are compared first by their total degree, with ties broken by reverse lexicographic order, that is, by smallest degree in x[n], x[n-1], etc. This order is commonly used because it typically provides for the fastest Groebner basis computations.

– 

lexdeg(L[1],...,L[k]) is an elimination order.  The L[i] must be disjoint lists of variables. The variables in L[i] are eliminated from the subsequent variables for all i=1..k-1. This order is often used to eliminate variables when one does not want to compute an entire "plex" basis. It is equivalent to a product order that uses "tdeg" on each L[i].

– 

wdeg(W,V) is a weighted-degree order.  V is a list of variables and W is a list of positive rational weights. Monomials are compared by their weighted degree, where each power of V[i] contributes W[i] to the degree of a term. Ties are broken by reverse lexicographic order.

– 

'matrix'(M,V) is a matrix order, where V is a list of variables and M is a list of lists of rational weights. In order to satisfy the three properties above, the first non-zero entry in each column of M must be positive. Monomials are compared by their weighted degree with respect to the first row of M, followed by the second row, etc. If the rank of M is less than the number of variables, ties are broken by reverse lexicographic order. To use matrix orders you must enclose the word matrix in single quotes, to avoid calling Maple's matrix constructor.

– 

prod(t1,t2,...,tk) denotes a product order where the ti are monomial orders.  Monomials are compared first using t1, with ties broken by t2, etc.

• 

In addition to the orders above Maple supports "reverse variants", where a monomial u is greater than v in the reverse order if and only if v > u in the original order. These orders typically do not satisfy the three properties of a monomial order, so computations using these orders may not terminate (unless the polynomials are homogeneous). These orders can be specified by appending the suffix "_min" to an order above (with the exception of prod orders). For example, plex_min(x,y,z) is the reverse of plex(x,y,z).

• 

All of the monomial orders on this help page, including the reverse variants, are of type ShortMonomialOrder.

• 

The Groebner package also allows user-defined monomial orders, which are specified by a procedure. To use them one must construct a MonomialOrder using the MonomialOrder command, see its help page for details. Be aware that some algorithms (such as the Groebner walk) do not support user-defined monomial orders. If possible, you should express your order in terms of the builtin orders above.

Examples

withGroebner&colon;

f5x3y+x2w2t+5x3yzt2xzw3t+3y2w3t

f2tw3xz+3tw3y2+5tx3yz+tw2x2+5x3y

(1)

We first consider lexicographic order with x > y > z > w > t. The terms of f can be ordered by Maple's sort command.

sortf&comma;x&comma;y&comma;z&comma;w&comma;t&comma;plex

5x3yzt+5x3y+x2w2t2xzw3t+3y2w3t

(2)

The LeadingTerm command returns the sequence (leading monomial, leading coefficient). To construct the actual term we multiply its output using `*`.

LeadingTermf&comma;plexx&comma;y&comma;z&comma;w&comma;t

5x3yzt

(3)

There are two ways of computing the smallest term with respect to a monomial order. One is to use the "reverse variant" and compute the leading term.  We can also use the TrailingTerm command.

TrailingTermf&comma;plexx&comma;y&comma;z&comma;w&comma;t

3y2w3t

(4)

LeadingTermf&comma;plex_minx&comma;y&comma;z&comma;w&comma;t

3y2w3t

(5)

Next we consider graded lexicographic order with x > y > z > w > t. Terms are compared first by their total degree, with ties broken by lexicographic order. This is the default order for Maple's sort command.

sortf&comma;x&comma;y&comma;z&comma;w&comma;t

5x3yzt2xzw3t+3y2w3t+x2w2t+5x3y

(6)

LeadingTermf&comma;grlexx&comma;y&comma;z&comma;w&comma;t

5x3yzt

(7)

TrailingTermf&comma;grlexx&comma;y&comma;z&comma;w&comma;t

5x3y

(8)

We can examine the terms of maximal degree using the InitialForm command. All but two terms have total degree 6.

initfInitialFormf&comma;grlexx&comma;y&comma;z&comma;w&comma;t

initf2xzw3t+3y2w3t+5x3yzt

(9)

finitf

x2w2t+5x3y

(10)

Here are the terms of f sorted in (ascending) graded-reverse lexicographic order. Among the last three terms, ties are broken by smallest degree in t, then w, and finally z before the order of the monomials is determined.

sortopf&comma;a&comma;bTestOrdera&comma;b&comma;tdegx&comma;y&comma;z&comma;w&comma;t

5x3y&comma;x2w2t&comma;2xzw3t&comma;3y2w3t&comma;5x3yzt

(11)

In the elimination order below, we compare monomials first using tdeg(x,y) with ties broken by tdeg(z,w,t).  In a Groebner basis computation using this order, the variables {x,y} would be eliminated as much as possible from the polynomial system.

sortopf&comma;a&comma;bTestOrdera&comma;b&comma;lexdegx&comma;y&comma;z&comma;w&comma;t

2xzw3t&comma;3y2w3t&comma;x2w2t&comma;5x3y&comma;5x3yzt

(12)

Next we consider a weighted degree order.  Each power of x counts for two, while each power of y counts for one half. The remaining variables count for one.

LeadingTermf&comma;wdeg2&comma;12&comma;1&comma;1&comma;1&comma;x&comma;y&comma;z&comma;w&comma;t

5x3yzt

(13)

WeightedDegreef&comma;2&comma;12&comma;1&comma;1&comma;1&comma;x&comma;y&comma;z&comma;w&comma;t

172

(14)

All of the builtin orders have representations as matrix orders. We will represent graded reverse lexicographic order as a matrix order and compute the leading term of f.

MMatrixOrdertdegx&comma;y&comma;z&comma;w&comma;t&comma;x&comma;y&comma;z&comma;w&comma;t

M1&comma;1&comma;1&comma;1&comma;1&comma;0&comma;0&comma;0&comma;0&comma;−1&comma;0&comma;0&comma;0&comma;−1&comma;0&comma;0&comma;0&comma;−1&comma;0&comma;0&comma;0&comma;−1&comma;0&comma;0&comma;0

(15)

MatrixM

111110000−1000−1000−1000−1000

(16)

LeadingTermf&comma;matrixM&comma;x&comma;y&comma;z&comma;w&comma;t

5x3yzt

(17)

For examples of multivariate polynomial division see Groebner[NormalForm]. To compute Groebner bases, use the Groebner[Basis] command. To define monomial orders other than the ones on this page, see Groebner[MonomialOrder].

See Also

InitialForm

LeadingTerm

MatrixOrder

TestOrder

TrailingTerm

WeightedDegree