Introduction to the Basics of Algebraic Geometry, Computational Tools and …boehm/iagslides.pdf ·...

25
Introduction to the Basics of Algebraic Geometry, Computational Tools and Geometric Applications JankoB¨ohm University of Saarland 17.05.2004 Abstract This is the manuscript for a talk given in a seminar on computer aided geometric design at the University of Saarland. The aim of the talk was to introduce the basic concepts of algebraic geometry, the computational tools, i.e. resultants and Groebner bases, and their geometric applications. Contents 1 Overview 2 2 Basics of algebra and geometry 2 2.1 Affine varieties .......................... 2 2.2 Varieties defined by ideals .................... 6 2.3 Hilbert Basis Theorem ...................... 7 2.4 The ideal of a variety ....................... 8 2.5 The Nullstellensatz ........................ 11 2.6 Projection and elimination .................... 12 2.7 Some remarks on projective geometry .............. 13 2.7.1 Projective space and projective varieties ........ 13 2.7.2 The Theorem of Bezout ................. 14 3 Computational tools 15 3.1 Resultants ............................. 15 3.2 Groebner bases .......................... 18 1

Transcript of Introduction to the Basics of Algebraic Geometry, Computational Tools and …boehm/iagslides.pdf ·...

Page 1: Introduction to the Basics of Algebraic Geometry, Computational Tools and …boehm/iagslides.pdf · 2008-03-30 · Introduction to the Basics of Algebraic Geometry, Computational

Introduction to the Basics of AlgebraicGeometry, Computational Tools and

Geometric Applications

Janko BohmUniversity of Saarland

17.05.2004

Abstract

This is the manuscript for a talk given in a seminar on computeraided geometric design at the University of Saarland. The aim of thetalk was to introduce the basic concepts of algebraic geometry, thecomputational tools, i.e. resultants and Groebner bases, and theirgeometric applications.

Contents

1 Overview 2

2 Basics of algebra and geometry 22.1 Affine varieties . . . . . . . . . . . . . . . . . . . . . . . . . . 22.2 Varieties defined by ideals . . . . . . . . . . . . . . . . . . . . 62.3 Hilbert Basis Theorem . . . . . . . . . . . . . . . . . . . . . . 72.4 The ideal of a variety . . . . . . . . . . . . . . . . . . . . . . . 82.5 The Nullstellensatz . . . . . . . . . . . . . . . . . . . . . . . . 112.6 Projection and elimination . . . . . . . . . . . . . . . . . . . . 122.7 Some remarks on projective geometry . . . . . . . . . . . . . . 13

2.7.1 Projective space and projective varieties . . . . . . . . 132.7.2 The Theorem of Bezout . . . . . . . . . . . . . . . . . 14

3 Computational tools 153.1 Resultants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153.2 Groebner bases . . . . . . . . . . . . . . . . . . . . . . . . . . 18

1

Page 2: Introduction to the Basics of Algebraic Geometry, Computational Tools and …boehm/iagslides.pdf · 2008-03-30 · Introduction to the Basics of Algebraic Geometry, Computational

4 Geometric Applications 224.1 Implicitation and birational geometry computations . . . . . . 22

1 Overview

The main topics:

• Basics of Algebra and Geometry

Affine varieties

Varieties defined by ideals

Hilbert Basis Theorem

The ideal of a variety

Nullstellensatz

Projection and elimination

Some remarks on projective geometry

• Computational Tools

Resultants

Groebner bases

• Geometric Applications

Implicitation and birational geometry computations

Intersection computations

The genus of a curve

Parametrization of curves and surfaces

2 Basics of algebra and geometry

2.1 Affine varieties

Let k be a field.

Definition 1 An affine variety is the common zero locus of polynomialsf1, ..., fr ∈ k [x1, ..., xn]

V (f1, ..., fr) = {f1 = 0, ..., fr = 0}

2

Page 3: Introduction to the Basics of Algebraic Geometry, Computational Tools and …boehm/iagslides.pdf · 2008-03-30 · Introduction to the Basics of Algebraic Geometry, Computational

Example 2 • V (1) = ∅• V (0) = kn

• Linear Algebra: For linear fi this is the solution space of an inhomo-geneous system of linear equations. Here we know, how to decide ifV (f1, ..., fr) is empty and describe V (f1, ..., fr) by a parametrizationapplying Gauss algorithm.

• The graph of a function: For example the graph of y (x) = x3−1x

:

is V (xy − x3 + 1).

• Plane curve: Consider V (f) for one equation in the plane, e.g. f =y2 − x3 − x2 + 2x− 1:

• Surfaces in k3: Consider V (g) for one equation in 3-space ( an algebraic

3

Page 4: Introduction to the Basics of Algebraic Geometry, Computational Tools and …boehm/iagslides.pdf · 2008-03-30 · Introduction to the Basics of Algebraic Geometry, Computational

set with 1 equation is called a hypersurface), e.g. g = f − z + z2.

• Twisted cubic: Consider the curve C = V (y − x2, z − x3) ⊂ k3 givenby 2 equations in 3-space.

• There are also strange examples, e.g.

V (xz, yz) = V (z) ∪ V (x, y)

decomposes into the x− y-plane V (z) and the z-axis V (x, y)

