Manuscript Offprint
arXiv:2611.07786On computing the determinant over a ring
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
An algorithm is presented for computing the determinant and the characteristic polynomial of a matrix over an arbitrary commutative ring . The algorithm uses ring additions, subtractions and multiplications, where is a feasible exponent for matrix multiplication, that is, such that two matrices over can be multiplied using ring operations. The algorithm involves no division and no zero test, and its control depends only on : for each it is a straight-line program.
The approach combines a polynomial matrix point of view and a block Krylov point of view on the characteristic polynomial, which makes Strassen's elimination of divisions efficient. A bivariate matrix , obtained from by a homotopy, is compressed in steps, each of which halves the dimension while only doubling the degree in . The cost of the homotopy is controlled by truncating the power series in at an order that only grows with the compression steps, from a constant to .
1. Introduction
The determinant of an matrix over a field can be computed using arithmetic operations [6], where is a feasible exponent for matrix multiplication. That is, two matrices can be multiplied using operations in the field, or in the ring of the entries in the division-free setting considered below. The same bound holds for the characteristic polynomial [25]. The algorithms achieving these bounds, Gaussian elimination for the determinant [6] and the polynomial matrix approach of [25] for the characteristic polynomial (see also [20, 27]), use divisions and zero tests, for choosing nonzero pivots and, more generally, for computing rank profiles.
Over a commutative ring, where divisions are not available, the determinant and the characteristic polynomial can be computed using ring operations, where hides logarithmic factors. This bound is obtained in two different ways, by the method of Samuelson-Berkowitz [3] (see also [9]), and by Strassen's technique for eliminating divisions [31]. The latter applies directly to the determinant, which is a polynomial of degree in the entries, and costs a factor about : every operation becomes an operation on power series truncated at order . With fast polynomial multiplication over an arbitrary ring [8], this gives ring operations [17].
Combinatorial approaches give another point of view on division-free computation. Such an interpretation of Berkowitz's algorithm is given in [33], and an algorithm based on clow sequences is proposed in [22, 23] (see also [28]).
The determinant over an arbitrary commutative ring has algebraic branching programs of polynomial size [32], [33]. The direct construction of [22] has recently been improved in [15]. These approaches focus on a different model and do not seem to lead to an improvement of the bound.
The gap between the field and the ring case was partly closed by Kaltofen [17], who applies Strassen's technique to Wiedemann's algorithm [34] with a baby steps/giant steps strategy, and obtains the characteristic polynomial using ring operations (see also [29]). With block projections, the cost is further reduced to [19], where depends on and on the exponent of rectangular matrix multiplication. With the exponents known at the time, this gave , that is, . For a fixed exponent of rectangular matrix multiplication, this difference increases when decreases, and it is for , whatever the rectangular exponent [19, Table 6.1].
Whether the exponent can be reached without divisions is a question that goes back to Berkowitz [3, Section 4]. He conjectured more: that the characteristic polynomial over an arbitrary ring can be computed by circuits of size (up to logarithmic factors) and depth . We do not address the depth here.
Kaltofen and Storjohann list the division-free computation of the characteristic polynomial in operations as an open problem [18]. The question is natural since the determinant and the coefficients of the characteristic polynomial, are polynomials with integer coefficients in the entries of the matrix: only ring operations are involved in their definition. The point therefore is whether divisions bring an intrinsic advantage.
In this model, we show that divisions do not essentially help for computing the determinant.
For , Algorithm 1.1 computes the characteristic polynomial of , hence its determinant, using ring operations (Theorem 5.1), the matrix multiplication algorithm being used as a black box (Section 1.5). For , the same analysis gives operations. The control of Algorithm 1.1 depends only on . This is not the case of the known algorithms, even for the determinant alone over a field: the triangular factorization of Bunch and Hopcroft [6] relies on pivoting, as does [25] for the characteristic polynomial.
The algorithm is division-free and computes the determinant as a polynomial in the entries of A, hence the derivative inequality of Baur and Strassen [1] applies. The adjoint of A, whose entries are, up to transposition, the partial derivatives of the determinant, is thus also computed using ring operations.
Our approach reconciles two points of view.
On one side, the polynomial matrix approach to the determinant [13, 25] starts from , an matrix of degree one, and follows a divide-and-double principle. In steps, the dimension is halved while the degree only doubles, so that the amount of data stays and each step costs a few matrix products. The same principle is used, e.g., in high-order lifting [30], for computing kernel bases [35] or the Hermite normal form [21]. It is also close to the doubling of the Krylov chains in Keller-Gehrig's algorithm [20]. These algorithms use divisions and zero tests, and we do not see how to apply a homotopy à la Strassen to them without losing a factor about .
On the other side, Coppersmith’s block Wiedemann approach [10], in its division-free version by [19], works with the block Krylov sequence of a pair of projections , from which the characteristic polynomial is recovered as the determinant of an matrix generating polynomial of degree about (Section 1.2). The projections are chosen once and for all, with a fixed block size . Divisions are avoided by Strassen’s technique: is replaced by a matrix of degree one in with , a fixed matrix for which all the elements inverted by the algorithm with divisions are known units of . The computations are then done on power series in , where these elements remain invertible, and the result is read on , a polynomial of degree at most in . The terms of the sequence are then matrices over , and the generating polynomial is an matrix polynomial in with coefficients in the power series ring (over a field , it would be in , with denominators that are units of ). With this homotopy, the terms of the sequence are computed by baby steps and giant steps on power series truncated at order .
We combine the two points of view, with two ideas (Section 1.3). The first idea is to run the scheme of [19] at successive levels, with block sizes , without recomputing the block Krylov sequence at each level: the projections of a level are made of columns of those of the previous level, hence the sequence needed at level is extracted from the generating polynomial computed at level , by expanding the corresponding rational matrix series. This replaces the baby steps and giant steps, uses only matrix polynomial operations, and halves the block size while doubling the degree, as in the divide-and-double principle. The second idea concerns the homotopy variable : the terms of the sequence that are used are kept exact, while the generating polynomial is truncated. The terms of the sequence at level , with , are polynomials in of degree less than , and the generating polynomial, whose coefficients are power series in , is only needed modulo : all the computations at level are truncated at order instead of . The amount of data at each level is , and the cost of a level decreases geometrically with , up to logarithmic factors, when , and sums to .
The homotopy and the projections are modified with respect to [19], so that Strassen's technique applies at every level (Section 3). The choice of sparse structured projections X and Y, whose nonzero entries are interleaved with a cyclic structure of M, is central in our approach, both for the efficiency and for the elimination of divisions.
1.2. Coppersmith's block Wiedemann approach
We give the main ingredients needed in the rest of the paper. More details and references can be found in [19, Section 2] and [26, Section 5]. We present them over a field . Over a ring, the properties we need will follow from our choice of the homotopy and of the projections (Sections 2 and 3). Let , let , and let be two projections. Coppersmith's block Wiedemann approach relies on the sequence of matrices
and on its matrix generating polynomials. A matrix polynomial is a (right) matrix generating polynomial of the sequence, in short a generating polynomial, if
Let be the field of Laurent series in , in which
The coefficient of in is , hence is a generating polynomial if and only if the product is a polynomial matrix, of degree less than . When is nonsingular, this is a right matrix fraction description
If the block Hankel matrix is invertible, then there is a unique monic generating polynomial of degree d, obtained by solving a linear system with matrix , and it satisfies
The reader may refer to [16, Section 6.5, p. 439] for the underlying realization theory. The rank properties of block Hankel matrices and the generating polynomials they determine are studied in [19, Section 2], and in [26, Section 5] where generating polynomials are used as matrices of relations. For the sake of completeness, and since we work over a ring, (5) is proven in Section 2.
Equation (5) displays the compression mechanism behind the divide-and-double principle: the matrix of degree one is replaced by the matrix of degree , with the same determinant. Equations (4) and (5) illustrate precisely how we combine the two points of view: the middle term of (4) is the sequence of the block Krylov approach, while the right-hand side is a matrix fraction description as in the polynomial matrix approach. The characteristic polynomial is reached through the denominator by (5). The generating polynomial is obtained from the first 2d terms of the sequence by a matrix version of the Euclidean algorithm in [19, Section 3], whereas the polynomial matrix approach relies on approximant bases in [13] (see also [2]), and on kernel bases [35] in [25]. In our case, the truncated generating polynomial is computed by solving a block Hankel linear system by lifting (Algorithm 4.1).
1.3. Overview of the algorithm
Let . Following Strassen's technique and [19, Section 2], we do not work with directly but with the homotopy
where is chosen such that and so as not to cause divisions (see (i) below). Algorithm 1.1 computes the bivariate polynomial
which is monic of degree in and of degree at most in . Its constant coefficient in is , and the characteristic polynomial of is the reversal of the latter.
We assume is a power of 2, otherwise we replace by with the next power of 2, . The determinant is unchanged, , and .
The characteristic polynomial is thus recovered after a multiplication by the unit series modulo . The padding multiplies the cost of the algorithm by at most a constant factor.
Starting from , the algorithm is organized around a sequence of matrix polynomials in , of dimensions and degrees in , whose coefficients are power series in computed modulo suitable powers of (see (ii)), and whose determinants are congruent to modulo these powers. They follow the divide-and-double principle of Section 1.1. From one level to the next, the dimension is divided by two while the degree in is multiplied by two. These successive compressions are closely related to those of the determinant algorithm of [13, Section 4.2.2] (obtained there with divisions).
At each level, is, modulo the truncation in , the monic generating polynomial of degree , of the sequence , in the sense of (2). It is determined by the first 2d terms of the sequence (Lemmas 2.1 and 4.2).
For the transition from level to level (Step 2 in Algorithm 1.1), three main ingredients are needed to obtain the target complexity bound without divisions. From the first terms of the sequence at level , Step 2a computes modulo ( is defined in (ii)). The latter is then used in Step 2b to extend the sequence to its first terms. In Step 2c, the sequence at level is finally extracted from the extended one at level . In short, the algorithm is as follows.
Algorithm 1.1. Characteristic polynomial
Input: , a power of two (up to a padding)
Output:
-
, at level ( ), and
-
For , with :
(a) compute modulo from
(b) compute from
(c) extract from
- At level ( ), compute modulo from
, return .
▶ Transition(m), Algorithm 4.5
▶ lifting in t for the generating polynomial
▶ extension, Newton iteration in
▶ extraction, no arithmetic cost
We now detail the three ingredients mentioned above.
(i) Homotopy and projections (Section 3). We take , where M is the cyclic permutation matrix. This homotopy is the one in [19, Sec. 6], with a different M. The projections and are made of unit vectors at well chosen positions, whose interleaving allows for an efficient transition from level m to level m/2. With this choice the block Hankel matrix of the sequence is a permutation matrix at t = 0, at every level (Section 3). The minimal generating polynomial is then the solution of a linear system whose constant term is invertible, which is solved by lifting in t, without divisions.
(ii) Truncation at the right orders (Section 4). The degrees in are controlled by the dimension–degree trade-off explained above. We also need to control the sizes in . To do this, we keep the terms of the sequences exact from one level to the next, while the generating polynomials, whose coefficients are power series in , are truncated to an appropriate order . Exactness is needed since each level requires twice the order of the previous one. It is possible since the terms satisfy . At level , the generating polynomial is used to extend the sequence to its first terms, which is what the next level needs. At level the degree of in is indeed , and it is determined by terms (at level , with , the characteristic polynomial is reconstructed from terms provided by level 2). Since these terms are polynomials of degree less than in , it is sufficient to work with a generating polynomial truncated at order only.
The truncation order in and the degree in grow with only. A level first consists of a lifting process, to compute the truncated generating polynomial, followed by a Newton iteration to extend the sequence. Both are divide-and-conquer processes whose aggregate work, summed over their recursion depths, is equivalent to that of products of matrices whose entries are bivariate polynomials of degree both in and in , that is, with coefficients. The cost is thus , up to factors logarithmic in . The total cost is dominated by the first level , where , which gives when .
(iii) New sequence by extraction (Lemma 3.1). The generating polynomial at level allows us to extend the sequence from to terms. The matrix is the same at every level. The nested projections and (see (i)) are chosen in order to ensure that the sequence terms at level are obtained by simply selecting rows and columns of the extended sequence at level , at no arithmetic cost. Hence is used only at the first level, and the sequences are never recomputed from .
1.4. Outline
In Section 2 we take a closer look at Eq. (4) and Eq. (5) over a ring. We relate the generating polynomials of a sequence to its block Hankel matrix, and give the proofs we need for Coppersmith's block Wiedemann approach. The homotopy and the projections are defined in Section 3, where we show that they satisfy the conditions necessary for the efficient and division-free computation. Section 4 is devoted to the algorithm for transition from level to level : the lifting in for the generating polynomial, the extension of the sequence by a Newton iteration in , and their costs. The main theorem is proven in Section 5, by applications of the transition, followed at the last level, where , by the solution by lifting of a Hankel system with blocks, which gives , and by the reconstruction of the characteristic polynomial from its constant coefficient in .
1.5. Preliminaries
To analyse the algorithms we count operations in the ring R on an algebraic random access machine: additions, subtractions and multiplications in R have unit cost, the constants 0 and 1 are available. The straight-line program model would be just as relevant, since the algorithm has no branching on ring elements.
We assume a fixed algorithm that multiplies two matrices over using ring operations, for a feasible exponent , and we use it as a black box (see also [25, Section 1.1]). The case is considered after Theorem 5.1.
Let be such that two polynomials of degree less than over any -algebra can be multiplied using operations on their coefficients: additions, multiplications of two coefficients, and multiplications by integers. Cantor and Kaltofen's algorithm gives [8]. We assume that is non-decreasing and for integers [12, Section 8.3, Eq. (8)]. Applied to polynomials whose coefficients are matrices over , with the black box for the coefficient products, this multiplies two matrices of polynomials of degree less than using operations in . The finer count of [8], coefficient products only, is not needed here: the bound of Theorem 5.1 is insensitive to these logarithmic factors, and holds for any with .
If the matrix multiplication algorithm is bilinear, it is valid over any commutative -algebra and can be run directly over a univariate polynomial ring over . The same bound then holds with any polynomial multiplication algorithm over satisfying the above hypotheses on , since only products of polynomials with coefficients in are needed.
By Kronecker substitution, bivariate polynomials of degree less than in modulo are handled with .
We write for the identity matrix, or simply when the dimension is clear from the context, and for the transpose of a matrix . Logarithms are in base 2.
Acknowledgments. The author would like to thank Vincent Neiger and Clément Pernet for the very enriching discussions on the Krylov approach and polynomial matrices.
Use of AI tools. During the preparation of this manuscript, the author used Claude (Anthropic), in several versions during 2026. The tool was first used in an attempt to compare structured matrix methods for computing the generating polynomial. This did not lead to a choice of , , allowing one to keep the approach of [19] with a matrix Euclidean algorithm, and the author's initial option, presented here, was retained. It was useful for bibliographical searches, for shortening Section 2 (whose ingredients are quite classical) and the proof of Lemma 3.2, and for the complexity analysis and its assumptions. It was used in the final phase for drafting the text from the author's instructions, in a presumably better English than the author's, sentence by sentence. Word by word, symbol by symbol, all AI-generated English suggestions were reviewed and, if applicable, modified by the author before deciding whether to include them in the manuscript.
Note. On November 3, 2026, shortly after the author had shared an early draft of this manuscript with a few colleagues, Mark Giesbrecht, who had not seen it, informed him that on October 30, 2026 he had independently prompted ChatGPT Astra on this problem and obtained an algorithm of similar complexity, with a Lean proof. Despite apparent similarities, the two constructions differ in essential ways. A main difference is the block Hankel solver: we lift from a constant inverse, while the other algorithm refines inverse generators by Newton iteration. The homotopies also differ: we use ([19], up to the choice of ), while the other construction (called deformation) adds a nilpotent matrix, . This changes how the characteristic polynomial is read off at the end, from the constant coefficient and a reversal here [19], from the homogeneous component of degree there. We apply the general identity (Lemma 2.2), while the other construction uses the Cayley–Hamilton theorem at the last level. Finally, we obtain where the other algorithm is stated with . The logarithmic factors are probably not intrinsic to it.
2. Generating polynomials and characteristic polynomial
Let be a commutative ring, , and with . In this section we give conditions under which a matrix as in (4) and (5) exists, is unique once normalized, and can be computed from the first terms of the sequence in (3). This is well understood over a field, see for instance [16, Chapter 6] for matrix fraction descriptions and their link with the controllability and observability matrices, and [19, Section 2], [26, Sections 5 and 7] and references therein for matrix sequences. We recall the main properties for the sake of completeness. The results of this section hold for an arbitrary commutative ring and arbitrary . They are specialized in Section 3, where is , or when working modulo .
Let for . The observability and controllability Krylov matrices are
and their product is the block Hankel matrix
In the terminology of linear systems [16, Chapter 6], is a realization of the transfer matrix , and and are its controllability and observability matrices (when is invertible, the realization is controllable and observable). We also let .
Over , (3) and (4) are identities in , where is the ring of Laurent series in with coefficients in . The matrix is invertible over this ring, with inverse , and so is any monic matrix polynomial of degree .
Lemma 2.1. Assume that is invertible over . Then and are invertible, and the system has a unique solution . Setting , we obtain
hence is a monic generating polynomial of degree for the sequence , i.e. (2) holds, and it is the unique one. The equality between matrix fractions in (4) follows.
Proof. Since is a unit of , and are units, and are invertible. The solution is unique. Conversely, any monic generating polynomial of degree satisfies (2) for , which is the system . This gives the uniqueness of . The -th block row of is , where , hence . Since and is invertible, , which is (8). Multiplying on the left by gives for all , and (2) is obtained. The equality between matrix fractions in (4) then follows from the equivalence stated after (2).
Note that, over a field, the generating polynomial of Lemma 2.1 is also minimal in the sense of [19, Section 2.1]. Indeed, the determinant of a basis of the module of right vector generators has degree equal to the rank of the infinite block Hankel matrix [19, Eq. (2.6)], and . Minimality is however not needed in what follows.
Lemma 2.2. Assume that is invertible over , and let be a generating polynomial as in Lemma 2.1. Then , which is (5), and in particular .
Proof. By (8), , hence with the block companion matrix
Since is invertible (Lemma 2.1), and are similar, and . The block companion matrix is a linearization of , see [16, Section 6.3.4, p.393], whose proof is valid over any commutative ring. The matrix is equivalent, by unimodular matrices, to , hence for a unit of . Both determinants are monic of degree in , and is monic, so that has degree . Therefore, and and this gives . Taking gives .
3. The homotopy and the projections
In this section, is or for some . We define the homotopy and the projections , , which are chosen so as to satisfy the conditions of Section 2 at every level . The block Hankel matrix is invertible over , with a value at that is a permutation matrix. A matrix over is invertible if and only if its value at (that is, its constant coefficient in ) is invertible over .
Let be the canonical basis of , with indices taken modulo and represented in . We have and in particular . Let be the cyclic permutation matrix defined by , , it is the companion matrix of . Our homotopy is
For , the projections at level are
where and are the first and last canonical vectors of . We have and . At level , we apply Section 2 with and .
The corresponding , block Hankel matrix and generating polynomial depend on . As we did for in the introduction, we may write and , but we omit the superscript when the level is clear from the context.
The homotopy is the one of [19, Section 6] for the characteristic polynomial, with a different matrix . The latter and the projections are chosen so as to ensure, at every level , the properties needed by the algorithm.
-
The sequence terms at level are extracted from those at level by selecting rows and columns, and they satisfy (Lemma 3.1), which allows the truncation at the right orders in Section 4.
-
The block Hankel matrix is a permutation matrix at , hence invertible over (Lemma 3.2). Lemmas 2.1 and 2.2 therefore apply, and the lifting in for computing the generating polynomial needs no division (Algorithm 4.1).
-
Moreover, since the generating polynomial is monic, its reversal satisfies , which makes the extension of the sequences division-free (Algorithm 4.3). Note that this property comes from the normalization , whatever the choice of , and (Lemma 2.1).
Lemma 3.1. For all , the entries of are polynomials in of degree at most . If is even, then for all and ,
Proof. The entries of have degree at most one in , hence those of have degree at most . For the second assertion, the columns of are the even columns of , and the columns of are the odd columns of . Indeed, at level the integer is replaced by . The -th column of is , which is column of . The -th column of is , which is column of .
Let be the block reversal matrix, with blocks of dimension , whose blocks are on the anti-diagonal and 0 elsewhere.
Lemma 3.2. Let , and let be the block Hankel matrix (7) for , . For , one has , and if . Consequently (with ), and is invertible over .
Proof. Since , we have , whose entry is . It is nonzero, and then equal to one, if and only if (with representation in ). This requires , which for means . For the condition becomes , that is, divides . Since , the latter means , hence and otherwise. By (7), has the blocks on its anti-diagonal and zero blocks elsewhere, that is, . Since is invertible, so is over .
4. Transition from level to level
Let be a power of two, , and for . For , the transition (Step 2 in Algorithm 1.1) takes as input the first terms , exact in , and returns the first terms of the sequence at level , again exact. These are the terms needed at level , where the generating polynomial has degree . It consists of three steps: the computation of modulo by lifting in (Step 2a), the extension of the sequence at level to its first terms by power series expansion in (Step 2b), and the extraction (Step 2c). Working modulo is sufficient since the terms for , hence also the extracted , have degree less than in (Lemma 3.1).
The lifting, HankelSolve and Lemma 4.2 below, is valid for any level . It is also used at the last level , with , in Step 3. We solve the linear system of Lemma 2.1 at level over , which gives modulo . The reduction modulo is a ring homomorphism from onto , and by Lemmas 2.1 and 3.2 the system has a unique solution over both rings, so that the solution over is the reduction of the one over .
Algorithm 4.1. HankelSolve( , B) (Algorithm 1.1, Step 2a)
Input: , , and given by , with
Output: such that is deduced from Lemma 2.1
-
If , return
-
,
-
-
-
return
divisible by
Algorithm 4.1 is the divide-and-conquer lifting of [5, Section 3] (see also [24] over a domain, and [11] for the p-adic case), and is used for computing the generating polynomial.
Lemma 4.2. Let for , let be as in Lemma 3.2 and , and let . The generating polynomial modulo can be computed using operations in .
Proof. We first show that HankelSolve returns such that . Since by Lemma 3.2, Step 1 is correct and requires no arithmetic operation. Then . The solution is unique since is invertible over , and is deduced from Lemma 2.1.
For the cost, let and, for , . For , the -th block of , namely , is the coefficient of in (see for instance [4, Ch.2, Sec.5], only a middle product is needed). A product by modulo thus reduces to the product of two polynomials of degree less than 2d in whose coefficients are matrices over , which costs (Section 1.5). The recursion has depth , and at each depth the precisions sum to . Since is nondecreasing, each depth costs , which gives the bound.
The next step in the transition is the extension of the sequence at level from its first 2d terms to its first 4d terms (Step 2b). We can now use the generating polynomial for that.
The latter polynomial, , is monic by Lemma 2.1. Let be the reversal of , and , with as in (3). For , the coefficient of in is , which is zero by (2). Hence with (see [12, Lemma 12.8] for the scalar case), and only depends on . Since is monic we have . The matrix is thus invertible as a power series in , and the expansion of allows use to extend the sequence (equivalently, the terms are given by the quotient in a division with remainder by the monic [12, Section 9.1]).
The inverse of is computed by Newton iteration in [12, Section 9.1]. Note that Algorithm 4.3 recomputes the terms , which are already known. This does not change the cost, asymptotically. Middle products could be used, both in the Newton iteration and for the last product [14], and would save constant factors.
Algorithm 4.3. Extension( ) (Algorithm 1.1, Step 2b)
Input: , , and modulo
Output: modulo
-
, and
-
, for while :
-
return the coefficients of
In Algorithm 4.3, is only known modulo , and all the computations are carried out over . Since the reduction modulo is a ring homomorphism, the identity holds over this ring with replaced by its reduction, hence the algorithm returns the terms modulo , for any . They are exact as soon as for . In this section (Lemma 3.1), and we use it with .
Lemma 4.4. Let and . Given and , Algorithm 4.3 computes modulo using operations in . If for , these terms are exact.
Proof. All computations are over , where (2) still holds by reduction modulo . Step 2 is the Newton inversion of [12, Algorithm 9.3], written for matrix coefficients. Since , the initial value satisfies . If , then , hence Step 2 gives , and . If for , the terms computed modulo are exact. This holds for instance if , since (Lemma 3.1).
Each iteration of Step 2 consists of two products of matrices of polynomials of degree less than in over , which cost (Section 1.5). Since is nondecreasing, the sum over is . The products in the first and last steps have the same cost.
The last step of the transition is the extraction of the sequence at level (Step 2c), which requires no arithmetic operation by Lemma 3.1.
Algorithm 4.5. Transition(m) (Algorithm 1.1, Step 2)
Input: , , , ...,
Output: , ...,
-
, which gives Lemma 4.2
-
, with Lemma 4.4
-
for and Lemma 3.1
Lemma 4.6. Let be a power of two and . Given the terms , Algorithm 4.5 computes the terms using operations in .
Proof. By Lemma 4.2 with , Step 1 gives modulo using operations. By Lemma 4.4 with , Step 2 gives using operations. Step 3 requires no arithmetic operation, and gives the exact terms at level using Lemma 3.1. The bound follows from for a constant , and from .
5. Characteristic polynomial
Putting the pieces of previous sections together, we obtain Algorithm 1.1. At the first level we have and , hence and , which are exact. At the last level we have , and by Lemma 2.2. Since the entries of have total degree at most one in and , is a bivariate polynomial of total degree , monic of degree in , and of degree at most in (with equality if and only if ).
As in Section 1.5, we use as a black box a fixed algorithm which multiplies two matrices over using ring operations. Algorithm 1.1 only uses ring additions, subtractions and multiplications, with no division and no zero test, and its control depends only on n.
Theorem 5.1. Let be a commutative ring with unit and . If , Algorithm 1.1 computes the characteristic polynomial of using operations in .
Proof. Up to the padding of Section 1.3, which multiplies the cost by at most a constant factor, we may assume that is a power of two. With , is the exact quotient of by . The divisor being monic, the division to recover uses only ring operations, and costs .
Step 1 gives the exact terms and . By Lemma 4.6, each iteration of Step 2 gives the exact terms , which are the input of the next iteration. At these are , which then lead to modulo at level , using Lemma 4.2 with .
By Lemma 2.2, . Since has degree one in , this polynomial has degree at most in , and it is thus computed exactly. Its constant coefficient is , since . It follows that and .
For the cost, we take [8] (more generally, any with would do). By Lemma 4.6, with and , the iterations of Step 2 cost
For the sum is bounded, which gives . Step 3 costs by Lemma 4.2, which is for , and the final reversal is free.
In particular, is times the constant term of the characteristic polynomial, and Algorithm 1.1 also computes the bivariate polynomial . If , the analysis for Theorem 5.1 gives operations in , the levels having then comparable costs.
Note also that the cyclic permutation could be replaced by any companion matrix whose constant coefficient is a unit of with a known inverse (the result is then divided by the known unit ). In the same spirit as the application of [19] to integer matrices, this leads to the characteristic polynomial of a polynomial matrix with cyclic constant term, over a field, which we leave for future work.
References
[1] W. Baur and V. Strassen. The complexity of partial derivatives. Theor. Comput. Sci., 22:317–330, 1983. doi:10.1016/0304-3975(83)90110-X.
[2] B. Beckermann and G. Labahn. A uniform approach for the fast computation of matrix-type Padé approximants. SIAM J. Matrix Analysis and Applications, 15(3):804–823, 1994. doi:10.1137/S0895479892230031.
[3] S. J. Berkowitz. On computing the determinant in small parallel time using a small number of processors. Information processing letters, 18(3):147–150, 1984. doi:10.1016/0020-0190(84)90018-8.
[4] D. Bini and V. Y. Pan. Polynomial and matrix computations. Birkhäuser, 1994. doi:10.1007/978-1-4612-0265-3.
[5] A. Bostan, F. Chyzak, F. Ollivier, B. Salvy, É. Schost, and A. Sedoglavic. Fast computation of power series solutions of systems of differential equations. In Proc. SODA, pages 1012–1021. SIAM, 2007. URL https://dl.acm.org/doi/10.5555/1283383.1283492.
[6] J. R. Bunch and J. E. Hopcroft. Triangular factorization and inversion by fast matrix multiplication. Mathematics of Computation, 28 (125):231–236, 1974. doi:10.1090/S0025-5718-1974-0331751-8.
[7] P. Bürgisser, M. Clausen, and M. A. Shokrollahi. Algebraic complexity theory, volume 315 of Grundlehren der mathematischen Wissenschaften. Springer, 1997. doi:10.1007/978-3-662-03338-8.
[8] D. G. Cantor and E. Kaltofen. On fast multiplication of polynomials over arbitrary algebras. Acta Informatica, 28(7):693–701, 1991. doi:10.1007%2FBF01178683.
[9] A. L. Chistov. Fast parallel calculation of the rank of matrices over a field of arbitrary characteristic. In Fundamentals of Computation Theory, FCT '85, volume 199 of Lecture Notes in Computer Science, pages 63–69. Springer, 1985. doi:10.1007/BFb0028792.
[10] D. Coppersmith. Solving homogeneous linear equations over GF(2) via block Wiedemann algorithm. Math. Comput., 62(205):333–350, 1994. doi:10.2307/2153413.
[11] J. D. Dixon. Exact solution of linear equations using p-adic expansions. Numerische Mathematik, 40(1):137–141, 1982. doi:10.1007/BF01459082.
[12] J. von zur Gathen and J. Gerhard. Modern computer algebra. Third edition 2013. Cambridge University Press, 1999. doi:10.1017/CB09781139856065.
[13] P. Giorgi, C.-P. Jeannerod, and G. Villard. On the complexity of polynomial matrix computations. In Proc. ISSAC, pages 135–142. ACM Press, 2003. doi:10.1145/860854.860889.
[14] G. Hanrot, M. Quercia, and P. Zimmermann. The middle product algorithm I. Applicable Algebra in Engineering, Communication and Computing, 14(6):415–438, 2004. doi:10.1007/s00200-003-0144-2.
[15] C. Ikenmeyer. On the gradient of the coefficient of the characteristic polynomial, 2025. URL https://arxiv.org/abs/2511.04954. arXiv:2511.04954.
[16] T. Kailath. Linear Systems. Prentice-Hall, 1980.
[17] E. Kaltofen. On computing determinants without divisions. In Proc. ISSAC, pages 342–349. ACM Press, 1992. doi:10.1145/143242.143350.
[18] E. Kaltofen and A. Storjohann. The complexity of computational problems in exact linear algebra. In Encyclopedia of Applied and Computational Mathematics, pages 227–233. Springer, Berlin, Heidelberg, 2015. doi:10.1007/978-3-540-70529-1_173.
[19] E. Kaltofen and G. Villard. On the complexity of computing determinants. Comput. Complex., 13(3):91–130, 2005. doi:10.1007/s00037-004-0185-3.
[20] W. Keller-Gehrig. Fast algorithms for the characteristic polynomial. Theoretical computer science, 36:309–317, 1985. doi:https://doi.org/10.1016/0304-3975(85)90049-0.
[21] G. Labahn, V. Neiger, and W. Zhou. Fast, deterministic computation of the Hermite normal form and determinant of a polynomial matrix. J. Complexity, 42:44–71, 2017. doi:10.1016/j.jco.2017.03.003.
[22] M. Mahajan and V. Vinay. A combinatorial algorithm for the determinant. In Proc. Symposium on Discrete Algorithms (SODA '97), pages 730–738. SIAM, 1997. URL https://dl.acm.org/doi/10.5555/314161.314429.
[23] M. Mahajan and V. Vinay. Determinant: Old algorithms, new insights. SIAM Journal on Discrete Mathematics, 12(4):474–490, 1999. doi:10.1137/S0895480198338827.
[24] R. T. Moenck and J. H. Carter. Approximate algorithms to derive exact solutions to systems of linear equations. In Proc. EUROSAM, LNCS 72, pages 63–73, 1979. doi:10.1007/3-540-09519-5_60.
[25] V. Neiger and C. Pernet. Deterministic computation of the characteristic polynomial in the time of matrix multiplication. Journal of Complexity, 67:101572, 2021. doi:10.1016/j.jco.2021.101572.
[26] V. Neiger, B. Salvy, É. Schost, and G. Villard. Faster Modular Composition. J. ACM, 71(2), 2024. doi:10.1145/3638349.
[27] C. Pernet and A. Storjohann. Faster Algorithms for the Characteristic Polynomial. In Proc. ISSAC, pages 307–314. ACM, 2007. doi:10.1145/1277548.1277590.
[28] G. Rote. Division-free algorithms for the determinant and the Pfaffian: algebraic and combinatorial approaches. In Computational Discrete Mathematics, volume 2122 of Lecture Notes in Computer Science, pages 119–135. Springer, 2001. doi:10.1007/3-540-45506-X_9.
[29] T. Seifullin. Acceleration of computation of determinants and characteristic polynomials without divisions. Cybernetics and Systems Analysis, 39(6):805–815, 2003. doi:10.1023/B:CASA.0000020222.77742.9f.
[30] A. Storjohann. High-order lifting and integrality certification. J. Symb. Comput., 36(3-4):613–648, 2003. doi:10.1016/S0747-7171(03)00097-X.
[31] V. Strassen. Vermeidung von Divisionen. J. reine u. angew. Math., 264:182–202, 1973. doi:10.1515/cr11.1973.264.184.
[32] S. Toda. Classes of arithmetic circuits capturing the complexity of computing the determinant. IEICE Transactions on Information and Systems, E75-D(1):116–124, 1992.
[33] L. G. Valiant. Why is Boolean complexity theory difficult? In Boolean Function Complexity, volume 169 of London Mathematical Society Lecture Note Series, pages 84–94. Cambridge University Press, 1992. doi:10.1017/CB09780511526633.008.
[34] D. H. Wiedemann. Solving sparse linear equations over finite fields. IEEE Trans. Information Theory, 32(1):54–62, 1986. doi:10.1109/TIT.1986.1057137.
[35] W. Zhou, G. Labahn, and A. Storjohann. Computing minimal nullspace bases. In Proc. ISSAC, pages 366–373. ACM Press, 2012. doi:10.1145/2442829.2442881.