HINTS

Gröbner Basis can be used for

  1. Finding the solution to simultaneous polynomial equations: The Gröbner Basis for I = <p1,p2,...pm> can be used to solve exactly the simultaneous equations p1 = p2 = ... = pm = 0. This is carried out by successive elimination of variables x1, then x2 etc. until the final polynomial is a univariate polynomial in xr. This final polynomial equation can be solved by other symbolic/numerical techniques (e.g. Newton Raphson), and solutions for xr substituted back to get successively xr-1, xr-2,...x2,x1
  2. Determination of existence of solutions to simultaneous polynomial equations: There is no solution to this system if and only if the The Gröbner Basis contains 1 (unit polynomial). Example: to prove the obvious result that p1 = x - 1 = 0 and p2 = x - 3 = 0 have no simultaneous solution, enter 1,1,1,1;-1,1|1,1,1,1;-3,1 and observe that 1 appears in the Gröbner Basis. As a second example we prove the polynomials
    p1= x8 + x6 -3x4 -3x3 +8x2 +2x -5
    p2= 3x6 +5x4 -4x2 -9x + 21
    are co-prime by showing the Gröbner Basis contains 1, and hence p1 = p2 = 0 has no solution (enter 1,1,1,8;1,1,1,6;-3,1,1,4;-3,1,1,3;8,1,1,2;2,1,1,1;-5,1|3,1,1,6;5,1,1,4;-4,1,1,2;-9,1,1,1;21,1 for this example).
  3. Solution of simultaneous linear equations: Since linear equations are a special case of polynomial equations, Buchberger Algorithm also solves this problem, effectively generalizing Gaussian Elimination. Example: to solve
    3x - 2y + (11/2)z = 0

    x + 4y + 3z + (4/3) = 0

    -2x + y + (7/6)z - 3 = 0
    enter 3,1,1,1;-2,1,2,1;11,2,3,1|1,1,1,1;4,1,2,1;3,1,3,1;4,3|-2,1,1,1;1,1,2,1;7,6,3,1;-3,1 and the Gröbner Basis will give the solution for the last variable (in this case z=244/413) from which we can find first y, then x.
  4. Finding the GCD of m Univariate Polynomials: This is the unique polynomial which divides without remainder into each of the polynomials p1,p2,...pm. In the univariate case, setting the GCD equal to zero and solving (by other means) this equation is equivalent to solving the simultaneous univariate equations p1 = p2 = ... = pm = 0. Example: to solve
    x8 - 5x7 + x6 - 5x5 = 0

    x3 - 5x2 - 3x + 15 = 0

    x2 - 4x - 5 = 0
    enter 1,1,1,8;-5,1,1,7;1,1,1,6;-5,1,1,5|1,1,1,3;-5,1,1,2;-3,1,1,1;15,1|1,1,1,2;-4,1,1,1;-5,1 and the Gröbner Basis will calculate x - 5 as the GCD of these three polynomials, also proving x = 5 is the only solution of the three equations.
  5. Calculating max/min points of a function using Lagrange Multipliers:
Comments/Feedback to michael.mcgettrick@nuigalway.ie