# 11 Multivariate Polynomials

Save this PDF as:

Size: px
Start display at page:

## Transcription

1 CS 487: Intro. to Symbolic Computation Winter 2009: M. Giesbrecht Script 11 Page 1 (These lecture notes were prepared and presented by Dan Roche.) 11 Multivariate Polynomials References: MC: Section 16.6 and Chapter 21 lgorithms for Computer lgebra (Geddes, Czapor, Labahn): Section 3.4 and Chapter 10 Ideals, Varieties, and lgorithms (Cox, Little, O Shea): Chapters 1 & 2 Solving a linear system is the same as finding a solution to a system of degree-1 multivariate polynomial equations. That is, given an n n matrix and a n 1 vector b, solving x = b for x is the same as finding a set of values for the variables x 1, x 2,..., x n that satisfy the set of equations { i1 x 1 + i2 x in x n = b i } 1 i n. But what if we want to solve a system of non-linear multivariate polynomial equations? Such systems arise frequenty in various engineering and physical science applications. We start with some basic terminology for multivariate polynomials: Definition Let F be a field and n N. Every exponent vector e = (e 1, e 2,..., e n ) N n defines a monomial in F[x 1, x 2,..., x n ]: x e = x e 1 1 xe 2 2 xen n. term in F[x 1, x 2,..., x n ] is the product of a nonzero coefficient c F \ {0} and a monomial, i.e. c x e. polynomial f F[x 1, x 2,..., x n ] is a finite sum of terms. We write #f for the number of terms in f. The max degree of a monomial is the largest exponent: maxdeg x e := e = max 1 i n e i. The max degree of a polynomial is the largest max degree of a term that appears in the polynomial Representations The choice of what data structure we use to represent objects is always of crucial importance in computer science. In mathematical computing, there is a tendency to ignore this and focus only on the mathematical structures at hand. Our computer algebra system (e.g. Maple) will usually make a default choice for us, but it isn t always the best. Let s examine a few options for representing multivatiate polynomials Completely Dense Representation This is the extension of the usual dense univariate polynomial representation that we have covered extensively: Definition The completely dense representation of a multivariate polynomial f F[x 1, x 2,..., x n ] with deg xi f < d i for i = 1,..., n is a d 1 d 2 d n array with entries in F, such that the entry at index i = (i 1, i 2,..., i n ) is the coefficient of x i in f. 1

2 CS 487: Intro. to Symbolic Computation Winter 2009: M. Giesbrecht Script 11 Page 2 When comparing polynomial representations, we will assume that each coefficient is stored in a single machine word. This is useful even when coefficients take up more space, since we might reasonably suppose then that each coefficient is represented by a pointer to the actual storage, and the size of the coefficient storage will be the same no matter what the polynomial representation scheme is. Under this model, the size of the completely dense representation is d 1 d 2 d n ; if m N such that m > maxdeg f, this is at most m n. The completely dense representation allows constant-time access to any coefficient, and all fast methods for dense univariate arithmetic are easily applied. Note that if the array is stored contiguously in row-major order, the representation of f(x 1, x 2,..., x n ) is the same as that for the dense univariate polynomial over F[y] given by ( ) f y d 2d 3 d n, y d 3d 4 d n,..., y dn, y. If we set the dimensions high enough to make room for the result, converting from multivariate to univariate in this fashion is the most obvious way of using fast univariate arithmetic methods for multivariate computation (known as Kronecker substitution ) Recursive Dense Representation This is similar to the completely dense representation, except that zero polynomials are trimmed from the storage. Definition polynomial f F[x 1, x 2,..., x n ] is stored in the recursive dense representation as either: f, if n = 0 (since this means f F), null pointer, if f = 0, or dense array (f 0, f 1, f 2,...), where f = f 0 +f 1 x n +f 2 x 2 n + and each f i F[x 1, x 2,..., x n 1 ] is also stored in the recursive dense representation. Consider the size of the recursive dense representation. ssuming, as before, that each coefficient in F can be stored with a single machine word, and letting deg xi f < d i for each i, the following is an upper bound of the recursive dense representation, easily proven by induction: ((((d 1 + 1) d 2 + 1) ) d n 1 + 1) d n = n n i=1 j=i Under the reasonable assumption that each variable x i occurs in at least one term of f, each d i 2. This means the above expression is always less than 2d 1 d 2 d n, and hence is never twice as large as the size of the completely dense representation. polynomial with a single term will have size d 1 + d d n in the recursive dense representation. If t = #f is the total number of terms in f, the total size is at most (d 1 + d d n )t. The following theorem summarizes these two bounds. Theorem Let f F[x 1, x 2,..., x n ] and m, t N such that m > maxdeg f and t = #f. Then the size of the recursive dense representation of f is bounded above by min(2m n, mnt). d j 2

