Algebra

The same sum without its minus signs

Delete the signs from the determinant's sum over permutations and what is left counts things directly rather than by cancellation. It is a better count and a far worse object — because the cancellation was what made the determinant computable.

Worth reading first: A determinant that counts trees · Nine thousand four hundred and eight.

The determinant is a sum over the n!n! permutations, each term a product of one entry from each row and column, with a sign attached. Delete the signs and the definition still makes sense:

perA=σaσ(1)1aσ(2)2aσ(n)n.\operatorname{per} A = \sum_{σ} a_{σ(1)1} a_{σ(2)2} \cdots a_{σ(n)n}.

That is the permanent. It is the same list of products, added up differently, and the difference is worth an essay because almost nothing about the determinant survives the change.

A determinant of −5 and a permanent of 23 from the same six products. The six products of a three-by-three matrix listed once, added with signs to give the determinant and without signs to give the permanent, with a row operation applied to both.
Fig. 1 The six products of a three-by-three matrix, listed once and added twice. With signs they come to the determinant; without them, to the permanent. Underneath, one row operation: it leaves the determinant exactly where it was and moves the permanent by a factor of six.

What the unsigned sum counts

The permanent is the better of the two at counting, and the reason is that a count has no negative terms in it.

Take a matrix of ones and zeroes — the shape an incidence question always produces. Each term of the sum is a product of nn entries, one from each row and column, so it is 11 when every chosen entry is a one and 00 otherwise. The permanent is therefore the number of ways to choose one entry per row and column, all of them ones — which is the number of perfect matchings in the bipartite graph whose edges are the ones.

A determinant of −1 and a permanent of 3 from the same six products. The six products of a three-by-three matrix listed once, added with signs to give the determinant and without signs to give the permanent, with a row operation applied to both.
Fig. 2 A pattern of ones and zeroes. The permanent counts the ways to pick one entry per row and column with every pick a one; the figure checks that count directly against an enumeration of the permutations, and the determinant beside it is a signed combination with no such reading.

That single fact is why permanents appear wherever matchings do. Whether a matching exists at all is Hall’s condition and is easy; how many there are is the permanent, and is not.

It is also where this anchor meets the Latin squares. Extending a Latin rectangle by one row means choosing, for each column, a symbol it has not used — one entry per column and per symbol, from the pattern of what is still available. The number of ways to do it is the permanent of that pattern, and the count of Latin squares is a product of such permanents, one per row.

A 2-by-5 Latin rectangle, and the row that always follows. A partial Latin square, the symbols each column can still take drawn as a bipartite graph, and the matching that becomes the next row.
Fig. 3 Two rows of a Latin square and the availability pattern for the third. Hall’s condition guarantees at least one way to fill it; the permanent of that pattern is exactly how many ways there are, and it is the factor by which the count of Latin squares grows at this row.

And derangements are the permanent of the matrix with zeroes on the diagonal and ones everywhere else — the arrangements where nobody is matched to their own item.

Two objects, one list of products

It is worth pausing on how close the two are before cataloguing how differently they behave, because the closeness is the surprising part.

Both are sums over the same n!n! products. Both are multilinear in the rows and in the columns. Both are unchanged by transposing the matrix. Both take the value one on the identity, and both vanish on a matrix with a zero row. On a triangular matrix both are the product of the diagonal. On a matrix of ones and zeroes both are integers, and the permanent is the number of terms that survive while the determinant is that number counted with signs.

The list of shared properties is long enough that a reader might expect the two to be equally tractable, and the point of this essay is that a single missing property separates them completely. This is a pattern worth recognising: two definitions that differ in one clause can produce objects whose whole characters differ, and the clause that matters is rarely the one that looks most substantial. There, Latin squares and group tables differed by associativity alone and sixteen of five hundred and seventy-six survived it. Here the clause is a minus sign.

The property that was deleted

Recall the three conditions that force the determinant: multilinear in the columns, zero when two columns agree, one on the identity. The permanent keeps the first and the third, and drops the second.

The three conditions that force the determinant. Four parallelograms showing the effect of scaling a column, of repeating a column, and of the identity, with each area measured from its own corners.
Fig. 4 The three conditions again. The middle one — two columns the same, and no area at all — is the one the permanent gives up, and everything below is a consequence of giving it up.

That looks like a small concession. It is not, because the alternating property is precisely the licence for row operations.

Adding a multiple of one column to another changes a multilinear function by a multiple of its value on a matrix with a repeated column. For the determinant that correction is zero, so the operation is free. For the permanent the correction is a permanent with a repeated column, which is a positive number, so the operation changes the answer — and the figures compute both before and after.