4

Page 5: Introduction to the Basics of Algebraic Geometry, Computational Tools and …boehm/iagslides.pdf · 2008-03-30 · Introduction to the Basics of Algebraic Geometry, Computational

Varieties, which do not admit a further decomposition are called irre-ducible, otherwise reducible.

Example 3 Consider the following sets given by parametrizations:

• Bezier spline: The curve C ⊂ k2 parametrized by

X (t) = x0(1− t)3 + 3x1t(1− t)2 + 3x2t2(1− t) + x3t

3

Y (t) = y0(1− t)3 + 3y1t(1− t)2 + 3y2t2(1− t) + y3t

3

with t ∈ k goes through the points (x0, y0) , (x3, y3) ∈ k2 and the tangentlines at these points go through (x1, y1) resp. (x2, y2)

See for example the standard vector graphics programs.

• Whitney umbrella: The surface S ⊂ k3 given by the parametrization

X (s, t) = s · tY (s, t) = s

Z (s, t) = t2

with (s, t) ∈ k2.

5

Page 6: Introduction to the Basics of Algebraic Geometry, Computational Tools and …boehm/iagslides.pdf · 2008-03-30 · Introduction to the Basics of Algebraic Geometry, Computational

C and S are also varieties. To see this, we have to describe them byimplicit equations, i.e. as V (f1, ..., fr). Techniques to do this will be oneof the topics. The implicit description would allow us for example to checkeasily, if a given point lies on the variety.

2.2 Varieties defined by ideals

First recall, that an ideal I ⊂ R inside a ring R is an additive subgroup ofR s.t. R-multiples of elements in I again lie inside of I.

An important observation is, that the common zeroset of polynomialsf1, ..., fr only depends on the ideal I = 〈f1, ..., fr〉 ⊂ k [x1, ..., xn] generatedby f1, ..., fr. The reason is, that if f1 (p) = 0, ..., fr (p) = 0 any polynomiallinear combination also vanishes in p:

r∑i=1

si (p)

=0︷ ︸︸ ︷fi (p) = 0

for all si ∈ k [x1, ..., xn]. Hence any different set of generators of I gives thesame zeroset and we should define:

Definition 4 For an ideal I ⊂ k [x1, ..., xn] we define

V (I) = {x ∈ kn | f (x) = 0∀f ∈ I}

Example 5 Consider I = 〈f1, f2〉 with

f1 = 2x2 − 3y2 + 10

f2 = 3x2 − y2 + 1

Gaussian elimination applied to the linear system of equations

2X − 3Y + 10 = 0

3X − Y + 1 = 0

shows thatI =

⟨x2 − 1, y2 − 4

6

Page 7: Introduction to the Basics of Algebraic Geometry, Computational Tools and …boehm/iagslides.pdf · 2008-03-30 · Introduction to the Basics of Algebraic Geometry, Computational

hence V (I) = {(1, 2) , (−1, 2) , (1,−2) , (−1,−2)} consists of 4 points.

–3

–2

–1

0

1

2

3

y

–3 –2 –1 0 1 2 3x

The definition of V (I) naturally raises the question, whether any idealin k [x1, ..., xn] has a finite set of generators, hence any V (I) = V (f1, ..., fr)with some f1, ..., fr ∈ k [x1, ..., xn]. This is answered by the Hilbert BasisTheorem:

2.3 Hilbert Basis Theorem

In k [x] (principal ideal domain) every ideal has a single generator, whichone can find by successively using the Euclidian algorithm to compute thegcd. What about polynomials in several variables?

Definition 6 A ring R is called Noetherian, if every ideal is finitelygenerated or equivalently if R contains no infinitely properly ascendingchain of ideals

I1 $ I2 $ I3 $ ...

(Exercise: recall the proof of the equivalence from your algebra lecture).You can imagine the analogous definition for modules.

Theorem 7 (Hilbert Basis Theorem) If R is Noetherian then so is R [x].

We skip theProof. Let I ⊂ R [x] an ideal. The set of lead coefficients of I generate

an ideal L ⊂ R which is finitely generated by some g1, ..., gr ∈ R since R isNoetherian. By definition for each gi there is an mi ∈ N0 s.t.

I 3 fi = gixmi + lower order terms

7

Page 8: Introduction to the Basics of Algebraic Geometry, Computational Tools and …boehm/iagslides.pdf · 2008-03-30 · Introduction to the Basics of Algebraic Geometry, Computational

and let J = 〈f1, ..., fr〉 ⊂ R [x] and m = max {m1, ...,mr}. Modulo thegenerators of J we can reduce the degree of elements of I to degree < m. TheR-module M generated by 1, x, ..., xm−1 is finitely generated hence also M∩Iis finitely generated by some h1, ..., hl ∈ R [x] and I = 〈f1, ..., fr, h1, ..., hl〉.

2.4 The ideal of a variety

Given an ideal I, we formed the set of common zeros V (I) of the elements ofI. Conversely given some set S ⊂ kn, we can consider the set of polynomialsI (S) vanishing on S, which is indeed an ideal (exercise: prove this).

Definition 8 For S ⊂ kn let I (S) = {f ∈ k [x1, ..., xn] | f (x) = 0∀x ∈ S}.

