Monomial Orders and the Division Algorithm

Similar documents
Gröbner Bases and their Applications

3 Monomial orders and the division algorithm

11 Multivariate Polynomials

Quotient Rings and Field Extensions

Math 4310 Handout - Quotient Vector Spaces

fg = f g Ideals. An ideal of R is a nonempty k-subspace I R closed under multiplication by elements of R:

Gröbner bases talk at the ACAGM Summer School Leuven p. 1

So let us begin our quest to find the holy grail of real analysis.

Groebner bases over noetherian path algebras

8 Divisibility and prime numbers

CONTENTS 1. Peter Kahn. Spring 2007

3. Mathematical Induction

11 Ideals Revisiting Z

Special Situations in the Simplex Algorithm

Section 4.1 Rules of Exponents

FOUNDATIONS OF ALGEBRAIC GEOMETRY CLASS 22

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products

SIMPLIFYING ALGEBRAIC FRACTIONS

Linear Programming Notes VII Sensitivity Analysis

15. Symmetric polynomials

1 if 1 x 0 1 if 0 x 1

Matrix Algebra. Some Basic Matrix Laws. Before reading the text or the following notes glance at the following list of basic matrix algebra laws.

Reduction Modulo Ideals and Multivariate Polynomial Interpolation

MCS 563 Spring 2014 Analytic Symbolic Computation Wednesday 9 April. Hilbert Polynomials

Lecture 3: Finding integer solutions to systems of linear equations

Vector and Matrix Norms

Formal Languages and Automata Theory - Regular Expressions and Finite Automata -

SIMPLIFYING SQUARE ROOTS

Basic Algorithms In Computer Algebra

Mathematics for Computer Science/Software Engineering. Notes for the course MSM1F3 Dr. R. A. Wilson

Chapter 11 Number Theory

Linear Algebra I. Ronald van Luijk, 2012

MATH Fundamental Mathematics IV

Factoring Trinomials of the Form x 2 bx c

COMP 250 Fall 2012 lecture 2 binary representations Sept. 11, 2012

Definition 8.1 Two inequalities are equivalent if they have the same solution set. Add or Subtract the same value on both sides of the inequality.

8 Primes and Modular Arithmetic

PUTNAM TRAINING POLYNOMIALS. Exercises 1. Find a polynomial with integral coefficients whose zeros include

Chapter 4, Arithmetic in F [x] Polynomial arithmetic and the division algorithm.

Mathematical Induction

The Prime Numbers. Definition. A prime number is a positive integer with exactly two positive divisors.

it is easy to see that α = a

Unit 1 Number Sense. In this unit, students will study repeating decimals, percents, fractions, decimals, and proportions.

Algebra 3: algorithms in algebra

FINDING THE LEAST COMMON DENOMINATOR

Factorization in Polynomial Rings

Notes on Complexity Theory Last updated: August, Lecture 1

I. GROUPS: BASIC DEFINITIONS AND EXAMPLES

6.080 / Great Ideas in Theoretical Computer Science Spring 2008

Simplifying Algebraic Fractions

CS 103X: Discrete Structures Homework Assignment 3 Solutions

Chapter One Introduction to Programming

The Method of Partial Fractions Math 121 Calculus II Spring 2015

CHAPTER 5. Number Theory. 1. Integers and Division. Discussion

k, then n = p2α 1 1 pα k

FUNCTIONAL ANALYSIS LECTURE NOTES: QUOTIENT SPACES

Clock Arithmetic and Modular Systems Clock Arithmetic The introduction to Chapter 4 described a mathematical system

Notes on Factoring. MA 206 Kurt Bryan

LEARNING OBJECTIVES FOR THIS CHAPTER

Copyrighted Material. Chapter 1 DEGREE OF A CURVE

0.8 Rational Expressions and Equations

Session 7 Fractions and Decimals

MATH 4330/5330, Fourier Analysis Section 11, The Discrete Fourier Transform

POLYNOMIALS and FACTORING

Dynamic Programming. Lecture Overview Introduction

ON THE EMBEDDING OF BIRKHOFF-WITT RINGS IN QUOTIENT FIELDS

December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B. KITCHENS

