arXiv:2611.07786cs.SCNov 2026

Manuscript Offprint

arXiv:2611.07786

On computing the determinant over a ring

Gilles Villard

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 AA over an arbitrary commutative ring R\mathbb{R}. The algorithm uses O(nω)O(n^\omega) ring additions, subtractions and multiplications, where ω>2\omega > 2 is a feasible exponent for matrix multiplication, that is, such that two n×nn \times n matrices over R\mathbb{R} can be multiplied using O(nω)O(n^\omega) ring operations. The algorithm involves no division and no zero test, and its control depends only on nn: for each nn 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 λI−L(t)\lambda I - L(t), obtained from AA by a homotopy, is compressed in log⁡n\log n steps, each of which halves the dimension while only doubling the degree in λ\lambda. The cost of the homotopy is controlled by truncating the power series in tt at an order that only grows with the compression steps, from a constant to nn.

1. Introduction

The determinant of an n×nn \times n matrix over a field can be computed using O(nω)O(n^\omega) arithmetic operations [6], where ω>2\omega > 2 is a feasible exponent for matrix multiplication. That is, two n×nn \times n matrices can be multiplied using O(nω)O(n^\omega) 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 O~(nω+1)\tilde{O}(n^{\omega+1}) ring operations, where O~\tilde{O} 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 nn in the entries, and costs a factor about nn: every operation becomes an operation on power series truncated at order n+1n+1. With fast polynomial multiplication over an arbitrary ring [8], this gives O~(nω+1)\tilde{O}(n^{\omega+1}) 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 O~(nω+1)\tilde{O}(n^{\omega+1}) 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 O~(nω/2+2)\tilde{O}(n^{\omega/2+2}) ring operations (see also [29]). With block projections, the cost is further reduced to O(nη)O(n^{\eta}) [19], where η\eta depends on ω\omega and on the exponent of rectangular matrix multiplication. With the exponents known at the time, this gave η≈2.7\eta \approx 2.7, that is, η−ω≈0.32\eta - \omega \approx 0.32. For a fixed exponent of rectangular matrix multiplication, this difference η−ω\eta - \omega increases when ω\omega decreases, and it is 1/21/2 for ω=2\omega = 2, whatever the rectangular exponent [19, Table 6.1].

Whether the exponent ω\omega 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 O(nω)O(n^\omega) (up to logarithmic factors) and depth O(log⁡2n)O(\log^2 n). We do not address the depth here.

Kaltofen and Storjohann list the division-free computation of the characteristic polynomial in nω+o(1)n^{\omega+o(1)} 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.

References (33)