Leibniz formula for determinants

From testwiki
Revision as of 12:24, 12 November 2023 by 138.251.116.124 (talk) (Incorrect use of notation for element of a matrix. There's no point in the comma)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Short description In algebra, the Leibniz formula, named in honor of Gottfried Leibniz, expresses the determinant of a square matrix in terms of permutations of the matrix elements. If A is an n×n matrix, where aij is the entry in the i-th row and j-th column of A, the formula is

det(A)=τSnsgn(τ)i=1naiτ(i)=σSnsgn(σ)i=1naσ(i)i

where sgn is the sign function of permutations in the permutation group Sn, which returns +1 and 1 for even and odd permutations, respectively.

Another common notation used for the formula is in terms of the Levi-Civita symbol and makes use of the Einstein summation notation, where it becomes

det(A)=ϵi1ina1i1anin,

which may be more familiar to physicists.

Directly evaluating the Leibniz formula from the definition requires Ω(n!n) operations in general—that is, a number of operations asymptotically proportional to n factorial—because n! is the number of order-n permutations. This is impractically difficult for even relatively small n. Instead, the determinant can be evaluated in O(n3) operations by forming the LU decomposition A=LU (typically via Gaussian elimination or similar methods), in which case detA=detLdetU and the determinants of the triangular matrices L and U are simply the products of their diagonal entries. (In practical applications of numerical linear algebra, however, explicit computation of the determinant is rarely required.) See, for example, Template:Harvtxt. The determinant can also be evaluated in fewer than O(n3) operations by reducing the problem to matrix multiplication, but most such algorithms are not practical.

Formal statement and proof

Theorem. There exists exactly one function F:Mn(𝕂)𝕂 which is alternating multilinear w.r.t. columns and such that F(I)=1.

Proof.

Uniqueness: Let F be such a function, and let A=(aij)i=1,,nj=1,,n be an n×n matrix. Call Aj the j-th column of A, i.e. Aj=(aij)i=1,,n, so that A=(A1,,An).

Also, let Ek denote the k-th column vector of the identity matrix.

Now one writes each of the Aj's in terms of the Ek, i.e.

Aj=k=1nakjEk.

As F is multilinear, one has

F(A)=F(k1=1nak11Ek1,,kn=1naknnEkn)=k1,,kn=1n(i=1nakii)F(Ek1,,Ekn).

From alternation it follows that any term with repeated indices is zero. The sum can therefore be restricted to tuples with non-repeating indices, i.e. permutations:

F(A)=σSn(i=1naσ(i)i)F(Eσ(1),,Eσ(n)).

Because F is alternating, the columns E can be swapped until it becomes the identity. The sign function sgn(σ) is defined to count the number of swaps necessary and account for the resulting sign change. One finally gets:

F(A)=σSnsgn(σ)(i=1naσ(i)i)F(I)=σSnsgn(σ)i=1naσ(i)i

as F(I) is required to be equal to 1.

Therefore no function besides the function defined by the Leibniz Formula can be a multilinear alternating function with F(I)=1.

Existence: We now show that F, where F is the function defined by the Leibniz formula, has these three properties.

Multilinear:

F(A1,,cAj,)=σSnsgn(σ)caσ(j)ji=1,ijnaσ(i)i=cσSnsgn(σ)aσ(j)ji=1,ijnaσ(i)i=cF(A1,,Aj,)F(A1,,b+Aj,)=σSnsgn(σ)(bσ(j)+aσ(j)j)i=1,ijnaσ(i)i=σSnsgn(σ)((bσ(j)i=1,ijnaσ(i)i)+(aσ(j)ji=1,ijnaσ(i)i))=(σSnsgn(σ)bσ(j)i=1,ijnaσ(i)i)+(σSnsgn(σ)i=1naσ(i)i)=F(A1,,b,)+F(A1,,Aj,)

Alternating:

F(,Aj1,,Aj2,)=σSnsgn(σ)(i=1,ij1,ij2naσ(i)i)aσ(j1)j1aσ(j2)j2

For any σSn let σ be the tuple equal to σ with the j1 and j2 indices switched.

F(A)=σSn,σ(j1)<σ(j2)[sgn(σ)(i=1,ij1,ij2naσ(i)i)aσ(j1)j1aσ(j2)j2+sgn(σ)(i=1,ij1,ij2naσ(i)i)aσ(j1)j1aσ(j2)j2]=σSn,σ(j1)<σ(j2)[sgn(σ)(i=1,ij1,ij2naσ(i)i)aσ(j1)j1aσ(j2)j2sgn(σ)(i=1,ij1,ij2naσ(i)i)aσ(j2)j1aσ(j1)j2]=σSn,σ(j1)<σ(j2)sgn(σ)(i=1,ij1,ij2naσ(i)i)(aσ(j1)j1aσ(j2)j2aσ(j1)j2aσ(j2)j1)=0, if Aj1=Aj2

Thus if Aj1=Aj2 then F(,Aj1,,Aj2,)=0.

Finally, F(I)=1:

F(I)=σSnsgn(σ)i=1nIσ(i)i=σSnsgn(σ)i=1nδi,σ(i)=σSnsgn(σ)δσ,id{1n}=sgn(id{1n})=1

Thus the only alternating multilinear functions with F(I)=1 are restricted to the function defined by the Leibniz formula, and it in fact also has these three properties. Hence the determinant can be defined as the only function det:Mn(𝕂)𝕂 with these three properties.

See also

Template:Portal

References