Obviously it holds, that

Remark 9 J1 ⊂ J2 ⇒ V (J2) ⊂ V (J1)S1 ⊂ S2 ⇒ I (S2) ⊂ I (S1)

So one can start to study a given variety by studying the hypersurfaces,in which it is contained V (J) ⊂ V (f) e.g. the twisted cubic lies insideV (y − x2) and V (z − x3). By the above correspondence this naturally leadsto the ideal membership problem: Given an ideal J ⊂ R check, if a givenf ∈ R lies inside J . For k [x] this is solved by the division with remainderwith respect to the single generator of J (found by the Euclidian algorithm).

How do the two processes forming I (S) and V (J) relate to each other?One could expect, that J = I (V (J)) for any ideal J , but this is not true:Consider for example the ideal J = 〈x2〉 ⊂ k [x], where V (J) = {0} ⊂ k, soI (V (J)) = 〈x〉. At least we can note, that if f ∈ J and p ∈ V (J), thenf (p) = 0 so f ∈ I (V (J)), i.e.

Remark 10 For every ideal J

J ⊂ I (V (J))

What about the relation the other way around? Since every polynomialin I (S) is vanishing on S, we note:

Remark 11 For any set S ⊂ kn

S ⊂ V (I (S))

If S = V (J) we can get the other inclusion by applying V to J ⊂I (V (J)), hence

8

Page 9: Introduction to the Basics of Algebraic Geometry, Computational Tools and …boehm/iagslides.pdf · 2008-03-30 · Introduction to the Basics of Algebraic Geometry, Computational

Remark 12 If S is a variety i.e. S = V (J) for some ideal J , then S =V (I (S)).

By playing with V and I you can easily check:

Remark 13 V (I (S)) is the smallest variety containing S.

(If S is any set and V (J) some variety with S ⊂ V (J) ⊂ V (I (S))then I (V (J)) ⊂ I (S) so V (I (S)) ⊂ V (I (V (J))) = V (J) ⊂ V (I (S)) soV (I (S)) = V (J)).

Example 14 Take S = {(x, 0) ∈ R2 | 0 < x < 1}. Then I (S) = 〈y〉 andV (I (S)) is the whole x-axis.

For a small part S of a circle V (I (S)) gives the whole circle

The blue + cyan part is V (I (S)) for the blue Bezier spline S:

If you know about topology, then note, that we can consider V (I (S))as the closure of S in a suitable topology, the Zariski topology. You canimagine, that as the closed sets we should take the affine varieties. To check,that this indeed defines an topology one has to check that ∅, kn are affinevarieties and finite unions and infinite intersections of varieties are again

9

Page 10: Introduction to the Basics of Algebraic Geometry, Computational Tools and …boehm/iagslides.pdf · 2008-03-30 · Introduction to the Basics of Algebraic Geometry, Computational

varieties. So you should prove the following remark (and also keep in mindthat the polynomial ring is Noetherian):

Given two ideals J1 and J2 we can form the sum J1 + J2, product J1 · J2

and intersection J1 ∩ J2, where

J1 + J2 = {f1 + f2 | fi ∈ Ji} J1 · J2 = 〈f1 · f2 | fi ∈ Ji〉

Remark 15 The vanishing loci are

V (J1 + J2) = V (J1) ∩ V (J2)

V (J1 · J2) = V (J1 ∩ J2) = V (J1) ∪ V (J2)

so unions and intersections of varieties are again varieties.

(Exercise: prove this).

Example 16 With J1 = 〈y − x2〉 and J2 = 〈z − x3〉 the twisted cubic givenby J1 + J2 is the intersection of V (J1), V (J2).

Definition 17 An (k) is kn together with the Zariski topology.

Working with affine varieties, it is natural to ask, what kind of maps weshould consider between them. The good maps with respect to the Zariskitopology are the ones (locally) given by polynomials. Given a variety S ⊂ kn

any polynomial function on kn induces a polynomial function on X and twosuch functions f1, f2 are identical, iff f1 − f2 ∈ I (S) so the polynomialfunctions on S are the elements of the coordinate ring

k [x1, ..., xn] /I (S)

Example 18 Consider the map (parametrization)

ϕ : A1 (R) → A2 (R)t 7→ (t2 + 1, t3 + t)

and let C = image (ϕ).Then I (C) = 〈y2 − x3 − x2〉 (you can easily checkthe inclusion ⊃ by substituting the parametrization into the equation). Weobserve, that (0, 0) ∈ V (I (C)) but (0, 0) /∈ C. Actually one can prove, that

C = V (I (C)) = C ∪ {(0, 0)}

10

Page 11: Introduction to the Basics of Algebraic Geometry, Computational Tools and …boehm/iagslides.pdf · 2008-03-30 · Introduction to the Basics of Algebraic Geometry, Computational

2.5 The Nullstellensatz

If 1 ∈ J then V (J) = ∅ (In k [x] we can check 1 ∈ J easily by computingthe single generator of J). What about the converse? In general this is false,e.g. consider V (x2 + 1) ⊂ A1 (R), but if k is algebraically closed, then it istrue (since any polynomial decomposes in linear factors). It turns out to betrue also in polynomial rings with more than one variable:

