gives a list of polynomials that form a Gröbner basis for the set of polynomials polyi.


finds a Gröbner basis in which the yi have been eliminated.

Details and Options

  • The set of polynomials in a Gröbner basis have the same collection of roots as the original polynomials.
  • For polynomials in one variable, GroebnerBasis reduces to PolynomialGCD.
  • For linear functions in any number of variables, GroebnerBasis is equivalent to Gaussian elimination.
  • The Gröbner basis in general depends on the ordering assigned to monomials. This ordering is affected by the ordering of the xi.
  • The following options can be given:
  • MonomialOrderLexicographicthe criterion used for ordering monomials
    CoefficientDomainAutomaticthe type of objects assumed to be coefficients
    MethodAutomaticthe method to use
    Modulus0the modulus for numerical coefficients
  • Possible settings for MonomialOrder are Lexicographic, DegreeLexicographic, DegreeReverseLexicographic, EliminationOrder, or an explicit weight matrix. Monomials are specified for the purpose of MonomialOrder by lists of the exponents with which the xi appear in them.
  • The ordering of the xi and the setting for MonomialOrder can substantially affect the efficiency of GroebnerBasis.
  • Possible settings for CoefficientDomain are InexactNumbers, Rationals, RationalFunctions, and Polynomials[x].
  • Possible settings for the Method option include "Buchberger" and "GroebnerWalk".


open all close all

Basic Examples  (1)

Compute a Gröbner basis:

Click for copyable input

Prove that polynomials have no common roots:

Click for copyable input

Scope  (5)

Generalizations & Extensions  (1)

Options  (8)

Applications  (2)

Properties & Relations  (6)

Introduced in 1991
Updated in 2007