scieee AI-readable full text Open interactive document viewer

The computation of the logarithmic cohomology for plane curves

Castro Jiménez, Francisco Jesús; Takayama, Nobuki

Abstract

We will give algorithms of computing bases of logarithmic cohomology groups for square-free polynomials in two variables.

Full text

arXiv:0712.0001v2 [math.AG] 20 Jan 2008 The Computation of the Logarithmic Cohomology for Plane Curves Francisco Jes´us Castro-Jim´enez and Nobuki Takayama November 28, 2007, Revised December 13, 2007 Abstract: We will give algorithms of computing bases of logarithmic cohomology groups for square-free polynomials in two variables. 1 Introduction Let us denote by R=C[x] = C[x1,...,xn] the polynomial ring, by An= Chx1,...,xn, ∂1,...,∂nithe Weyl algebra of order nover the complex numbers Cand by (Ω• R, d) the complex of polynomial (or regular) differential forms (i.e. the complex of differential forms with polynomial coefficients) where dis the exterior derivative. The elements of Anare called linear differential operators with polynomial coefficients. An element P(x, ∂) in Ancan be written as a finite sum P(x, ∂) = Pαaα(x)∂αwhere α= (α1,...,αn)∈Nn,aα(x)∈Rand ∂α=∂α1 1···∂αn n. Here ∂istands for the partial derivative ∂ ∂xi. For a non zero polynomial f∈Rwe denote by Rfthe ring of rational functions Rf={g fm|g∈R, m ∈N} and by (Ω• f, d) := (Rf⊗RΩ• R, d) the complex of rational differential forms with coefficients in Rfwhere dis the corresponding exterior derivative. Let us denote by DerC(R) the free R–module of polynomial vector fields (or equivalently of C-linear derivations of R). Following K. Saito [17] we will denote by DerR(−log f) the R–module of logarithmic vector fields with respect to f, i.e. DerR(−log f) = {δ= n X i=1 ai(x)∂i∈DerC(R)|δ(f)∈R·f}. Der(−log f) is canonically isomorphic to the R–module SyzR(∂1(f),...,∂n(f), f) of syzygies among (∂1(f),...,∂n(f), f). This isomorphism associates the logarithmic vector field δ=Piai(x)∂iwith the syzygy (a1(x), . . . , an(x),−δ(f) f). We will denote simply Der(−log f) if no confusion is possible. If fis a non zero constant, then Der(−log f) = DerC(R). So we will assume from now that fis a non constant polynomial in R. 1 It is clear that fDerC(R)⊂DerR(−log f)⊂DerC(R) and then Der(−log f) has rank nas R–module. The R–module DerR(−log f) does not depend on the polynomial fbut only on the hypersurface D=V(f) := {a∈Cn|f(a) = 0} ⊂ Cn. Assume fis reduced (i.e. fis square-free). According to K.Saito [17] a rational differential p-form ω∈Ωp fis said to be logarithmic with respect to f (or with respect to the hypersurface D=V(f)⊂Cn) if both fω and fdω are regular (i.e. fω ∈Ωp Rand fdω ∈Ωp+1 R). We denote by Ωp(log f) the R–module of logarithmic differential p–forms with respect to f. K. Saito [17, Corollary 1.6] proved that DerR(−log f) is a reflexive R–module whose dual is Ω1(log f). We denote by (Ω•(log f), d) the complex 0−→ Ω0(log f)d −→ Ω1(log f)d −→ ··· d −→ Ωn(log f)−→ 0 which will be called the logarithmic de Rham complex and is also, for simple notation, denoted by Ω•(log f) if no confusion arises. Algorithms of computing dimensions and bases of the de Rham cohomology groups Hi(Ω• f) are given by T.Oaku and N.Takayama [13], [15] and U.Walther [19]. Here, fis any non-zero polynomial in n-variables. The purpose of this paper is to give algorithms of computing dimensions and bases of the logarithmic de Rham cohomology groups Hi(Ω•(log f)) as C-vector spaces in the case of two variables. 1.1 Logarithmic Comparison Theorem The rings Rand Rfhave natural structures of left An–module where ∂iacts on a polynomial gand on a rational function g fmas the partial derivative with respect to xi. The de Rham complex of a left An–module M, denote by DR(M), is by definition the complex of C–vector spaces (M⊗RΩ• R,∇•) where ∇p:M⊗RΩp R→M⊗RΩp+1 R is defined, for p≥1, by ∇p(m⊗ω) = ∇0(m)∧ω+m⊗dω and ∇0(m) = Pi∂i(m)⊗dxi. Note that am ⊗ω=m⊗aω for m∈M,ω∈Ωpand a∈R. The complexes Ω• fand DR(Rf) are naturally isomorphic. For any non zero f∈R, the inclusion ifis a natural morphism of complexes if: Ω•(log f)→Ω• f. We say (see [3]) that fsatisfies the (global) logarithmic Comparison Theorem if the morphism ifis a quasi-isomorphism (i.e. if ifinduces an isomorphism Hp(Ω•(log f)) →Hp(Ω• f) for any p). If n= 2, by [3, Cor. 2.7] and [2, Th. 1.3], ifis a quasi-isomorphism if and only if fis a quasi-homogeneous polynomial. 2 1.2 The case n= 2. Bases for DerR(−log f) If n= 2, any reflexive R–module is projective and then, by Quillen-Suslin theorem, this R–module is free. So, if n= 2, the R-module DerR(−log f) is free of rank 2. In this case, we would like to compute a basis of DerR(log f) by taking the polynomial f=f(x, y) as input. By using the isomorphism Der(−log f)≃SysR(∂1(f), ∂2(f), f) and using Groebner basis computation, a system of generators of DerR(−log f) can be calculated. Then we can apply Quillen-Suslin algorithm (as presented for example in [8] and implemented in [6]) to compute such a basis. Known Quillen-Suslin algorithms use Groebner bases computation. Nevertheless, in some cases, for a big family of polynomials f(x1, x2) we will use an easier way to compute a basis of Der(−log f). First of all, we can assume fto be a reduced polynomial since Der(−log f) depends only on the affine plane curve D=V(f) = {(a1, a2)∈C2|f(a1, a2) = 0} ⊂ C2. Assume the plane curve D=V(f) is not smooth. The singular points of the plane curve D=V(f) (i.e. the affine algebraic set Sing(D) := V(f, f1, f2) = {a= (a1, a2)∈C2|f(a) = f1(a) = f2(a) = 0}) –where f1=∂1(f), f2=∂2(f) – consists in a finite number of points (and it is not the empty set). We will consider the affine plane C2as a Zariski open subset of the projective plane P2(C), the affine point (a1, a2) is mapped into the point with homogeneous coordinates (1 : a1:a2). Coordinates in P2(C) will be denoted by (x0:x1:x2) and then the line at infinity is defined by x0= 0. Let us denote h=H(f), h1=H(f1) and h2=H(f2) where H(−) denotes dehomogenization with respect to the variable x0. We will denote by Z= VP(h, h1, h2)⊂P2(C) (resp. Z′=V(h, h1, h2)⊂C3) the projective algebraic set (resp. the affine algebraic set) defined by the polynomials h, h1, h2. The non-empty set Z(resp. Z′) consists of a finite number of points in P2(C) (resp. a finite number of straight lines in C3). Denote by S=C[x0, x1, x2] the ring of polynomials graded by the degree of the polynomials. If J= (h, h1, h2) denotes the ideal in Sgenerated by h, h1, h2then the quotient ring S/J has Krull dimension 1. Let us denote by S+the irrelevant ideal in S, i.e. the ideal generated by x0, x1, x2. Proposition 1.1 The graded ring S/J is Cohen-Macaulay if and only if Jis unmixed (i.e. S+is not an embedded prime associated with J). Proof: If S/J is Cohen-Macaulay then Jis unmixed (see [9]). If Jis unmixed then S+is not an embedded prime of Jand then the set of non zerodivisors of S/J contains homogeneous elements of positive degree. That proves depth(S/J)≥1 but we also have depth(S/J)≤dim(S/J) = 1. [] 3 If S/J is Cohen-Macaulay then the projective dimension of S/J is 2 and J satisfies the Hilbert-Burch Theorem [5], i.e. there exists an exact sequence 0→S2φ2 −→ S3φ1 −→ J→0 where φ1(g0, g1, g2) = g0h+g1h1+g2h2and φ2is defined by a syzygy matrix of φ1. In particular, since ker(φ1) = SyzS(h, h1, h2) is a graded free S–module of rank 2 we can compute {s(1) = (s10, s11, s12), s(2) = (s20, s21, s22)}a minimal system of generators and this system is in fact a basis of ker(φ1). By dehomogenization (i.e. by setting x0= 1), we obtain a system {s(1) |x0=1, s(2) |x0=1}of generators of SyzR(f, f1, f2)≃DerR(−log f) and since this R–module is free of rank 2, this last system is in fact a basis. If S/J is not Cohen-Macaulay we cannot apply, in general, the Hilbert-Burch theorem and the previous procedure fails to compute a basis of DerR(−log f). Example 1.2 (a) Consider the polynomial f= (x3+y4+xy3)(x2−y2). With the notations as before (and writing x1=x, x2=y, x0=t) we can use Macaulay 2to prove that the corresponding S/J is Cohen-Macaulay and to compute a minimal system of generators of SyzS(h, h1, h2) and then a basis of DerR(−log f). Macaulay 2, version 0.9.2 --Copyright 1993-2001, D. R. Grayson and M. E. Stillman --Singular-Factory 1.3b, copyright 1993-2001, G.-M. Greuel, et al. --Singular-Libfac 0.3.2, copyright 1996-2001, M. Messollen i1 : R=QQ[t,x,y]; i2 : f=(x^3+y^4+x*y^3)*(x^2-y^2); i3 : f1=diff(x,f),f2=diff(y,f),h=homogenize(f,t),h1=homogenize(f1,t),h2=homogenize(f2,t); i4 : Jf=ideal(h,h1,h2); o4 : Ideal of R i5 : pdim coker gens Jf o5 = 2 i6 : Syzf=kernel matrix({{h1,h2,h}}) o6 = image {5} | x3+1/3x2y-4/3xy2 -tx2+4txy+3x2y+4xy2-y3 | {5} | 2/3x2y+1/3xy2-y3 tx2-txy+3ty2+2xy2+4y3 | {6} | -5x2-5/3xy+6y2 5tx-18ty-15xy-23y2 | 3 o6 : R-module, submodule of R i7 : mingens Syzf o7 = {5} | x3+1/3x2y-4/3xy2 -tx2+4txy+3x2y+4xy2-y3 | {5} | 2/3x2y+1/3xy2-y3 tx2-txy+3ty2+2xy2+4y3 | {6} | -5x2-5/3xy+6y2 5tx-18ty-15xy-23y2 | 4 3 2 o7 : Matrix R <--- R Then the basis of DerR(−log f) is {(x3+1 3x2y−4 3xy2)∂x+( 2 3x2y+1 3xy2−y3)∂y,(−x2+4xy+3x2y+4xy2−y3)∂x+(x2−xy+3y2+2xy2+4y3)∂y} (b) Consider the polynomial g= (x3+y4+xy3)(x2+y2). With the notations as before (and writing x1=x, x2=y, x0=t) we can use Macaulay 2 to prove that the corresponding S/J is not Cohen-Macaulay and the minimal number of generators of SyzS(h, h1, h2) is 3. We can continue the last Macaulay 2 session: i8 : g=(x^3+y^4+x*y^3)*(x^2+y^2); i9 : g1=diff(x,g),g2=diff(y,g),h=homogenize(g,t),h1=homogenize(g1,t),h2=homogenize(g2,t); i10 : Jg=ideal(h,h1,h2); i11 : pdim coker gens Jf o11 = 3 i12 : Syzg=kernel matrix({{h1,h2,h}}) o12 = image {5} | tx2-5x3-4txy-20/3x2y-2xy2-5/3y3 x4+4/3x3y+x2y2+4/3xy3 tx3-tx2y+4x3y+4txy2+16/3x2y2+2xy3+4/3y4 | {5} | tx2+txy-10/3x2y-3ty2-5xy2-1/3y3 2/3x3y+x2y2+2/3xy3+y4 -txy2+8/3x2y2+3ty3+4xy3+2/3y4 | {6} | -5tx+25x2+18ty+100/3xy+11/3y2 -5x3-20/3x2y-13/3xy2-6y3 -5tx2+5txy-20x2y-18ty2-80/3xy2-16/3y3 | 3 o12 : R-module, submodule of R i13 : mingens Syzg o13 = {5} | tx2-5x3-4txy-20/3x2y-2xy2-5/3y3 x4+4/3x3y+x2y2+4/3xy3 tx3-tx2y+4x3y+4txy2+16/3x2y2+2xy3+4/3y4 | {5} | tx2+txy-10/3x2y-3ty2-5xy2-1/3y3 2/3x3y+x2y2+2/3xy3+y4 -txy2+8/3x2y2+3ty3+4xy3+2/3y4 | {6} | -5tx+25x2+18ty+100/3xy+11/3y2 -5x3-20/3x2y-13/3xy2-6y3 -5tx2+5txy-20x2y-18ty2-80/3xy2-16/3y3 | 3 3 o13 : Matrix R <--- R We will revisit this example in Example 4.1. 2 Logarithmic An–modules Let us denote by Mlog fthe quotient An–module Mlog f=An AnDerR(−log f). Moreover, we denote by g DerR(−log f) the set g DerR(−log f) = {δ+δ(f) f|δ∈DerR(−log f)} 5 and by f Mlog fthe quotient An–module f Mlog f=An Ang DerR(−log f). As quoted in subsection 1.2, for n= 2 the R–module Der(−log f) (and hence Ω1(log f)) is free of rank 2. Moreover, by [17, 1.8] there exists a R-basis {δ1, δ2}of Der(−log f) satisfying det(A) = fwhere δi=ai1∂1+ai2∂2, i = 1,2 and Ais the matrix (aij). Then the dual basis of {δ1, δ2}is {ω1, ω2}with ω1=1 f(a22dx1−a21dx2)ω2=1 f(−a12dx1+a11dx2). The R–module Ω2(log f) is free of rank 1 and ω1∧ω2is a basis of it. Moreover we have ω1∧ω2=dx1∧dx2 f. Proposition 2.1 Let f∈R=C[x, y]be a non zero reduced polynomial. There exists a natural quasi-isomorphism Ω•(log f)≃ −→ RHomA2(Mlog f, R) where the last complex is the solution complex of Mlog fwith values in R. This Proposition is proven in [1] in a more general setting using the notion of V0–module. We will give here a direct proof to apply for our algorithm of computing logarithmic cohomology groups. Proof: F.J. Calder´on [1] defines the so called logarithmic Spencer complex associated with Mlog f. In our situation, once a basis {δ1, δ2}is fixed in Der(−log f), this complex is nothing but 0→Aǫ2 −→ A2ǫ1 −→ A→0 (1) where Astands for A2, the A-module morphism ǫ1is defined by ǫ1(P1, P2) = P1δ1+P2δ2(for Pi∈A) and ǫ2is defined by ǫ2(Q) = Q(−δ2−b1, δ1−b2) for Q∈Aand the polynomials bibeing defined by the equality [δ1, δ2] = δ1δ2− δ2δ1=b1δ1+b2δ2. In [1] it is proven that this complex is a A–free resolution of the module Mlog f. We will use this resolution to find a complex of C–vector spaces representing the solution complex RHomA(Mlog f, R). Applying the functor HomA(−, R) to the logarithmic Spencer complex and using the natural isomorphism R≃HomA(A, R), we obtain the complex 0→Rǫ∗ 1 −→ R2ǫ∗ 2 −→ R→0 where ǫ∗ 1(g) = (δ1(g), δ2(g)) for g∈Rand ǫ∗ 2(h1, h2) = δ1(h2)−δ2(h1)−b1h1− b2h2for hi∈R. There is a natural morphism of complexes 6 Ω0(log f) = Rd →Ω1(log f)d →Ω2(log f) η0↓η1↓η2↓ Rǫ∗ 1 −→ R2ǫ∗ 2 −→ R where η0=id,η1(h1ω1+h2ω2) = (h1, h2) and η2(gω1∧ω2) = gfor h1, h2, g ∈ Rand where {ω1, ω2}is the dual basis in Ω1(log f) of the basis {δ1, δ2}in Der(−log f). It is obvious that this morphism η•of complexes of vector spaces is in fact an isomorphism of complexes. That proves the proposition. [] To each finitely generated left An–module Mwe associate the complex of finitely generated right An–modules RHomAn(M, An). To this one we associate the complex of finitely generated left An–modules HomR(Ωn R,RHomAn(M, An)) which is by definition the dual M∗of the left An–module M. If Mis holonomic (i.e. if the dimension of the characteristic variety of Mis n) then it can be shown that Exti An(M, An) = 0 for i6=nand then M∗is the left holonomic An–module HomR(Ωn R, Extn An(M, An)) (see e.g. [10, pag. 41]). Assume Extn An(M, An) = An Jfor some right ideal J⊂An. Then HomR(Ωn R, An/J) is naturally isomorphic to the left An–module An JTwhere JT is the left ideal JT={PT|P∈J}and PTis the formal adjoint of the operator P. If N1, N2are finitely generated left An–modules there exists a natural isomorphism of complexes RHomAn(N1, N2)→RHomAn(RHomAn(N2, An),RHomAn(N1, An)) and then a natural isomorphism RHomAn(N1, N2)→RHomAn(N∗ 2, N∗ 1). In particular, if N2=R=C[x1,...,xn] then there exists a natural isomorphism from RHomAn(N1, R) (i.e. the solution complex of N1) to RHomAn(R∗, N∗ 1). As the complex RHomAn(R, An) is naturally isomorphic to Ωn Rwe can identify Rand R∗and then we have a natural isomorphism RHomAn(N1, R)≃ →RHomAn(R, N∗ 1)≃ →DR(N∗ 1).(2) Proposition 2.2 Let f∈C[x, y]be a non zero reduced polynomial. Then there exists a natural isomorphism (Mlog f)∗≃f Mlog f. Proof: This is one of the main results in [4]. We include here its proof for the sake of completeness. First of all, both A2–modules Mlog fand f Mlog fare 7 holonomic. That can be deduced from [1, Cor. 4.2.2] since the set of principal symbols {σ(δ1), σ(δ2)}is a regular sequence in the polynomial ring R[ξ1, ξ2] and then the Krull dimension of the quotient ring R[ξ1, ξ2]/hσ(δ1), σ(δ2)i is 2. Then the characteristic variety of both A2–modules Mlog fand f Mlog fhas dimension 2 and the modules are holonomic. We will use the logarithmic Spencer complex associated with Mlog f(see the complex (1)) in order to compute Ext2 A(M, A) where A=A2and M=Mlog f. Applying the functor HomA2(−, A2) to the complex (1) we get (by using the natural isomorphism HomA2(A2, A2)≃A2) 0−→ Aǫ1 −→ A2ǫ2 −→ A−→ 0 where ǫ1(P) = (δ1P, δ2P) and ǫ2(P1, P2) = (−δ2−b1)P1+ (δ1−b2)P2. Then we have Ext2 A(M, A)≃A (−δ2−b1, δ1−b2)A. So, M∗≃A A((−δ2−b1)T,(δ1−b2)T). Finally, (−δ2−b1)T=δ2+δ2(f) fand (δ1−b2)T=−δ1−δ1(f) f(see [4, Cor. 3.1]). [] Theorem 2.3 For any non zero reduced polynomial f∈C[x, y], the complexes Ω•(log f)and DR(f Mlog f)are naturally quasi-isomorphic. As a consequence of this theorem and by [13], [15] and [19], the cohomology of the complex Ω•(log f) can be computed starting with the given polynomial f, since a system of generators of the R-module g DerR(−log f) can be computed using the R–syzygies of (∂1(f), ∂2(f), f). Proof: Let us simply denote R=C[x, y], A=A2,M=Mlog f,f M=f Mlog f. By Proposition 2.1 there exists a natural isomorphism Ω•(log f)≃ −→ RHomA(M, R) and by equation (2) there exists a natural isomorphism RHomA(M, R)≃ −→ DR(M∗). By Proposition 2.2 we have DR(M∗)≃DR(f M). We can give the explicit form of this quasi-isomorphism of complexes τ•: Ω•(log f)→DR(f M). τ0:R→f Mis defined by τ0(g) = gf where ( ) means the equivalent class in the ideal A2g DerR(log f). 8 τ1: Ω1(log f)→f M⊗RΩ1 Ris defined by τ1(c1ω1+c2ω2) = X i ci⊗fωi. τ2: Ω2(log f)→f M⊗RΩ2 Ris defined by τ2(gω1∧ω2) = g⊗fω1∧ω2. [] 3 Algorithm Let us summarize our algorithm of computing logarithmic cohomology groups in the two dimensional case. Most tensor products ⊗in the sequel are over A2. If we omit the subscript A2for ⊗, it means that the tensor product is over A2. Algorithm 3.1 Input: a non zero reduced polynomial f(x, y) Output: dimensions and bases of Hi(Ω•(log f)). 1. Compute a free basis s= (s0, s1, s2) and t= (t0, t1, t2) of the syzygy module of f, fx, fyover the polynomial ring C[x, y]. This step can be performed by the following way. (a) Compute the minimal syzygy of h(f), h(fx), h(fy). Here, h(g) is the homogenization of g. If the number of generators is 2, then the dehomogenizations of these generators are sand t. (b) If we fail on the first step, apply an algorithm for the Quillen-Suslin theorem to obtain sand t(call the procedure Quillen-Suslin). 2. Define a left ideal in A2by I=A2·{−s0+s1∂x+s2∂y,−t0+t1∂x+t2∂y}.(3) Compute the dimensions and bases of the de Rham cohomology groups for f M=A2/I with the algorithm in [13], [15]. In other words, replace the A2-module C[x, y, 1/f] by A2/I of (3) in the algorithm 1.2 in [13]. 3. The bases of the previous step are given in A2/(∂xA2+∂yA2)⊗f M•where f M•is (1,1,−1,−1)-adaptive free resolution of f M. Bases of de Rham cohomology groups in Ω•⊗f M≃q.i.s DR(f M)≃q.i.s Ω•(log f) are determined by the transfer algorithm of U.Walther [19, Theorem 2.5 (Transfer Theorem)] and the correspondence τigiven in our Theorem 2.3. Here, Ω•is the Koszul resolution of the right A2-module A2/(∂xA2+∂yA2). In the first step, we should firstly try to find the minimal syzygy. Because, mostly it is faster than applying implementations and algorithms for the Quillen- Suslin theorem. The following example will illustrate how our algorithm works. 9 integrations of D-modules [12]. The topic of computing K[x]/L ·K[x] by the b-function was also discussed in more detail in an expository book “D-modules and Computational Mathematics” (in Japanese) by T.Oaku. Let fbe a polynomial in two variables. Put Ωk f=k-form with coefficients in K[x, y, 1/f] As we have explained in the introduction, the kform ω∈Ωk fis called logarithmic k-form iff both of fω and df ∧ωhave polynomial coefficients. The space of logarithmic k-forms is denoted by Ωk(log f). The question we address in this section is the computation of Ω2(log f) dΩ1(log f). It is easy to see that Ω2(log f) = K[x, y]dx ∧dy f. Let us determine all the logarithmic 1-forms. Let (p, q, r) a triple of polynomials such that fyp−fxq+fr = 0 (syzygy equation). (9) Note that (0, f, fx), (f, 0,−fy), (fx, fy,0) are trivial solutions of the syzygy equation. For a solution (p, q, r) of the syzygy equation, ω=pdx+qdy fbelongs to Ω1(log f). Conversely, any logarithmic 1-form can be expressed in this way. In fact, the condition that df ∧ωhas a polynomial coefficient is equivalent to that fyp−fxqis a multiple of f. Put ω=pdx+qdy f. Let e(x, y) be any polynomial. Then, d(eω) = (Le)dx∧dy f where L=q∂x−p∂y+qx−py+fyp−fxq f We denote the Weyl algebra A2by Dfor simplicity in the sequel. Suppose that Li, (i= 1,...,m) stand for a set of generators of the solution space of the syzygy equation, which is a K[x, y]-module. Then dΩ1(log f) = PLiK[x, y]dx∧dy/f. Therefore, the computation of H2is nothing but the computation of K[x, y]/Pm i=1 Li•K[x, y]. Put I∗=D·{L∗ 1,...,L∗ m}, which is a left Dideal. We denote by Fkthe K-subvector space of Dof which (1,1,−1,−1)- order is less than or equal to k[18, p.14, p.203] Algorithm 5.1 H2(Ω·(log f)). Step 1. Find generators of the syzygy equation and obtain explicit expressions of Li. Step 2. Compute (1,1,−1,−1)-Gr¨obner basis (standard basis) of I. We denote the elements of the Gr¨obner basis by Li∗(renaming). Step 3. Find the monic generator b(−∂xx−∂yy) of in(1,1,−1,−1) (I)∩K[−∂xx− ∂yy]. Step 4. Let k0be the maximal non-negative root of b(s) = 0. Then, return K-vector space basis {ci}of Fk0/X i Li·Fk0−ord(1,1,−1,−1) (Li). 16 {cidx ∧dy/f}is a basis of H2. The steps 2, 3, 4 can also be done by computing D/(I∗+∂xD+∂yD) (0-th integral module) where I∗is the formal adjoint of I. (As to details for the steps 2, 3, 4, see [14].) Note: Although our discussion is independent from the discussions of the previous sections, the left ideal generated by L∗ iis nothing but g DerR(−log f) and hence this algorithm and the Algorithm 3.1 are analogous for computing a basis of H2(Ω•(f)). We also note that finding bases for Hi(Ω•⊗A2f M) can be performed by applying the integration algorithm and the transfer algorithm for D/I∗. The Algorithm 3.1 relies on algorithms for the Quillen-Suslin theorem to find bases for Hi(Ω(log f)•), i= 1,0. Theorem 5.2 If dim V(f, fx, fy)≤0,dim V(f, fx)≤1,dim V(f, fy)≤1, then the Algorithm 5.1 is correct. Proof: Let Ibe the left ideal in Dgenerated by L1,...,Lm. We may assume that Icontains f∂x,f∂yand fy∂x−fx∂y. Therefore, the characteristic variety of Iis contained in V(f(x, y)ξ, f(x, y)η, fy(x, y)ξ−fx(x, y)η), of which dimension is less than or equal to 2 from the assumption. In fact, assume (a, b)∈V(f, fx, fy). Then, ξand ηare free and then the dimension of the characteristic variety is less than or equal to 2. Assume (a, b)∈V(f, fx)\V(f, fx, fy). Then, we have f(a, b) = 0, fx(a, b) = 0 and fy(a, b)6= 0. Then, ηis free and ξ= 0 and then the dimension of the characteristic variety is less than or equal to 2. The rest cases can be shown analogously. Therefore, D/I is a holonomic D-module and hence a non-trivial bexists ([18, Chapter 5, Theorem 5.1.2]). The rest of the correctness proof is analogous with that of the 0-th integration algorithm of D-modules [12], [18, Chapter 5; Theorems 5.2.6 and 5.5.1]. [] Note: The algorithm works to get Hn(Ω•(log f)) in the n-variable case if dim V(f, fxi1, . . . , fxim)≤n−mfor all m= 1,...,n and all combinations i1,...,im. The algorithm and the correctness proof are analogous. In fact, since fξiand (−1)ifxjξi−(−1)jfxiξj, (1 ≤i6=j≤n) are in the characteristic ideal for Iand then the dimension of the characteristic variety is less than or equal to nby utilizing the condition. Example 5.3 For f= (x3+y4+xy3)(x2+y2), we have dim H2(Ω•(log f)) = 7 with our yet another algorithm 5.1. The execution time is 1.9s. We need to call the procedure Quillen-Suslin if we use the first algorithm. We close this paper with a final note and the acknowledgement of this paper. We think that logarithmic differential forms give nice simple bases for some of hypergeometric integrals as pairings of twisted cycles and cocycles when the logarithmic comparison theorem holds for twisted de Rham complex. We hope that our result have applications to study hypergeometric integrals. The authors are grateful to A.Fabianska for helping us to compute free bases of syzygies by using her implementation for Quillen-Suslin’s theorem. 17 References [1] F. J. Calder´on-Moreno, Logarithmic differential operators and logarithmic de Rham complexes relative to a free divisor, Annales Scientifiques de l´ Ecole Normale Sup´erieure (4) 32 (1999), 701–714. [2] F. J. Calder´on-Moreno, D. Mond, L. Narv´aez-Macarro and F. J. Castro- Jim´enez, Logarithmic Cohomology of the Complement of a Plane Curve, Commentarii Mathematici Helvetici 77 (2002), 24–38. [3] F. J. Castro-Jim´enez, L. Narv´aez-Macarro and D. Mond, Cohomology of the complement of a free divisor, Transactions of the American Mathematical Society 348 (1996), 3037–3049. [4] F. J. Castro-Jim´enez and J. M. Ucha, Explicit comparison theorems for D-modules, Journal of Symbolic Computation 32 (2001), 677–685. [5] D. Eisenbud, Commutative Algebra with a view toward Algebraic Geometry, Springer, New York, (1995). [6] A. Fabianska, QuillenSuslin package, http://wwwb.math.rwth-aachen.de/QuillenSuslin/ [7] A. Leykin, H. Tsai, D-module package for Macaulay2, 1999–2007. http://www.math.uiuc.edu/Macaulay2 [8] A. Logar and B. Sturmfels, Algorithms for the Quillen-Suslin Theorem, Journal of Algebra 145, (1992), 231-239. [9] H. Matsumura, Commutative Ring Theory, Cambridge University Press, (1986). [10] Mebkhout, Z. Le formalisme des six op´erations de Grothendieck pour les DX-modules coh´erents. Travaux en Cours, 35. Hermann, Paris, 1989. [11] M. Noro, An Efficient Modular Algorithm for Computing the Global B- Function, Mathematical Software, Proceedings of the first international congress of mathematical software, Beijing, Edited by A. M. Cohen, X. S. Gao, N. Takayama, World Scientific, (2002), 147–157. [12] T. Oaku, Algorithms for b-functions, restrictions, and algebraic local cohomology groups of D-modules. Advances in Applied Mathematics 19 (1997), 61–105, [13] T. Oaku and N. Takayama, An algorithm for de Rham cohomology groups of the complement of an affine variety via D-module computation, Journal of Pure and Applied Algebra, 139 (1999), 201–233. [14] T. Oaku, N. Takayama, H. Tsai, Polynomial and rational solutions of holonomic systems. Journal of Pure and Applied Algebra 164 (2001), 199–220. 18 [15] T. Oaku and N. Takayama, Algorithms for D-modules—restriction, tensor product, localization, and local cohomology groups, Journal of Pure and Applied Algebra 156 (2001), 267–308. [16] T. Oaku and N. Takayama, Minimal Free Resolutions of Homogenized D- modules, Journal of Symbolic Computation, 32 (2001), 575–592. [17] K. Saito, Theory of logarithmic differential forms and logarithmic vector fields, Journal of Faculty of Science, University of Tokyo. Section IA. 27 (1980), 265–291. [18] M.Saito, B.Sturmfels, N.Takayama, Gr¨obner deformations of hypergeometric differential equations, Algorithms and Computation in Mathematics, 6. Springer-Verlag, Berlin, 2000. viii+254 pp. [19] U. Walther, Computing the cup product structure for complements of complex affine varieties, Journal of Pure Applied Algebra 164 (2001), 247–273. 19