Theorem 19 (Week Nullstellensatz) For J ⊂ k [x1, ..., xn] an ideal itholds: If k = k and V (J) = ∅ then 1 ∈ J .

(Without proof). This says, that any system of equations generatingan ideal strictly smaller that k [x1, ..., xn] has a common zero. So you canconsider it as the fundamental theorem of algebra in several variables.

Definition 20 For an ideal J the radical ideal is√

J = {f ∈ R | ∃n : fn ∈ J}

Example 21√〈x2 (x− 1)〉 = 〈x (x− 1)〉. So think of the radical as making

multiple zeros to zeros of order 1.

Remark 22√

J ⊂ I (V (J)) and V (J) = V(√

J).

Proof. If f ∈ √J i.e. fm ∈ J so fm (p) = 0 ∀p ∈ V (J), hence f (p) = 0∀p ∈ V (J), i.e. f ∈ I (V (J)).

If we apply V to the inclusion√

J ⊂ I (V (J)) we get V (J) = V (I (V (J))) ⊂V

(√J).

For the other inclusion apply V to J ⊂ √J and get V

(√J)⊂ V (J).

11

Page 12: Introduction to the Basics of Algebraic Geometry, Computational Tools and …boehm/iagslides.pdf · 2008-03-30 · Introduction to the Basics of Algebraic Geometry, Computational

Theorem 23 (Strong Nullstellensatz) For J ⊂ k [x1, ..., xn] it holds: Ifk = k then

I (V (J)) =√

J

We skip theProof. (Trick of Rabinovich) Take generators of J

J = 〈f1, ..., fs〉

and let f ∈ I (V (J)). Then for L = 〈J, yf − 1〉 ⊂ k [x1, ..., xn, y] we haveV (L) = ∅ (since for all p ∈ V (J) we get yf (p)− 1 = −1 6= 0), hence by theweak Nullstellensatz there are ai and b, such that

∑i

aifi + b (1− yf) = 1

in particular for y = 1f

and multiplying by a high enough power of f we getfm ∈ J .

2.6 Projection and elimination

In linear algebra Gauss algorithm parametrizes the solution space of a linearsystem of equations by a coordinate space. This can be viewed as the pro-jection of the solution space. Solving nonlinear systems of equations we alsocan apply projection.

For any ideal I ⊂ R = k [x1, ..., xn] we consider the elimination ideal

Im = I ∩ k [xm+1, ..., xn]

and the projection

πm : An (k) → An−m (k)πm (a1, ..., an) = (am+1, ..., an)

Example 24 Consider

I =⟨x2 − 1, y2 − 4

S = V (I) = {(1, 2) , (−1, 2) , (1,−2) , (−1,−2)}

then π1 (S) = {−2, 2} and I1 = 〈y2 − 4〉.

So what do you think is the relation between them?

12

Page 13: Introduction to the Basics of Algebraic Geometry, Computational Tools and …boehm/iagslides.pdf · 2008-03-30 · Introduction to the Basics of Algebraic Geometry, Computational

Example 25 If S is some variety, then in general the projection is not avariety, e.g. for the hyperbola S = V (xy − 1) we have π1 (S) = A1 (k) \ {0}

hence the right question is, how to describe the Zariski closure of the projec-tion:

Theorem 26 If k = k then

πm (V (I)) = V (Im)

Proof. For any (am+1, ..., an) = πm (a1, ..., an) ∈ πm (V (I)) we observethat

0 = f (a1, ..., an) = f (am+1, ..., an) for all f ∈ Im

(since f ∈ I), hence πm (V (I)) ⊂ V (Im). V (Im) being closed, this also holdsfor the closure.

Any g ∈ I (πm (V (I))) ⊂ k [xm+1, ..., xn] can be considered as an elementof k [x1, ..., xn] and vanishes on V (I) so by the Nullstellensatz ∃m : gm ∈ I,but then gm ∈ I∩k [xm+1, ..., xn] = Im i.e. I (πm (V (I))) ⊂ √

Im = I (V (Im))hence applying V

V (Im) = V (I (V (Im))) ⊂ V (I (πm (V (I)))) = πm (V (I))

We will see soon, how to compute Im.

2.7 Some remarks on projective geometry

2.7.1 Projective space and projective varieties

In affine space A2 (k) we expect two lines to meet in one point, but there arespecial pairs of lines, for which this does not hold, namely two parallel lines.We fix this problem by the following:

13

Page 14: Introduction to the Basics of Algebraic Geometry, Computational Tools and …boehm/iagslides.pdf · 2008-03-30 · Introduction to the Basics of Algebraic Geometry, Computational

We define the projective n-space Pn (k) over k as

Pn (k) = An+1 (k) / ∼

with (a0, ..., an) ∼ (b0, ..., bn) ⇔ ∃λ ∈ k∗ with (a0, ..., an) = λ (b0, ..., bn) anddenote the equivalence classes by (a0 : ... : an). So we identify all points lyingon the same line through (0, ..., 0).

Example 27 We can think of P2 (R) as the half sphere with opposite pointson the boundary identified. We observe, that P2 (R) = A2 (R) ∪ P1 (R) is theunion of A2 (R) with the line at infinity P1 (R) by stereographic projection.