What else fails

Multiplicativity. det(AB)=det(A)det(B)\det(AB) = \det(A)\det(B) was proved in this ladder by the uniqueness theorem: the map Adet(AB)/det(B)A \mapsto \det(AB)/\det(B) has all three properties, so it is the determinant. The permanent has no such uniqueness behind it, and no product rule: per(AB)\operatorname{per}(AB) has no useful relation to per(A)\operatorname{per}(A) and per(B)\operatorname{per}(B) at all.

Invariance under change of basis. The determinant of P1APP^{-1} A P is detA\det A, which is what makes it a property of a map rather than of a matrix. Without multiplicativity that argument evaporates, and the permanent genuinely depends on the coordinates: it is a function of a matrix, and it means nothing about the linear map that matrix represents.

Elimination. Reducing a matrix to triangular form is a sequence of row operations, and it is how any determinant of size worth mentioning is actually evaluated. Every one of those operations is illegal for the permanent.

A determinant of 5 and a permanent of 37 from the same six products. The six products of a three-by-three matrix listed once, added with signs to give the determinant and without signs to give the permanent, with a row operation applied to both.
Fig. 5 A second matrix and a different row operation. The determinant is unmoved again, and the permanent moves again — and there is no correction term that could be tracked, because the amount it moves by is itself a permanent.

The only symmetries the permanent has left are permuting rows, permuting columns, and scaling a row or column, all of which the determinant has too. Everything the determinant has beyond those came from the alternating property.

What is left to compute with

Without elimination the naive route is the definition, with its n!n! terms. There is one substantially better classical method: Ryser’s formula, from 1963, which rewrites the permanent by inclusion and exclusion over subsets of the columns and costs about 2nn2^n n operations rather than n!n!. At n=20n = 20 that is the difference between a few million million operations and a few tens of millions, and at n=60n = 60 both are hopeless.

That nothing much better is known is not for want of trying, and the reason has a name: Valiant proved in 1979 that computing the permanent of a matrix of ones and zeroes is complete for a class of counting problems believed to have no efficient algorithm — the same statement, in that setting, as “counting perfect matchings is hard”. The cost of procedures belongs to a different collection than this one; what belongs here is the algebraic half of the explanation, and it is the one this essay has been making. Elimination is the use of cancellation, and the permanent has none.

The contrast is sharp enough to be worth stating as a pair of sentences. The determinant of a matrix of ones and zeroes is a signed sum with no combinatorial meaning, and it is computable in a few thousand operations at n=20n = 20. The permanent of the same matrix is an exact count of something a reader can see, and nobody can compute it at n=60n = 60.

Where the two numbers actually differ

A small experiment makes the divergence concrete. On a matrix of ones and zeroes, the determinant is the number of even matchings minus the number of odd ones, and the permanent is their sum. So the two agree exactly when every matching has the same parity, and differ by twice the smaller group otherwise.

That reading gives a rough sense of when the determinant is a usable proxy. On a matrix whose ones are confined to a band near the diagonal, most matchings are close to the identity permutation and the parities are unbalanced, so the determinant is a substantial fraction of the permanent. On a dense matrix the parities are nearly balanced, cancellation is nearly total, and the determinant is a small number sitting beside an enormous one — the all-ones matrix at size nn has permanent n!n! and determinant zero, which is the extreme case of the phenomenon.

Zero is the right answer for the determinant there, of course: the all-ones matrix has repeated columns. But the pairing is exact and worth seeing — every one of the n!n! terms is 11, exactly half the permutations are even, and the sum with signs is nothing at all while the sum without is everything.

Could the signs be put back?

A natural hope, and one that was pursued seriously: perhaps the entries of a matrix can be given fixed signs — some entries negated, in a pattern depending only on the position — so that the determinant of the signed matrix equals the permanent of the original.

At n=2n = 2 it works. Negate the entry in the bottom left, and ad(b)c=ad+bcad - (-b)c = ad + bc, which is the permanent. Pólya observed this in 1913.

At n3n \ge 3 no such pattern exists, which Szegő proved in the same year. The reason is a counting one: the n!n! terms must all end up positive, and the sign a term receives is the product of the signs of its entries times the sign of its permutation, and those constraints are inconsistent as soon as there are enough permutations to constrain each other.

There is a subtler version of the question that is not hopeless — sign the entries in a way that depends on the matrix, so that a determinant computes that particular permanent — and it turns out to be possible exactly for a describable class of patterns. That is a genuinely deep result and it is a result about which patterns, not about all of them.

