Groebner
Basis
compute a Groebner basis
Calling Sequence
Parameters
Description
Examples
Compatibility
Basis(J, tord, opts)
J
-
a list or set of polynomials or a PolynomialIdeal
tord
a MonomialOrder, a ShortMonomialOrder, or a name
opts
optional arguments of the form keyword=value
The Groebner[Basis] command computes reduced Groebner bases for ideals and modules over both commutative and skew polynomial rings. This help page covers the most common case, which is a list or set of commutative polynomials defining an ideal. To compute Groebner bases for modules or to compute non-commutative Groebner bases, refer to the Basis_details help page.
A Groebner basis has the property that the leading monomial of every polynomial in the ideal is divisible by the leading monomial of some polynomial in the Groebner basis. Division by a Groebner basis produces a unique remainder, or NormalForm.
A reduced Groebner basis is minimal, that is, no polynomial can be removed, and has the additional property that no monomial of any polynomial in the basis is divisible by any of the leading monomials (other than possibly itself). If all polynomials in a reduced Groebner basis have leading coefficient 1, then this reduced basis is unique.
The argument J should be a list or set of polynomial generators, or a PolynomialIdeal data structure. PolynomialIdeals offer important performance advantages for large problems. Groebner bases are saved in the structure in a format that permits many optimizations and type checking is avoided.
The argument tord is typically a monomial order. For example, plex(x,y,z) denotes lexicographic order with x > y > z. For a list of available monomial orders refer to the Monomial Orders help page. This argument can also be a name, in which case Groebner[Basis] will choose a monomial order and assign it to tord. In this case the variables can be specified using an optional argument variables={...}, and the type of order can be specified by order=.... See the examples below.
Note: the monomial orders on this help page are all of type ShortMonomialOrder, where the polynomial algebra is inferred from the generators J. For monomial orders constructed using the MonomialOrder command (including user-defined orders) see the Basis_details help page.
The optional argument characteristic=p specifies the ring characteristic, allowing you to do computations modulo p instead of over the rationals. This option is ignored when the input is a PolynomialIdeal, however in that case you can specify J mod p as the first argument to obtain the desired result. No algorithms are currently available to compute Groebner bases over the integers in Maple, so the coefficient ring must be a field. Algebraic extensions can be specified using RootOfs or radicals.
The optional argument output=extended computes a transformation matrix C expressing the Groebner basis in terms of the generators J. The output is a sequence (G, C) where G is the Groebner basis and C is a list of lists. Each G[i] is equal to the dot product of C[i] with J. This matrix is not stored, so if it is requested again it must be recomputed together with the Groebner basis.
The optional argument method=... specifies the algorithm or strategy used to compute the Groebner basis. For more information on this and other topics relevant to performance, refer to the Basis_algorithms help page.
Note that the gbasis command is deprecated. It may not be supported in a future Maple release.
with⁡Groebner:
F≔x3−3⁢x⁢y,x2⁢y−2⁢y2+x
Basis⁡F,plex⁡x,y
y6−3⁢y3,y5−2⁢y2+x
Basis⁡F,tdeg⁡x,y
y3+x⁢y,x⁢y2+x2,x2⁢y−2⁢y2+x,x3−3⁢x⁢y
Basis⁡F,tord
plex⁡x,y
Basis⁡F,tord,order=grlex
x3−3⁢x⁢y,x2⁢y−2⁢y2+x,x⁢y2+x2,y3+x⁢y
grlex⁡y,x
Basis⁡F,plex⁡x,y,characteristic=3
y6,y5+y2+x
G,C≔Basis⁡F,plex⁡x,y,output=extended
G,C≔y6−3⁢y3,y5−2⁢y2+x,12⁢x⁢y+12+12⁢y6−34⁢x⁢y4+12⁢y3−14⁢x2⁢y5,−12⁢x2−34⁢x⁢y5+12⁢x2⁢y3−x⁢y2−12⁢y4+32⁢y+14⁢x3⁢y4,12⁢y2−12⁢x⁢y3,−x⁢y+1+12⁢x2⁢y2−12⁢y3
seq⁡expand⁡add⁡Cij⁢Fj,j=1..nops⁡F,i=1..nops⁡C
We construct a PolynomialIdeal data structure, which automatically keeps track of known Groebner bases.
with⁡PolynomialIdeals:
J≔F
J≔x3−3⁢x⁢y,x2⁢y−2⁢y2+x
IdealInfoKnownGroebnerBases⁡J
grlex⁡y,x,plex⁡x,y,tdeg⁡x,y
The commands below do not perform any Groebner basis computations. The known Groebner bases are examined to see if a computation can be avoided.
HilbertDimension⁡J
0
UnivariatePolynomial⁡y,J
y6−3⁢y3
Homogenize⁡J,h
h⁢x⁢y+y3,−3⁢h⁢x⁢y+x3,h⁢x2+x⁢y2,h2⁢x−2⁢h⁢y2+x2⁢y
PolynomialIdeals can also be given to the NormalForm command and the corresponding Groebner basis is used automatically for the division.
f≔x3⁢y2−x⁢y−1
NormalForm⁡f,J,tdeg⁡x,y
−x⁢y−6⁢y2+3⁢x−1
NormalForm⁡f,J,plex⁡x,y
−3⁢y5+y3−1
The Groebner[Basis] command was updated in Maple 2018.
See Also
Basis_algorithms
Basis_details
Monomial Orders
NormalForm
PolynomialIdeal
Download Help Document