3 CS 487: Intro. to Symbolic Computation Winter 2009: M. Giesbrecht Script 11 Page 3 So the recursive dense representation can be exponentially smaller than the completely dense one. Unfortunately, the recursive dense size is dependent on the order of the indeterminates, as illustrated in the following example. Example. Let m N be arbitrary and f = y m 1 + xy m 1 + x 2 y m x m 1 y m 1. (Notice that m > maxdeg f.) If we treat f as over the ring F[x, y], then the recursive dense representation corresponds to the m-tuple (0, 0,, 0, 1 + x + x x m 1 ). The total size in this case is 2m. On the other hand, if we reverse the variable order so that f F[y, x], the representation corresponds to (y m 1, y m 1,..., y m 1 ), with total size m 2. In fact, the preceding example is as bad as it can get, in terms of variance in size between different variable orderings. Theorem Let f F[x 1, x 2,..., x n ] with max degree maxdeg f < m. If a, b N are the sizes of the recursive dense representations of f under two different orderings of the n variables, then a mb. Unfortunately, with the smaller size comes a higher cost of computation. Coefficient access costs O(n) in the recursive dense representation. Polynomial arithmetic again reduces (this time recursively) to the univariate case, but operation speed can be slightly greater due to branching (checking whether polynomials are zero) Sparse Representation This corresponds to the default representation of polynomials in most computer algebra systems such as Maple. Definition Let f F[x 1, x 2,..., x n ] Write f = c 1 x e 1 + c 2 x e c t x e 3, with each c i F \ {0} and all the e i s distinct elements of N n. Then the sparse representation of f is list of t coefficient-exponent tuples, specifically ((c 1, e 1 ), (c 2, e 2 ),..., (c t, e t )). Notice that the exponents in this case could be very large, and so we should account for their length in this representation. Writing t = #f and maxdeg f < m, the size of the sparse representation is thus O(nt log m). gain, this could be exponentially smaller than the size of the recursive dense representation. s usual, we pay for the decreased representation size with increased operation costs. Typically, operations on sparse polynomials are counted in terms of the number of monomial comparisons required. (The cost of each comparison depends on the specific monomial order chosen, but is usually O(n log m).) Naïvely, coefficient access then costs O(t) and addition of two polynomials with s and t terms costs O(st) monomial comparisons. If the terms are stored in some sorted order, however, arithmetic becomes more efficient. Using binary search, coefficient access costs O(log t), and addition is equivalent to merging two sorted lists, at cost O(s + t) monomial comparisons. Multiplication of sparse polynomials with s and t terms can be performed by adding (merging) t intermediate products of s terms each. If we always merge polynomials with the same number of terms, this can be performed with O(st log t) monomial comparisons. 3

4 CS 487: Intro. to Symbolic Computation Winter 2009: M. Giesbrecht Script 11 Page Monomial Orderings The question remains as to how exactly we should order the monomials. The following conditions are sufficient for the correctness of the algorithms we present here, and also correspond to intuition. Definition relation on exponent tuples in N n is an admissible monomial order iff it satisfies the following conditions: For any a, b N n with a b, either a b or b a. This means that is a total order. (0,..., 0) e for any e N n. (Note that (0,..., 0) corresponds to the monomial 1). This means that is a well order. For any a, b, c N n with a b, (a + c) (b + c) also. The most common admissible monomial order corresponds to the standard alphabetic ordering used in dictionaries. Definition The pure lexicographic order lex is given by: (a 1, a 2,..., a n ) lex (b 1, b 2,..., b n ) iff there exists j {1, 2,..., n} such that a j < b j and for each i {1, 2,..., j 1}, a i = b i. We also use the symbol to apply the order to monomials and terms (not just exponent tuples). So, for instance, over F[x, y, z], x 2 y 3 z 4 lex x 4 z 2 and 1000xy 2 z 3 lex 3xy 2 z 8. There are many other monomial orderings used for various reasons, but for simplicity we will just concentrate on lex, and use to denote this ordering from now on. This leads to some more new terminology for multivariate polynomials. Definition Let f F[x 1, x 2,..., x n ] and write f = t i=1 c ix e i, with t = #f and each c i F \ {0}. The multidegree of f, written mdeg f, is the largest exponent tuple under, that is, the unique e j such that e i e j for all i j. If mdeg f = e j for j {1,..., t}, then the leading term of f, denoted lt(f), is c i x e j. The leading coefficient of f, denoted lc(f), is c i, and the leading monomial of f, denoted lm(f), is x e j. Example. Let f F[x, y, z] with f = 2xy 2 z + 3y 5xy 3. Then f would be stored in the sorted sparse representation as ( 5xy 3, 2xy 2 z, 3y). This shows that mdeg(f) = (1, 3, 0), lt(f) = 5xy 3, lc(f) = 5, and lm(f) = xy Reduction and Normal Forms Consider a single step in the ordinary long division of two univariate polynomials, say f divided by g. We examine the leading terms of f and g. If deg f < deg g then we are done, so assume deg f deg g; this means that lm(g) divides lm(f) (since they are both just powers of the single indeterminate). So we write lt(f)/ lt(g) as the first term of the quotient, and proceed to compute h = f (lt(f)/ lt(g))g and then divide h by g. To generalize this process to multivariate polynomials, we first notice that for f, g F[x 1, x 2,..., x n ], lm(g) does not necessarily divide lm(f), even when mdeg g mdeg f. If, however, this condition does hold, then we can perform a single step of long division as above; this is called a reduction. 4