So how to define varieties in projective space? All points on lines throughthe origin of An+1 (k) are identified, so we have to define varieties by poly-nomials, which satisfy

f (p) = 0 ⇒ f (λp) = 0 for all λ

If k is infinite, this is equivalent to f being homogeneous, i.e. all monomialsin f have the same degree. For example x2y + xy2 is homogeneous, butx2y + xy is not. In terms of ideals we should consider homogeneous ideals,i.e. ideals which have homogenous generators. One of the reasons, whyconsidering projective space is:

2.7.2 The Theorem of Bezout

Theorem 28 If k is algebraically closed and f, g ∈ k [x, y, z] are homoge-neous of degrees d and e with no common factor, then the curves C1 = V (f)and C2 = V (g) intersect in d · e points, counted with multiplicity.

Example 29 The lines L1 = V (x) and L2 = V (x− z) in P2 meet at thepoint (0 : 1 : 0) since x = 0 and z = 0.

14

Page 15: Introduction to the Basics of Algebraic Geometry, Computational Tools and …boehm/iagslides.pdf · 2008-03-30 · Introduction to the Basics of Algebraic Geometry, Computational

The line L1 = V (x) and the parabola C = V (yz − x2) meet at (0 : 0 : 1)and (0 : 1 : 0).

The line L2 = V (y) and the parabola C meet in (0 : 0 : 1) with multiplicity2, as the parabola is tangent to L2.

3 Computational tools

Working with varieties, the two key computational tools are resultants (fast,applicable in special situations) and Groebner bases (the universal tool).

3.1 Resultants

Resultants are used to solve systems of polynomial equations and determine,whether or not a solution exists. They produce elements in the eliminationideals. We first give some results in K [x], keeping in mind, that we can takeK = k (x2, ..., xn) as the field .

Given f, g ∈ K [x] of positive degree l = deg f and m = deg g, writef =

∑li=0 fl−ix

i and g =∑m

i=0 gm−ixi. If f and g have a common factor h of

nonzero degree i.e. f = f1h and g = g1h then with A = g1 and B = −f1 weget

Af + Bg = 0 with deg A ≤ m− 1 and deg B ≤ l − 1

Conversely given this, assume B 6= 0 and f and g do not have a commonfactor of positive degree. The extended Euclidian algorithm gives a, b ∈ K [x]with af + bg = 1 so

B = Baf + Bbg = (Ba− bA) f

i.e. deg B ≥ l a contradiction. So we proved:

Proposition 30 For f, g ∈ K [x] of positive degree deg f = l and deg g = mit is equivalent:

15

Page 16: Introduction to the Basics of Algebraic Geometry, Computational Tools and …boehm/iagslides.pdf · 2008-03-30 · Introduction to the Basics of Algebraic Geometry, Computational

1. f and g have a common factor of positive degree.

2. There are 0 6= A,B ∈ K [x] with Af + Bg = 0 with deg A ≤ m− 1 anddeg B ≤ l − 1.

The equation Af +Bg = 0 is equivalent to the linear system of equationsin the coefficients of A =

∑m−1i=0 am−i−1x

i and B =∑l−1

i=0 bl−i−1xi

Syl (f, g, x) ·

a0...bl−1

=

0...0

with some matrix Syl (f, g, x) called the Sylvester matrix

Syl (f, g, x) =

f0 g0...

. . ....

. . .

fl f0 gm g0

. . ....

. . ....

fl gm

e.g. the coefficient of the lead term xl+m−1 is given by f0a0 + g0b0 and theconstant coefficient is given by flam−1 + gmbl−1.

So defining the Sylvester resultant Res (f, g, x) = det Syl (f, g, x) we get:

Proposition 31 For f, g ∈ K [x] of positive degree deg f = l and deg g = mit is equivalent:

1. f and g have a common factor of positive degree.

2. There are 0 6= A,B ∈ K [x] with Af + Bg = 0 with deg A ≤ m− 1 anddeg B ≤ l − 1.

3. Res (f, g, x) = 0.

Furthermore there are A,B ∈ K [x] polynomial expressions in the coeffi-cients of f and g with Af + Bg = Res (f, g, x).

For the second part we modify the right hand side of linear system ofequations in the proof 2 ⇔ 3.

Given f, g ∈ k [x1, ..., xn] of positive degree in x1, we can compute theresultant Res (f, g, x1) ∈ k [x2, ..., xn] by computing in k (x2, ..., xn) [x1] andnoting, that we do not have to invert coefficients in the course of the com-putation.

16

Page 17: Introduction to the Basics of Algebraic Geometry, Computational Tools and …boehm/iagslides.pdf · 2008-03-30 · Introduction to the Basics of Algebraic Geometry, Computational

Proposition 32 For f, g ∈ R = k [x1, ..., xn] and I = 〈f, g〉, we get

1. Res (f, g, x1) ∈ I1 = I ∩ k [x2, ..., xn] is in the first elimination ideal.

2. Res (f, g, x1) = 0 ⇔ f and g have a common factor of positive degree.

Proof.

1. We can write Res (f, g, x1) = Af +Bg with A,B ∈ R and Res (f, g, x1)is an integer polynomial in the coefficients of f, g with respect to x1.