Activity 1: Using base ten blocks to model operations on decimals

Revised Version of Chapter 23. We learned long ago how to solve linear congruences. ax c (mod m)

=

Pigeonhole Principle Solutions

Second Order Linear Nonhomogeneous Differential Equations; Method of Undetermined Coefficients. y + p(t) y + q(t) y = g(t), g(t) 0.

Number Systems and Radix Conversion

Computational algebraic geometry

Mathematical Induction. Mary Barnes Sue Gordon

God created the integers and the rest is the work of man. (Leopold Kronecker, in an after-dinner speech at a conference, Berlin, 1886)

1 Definition of a Turing machine

How To Know If A Domain Is Unique In An Octempo (Euclidean) Or Not (Ecl)

Notes on Algebraic Structures. Peter J. Cameron

WRITING PROOFS. Christopher Heil Georgia Institute of Technology

Solution to Homework 2

3.2 The Factor Theorem and The Remainder Theorem

Vieta s Formulas and the Identity Theorem

CSE 135: Introduction to Theory of Computation Decidability and Recognizability

Cartesian Products and Relations

Chapter 13: Basic ring theory

The Graphical Method: An Example

MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1.

PROBLEM SET 6: POLYNOMIALS

Some facts about polynomials modulo m (Full proof of the Fingerprinting Theorem)

1 Homework 1. [p 0 q i+j p i 1 q j+1 ] + [p i q j ] + [p i+1 q j p i+j q 0 ]

7 Gaussian Elimination and LU Factorization

Turing Machines, Part I

Copy in your notebook: Add an example of each term with the symbols used in algebra 2 if there are any.

U.C. Berkeley CS276: Cryptography Handout 0.1 Luca Trevisan January, Notes on Algebra

3. Prime and maximal ideals Definitions and Examples.

DIFFERENTIABILITY OF COMPLEX FUNCTIONS. Contents

FACTORING POLYNOMIALS IN THE RING OF FORMAL POWER SERIES OVER Z

The theory of the six stages of learning with integers (Published in Mathematics in Schools, Volume 29, Number 2, March 2000) Stage 1

(a) Write each of p and q as a polynomial in x with coefficients in Z[y, z]. deg(p) = 7 deg(q) = 9

Transcription:

Monomial Orders and the Division Algorithm J.M. Selig Faculty of Business London South Bank University, London SE1 0AA, UK We start by recalling the familiar algorithm for dividing polynomials in one variable. The idea is that we want to extend this to an analogous algorithm for polynomials in several variables. This is not straightforward, and we will encounter several difficulties which need to be overcome, the final problem is solved by the introduction of Gröbner bases. 1 Division of Polynomials in One Variable Consider dividing the polynomialf = x 3 +x 2 +x+2 byg = x 1. To do this we can take the leading term of f and divide it by the leading term of g. This will be written LT(f) = x 3, and LT(g) = x so that LT(f)/LT(g) = x 2. This quantity is recorded and then we compute, f = f ( LT(f)/LT(g) ) g = (x 3 +x 2 +x+2) x 2 (x 1) = 2x 2 +x+2. Now we repeat this process with f : LT(f )/LT(g) = 2x and then, f = f ( LT(f )/LT(g) ) g = (2x 2 +x+2) 2x(x 1) = 3x+2. Repeating once more giveslt(f )/LT(g) = 3, so that f = f ( LT(f )/LT(g) ) g = (3x+2) 3(x 1) = 5. Now the leading term of g doesn t divide the leading term of f so we are done, all that remains is to put together the results, let h = LT(f)/LT(g)+LT(f )/LT(g)+LT(f )/LT(g) = x 2 +2x+3 and the remainder isr = f = 5. This means we can write, f = hg +r = (x 2 +2x+3)(x 1)+5. There are many consequences of this algorithm. In particular it is clear that the results for h and the remainder r are unique and moreover that the degree of the remainder r is strictly less that the degree ofg. 1