5 CS 487: Intro. to Symbolic Computation Winter 2009: M. Giesbrecht Script 11 Page 5 Definition For f, g, h F[x 1, x 2,..., x n ], we say f reduces to h with respect to g and write f h iff lm(g) lm(f) and g h = f lt(f) lt(g) g. Example. Let g = 3x 2 yz 3 + 5xyz 5. Then 15x 3 y 3 z 3 2x 3 z g 2x 3 z 25x 2 y 3 z 5 Having a whole family of polynomials, rather than a single g, can allow us to do more reductions. Definition Let F[x 1, x 2,..., x n ] be a family of polynomials, and f, h F[x 1, x 2,..., x n ]. f h iff g such that f g h. f h iff h 1, h 2,... s.t. f h 1 h 2 h. Example. Let = {g 1, g 2, g 3 } F[x, y, z] with g 1 = x 2 y 2yz + 1 g 2 = xy 2 + 2x z 2 g 3 = y 2 z y Now write f = 3x 2 y 2 + 7y 1. We have f g1 6y 2 z + 4y 1 g3 6y 2 + 4y 31 := h 1 f g2 6x 2 + 3xz 2 + 7y 1 := h 2 Note that both h 1 and h 2 cannot be reduced any further with respect to. Of course we have a name for this condition: Definition Let F[x 1, x 2,..., x n ]. Then the set of normal forms with respect to, denoted N F, is the set of polynomials which cannot be reduced by any polynomial in. That is, N F = {f F[x 1, x 2,..., x n ] : h F[x 1, x 2,..., x n ] s.t. f h}. Since each reduction decreases the multidegree of the polynomial with respect to, it should be clear that for any f F[x 1, x 2,..., x n ] and a finite subset F[x 1, x 2,..., x n ], we can always find an h F[x 1, x 2,..., x n ] such that f h and h N F, just by repeatedly reducing f by elements of until we can t anymore. If we further specify some algorithmic way of choosing the order of reductions (say by ordering the polynomials in ), then the h we find will always be the same. Without giving a formal definition, let s assume some such algorithm is understood, and write N F (f) = h in this case. 5

6 CS 487: Intro. to Symbolic Computation Winter 2009: M. Giesbrecht Script 11 Page Ideals and Bases Recall the notion of an ideal from algebra: Definition Let R with operations (+, ) be a ring. n ideal I of R is a subset of R satisfying: a + b I, for all a, b I a r I, for all a I and r R Note that having some elements of R in an ideal requires that many other elements must be in the ideal also. Hence we have the following: Definition subset S = {s 1, s 2,...} of a ring R is a generator for an ideal, which we denote as S or s 1, s 2,... : The set S is called a basis for the ideal S. S := {r 1 s 1 + r 2 s 2 + : r 1, r 2,... R}. Note that S is the smallest ideal in R which contains S. lso, a single ideal can have many different bases. For example, over Z, you can convince yourself that 4, 6 is just the set of even integers, and so is the same as 2. In fact, from the extended Euclidean algorithm, we can see that any ideal in Z is generated by a single integer, which is just the gcd of all the integers in the ideal. Here, we re interested in the ring F[x 1, x 2,..., x n ], where things are not so simple, and most ideals don t have a single-element basis. But it s not too bad: Theorem (Hilbert, 1888). Every ideal I of F[x 1, x 2,..., x n ] has a finite basis. This is known as Hilbert s basis theorem and is crucial for the correctness of our methods here (but says nothing about the complexity because there s no concrete limit on the size of the basis). Now let s try an extend the idea of modular equivalence to multivariate polynomials. Over Z, a b mod m iff m (a b). This is the same as saying that (a b) m. So for f, h F[x 1, x 2,..., x n ] and F[x 1, x 2,..., x n ], we say that f h mod iff (f h). From this definition, it follows immediately that f h implies f h mod, and in particular f N F (f) Gröbner Bases Consider the ideal membership problem: given polynomials f, g 1, g 2,..., g k F[x 1, x 2,..., x n ], can f be written as a sum of multiples of g i s, i.e. is f g 1, g 2,..., g k? Setting = {g 1,..., g k }, we know this is the case iff f 0 mod. nd clearly 0 N F. But there may be many elements of N F which are equivalent to f, and there is no guarantee that our deterministic strategy for choosing N F (f) will produce 0, or even that f 0. Gröbner bases provide such a guarantee. Definition set G F[x 1, x 2,..., x n ] is a Gröbner Basis for an ideal I if and only if f, h N F G, f h mod I f = h. 6

7 CS 487: Intro. to Symbolic Computation Winter 2009: M. Giesbrecht Script 11 Page 7 This implies immediately that for any f F[x 1, x 2,..., x n ], there is only one choice for N F G (f), regardless of the order of reductions. nd it also proves that G is actually a basis for I: for any h I, since h 0 mod I and 0 N F G, h 0, which means that h G. G Since the choice of N F G (f) is unique, we now have a canonical normal form for polynomials modulo I. So having a finite Gröbner Basis for an ideal I gives us a way to determine whether f g mod I for any f, g F[x 1, x 2,..., x n ], and in particular solves the ideal membership problem. But how can we compute a finite Gröbner basis for an ideal I = f 1, f 2,..., f k? We ll breifly outline the approach taken by Bruno Buchberger, who actually coined the term Gröbner Basis in his 1965 Ph.D. thesis. We start with the following definition: Definition Let f, g F[x 1, x 2,..., x n ]\{0} and u = lcm(lt(f), lt(g)). Then the s-polynomial of f and g is s-poly(f, g) = u lt(f) f u lt(g) g. Intuitively, s-poly(f, g) is the smallest polynomial in f, g with the leading terms of f and g stripped out. s-polynomials also give a straightworward test for Gröbner bases: Theorem (MC, Theorem 21.31). G F[x 1, x 2,..., x n ] is a Gröbner basis for the ideal G iff N F G (s-poly(g 1, g 2 )) = 0 for all g 1, g 2 G. See the book for a proof. Given a finite set G F[x 1, x 2,..., x n ], Buchberger s algorithm to compute a Gröbner basis for the ideal G is based around this theorem. Choose the first pair g i, g j G in the basis such that N F G (s-poly(g i, g j )) 0. If no such pair exists, then G is a Gröbner basis and we are done. Otherwise, add N F G (s-poly(g i, g j )) to G and repeat. (This is presented more formally as lgorithm in MC.) Example. Let s use Buchberger s algorithm to find a Gröbner basis for {g 1, g 2 } with g 1 = 3x 2 y + 5y z, g 2 = yz. Initially there is just one pair of polynomials in the basis. So compute N F G (s-poly(g 1, g 2 )) = N F G (5yz z 2 ) = z 2 So set g 3 = z 2 (dividing out the content) and update G = G g 3. Then we just need to confirm that N F G (s-poly(g 1, g 3 )) = N F G (5yz 2 z 3 ) = 0, N F G (s-poly(g 2, g 3 )) = N F G (0) = 0. So {g 1, g 2, g 3 } is a Gröbner basis for the original set G. Theorem Buchberger s algorithm terminates. Proof. Let M i be the ideal generated by the leading monomials of G after the i th iteration. Since each new polynomial added to G is in normal form, each M i M i+1. Hence we have an ascending chain of ideals. By Hilbert s basis theorem, the ideal i 0 M i has a finite basis, say G. We must have G M i for some i 0. But then M i = M i+1, a contradiction unless there are only i iterations. 7