2. We note by above Proposition and Gauss theorem

Res (f, g, x1) = 0⇔ f, g have common factor of positive degree in k (x2, ..., xn) [x1]⇔ f, g have common factor of positive degree in k [x2, ..., xn] [x1]

Example 33 Consider I = 〈f1, f2〉 with

f1 = x + 2xy + y2

f2 = x2 − y2

so

Res (f1, f2, y) = det Syl (f1, f2, y) = det

1 0 −1 02x 1 0 −1x 2x x2 00 x 0 x2

= −x2 (x− 1) (3x + 1)

i.e. the x-coordinates of the solutions have to satisfy this equation. Insertingx1 = 0, x2 = 1 and x3 = −1

3in f2 gives y1 = 0, y2 = ±1 and y3 = ±1

3.

Checking these tuples with f1 gives the solutions

(x, y) = (0, 0) , (1,−1) ,

(−1

3,−1

3

)

17

Page 18: Introduction to the Basics of Algebraic Geometry, Computational Tools and …boehm/iagslides.pdf · 2008-03-30 · Introduction to the Basics of Algebraic Geometry, Computational

3.2 Groebner bases

Now we will consider the algorithm, which allows us to do the computationsin polynomial rings, e.g. treat the ideal membership problem. In the caseof k [x] we can find the generator of an ideal applying the Euclidian algo-rithm and check ideal membership using division with remainder. Here wesucessively divide by the lead term of generator. The lead term is given byordering the monomials with respect to the degree.

Example 34 Test if V (x2 + x + 1) ⊂ V (x4 + x2 + 1):

(x4 + x2 + 1) : (x2 + x + 1) = x2 − x + 1x4 + x3 + x2

−x3 + 1−x3 − x2 − x

x2 + x + 1

so the remainder is zero, hence the answer is yes.

In the multivariate case we do not know, how to find the lead term (e.g.consider xy2 + x2y) to do a division algorithm and then the analogue of theEuclidian algorithm. So we need:

Definition 35 (monomial order) To any monomial xα = xα11 · ... · xαn

n wecan associate the exponent vector α = (α1, ..., αn). A monomial order is atotal ordering > on the set of exponent vectors (here total means: for any 2elements it holds α < β, α = β or α > β) with the following properties:

1. Multiplication of monomials is respected i.e. for all γ we have α > β⇒ α + γ > β + γ.

2. Any nonempty set has a smallest element.

There are various monomial orders. Here we will only consider

Example 36 (Lexicographic order) α > β ⇔ the leftmost nonzero entryof α− β is positive.

For example in k [x, y, z]

x = (1, 0, 0) > y = (0, 1, 0) > z = (0, 0, 1)

xy2 = (1, 2, 0) > (0, 3, 4) = y3z4

x3y2z4 = (3, 2, 4) > (3, 2, 1) = x3y2z

With respect to a given monomial ordering, for any polynomial f wedenote by in (f) the largest monomial appearing in f and by lt (f) the cor-responding term in f (i.e. the product of in (f) by its coefficient).

18

Page 19: Introduction to the Basics of Algebraic Geometry, Computational Tools and …boehm/iagslides.pdf · 2008-03-30 · Introduction to the Basics of Algebraic Geometry, Computational

Algorithm 37 (Division with remainder) Given f ∈ R = k [x0, ..., xn]and g1, ..., gm ∈ R we can write

f =∑

aigi + r

where no monomial of r is divisible by any in (gi) by the following algorithm:a=(0..0);remainder=0;