The computation can be set down as follows, x 2 + 2x + 3 x 1 x 3 + x 2 + x + 2 x 3 x 2 2x 2 + x + 2 2x 2 2x 3x + 2 3x 3 5 Now suppose we try to imitate the above with polynomials in several variables. Immediately we hit a problem, what is the leading term for a polynomial of several variables? If we assume naively that this is just the term of highest total degree then there maybe several different terms with this degree and it does matter which we choose. For example, supposef = x 2 +y 2 andg = y+1 and say we assume thatx 2 is the leading term off, this would lead to the result, f = 0.g +(x 2 +y 2 ), on the other hand if we say thaty 2 is the leading term forf the we get, f = yg +(x 2 y). To overcome this problem we need to introduce an ordering on the possible monomials. 2 Orders on Monomials Certainly we want any order on monomials to be a total order so that any pair of monomials may be compared and which is the larger can be decided. There are a couple of other requirements that are needed of an order on monomials that are needed to make this work. So we define a monomial ordering on K[x 1, x 2,...,x n ] to be a relation >, on the monomials of the ring, or equivalently on the multi-indices α Z n 0 with the following properties, > is a total order, that is it is transitive, anti-symmetric and for any pair of elementsα,β Z n 0 eitherα > β, β > α orα = β. ifα > β andγ Z n 0 thenα+γ > β+γ. This is required to make the algebra consistent with the ordering. Notice that adding multi-indices is equivalent to multiplying monomials. > is a well-ordering on Z n 0. This means that ever non-empty subset of Z n 0 (even infinite subsets) has a smallest element. Put another way, any decreasing sequence,α > β > > ξ > eventually terminates. 2

There are many possible monomial orderings and it doesn t matter which one we choose, at least not for theoretical purposes. In practice, computations can often be done far more efficiently using the correct monomial ordering. However, we won t concern ourselves with practicalities here. Our first example of a monomial order will be the lexicographic or lexical ordering > lex. This is supposedly the ordering used in dictionaries, however in any dictionary I have seen a is before aardvark so I don t think this is correct. Once we have decided on an ordering for the variables, (usually x 1 > lex x 2 > lex > lex x n or alphabetic order for x> lex y> lex z for example). This ordering is most conveniently expressed in terms of multi-indices, α> lex β if the left-most non-zero entry of α β is positive. For example xy 2 z> lex xz 2 since (1,2,1) (1,0,2) = (0,2, 1). To see that this is indeed a monomial ordering as defined above, notice that it is clearly a total order, this follows from the fact that greater than > is a total order on Z 0. Next it is clear that (α+γ) (β +γ) = α β and henceα+γ> lex β +γ if α> lex β. Finally, observe that if this were not a well-ordering there would be an infinite sequence of elements, α> lex β> lex > lex ξ> lex. Consider the successive differencesα β, β γ,... the left-most non-zero digit will form a decreasing sequence which must terminate in a zero in a finite number of steps. After this the next digit on the right will form a decreasing sequence terminating in a zero in a finite number of steps, and so forth until we run out of digits, again after a finite number of steps. This contradicts the assumption that the sequence is infinite. The next monomial ordering we look at is called degree then lexical or graded lexical often abbreviated to deglex. Here, monomials are ordered by total degree then any ties are broken by the lexical ordering. The total degree of a multi-indexαis given by, n α = α i. i=1 So we may define the monomial ordering> deglex as, α> deglex β α > β or if α = β then α> lex β There are several other possible monomial orders and of course we can always permute the order of the variables to start with. 3 The Division Algorithm Now let us see how the idea of a monomial order helps us to define a division algorithm for polynomials in several variables. First notice that the notion of the leading term is now well defined, presuming we have chosen to work with a definite monomial order. There remains a small problem with simply imitating the one variable case, to see the problem consider the following division: Suppose we dividef = x 2 +y 2 +x byg = x 1 using the deglex ordering. To begin with there is no problem,lt(f)/lt(g) = x so that, f = f LT(f)/LT(g)g = y 2 +2x. 3