8 CS 487: Intro. to Symbolic Computation Winter 2009: M. Giesbrecht Script 11 Page 8 Unfortunately, Gröbner bases can be very large, especially under the lexicographical ordering. We can reduce the size of G somewhat by removing any basis element that is not in N F G, and further reduction is possible by so-called interior reductions that do not always involve the leading monomials. We ve already seen how a Gröbner basis allows us to test ideal membership and equivalence modulo an ideal. nother very useful application is solving a multivariate polynomial system. Consider the system S = (f i = v i ) i=1,2,...,k with each f i F[x 1, x 2,..., x n ] and v i F. This is of course equivalent to the system (f i v i = 0) i=1,2,...,k, so without loss of generality assume each v i = 0. Let G be a Gröbner basis for the ideal generated by {f i : i = 1,..., k}, under the pure lexicographical ordering lex. I claim (without proof) that if the system is zero-dimensional (i.e. it has finitely many solutions), then G contains a polynomial which only contains x n, one containing only x n 1 and x n, and so forth. There is a name for such a set: Definition set T = {t 1, t 2,..., t n } F[x 1, x 2,..., x n ] is a triangular set iff t i F[x i, x i+1,..., x n ] for i = 1, 2,..., n. With this triangular set, we can solve the univariate polynomial t n for x n, then use backsubstitution into t n 1 to solve for x n 1, and so forth. So Gröbner bases can be used to solve zero-dimensional systems of multivariate polynomials. It is worth noting that Buchberger s algorithm has been more or less superceded by more efficient approaches, especially the F4 and F5 algorithms by Jean-Charles Faugère. There are alternative methods to compute triangular sets for a given polynomial system as well. 8

### Gröbner Bases and their Applications

Gröbner Bases and their Applications Kaitlyn Moran July 30, 2008 1 Introduction We know from the Hilbert Basis Theorem that any ideal in a polynomial ring over a field is finitely generated [3]. However,

### 3 Monomial orders and the division algorithm

3 Monomial orders and the division algorithm We address the problem of deciding which term of a polynomial is the leading term. We noted above that, unlike in the univariate case, the total degree does

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

30 3. RINGS, IDEALS, AND GRÖBNER BASES 3.1. Polynomial rings and ideals The main object of study in this section is a polynomial ring in a finite number of variables R = k[x 1,..., x n ], where k is an

### Elementary Number Theory We begin with a bit of elementary number theory, which is concerned