Bounds instead of a value

Since the value is out of reach, the subject deals in bounds, and the two classical ones bracket it from both sides.

Brégman’s inequality, from 1973 — the bound that also puts a ceiling on how many Latin squares there can be — bounds the permanent of a matrix of ones and zeroes above: with rir_i ones in row ii, the permanent is at most i(ri!)1/ri\prod_i (r_i!)^{1/r_i}. It is sharp when the ones form disjoint blocks.

The van der Waerden bound, conjectured in 1926 and proved by Egorychev and Falikman in 1981, bounds it below for doubly stochastic matrices: at least n!/nnn!/n^n. Sharp on the matrix with every entry 1/n1/n, which is the uniform mixture of all assignments.

Between them they pin the number of Latin squares of order six to within a factor of a few thousand — the truth is about four hundred times the lower bound and a ninth of the upper — which is a fair description of how well anybody can do with an object that is exactly defined and not computable.

A 3-regular bipartite graph split into 3 matchings. A bipartite graph in which every vertex has 3 edges, with its edges coloured so that each colour class is a complete matching.
Fig. 6 A regular bipartite graph peeled into perfect matchings. The permanent counts the matchings; the peeling shows only that they exist. That gap — an existence proof that is easy and a count that is not — is the whole subject of this rung, drawn as a picture of the easy half.

The permanent of a doubly stochastic matrix

One setting deserves its own section, because it is where the permanent is most studied and least like a count.

A doubly stochastic matrix has non-negative entries with every row and every column summing to one. Such a matrix is a mixture of permutations — that is Birkhoff’s theorem, and it is what a lottery over whole assignments is about — and its permanent measures something like how spread out the mixture is.

At one extreme sits a permutation matrix itself, whose permanent is one: the mixture is concentrated on a single assignment. At the other sits the matrix with every entry 1/n1/n, the uniform mixture, whose permanent is n!/nnn!/n^n. The van der Waerden bound says the uniform mixture is the minimum, which is the opposite of what a first guess suggests — the most spread-out mixture has the smallest permanent, because the permanent is a sum of products and products of many small numbers are small.

That inequality was conjectured in 1926 and resisted for fifty-five years, which is a long time for a statement about n×nn \times n matrices with a single-line hypothesis. Both proofs, found independently in 1981, are analytic: they treat the permanent as a function on the polytope of doubly stochastic matrices and study where it can be smallest. Nothing combinatorial about the argument, and nothing about it suggests a way to compute the number it bounds.

What the pictures cannot show

The figures compute both sums at n=3n = 3, where the six terms fit on the page. At n=4n = 4 there are twenty-four terms and the table would stop being readable; at n=10n = 10 there are over three million. So every drawing here is at the size where the distinction is visible and the difficulty is not, which is an uncomfortable place to be arguing that one of the two is hard.

What the drawings can do, and do, is exhibit the mechanism: the same products listed once, added two ways, with a row operation applied to both and its effect measured. That is the entire content of the essay in a form that can be checked, and it is checked — the determinant is asserted unchanged and the permanent asserted to move, at every parameter any figure here uses.

The hardness itself has no figure and could not have one. A statement that no efficient algorithm exists is a statement about every algorithm, and a picture exhibits one thing at a time. This collection’s habit is to draw the exhaustion when the exhaustion fits and to say plainly when it does not, and here it does not: n!n! is six at three, and past all drawing at ten.

What this anchor has come to

Five rungs, and the determinant has been an area, a volume forced by three conditions, the covolume of a lattice, a counting device, and — by its absence — an explanation of why a very similar sum is intractable.

The thread running through all of them is the alternating property. It is what makes the two-dimensional formula have a minus sign, what reduces nnn^n terms to n!n!, what kills the non-trees in Kirchhoff’s expansion and the crossing paths in the path lemma, and what licenses the elimination that makes the whole thing computable. Take it away and the object still exists, still counts things, and is useless to calculate with.

What is left unwritten and named: the exterior algebra, where the alternating property is built into the objects rather than imposed on a function, and the determinant becomes the statement that the top exterior power of an nn-dimensional space is one-dimensional. That is the account under which every fact in this ladder is a corollary, and it is a subject rather than a rung.

Shares its objects with

Essays that name at least two of the same things, and that neither author linked.

Named objects

A dashed tag is an object no other essay names yet.

BoundsCancellationCounting argumentDeterminantLatin squareMatchingMatrixMultilinearityPermanentPermutation