We deliver solutions for the AI eraâcombining symbolic computation, data-driven insights and deep technology expertise.
GroebnerBasis[{poly1,poly2,…},{x1,x2,…}]
gives a list of polynomials that form a Gröbner basis for the set of polynomials polyi.
GroebnerBasis[{poly1,poly2,…},{x1,x2,…},{y1,y2,…}]
finds a Gröbner basis in which the yi have been eliminated.
Details and OptionsProve that polynomials have no common roots:
Scope (5)Polynomials with a finite number of common roots:
Polynomials with an infinite number of common roots:
Polynomials with no common roots:
A lexicographic Gröbner basis:
A degree reverse lexicographic Gröbner basis:
Generalizations & Extensions (1)Polynomial equations can be given instead of polynomials:
Options (8) CoefficientDomain (1)By default, Gröbner bases are computed over the field of rational numbers:
This computes the strong Gröbner basis over the ring of integers:
This computes the Gröbner basis over the field of rational functions (a):
This uses approximate arithmetic:
Method (2)The Automatic method setting uses "GroebnerWalk" for lexicographic bases over the rationals:
In this case the "Buchberger" method is much slower than "GroebnerWalk":
These polynomials are "close" to the lexicographic Gröbner basis:
The "GroebnerWalk" method computes the degree reverse lexicographic basis first:
Computing the lexicographic basis directly with the "Buchberger" method is faster here:
Modulus (1)This computes the Gröbner basis over the field of integers modulo 7:
MonomialOrder (1)By default, GroebnerBasis uses the Lexicographic monomial order:
This gives the Gröbner basis in the DegreeReverseLexicographic monomial order:
A monomial order may be specified by giving a full rank square rational weight matrix:
For the order to be well-founded the first nonzero entry in each column must be positive:
Eliminate z and return a degree reverse lexicographic basis with respect to {x,y}:
ParameterVariables (1)Parameters are ordered lexicographically after all other variables:
Sort (1)By default, GroebnerBasis is not allowed to reorder the variables:
Reordering the variables may make computations faster; the Gröbner basis may be different:
Tolerance (1)Find an approximate GCD of a pair of univariate polynomials:
The polynomials are close to polynomials with integer coefficients:
With the default setting Tolerance->0, the approximate GCD has a too low degree:
With a higher setting of Tolerance, GroebnerBasis gives a "better" approximate GCD:
Applications (2)Solve a system of polynomial equations:
A Gröbner basis has the same set of roots as the input polynomials:
Solve the first polynomial of the Gröbner basis for its only variable x:
Solve the second polynomial of the Gröbner basis for the other variable y:
This method finds all common roots of polys:
Reduce and Solve use Gröbner bases to solve systems of equations:
Get a fuzzy solution to a system of overdetermined equations:
This gives a low-precision approximate solution to this overdetermined set of polynomials:
Properties & Relations (6)A Gröbner basis generates the same ideal as the input polynomials:
Use PolynomialReduce to show that p1 is in the ideal generated by g1 and g2:
By Hilbert's Nullstellensatz, if the ideal is then the polynomials have no common zero:
Reduce or Solve proves that there is no common solution:
Conversely, if the ideal is not , then there is at least one common zero:
Use FindInstance to find a solution instance:
GroebnerBasis of univariate polynomials is equivalent to computing PolynomialGCD:
GroebnerBasis of linear polynomials is equivalent to a Gaussian elimination process:
GroebnerBasis is used to solve systems of polynomial equations:
Use Reduce to directly solve the system:
Solve gives solutions in terms of replacement rules:
Eliminate a variable from a system of polynomial equations:
Eliminate a variable using Resolve:
Eliminate a variable using Eliminate:
Eliminate a variable using Resultant:
HistoryIntroduced in 1991 (2.0) | Updated in 1996 (3.0) ▪ 2007 (6.0)
Wolfram Research (1991), GroebnerBasis, Wolfram Language function, https://reference.wolfram.com/language/ref/GroebnerBasis.html (updated 2007). TextWolfram Research (1991), GroebnerBasis, Wolfram Language function, https://reference.wolfram.com/language/ref/GroebnerBasis.html (updated 2007).
CMSWolfram Language. 1991. "GroebnerBasis." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2007. https://reference.wolfram.com/language/ref/GroebnerBasis.html.
APAWolfram Language. (1991). GroebnerBasis. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GroebnerBasis.html
BibTeX@misc{reference.wolfram_2025_groebnerbasis, author="Wolfram Research", title="{GroebnerBasis}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/GroebnerBasis.html}", note=[Accessed: 12-July-2025 ]}
BibLaTeX@online{reference.wolfram_2025_groebnerbasis, organization={Wolfram Research}, title={GroebnerBasis}, year={2007}, url={https://reference.wolfram.com/language/ref/GroebnerBasis.html}, note=[Accessed: 12-July-2025 ]}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4