توسع لاپلاس

(تم التحويل من Laplace expansion)

في الجبر الخطي، توسع لاپلاس Laplace expansion, المسمى على اسم پيير-سيمون لاپلاس، also called cofactor expansion, is an expression of the determinant of an n × n-matrix B as a weighted sum of minors, which are the determinants of some (n − 1) × (n − 1)-submatrices of B. Specifically, for every i, the Laplace expansion along the ith row is the equality det(B)=j=1n(1)i+jbi,jmi,j, where bi,j is the entry of the ith row and jth column of B, and mi,j is the determinant of the submatrix obtained by removing the ith row and the jth column of B. Similarly, the Laplace expansion along the jth column is the equality det(B)=i=1n(1)i+jbi,jmi,j. (Each identity implies the other, since the determinants of a matrix and its transpose are the same.)

The coefficient (1)i+jmi,j of bi,j in the above sum is called the cofactor of bi,j in B.

The Laplace expansion is often useful in proofs, as in, for example, allowing recursion on the size of matrices. It is also of didactic interest for its simplicity and as one of several ways to view and compute the determinant. For large matrices, it quickly becomes inefficient to compute when compared to Gaussian elimination.

أمثلة

Consider the matrix

B=[123456789].

The determinant of this matrix can be computed by using the Laplace expansion along any one of its rows or columns. For instance, an expansion along the first row yields:

|B|=1|5689|2|4679|+3|4578|[5pt]=1(3)2(6)+3(3)=0.

Laplace expansion along the second column yields the same result:

|B|=2|4679|+5|1379|8|1346|[5pt]=2(6)+5(12)8(6)=0.

It is easy to verify that the result is correct: the matrix is singular because the sum of its first and third column is twice the second column, and hence its determinant is zero.

البرهان

Suppose B is an n × n matrix and i,j{1,2,,n}. For clarity we also label the entries of B that compose its i,j minor matrix Mij as

(ast) for 1s,tn1.

Consider the terms in the expansion of |B| that have bij as a factor. Each has the form

sgnτb1,τ(1)bi,jbn,τ(n)=sgnτbija1,σ(1)an1,σ(n1)

for some permutation τSn with τ(i)=j, and a unique and evidently related permutation σSn1 which selects the same minor entries as τ. Similarly each choice of σ determines a corresponding τ i.e. the correspondence στ is a bijection between Sn1 and {τSn:τ(i)=j}. Using Cauchy's two-line notation, the explicit relation between τ and σ can be written as

σ=(12in1()j(τ(1))()j(τ(2))()j(τ(i+1))()j(τ(n)))

where ()j is a temporary shorthand notation for a cycle (n,n1,,j+1,j). This operation decrements all indices larger than j so that every index fits in the set {1,2,...,n-1}

The permutation τ can be derived from σ as follows. Define σSn by σ(k)=σ(k) for 1kn1 and σ(n)=n. Then σ is expressed as

σ=(12in1n()j(τ(1))()j(τ(2))()j(τ(i+1))()j(τ(n))n)

Now, the operation which apply ()i first and then apply σ is (Notice applying A before B is equivalent to applying inverse of A to the upper row of B in two-line notation)

σ()i=(12i+1ni()j(τ(1))()j(τ(2))()j(τ(i+1))()j(τ(n))n)

where ()i is temporary shorthand notation for (n,n1,,i+1,i).

the operation which applies τ first and then applies ()j is

()jτ=(12in1n()j(τ(1))()j(τ(2))n()j(τ(n1))()j(τ(n)))

above two are equal thus,

()jτ=σ()i
τ=()jσ()i

where ()j is the inverse of ()j which is (j,j+1,,n).

Thus

τ=(j,j+1,,n)σ(n,n1,,i)

Since the two cycles can be written respectively as ni and nj transpositions,

sgnτ=(1)2n(i+j)sgnσ=(1)i+jsgnσ.

And since the map στ is bijective,

i=1nτSn:τ(i)=jsgnτb1,τ(1)bn,τ(n)=i=1nσSn1(1)i+jsgnσbija1,σ(1)an1,σ(n1)=i=1nbij(1)i+jσSn1sgnσa1,σ(1)an1,σ(n1)=i=1nbij(1)i+jMij

from which the result follows. Similarly, the result holds if the index of the outer summation was replaced with j.[1]

Laplace expansion of a determinant by complementary minors

Laplace's cofactor expansion can be generalised as follows.

مثال

Consider the matrix

A=[12345678910111213141516].

The determinant of this matrix can be computed by using the Laplace's cofactor expansion along the first two rows as follows. Firstly note that there are 6 sets of two distinct numbers in {1, 2, 3, 4}, namely let S={{1,2},{1,3},{1,4},{2,3},{2,4},{3,4}} be the aforementioned set.

By defining the complementary cofactors to be

b{j,k}=|a1ja1ka2ja2k|,
c{p,q}=|a3pa3qa4pa4q|,

and the sign of their permutation to be

ε{j,k},{p,q}=sgn[1234jkpq], where pj,qk.

The determinant of A can be written out as

|A|=HSεH,HbHcH,

where H is the complementary set to H.

In our explicit example this gives us

|A|=b{1,2}c{3,4}b{1,3}c{2,4}+b{1,4}c{2,3}+b{2,3}c{1,4}b{2,4}c{1,3}+b{3,4}c{1,2}[5pt]=|1256||11121516||1357||10121416|+|1458||10111415|+|2367||9121316||2468||9111315|+|3478||9101314|[5pt]=4(4)(8)(8)+(12)(4)+(4)(12)(8)(8)+(4)(4)[5pt]=1664+48+4864+16=0.

As above, it is easy to verify that the result is correct: the matrix is singular because the sum of its first and third column is twice the second column, and hence its determinant is zero.

عبارة عامة

Let B=[bij] be an n × n matrix and S the set of k-element subsets of {1, 2, ... , n}, H an element in it. Then the determinant of B can be expanded along the k rows identified by H as follows:

|B|=LSεH,LbH,LcH,L

where εH,L is the sign of the permutation determined by H and L, equal to (1)(hHh)+(L), bH,L the square minor of B obtained by deleting from B rows and columns with indices in H and L respectively, and cH,L (called the complement of bH,L) defined to be bH,L , H and L being the complement of H and L respectively.

This coincides with the theorem above when k=1. The same thing holds for any fixed k columns.

الثمن الحسابي

The Laplace expansion is computationally inefficient for high-dimension matrices, with a time complexity in big O notation of O(n!). Alternatively, using a decomposition into triangular matrices as in the LU decomposition can yield determinants with a time complexity of O(n3).[2] The following Python code implements the Laplace expansion:

def determinant(M):
    # Base case of recursive function: 1x1 matrix
    if len(M) == 1: 
        return M[0][0]

    total = 0
    for column, element in enumerate(M[0]):
        # Exclude first row and current column.
        K = [x[:column] + x[column + 1 :] for x in M[1:]]
        s = 1 if column % 2 == 0 else -1 
        total += s * element * determinant(K)
    return total

انظر أيضاً

المراجع

  1. ^ Walter, Dan; Tytun, Alex (1949). "Elementary problem 834". American Mathematical Monthly. American Mathematical Society. 56 (6): 409.
  2. ^ Stoer Bulirsch: Introduction to Numerical Mathematics