while f!=0 do (

if exist i with in(g#i) divides in(f) then (

c=lt(f)/lt(g#i);

a#i=a#i+c;f=f-c*g#i;

) else (

remainder=remainder+lt(f);

f=f-lt(f);

);

);

The process terminates, since in every step the initial term decreases andthis has to stop, since every set of monomials has a smallest element. Note,that in general in any step we have different possible choices of i such thatin (fi) divides the initial term, hence the output is not unique.

Example 38 Using lex divide x2y + xy2 + y2 by xy − 1 and y2 − 1.

x2y +xy2 + y2 = x (xy − 1) + y (xy − 1) + x + 1 (y2 − 1) + y + 1

x2y − x

xy2 +x + y2

xy2 − yx +y2 + yy2 + yy2 − 1y + 1

Note, that unlike in the one variable case, we have to put terms into theremainder also in the intermediate steps.

Using lex we divide x2 − y2 by x2 + y and xy + x:

x2 −y2 = 1 (x2 + y) + (−y2 − y)x2 + y−y2 − y

19

Page 20: Introduction to the Basics of Algebraic Geometry, Computational Tools and …boehm/iagslides.pdf · 2008-03-30 · Introduction to the Basics of Algebraic Geometry, Computational

This seems to be nonsense, as

x2 − y2 = −y(x2 + y

)+ x (xy + x)

so x2 − y2 ∈ 〈x2 + y, xy + x〉 and the division algorithm does not return 0.The problem lies in the fact, that in this equation the two lead terms cancel.So we can repair the situation by adding all polynomials to the list of divisors,which we can build by cancelling lead terms between divisors. This leads tothe notion of a Groebner basis of an ideal:

Definition 39 g1, ..., gr ∈ I are called a Groebner basis of I if in (g1) , ..., in (gr)generate the ideal generated by all initial monomials of elements in I.

Remark 40 (Ideal membership) If g1, ..., gr is a Groebner basis of I thenf ∈ I iff division by g1, ..., gr gives 0.

Proof. If f ∈ I then division with remainder gives

f =∑

aigi + r

where no monomial of r is divisible by any in (gi). Since r ∈ I and g1, ..., gr

is a Groebner basis in (r) ∈ 〈in (g1) , ..., in (gr)〉 so there is an i such thatin (gi) | in (r) hence r = 0.

In the example a Groebner basis of I = 〈x2 + y, xy + x〉 is given by

G ={y2 + y, x2 + y, xy + x

}

Since we can obtain x2−y2 by cancelling lead terms and division of x2−y2

by x2 + y and xy + x yields −y2 − y, this element has to be contained inthe Groebner basis. We need a criterion telling us, at which point we havereached a Groebner basis:

Given two polynomials the syzygy pair cancels the lead terms:

Definition 41 (Syzygy polynomial) For f, g ∈ R the syzygy polynomialis

S (f, g) =lcm (in (f) , in (g))

lt (f)f − lcm (in (f) , in (g))

lt (g)g

Theorem 42 g1, ..., gr ∈ I are a Groebner basis iff S (gi, gj) divided byg1, ..., gr is zero for all i, j.

20

Page 21: Introduction to the Basics of Algebraic Geometry, Computational Tools and …boehm/iagslides.pdf · 2008-03-30 · Introduction to the Basics of Algebraic Geometry, Computational

Proof. ⇒: S (gi, gj) ∈ I so see the remark on the ideal membershipquestion.

⇐: Let f ∈ I. Since all syzygy polynomials reduce to 0 modulo g1, ..., gr

we can writef =

∑i

aigi

We have to show, that in (f) ∈ 〈in (g1) , ..., in (gr)〉. If in (f) = in (aigi)then this is the case, otherwise in the sum

∑i aigi some lead terms cancel.

In this case by assumtion we can replace any syzygy pair in the sum by anR-combination of g1, ..., gr.

Exercise: Use the theorem to check in the above example, that G is indeeda Groebner basis.

Algorithm 43 (Buchberger) By the above theorem the following algorithmcomputes a Groebner basis:

G={g1,...,gr};repeat (

G’=G;

for all tuples p,q in G do (

S=divide(S(p,q),G);

if S!=0 then G=append(G,S);

);

) until G’==G;

By Noetherian property of R the algorithm terminates.

Example 44 In k [t, z, y, x] with respect to the lexicographic order t > z >y > x we compute a Groebner basis of

I =⟨t2 − x, t3 − y, t4 − z

In each step the first column denotes the coefficients of the syzygy polynomialand the second the division with remainder:

 −tx + y  −t2x + z  −ty + z  t3y − zxt2 − x t t2 x tyt3 − y 1 tt4 − z 1 1 x−tx + y 1 −t3 −yz − x2 1 1 −x−ty + x2 1y2 − x3 1

21

Page 22: Introduction to the Basics of Algebraic Geometry, Computational Tools and …boehm/iagslides.pdf · 2008-03-30 · Introduction to the Basics of Algebraic Geometry, Computational

You can check as an exercise, that all other syzygy polynomials reduce to 0.Hence a Groebner basis of I is given by y2−x3, z−x2, tx−y, ty−x2, t2−x.Note, that we can do not need t3 − y and t4 − z, since they appear in a

syzygy polynomial with coefficient 1 and by this get a Groebner basis, whichis minimal with respect to the following notation:

Definition 45 A Groebner basis g1, ..., gr is called minimal, if removing agenerator from 〈in (g1) , ..., in (gr)〉 gives a strictly smaller ideal.

4 Geometric Applications

4.1 Implicitation and birational geometry computations

Computing Im with Groebner bases:

Theorem 46 If G = {g1, ..., gr} is a Groebner basis of I ⊂ R with respectto lex, then

Gm := G ∩ k [xm+1, ..., xn]

is a Groebner basis of Im ⊂ k [xm+1, ..., xn] with respect to lex.

Proof. We first show Im = 〈Gm〉:Obviously Gm ⊂ Im. On the other hand take f ∈ Im ⊂ I and do division

with remainder by g1, ..., gr. In the first step

f = aj1gj1 + r1

with in (gj1) | in (f) so in (gj1) ∈ k [xm+1, ..., xn]. Any term containingx1, ..., xm would be bigger than in (gj1) in lex ordering, so gj1 ∈ k [xm+1, ..., xn]∩I = Im. As a consequence r1 ∈ Im so inductively we get

f = aj1gj1 + ... + ajsgjs

with gji∈ Im and the remainder being 0 because f ∈ I and (g1, ..., gr) is a

Groebner basis of I. So we proved that f ∈ 〈Gm〉.We skip the proof that Gm is a Groebner basis.Projection allows us to describe the image of polynomial maps. This is

the key computational ingredient of the large area of birational geometry(where more generally the maps are given by rational functions):

Example 47 Consider the curve C = ϕ (A1 (k)) with

ϕ : A1 (k) → A3 (k)t 7→ (t2, t3, t4)

22

Page 23: Introduction to the Basics of Algebraic Geometry, Computational Tools and …boehm/iagslides.pdf · 2008-03-30 · Introduction to the Basics of Algebraic Geometry, Computational

The graph Γ (ϕ) of ϕ has projections to the source and target of ϕ

Γ (ϕ) = {(t, ϕ (t)) | t ∈ A1 (k)} ⊂ A1 (k)× A3 (k)↙ ↘ π1

A1 (k) −→ϕ

A3 (k)

and image (ϕ) = π1 (Γ (ϕ)). So in order to get the image of ϕ we have tocompute the first elimination ideal of

I (Γ (ϕ)) =⟨x− t2, y − t3, z − t4

By the above example a Groebner basis of I (Γ (ϕ)) in k [t, z, y, x] with respectto t > z > y > x is given by y2 − x3, z − x2, tx− y, ty − x2, t2 − x, hence

image (ϕ) = V(y2 − x3, z − x2

)

(Note that in this case image (ϕ) is closed, in general this is not true).

This is the key computational ingredient of the large area of birationalgeometry, where more generally the maps are given by rational functions,think for example of the parametrization of the circle.

Proposition 48 Suppose k = k and we are given a rational map

ϕ : Am (k) \Z → An (k)

t = (t1, .., tm) 7→(

f1(t)g1(t)

, ..., fn(t)gn(t)

)

with fi, gi ∈ k [t1, .., tm] and Z = V (g), g = g1 · ... · gn the zeros of thedenominators. Then

image (ϕ) = V (Im+1)

with

I = 〈g1x1 − f1, ..., gnxn − fn, 1− gs〉 ⊂ k [s, t1, .., tm, x1, ..., xn]

Note, that this stays true for any infinite field.

23

Page 24: Introduction to the Basics of Algebraic Geometry, Computational Tools and …boehm/iagslides.pdf · 2008-03-30 · Introduction to the Basics of Algebraic Geometry, Computational

We skip the proof, as the idea is simple: To describe the graph, wemultiply the equations xi = fi(t)

gi(t)by the denominator and add an additional

variable s and the equation 1 − gs to remove the solutions (x, t) with somegi (x) = 0.

Example 49 Consider the parametriziaton of the circle:

ϕ : A1 (k) \Z → A2 (k) , t 7→ (x (t) , y (t))

x (t) =1− t2

t2 + 1, y (t) =

2t

t2 + 1

with Z = V (t2 + 1), given by the second intersection point of the line y =t (x + 1) with the circle:

A Groebner basis of I =⟨(t2 + 1) x− (1− t2) , (t2 + 1) y − 2t, 1− (t2 + 1)

2s⟩

with respect to lex s > t > x > y is given by

{x2 + y2 − 1, ty + x− 1, tx + t− y, s− 1

2x− 1

2

}

and hence I2 = 〈x2 + y2 − 1〉. What kind of information gives the second orthird equation?

The following proposition describes the relationship between resultantsand rational implicitation:

Proposition 50 Let k = k. Given f, g ∈ k [t, x1, ..., xn]

f1 = awtw + .. + a0

f2 = bltl + .. + b0 with ai, bi ∈ k [x1, ..., xn]

for any zero c = (c1, ..., cn) of Res (f1, f2, t) with aw (c) 6= 0 and bl (c) 6= 0,there is a t0 with f1 (t0, c) = 0 and f2 (t0, c) = 0.

24

Page 25: Introduction to the Basics of Algebraic Geometry, Computational Tools and …boehm/iagslides.pdf · 2008-03-30 · Introduction to the Basics of Algebraic Geometry, Computational

Proof. If aw (c) 6= 0 and bl (c) 6= 0 then

0 = Res (f1, f2, t) (c) = Res (f1 (t, c) , f2 (t, c) , t)

hence f1 (t, c) and f2 (t, c) have a common factor, so a common zero.Explore this in the example of the circle:

Example 51 Computing the resultant of f1 = (t2 + 1) x − (1− t2), f2 =(t2 + 1) y − 2t, we get

Res (f1, f2, t) = det

x + 1 0 y 00 x + 1 −2 y

x− 1 0 y −20 x− 1 0 y

= 4x2 + 4y2 − 4 ∈ I2

The proposition tells us, that any c ∈ A2 (k) with Res (f1, f2, t) (c) = 0 is apoint in the image of the parametrization ϕ or is a root of

a2 = x + 1 or b2 = y

i.e. c ∈ {(−1, 0) , (1, 0)}, so

V (Res (f1, f2, t)) = image (ϕ) ∪ {(−1, 0)} = image (ϕ)

The point (−1, 0) is called a base point (i.e. a common zero) of the linearsystem lt = {y − t (x + 1)} used to parametrize the circle.

References

[1] Cox, Little, O´Shea: Ideals, Varieties, and Algorithms. UTM, Springer(1996).

[2] Decker, Schreyer: Varieties, Groebner Bases, and Algebraic Curves.Manuscript.

[3] Schenck: Computational Algebraic Geometry. LMSST 58, CambridgeUniversity Press (2003).

25