But now the leading term off (under the deglex ordering) isy 2 andlt(g) = x doesn t divide this. With the standard, one variable algorithm, this would mean we are finished andf would be the remainder. However, it is clear that the next term inf is divisible by x so we should really keep on dividing, the leading term of f forming part of the remainder. So the algorithm should be, Inputs: Polynomials f and g. Outputs: Quotient h and remainder r. Method: initialise h := 0, initialise r := 0, whilef 0 do: if LT(g) divides LT(f) then h := h+lt(f)/lt(g), f := f LT(f)/LT(g)g, else r := r+lt(f), f := f LT(f), end while Outputh,r. Note that it is easy to tell if one monomial divides another: α dividesβ if and only ifα 1 β 1, α 2 β 2,...,α n β n. Applying this algorithm to the example wheref = x 2 +y 2 +x byg = x 1 gives h = (x+2) andr = (y 2 +2) so that, f = (x+2)g +(y 2 +2). The next complication is that we don t just want to divide by single polynomials, we really want to be able to divide by ideals. One possible reason why we want to do this is to solve the so called ideal membership problem. Suppose we are given a polynomialf and an ideali =< g 1, g 2,...,g k >, how could we tell whether or notf is an element of I? One possible answer to this would be to divide f by g 1, then take the remainder r 1 and divide by g 2, then repeating this for all g i in the basis for I. We will end up with an identity of the form, f = h 1 g 1 +h 2 g 2 + +h k g k +r. Now if the remainderr is zero then we can definitely say thatf I. But if r 0 then we cannot exclude the possibilityf I. This is because the result depends, in general, on the order that we divide by basis polynomials. As an example, consider the case wheref = x 2 +y 2 +2y 1 andi =< x 2 +y 2 1, y >. Dividingf byx 2 +y 2 1, using deglex order, givesh = 1 andr = 2y. Then dividingr by y givesh = 2, r = 0, that is, f = 1.(x 2 +y 2 1)+2(y)+0. 4

So clearly f I. Now consider dividing f by y first. The first step here would be to add x 2 = LT(f) to the remainder so that, h = y + 2 and the first remainder is r = x 2 1. Dividing this now byx 2 +y 2 1 we get h = 1 andr = y 2, leading to, f = (y +2)y +1(x 2 +y 2 1) y 2. Notice here that the remainder is in fact divisible by the basis element y, so we could have divided byy again to get the same result as before. This is not always the case. This problem can be partially solved by dividing by the basis polynomials in a more symmetrical fashion, inside a single algorithm, Inputs: Polynomialsf andg 1, g 2,...,g k. Outputs: Quotientsh 1, h 2,...,h k and remainderr. Method: initialise h 1 := 0,h 2 := 0,...,h k := 0, initialise r := 0, whilef 0 do: i := 1, // loop counter s := k, // exit condition while i s do if LT(g i ) divideslt(f) then h i := h i +LT(f)/LT(g i ), f := f LT(f)/LT(g i )g i, s := 0, // force exit else i := i+1 end while if s 0 then // no division happened r := r+lt(f), f := f LT(f), end while Outputh 1, h 2,...,h k,r. Notice here how the algorithm steps through all the possible basis elementsg 1, g 2,...,g k in turn until it finds one that divides the current f. If none of them divide f then the leading term of f is moved to the remainder r. Unfortunately this does not completely solve the problem since the result is still sensitive to the order in which the g i s are checked. To see this consider the following example. Letf = x 2 y+xy 2 +y 2 andg 1 = y 2 1, g 2 = xy 1. Using deglex ordering we can see that LT(g 1 ) doesn t divide LT(f) but LT(g 2 ) does. So f becomes f = x 2 y + y 2 + x. Now the leading term of this polynomial is divisible by both LT(g 1 ) and LT(g 2 ). But the algorithm says we must 5

divide by LT(g 1 ), the result also has a leading term divisible by LT(g 1 ) and the final result will be, x 2 y+xy 2 +y 2 = (x+1)g 1 +xg 2 +2x+1 = (x+1)(y 2 1)+x(xy 1)+2x+1. On the other hand if we swapg 1 andg 2 we get, x 2 y +xy 2 +y 2 = (x+y)(xy 1)+1.(y 2 1)+x y +1. Overcoming this problem leads to the notion of Gröbner bases for ideals. References [1] Cox, D. Little, J. and O Shea, D., 1996, Ideals, Varieties, and Algorithms an Introduction to Algebraic Geometry and Commutative Algebra (second ed.), Springer Verlag, Berlin. 6