CONSTRUCTION OF THE FINITE FIELDS Z p S. R. DOTY Elementary Number Theory We begin with a bit of elementary number theory, which is concerned solely with questions about the set of integers Z = {0, ±1,

### Computer Algebra for Computer Engineers

p.1/14 Computer Algebra for Computer Engineers Preliminaries Priyank Kalla Department of Electrical and Computer Engineering University of Utah, Salt Lake City p.2/14 Notation R: Real Numbers Q: Fractions

### MODULAR ARITHMETIC. a smallest member. It is equivalent to the Principle of Mathematical Induction.

MODULAR ARITHMETIC 1 Working With Integers The usual arithmetic operations of addition, subtraction and multiplication can be performed on integers, and the result is always another integer Division, on

### Solving Polynomial Equations

Solving Polynomial Equations Xun Sam Zhou Department of Computer Science & Engineering University of Minnesota 12/16/2010 1 Motivation Polynomials widely appear in Robotics GPS Manipulators Computer Vision

### Reduction Modulo Ideals and Multivariate Polynomial Interpolation

UNIVERSITÀ DEGLI STUDI DI PADOVA UNIVERSITE BORDEAUX 1 Facoltà di Scienze MM. FF. NN U.F.R. Mathématiques et Informatique Master Thesis Vo Ngoc Thieu Reduction Modulo Ideals and Multivariate Polynomial

### Sparse Polynomial Multiplication and Division in Maple 14

Sparse Polynomial Multiplication and Division in Maple 4 Michael Monagan and Roman Pearce Department of Mathematics, Simon Fraser University Burnaby B.C. V5A S6, Canada October 5, 9 Abstract We report

### (x + a) n = x n + a Z n [x]. Proof. If n is prime then the map

22. A quick primality test Prime numbers are one of the most basic objects in mathematics and one of the most basic questions is to decide which numbers are prime (a clearly related problem is to find

### Quotient Rings and Field Extensions

Chapter 5 Quotient Rings and Field Extensions In this chapter we describe a method for producing field extension of a given field. If F is a field, then a field extension is a field K that contains F.

### Continued Fractions and the Euclidean Algorithm

Continued Fractions and the Euclidean Algorithm Lecture notes prepared for MATH 326, Spring 997 Department of Mathematics and Statistics University at Albany William F Hammond Table of Contents Introduction

### Math 4310 Handout - Quotient Vector Spaces

Math 4310 Handout - Quotient Vector Spaces Dan Collins The textbook defines a subspace of a vector space in Chapter 4, but it avoids ever discussing the notion of a quotient space. This is understandable

### Algebra 3: algorithms in algebra

Algebra 3: algorithms in algebra Hans Sterk 2003-2004 ii Contents 1 Polynomials, Gröbner bases and Buchberger s algorithm 1 1.1 Introduction............................ 1 1.2 Polynomial rings and systems

### 8 Divisibility and prime numbers

8 Divisibility and prime numbers 8.1 Divisibility In this short section we extend the concept of a multiple from the natural numbers to the integers. We also summarize several other terms that express

### CHAPTER 5: MODULAR ARITHMETIC

CHAPTER 5: MODULAR ARITHMETIC LECTURE NOTES FOR MATH 378 (CSUSM, SPRING 2009). WAYNE AITKEN 1. Introduction In this chapter we will consider congruence modulo m, and explore the associated arithmetic called

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

Hilbert Polynomials For a monomial ideal, we derive the dimension counting the monomials in the complement, arriving at the notion of the Hilbert polynomial. The first half of the note is derived from

### 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.

MATH10212 Linear Algebra Textbook: D. Poole, Linear Algebra: A Modern Introduction. Thompson, 2006. ISBN 0-534-40596-7. Systems of Linear Equations Definition. An n-dimensional vector is a row or a column

### 3. Applications of Number Theory

3. APPLICATIONS OF NUMBER THEORY 163 3. Applications of Number Theory 3.1. Representation of Integers. Theorem 3.1.1. Given an integer b > 1, every positive integer n can be expresses uniquely as n = a

### Homework 5 Solutions

Homework 5 Solutions 4.2: 2: a. 321 = 256 + 64 + 1 = (01000001) 2 b. 1023 = 512 + 256 + 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = (1111111111) 2. Note that this is 1 less than the next power of 2, 1024, which

### Lecture 3: Finding integer solutions to systems of linear equations

Lecture 3: Finding integer solutions to systems of linear equations Algorithmic Number Theory (Fall 2014) Rutgers University Swastik Kopparty Scribe: Abhishek Bhrushundi 1 Overview The goal of this lecture

### Lecture 1: Course overview, circuits, and formulas

Lecture 1: Course overview, circuits, and formulas Topics in Complexity Theory and Pseudorandomness (Spring 2013) Rutgers University Swastik Kopparty Scribes: John Kim, Ben Lund 1 Course Information Swastik

### Theorem (The division theorem) Suppose that a and b are integers with b > 0. There exist unique integers q and r so that. a = bq + r and 0 r < b.

Theorem (The division theorem) Suppose that a and b are integers with b > 0. There exist unique integers q and r so that a = bq + r and 0 r < b. We re dividing a by b: q is the quotient and r is the remainder,

### Degree Bounds for Gröbner Bases in Algebras of Solvable Type

Degree Bounds for Gröbner Bases in Algebras of Solvable Type Matthias Aschenbrenner University of California, Los Angeles (joint with Anton Leykin) Algebras of Solvable Type... introduced by Kandri-Rody

### 3. Recurrence Recursive Definitions. To construct a recursively defined function:

3. RECURRENCE 10 3. Recurrence 3.1. Recursive Definitions. To construct a recursively defined function: 1. Initial Condition(s) (or basis): Prescribe initial value(s) of the function.. Recursion: Use a

### The Mathematics of Origami

The Mathematics of Origami Sheri Yin June 3, 2009 1 Contents 1 Introduction 3 2 Some Basics in Abstract Algebra 4 2.1 Groups................................. 4 2.2 Ring..................................

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

Homework #01, due 1/20/10 = 9.1.2, 9.1.4, 9.1.6, 9.1.8, 9.2.3 Additional problems for study: 9.1.1, 9.1.3, 9.1.5, 9.1.13, 9.2.1, 9.2.2, 9.2.4, 9.2.5, 9.2.6, 9.3.2, 9.3.3 9.1.1 (This problem was not assigned

### 15. Symmetric polynomials

15. Symmetric polynomials 15.1 The theorem 15.2 First examples 15.3 A variant: discriminants 1. The theorem Let S n be the group of permutations of {1,, n}, also called the symmetric group on n things.

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

U.C. Berkeley CS276: Cryptography Handout 0.1 Luca Trevisan January, 2009 Notes on Algebra These notes contain as little theory as possible, and most results are stated without proof. Any introductory

### Linear Codes. Chapter 3. 3.1 Basics

Chapter 3 Linear Codes In order to define codes that we can encode and decode efficiently, we add more structure to the codespace. We shall be mainly interested in linear codes. A linear code of length

### Notes on Complexity Theory Last updated: August, 2011. Lecture 1

Notes on Complexity Theory Last updated: August, 2011 Jonathan Katz Lecture 1 1 Turing Machines I assume that most students have encountered Turing machines before. (Students who have not may want to look

### Groups, Rings, and Fields. I. Sets Let S be a set. The Cartesian product S S is the set of ordered pairs of elements of S, S S = {(x, y) x, y S}.

Groups, Rings, and Fields I. Sets Let S be a set. The Cartesian product S S is the set of ordered pairs of elements of S, A binary operation φ is a function, S S = {(x, y) x, y S}. φ : S S S. A binary

### Vector and Matrix Norms

Chapter 1 Vector and Matrix Norms 11 Vector Spaces Let F be a field (such as the real numbers, R, or complex numbers, C) with elements called scalars A Vector Space, V, over the field F is a non-empty

### 4. Number Theory (Part 2)

4. Number Theory (Part 2) Terence Sim Mathematics is the queen of the sciences and number theory is the queen of mathematics. Reading Sections 4.8, 5.2 5.4 of Epp. Carl Friedrich Gauss, 1777 1855 4.3.

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

Some facts about polynomials modulo m (Full proof of the Fingerprinting Theorem) In order to understand the details of the Fingerprinting Theorem on fingerprints of different texts from Chapter 19 of the

### Appendix A. Appendix. A.1 Algebra. Fields and Rings

Appendix A Appendix A.1 Algebra Algebra is the foundation of algebraic geometry; here we collect some of the basic algebra on which we rely. We develop some algebraic background that is needed in the text.

### Additional Topics in Linear Algebra Supplementary Material for Math 540. Joseph H. Silverman

Additional Topics in Linear Algebra Supplementary Material for Math 540 Joseph H Silverman E-mail address: jhs@mathbrownedu Mathematics Department, Box 1917 Brown University, Providence, RI 02912 USA Contents

### Course notes on Number Theory

Course notes on Number Theory In Number Theory, we make the decision to work entirely with whole numbers. There are many reasons for this besides just mathematical interest, not the least of which is that

### WRITING PROOFS. Christopher Heil Georgia Institute of Technology

WRITING PROOFS Christopher Heil Georgia Institute of Technology A theorem is just a statement of fact A proof of the theorem is a logical explanation of why the theorem is true Many theorems have this

### Computing divisors and common multiples of quasi-linear ordinary differential equations

Computing divisors and common multiples of quasi-linear ordinary differential equations Dima Grigoriev CNRS, Mathématiques, Université de Lille Villeneuve d Ascq, 59655, France Dmitry.Grigoryev@math.univ-lille1.fr

### CONTENTS 1. Peter Kahn. Spring 2007

CONTENTS 1 MATH 304: CONSTRUCTING THE REAL NUMBERS Peter Kahn Spring 2007 Contents 2 The Integers 1 2.1 The basic construction.......................... 1 2.2 Adding integers..............................

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

1 Section 5.2 The Complete Ordered Field: Purpose of Section We present an axiomatic description of the real numbers as a complete ordered field. The axioms which describe the arithmetic of the real numbers

### Mathematics of Cryptography

CHAPTER 2 Mathematics of Cryptography Part I: Modular Arithmetic, Congruence, and Matrices Objectives This chapter is intended to prepare the reader for the next few chapters in cryptography. The chapter

### Lecture 1: Jan 14, 2015

E0 309: Topics in Complexity Theory Spring 2015 Lecture 1: Jan 14, 2015 Lecturer: Neeraj Kayal Scribe: Sumant Hegde and Abhijat Sharma 11 Introduction The theme of the course in this semester is Algebraic

### Intro to Rings, Fields, Polynomials: Hardware Modeling by Modulo Arithmetic

Intro to Rings, Fields, Polynomials: Hardware Modeling by Modulo Arithmetic Priyank Kalla Associate Professor Electrical and Computer Engineering, University of Utah kalla@ece.utah.edu http://www.ece.utah.edu/~kalla

### ECE 842 Report Implementation of Elliptic Curve Cryptography

ECE 842 Report Implementation of Elliptic Curve Cryptography Wei-Yang Lin December 15, 2004 Abstract The aim of this report is to illustrate the issues in implementing a practical elliptic curve cryptographic

### Number Theory. Proof. Suppose otherwise. Then there would be a finite number n of primes, which we may

Number Theory Divisibility and Primes Definition. If a and b are integers and there is some integer c such that a = b c, then we say that b divides a or is a factor or divisor of a and write b a. Definition

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

Formal Languages and Automata Theory - Regular Expressions and Finite Automata - Samarjit Chakraborty Computer Engineering and Networks Laboratory Swiss Federal Institute of Technology (ETH) Zürich March

### The Geometry of Polynomial Division and Elimination

The Geometry of Polynomial Division and Elimination Kim Batselier, Philippe Dreesen Bart De Moor Katholieke Universiteit Leuven Department of Electrical Engineering ESAT/SCD/SISTA/SMC May 2012 1 / 26 Outline

### The Laws of Cryptography Cryptographers Favorite Algorithms

2 The Laws of Cryptography Cryptographers Favorite Algorithms 2.1 The Extended Euclidean Algorithm. The previous section introduced the field known as the integers mod p, denoted or. Most of the field

### Lecture 13 - Basic Number Theory.

Lecture 13 - Basic Number Theory. Boaz Barak March 22, 2010 Divisibility and primes Unless mentioned otherwise throughout this lecture all numbers are non-negative integers. We say that A divides B, denoted

### CS 3719 (Theory of Computation and Algorithms) Lecture 4

CS 3719 (Theory of Computation and Algorithms) Lecture 4 Antonina Kolokolova January 18, 2012 1 Undecidable languages 1.1 Church-Turing thesis Let s recap how it all started. In 1990, Hilbert stated a

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

Gröbner bases talk at the ACAGM Summer School Leuven 2011- p. 1 Gröbner bases talk at the ACAGM Summer School Leuven 2011 - Hans Schönemann hannes@mathematik.uni-kl.de Department of Mathematics University

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

Chapter 4, Arithmetic in F [x] Polynomial arithmetic and the division algorithm. We begin by defining the ring of polynomials with coefficients in a ring R. After some preliminary results, we specialize

### POWER SETS AND RELATIONS

POWER SETS AND RELATIONS L. MARIZZA A. BAILEY 1. The Power Set Now that we have defined sets as best we can, we can consider a sets of sets. If we were to assume nothing, except the existence of the empty

### Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products

Chapter 3 Cartesian Products and Relations The material in this chapter is the first real encounter with abstraction. Relations are very general thing they are a special type of subset. After introducing

### 2 The Euclidean algorithm

2 The Euclidean algorithm Do you understand the number 5? 6? 7? At some point our level of comfort with individual numbers goes down as the numbers get large For some it may be at 43, for others, 4 In

### CSE373: Data Structures and Algorithms Lecture 3: Math Review; Algorithm Analysis. Linda Shapiro Winter 2015

CSE373: Data Structures and Algorithms Lecture 3: Math Review; Algorithm Analysis Linda Shapiro Today Registration should be done. Homework 1 due 11:59 pm next Wednesday, January 14 Review math essential

### Steven Skiena. skiena

Lecture 3: Recurrence Relations (1997) Steven Skiena Department of Computer Science State University of New York Stony Brook, NY 11794 4400 http://www.cs.sunysb.edu/ skiena Argue the solution to T(n) =

### Lecture 3. Mathematical Induction

Lecture 3 Mathematical Induction Induction is a fundamental reasoning process in which general conclusion is based on particular cases It contrasts with deduction, the reasoning process in which conclusion

### DIFFERENTIABILITY OF COMPLEX FUNCTIONS. Contents

DIFFERENTIABILITY OF COMPLEX FUNCTIONS Contents 1. Limit definition of a derivative 1 2. Holomorphic functions, the Cauchy-Riemann equations 3 3. Differentiability of real functions 5 4. A sufficient condition

### the lemma. Keep in mind the following facts about regular languages:

CPS 2: Discrete Mathematics Instructor: Bruce Maggs Assignment Due: Wednesday September 2, 27 A Tool for Proving Irregularity (25 points) When proving that a language isn t regular, a tool that is often

### Reading 13 : Finite State Automata and Regular Expressions

CS/Math 24: Introduction to Discrete Mathematics Fall 25 Reading 3 : Finite State Automata and Regular Expressions Instructors: Beck Hasti, Gautam Prakriya In this reading we study a mathematical model

### I. GROUPS: BASIC DEFINITIONS AND EXAMPLES

I GROUPS: BASIC DEFINITIONS AND EXAMPLES Definition 1: An operation on a set G is a function : G G G Definition 2: A group is a set G which is equipped with an operation and a special element e G, called

### Further linear algebra. Chapter I. Integers.

Further linear algebra. Chapter I. Integers. Andrei Yafaev Number theory is the theory of Z = {0, ±1, ±2,...}. 1 Euclid s algorithm, Bézout s identity and the greatest common divisor. We say that a Z divides

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

Binary numbers The reason humans represent numbers using decimal (the ten digits from 0,1,... 9) is that we have ten fingers. There is no other reason than that. There is nothing special otherwise about

### 26 Integers: Multiplication, Division, and Order

26 Integers: Multiplication, Division, and Order Integer multiplication and division are extensions of whole number multiplication and division. In multiplying and dividing integers, the one new issue

### Orders Modulo A Prime

Orders Modulo A Prime Evan Chen March 6, 2015 In this article I develop the notion of the order of an element modulo n, and use it to prove the famous n 2 + 1 lemma as well as a generalization to arbitrary

### 8 Primes and Modular Arithmetic

8 Primes and Modular Arithmetic 8.1 Primes and Factors Over two millennia ago already, people all over the world were considering the properties of numbers. One of the simplest concepts is prime numbers.

### it is easy to see that α = a

21. Polynomial rings Let us now turn out attention to determining the prime elements of a polynomial ring, where the coefficient ring is a field. We already know that such a polynomial ring is a UF. Therefore

### SYSTEMS OF EQUATIONS

SYSTEMS OF EQUATIONS 1. Examples of systems of equations Here are some examples of systems of equations. Each system has a number of equations and a number (not necessarily the same) of variables for which

### Zeros of Polynomial Functions

Zeros of Polynomial Functions The Rational Zero Theorem If f (x) = a n x n + a n-1 x n-1 + + a 1 x + a 0 has integer coefficients and p/q (where p/q is reduced) is a rational zero, then p is a factor of

### 11 Ideals. 11.1 Revisiting Z

11 Ideals The presentation here is somewhat different than the text. In particular, the sections do not match up. We have seen issues with the failure of unique factorization already, e.g., Z[ 5] = O Q(

### Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 5

CS 70 Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 5 Modular Arithmetic One way to think of modular arithmetic is that it limits numbers to a predefined range {0,1,...,N

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

CHAPTER 5 Number Theory 1. Integers and Division 1.1. Divisibility. Definition 1.1.1. Given two integers a and b we say a divides b if there is an integer c such that b = ac. If a divides b, we write a

### Finite dimensional topological vector spaces

Chapter 3 Finite dimensional topological vector spaces 3.1 Finite dimensional Hausdorff t.v.s. Let X be a vector space over the field K of real or complex numbers. We know from linear algebra that the

### HOMEWORK 5 SOLUTIONS. n!f n (1) lim. ln x n! + xn x. 1 = G n 1 (x). (2) k + 1 n. (n 1)!

Math 7 Fall 205 HOMEWORK 5 SOLUTIONS Problem. 2008 B2 Let F 0 x = ln x. For n 0 and x > 0, let F n+ x = 0 F ntdt. Evaluate n!f n lim n ln n. By directly computing F n x for small n s, we obtain the following

### Basics of Polynomial Theory

3 Basics of Polynomial Theory 3.1 Polynomial Equations In geodesy and geoinformatics, most observations are related to unknowns parameters through equations of algebraic (polynomial) type. In cases where

### MODULAR ARITHMETIC KEITH CONRAD

MODULAR ARITHMETIC KEITH CONRAD. Introduction We will define the notion of congruent integers (with respect to a modulus) and develop some basic ideas of modular arithmetic. Applications of modular arithmetic

### Definition: Group A group is a set G together with a binary operation on G, satisfying the following axioms: a (b c) = (a b) c.

Algebraic Structures Abstract algebra is the study of algebraic structures. Such a structure consists of a set together with one or more binary operations, which are required to satisfy certain axioms.

### Polynomials and Gröbner Bases

Polynomials and Gröbner Bases Alice Feldmann January 13, 2015 Abstract This report is intended to elaborate the topics covered in the presentation on December 16, 2014 about polynomials and Gröbner basis

### Prime Numbers. Chapter Primes and Composites

Chapter 2 Prime Numbers The term factoring or factorization refers to the process of expressing an integer as the product of two or more integers in a nontrivial way, e.g., 42 = 6 7. Prime numbers are

### Notes on Factoring. MA 206 Kurt Bryan

The General Approach Notes on Factoring MA 26 Kurt Bryan Suppose I hand you n, a 2 digit integer and tell you that n is composite, with smallest prime factor around 5 digits. Finding a nontrivial factor

### 1. Prove that the empty set is a subset of every set.

1. Prove that the empty set is a subset of every set. Basic Topology Written by Men-Gen Tsai email: b89902089@ntu.edu.tw Proof: For any element x of the empty set, x is also an element of every set since

### Lecture 2: Universality

CS 710: Complexity Theory 1/21/2010 Lecture 2: Universality Instructor: Dieter van Melkebeek Scribe: Tyson Williams In this lecture, we introduce the notion of a universal machine, develop efficient universal

### UNIT 2 MATRICES - I 2.0 INTRODUCTION. Structure

UNIT 2 MATRICES - I Matrices - I Structure 2.0 Introduction 2.1 Objectives 2.2 Matrices 2.3 Operation on Matrices 2.4 Invertible Matrices 2.5 Systems of Linear Equations 2.6 Answers to Check Your Progress

### Number Theory Hungarian Style. Cameron Byerley s interpretation of Csaba Szabó s lectures

Number Theory Hungarian Style Cameron Byerley s interpretation of Csaba Szabó s lectures August 20, 2005 2 0.1 introduction Number theory is a beautiful subject and even cooler when you learn about it

### CHAPTER 3 Numbers and Numeral Systems

CHAPTER 3 Numbers and Numeral Systems Numbers play an important role in almost all areas of mathematics, not least in calculus. Virtually all calculus books contain a thorough description of the natural,

### Systems of Linear Equations

Systems of Linear Equations Beifang Chen Systems of linear equations Linear systems A linear equation in variables x, x,, x n is an equation of the form a x + a x + + a n x n = b, where a, a,, a n and

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

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

### minimal polyonomial Example

Minimal Polynomials Definition Let α be an element in GF(p e ). We call the monic polynomial of smallest degree which has coefficients in GF(p) and α as a root, the minimal polyonomial of α. Example: We

### MATH 289 PROBLEM SET 1: INDUCTION. 1. The induction Principle The following property of the natural numbers is intuitively clear:

MATH 89 PROBLEM SET : INDUCTION The induction Principle The following property of the natural numbers is intuitively clear: Axiom Every nonempty subset of the set of nonnegative integers Z 0 = {0,,, 3,

### 3. Equivalence Relations. Discussion

3. EQUIVALENCE RELATIONS 33 3. Equivalence Relations 3.1. Definition of an Equivalence Relations. Definition 3.1.1. A relation R on a set A is an equivalence relation if and only if R is reflexive, symmetric,

### 3. Mathematical Induction

3. MATHEMATICAL INDUCTION 83 3. Mathematical Induction 3.1. First Principle of Mathematical Induction. Let P (n) be a predicate with domain of discourse (over) the natural numbers N = {0, 1,,...}. If (1)

### Factoring & Primality

Factoring & Primality Lecturer: Dimitris Papadopoulos In this lecture we will discuss the problem of integer factorization and primality testing, two problems that have been the focus of a great amount

### MATH REVIEW KIT. Reproduced with permission of the Certified General Accountant Association of Canada.

MATH REVIEW KIT Reproduced with permission of the Certified General Accountant Association of Canada. Copyright 00 by the Certified General Accountant Association of Canada and the UBC Real Estate Division.

### Solving Systems of Linear Equations

LECTURE 5 Solving Systems of Linear Equations Recall that we introduced the notion of matrices as a way of standardizing the expression of systems of linear equations In today s lecture I shall show how

### It is time to prove some theorems. There are various strategies for doing

CHAPTER 4 Direct Proof It is time to prove some theorems. There are various strategies for doing this; we now examine the most straightforward approach, a technique called direct proof. As we begin, it