Linear-Algebra-Done-Right ยท Unit 28 ยท Video 5 ยท Interactive Practice

The Determinant Formula: A Signed Sum over Permutations

IKey Formulas

FormulaNameWhat it says
(v1,โ€ฆ,vn)โ†ฆdetโก(v1โ‹ฏvn)(v_1, \dots, v_n) \mapsto \det\begin{pmatrix} v_1 & \cdots & v_n \end{pmatrix}Determinant of the columnsThe alternating nn-linear form on Fn\mathbf{F}^n equal to 11 on e1,โ€ฆ,ene_1, \dots, e_n
detโกA=โˆ‘(j1,โ€ฆ,jn)โˆˆpermโกnsignโก(j1,โ€ฆ,jn)โ€‰Aj1,1โ‹ฏAjn,n\det A = \displaystyle\sum_{(j_1, \dots, j_n) \in \operatorname{perm} n} \operatorname{sign}(j_1, \dots, j_n)\, A_{j_1, 1} \cdots A_{j_n, n}The permutation formulaOne entry from each column, rows named by the permutation
detโกA=A1,1A2,2โˆ’A2,1A1,2\det A = A_{1,1} A_{2,2} - A_{2,1} A_{1,2}n=2n = 2Two permutations: (1,2)(1, 2) and (2,1)(2, 1)
detโกA=ฮป1โ‹ฏฮปn\det A = \lambda_1 \cdots \lambda_nUpper triangular, diagonal ฮป1,โ€ฆ,ฮปn\lambda_1, \dots, \lambda_nEvery other term picks an entry below the diagonal

Key Insight: the formula has n!n! terms, already 3,628,8003{,}628{,}800 for n=10n = 10. It is a tool for proofs, not for computation.

IISix Signed Products

Each permutation of 1,2,31, 2, 3 names one row in each column; the determinant is the signed sum of the six products.

IIIWhy Upper Triangular Leaves One Term

Every permutation other than the identity has some jk>kj_k > k, which picks a zero below the diagonal.

IVQuiz Questions

Problem 1 ยท A 2-by-2 Determinant

Given: A=(5234)A = \begin{pmatrix} 5 & 2 \\ 3 & 4 \end{pmatrix}. Find detโกA\det A.

โœ… Correct! 5โ‹…4โˆ’3โ‹…2=145 \cdot 4 - 3 \cdot 2 = 14.
โŒ Not quite. The permutation (2,1)(2, 1) has one inversion, so its term A2,1A1,2A_{2,1}A_{1,2} is subtracted.
โŒ Not quite. The identity term A1,1A2,2A_{1,1}A_{2,2} has sign +1+1.
โŒ Not quite. AA is not triangular, so the term of (2,1)(2, 1) is not zero.
โŒ Not quite. Use detโกA=A1,1A2,2โˆ’A2,1A1,2\det A = A_{1,1}A_{2,2} - A_{2,1}A_{1,2}.
Show solution

The two permutations of 1,21, 2 are (1,2)(1, 2) with sign +1+1 and (2,1)(2, 1) with sign โˆ’1-1:

detโกA=A1,1A2,2โˆ’A2,1A1,2=5โ‹…4โˆ’3โ‹…2=20โˆ’6=14.\det A = A_{1,1}A_{2,2} - A_{2,1}A_{1,2} = 5 \cdot 4 - 3 \cdot 2 = 20 - 6 = 14.

Problem 2 ยท One Term of a 3-by-3 Determinant

Given: a 3ร—33 \times 3 matrix AA. Which signed product is the term of the permutation (2,3,1)(2, 3, 1) in the formula for detโกA\det A?

โœ… Correct! Column kk contributes the entry in row jkj_k, and (2,3,1)(2, 3, 1) has two inversions, so the sign is +1+1.
โŒ Not quite. (2,3,1)(2, 3, 1) has two inversions (11 comes after 22 and after 33), so its sign is +1+1.
โŒ Not quite. That reads the permutation as column indices. In Ajk,kA_{j_k, k} the permutation gives the rows; A1,2A2,3A3,1A_{1,2}A_{2,3}A_{3,1} is the term of (3,1,2)(3, 1, 2).
โŒ Not quite. A1,1A2,3A3,2A_{1,1}A_{2,3}A_{3,2} belongs to the permutation (1,3,2)(1, 3, 2), and its sign is โˆ’1-1.
Show solution

The term of (j1,j2,j3)(j_1, j_2, j_3) is signโก(j1,j2,j3)โ€‰Aj1,1Aj2,2Aj3,3\operatorname{sign}(j_1, j_2, j_3)\, A_{j_1, 1} A_{j_2, 2} A_{j_3, 3}. With (j1,j2,j3)=(2,3,1)(j_1, j_2, j_3) = (2, 3, 1) the entries are A2,1A_{2,1}, A3,2A_{3,2}, A1,3A_{1,3}.

Inversions of (2,3,1)(2, 3, 1): the pairs {1,2}\{1, 2\} and {1,3}\{1, 3\}, so N=2N = 2 and the sign is +1+1. The term is +A2,1A3,2A1,3+A_{2,1}A_{3,2}A_{1,3}.

Problem 3 ยท An Upper Triangular Matrix

Given: A=(27โˆ’140โˆ’35100180002)A = \begin{pmatrix} 2 & 7 & -1 & 4 \\ 0 & -3 & 5 & 1 \\ 0 & 0 & 1 & 8 \\ 0 & 0 & 0 & 2 \end{pmatrix}. Find detโกA\det A.

โœ… Correct! 2โ‹…(โˆ’3)โ‹…1โ‹…2=โˆ’122 \cdot (-3) \cdot 1 \cdot 2 = -12; the entries above the diagonal play no part.
โŒ Not quite. 22 is the sum of the diagonal entries; the determinant is their product.
โŒ Not quite. Keep the sign of the diagonal entry โˆ’3-3.
โŒ Not quite. Only the identity term survives, and its product contains no zero.
Show solution

For any permutation other than the identity, some jk>kj_k > k, so the factor Ajk,kA_{j_k, k} lies below the diagonal and is 00. Only the identity term survives, with sign +1+1:

detโกA=A1,1A2,2A3,3A4,4=2โ‹…(โˆ’3)โ‹…1โ‹…2=โˆ’12.\det A = A_{1,1}A_{2,2}A_{3,3}A_{4,4} = 2 \cdot (-3) \cdot 1 \cdot 2 = -12.

Problem 4 ยท Operating on the Columns

Given: v1,v2,v3โˆˆF3v_1, v_2, v_3 \in \mathbf{F}^3 with detโก(v1v2v3)=4\det\begin{pmatrix} v_1 & v_2 & v_3 \end{pmatrix} = 4. Find detโก(v2v13v3+v1)\det\begin{pmatrix} v_2 & v_1 & 3v_3 + v_1 \end{pmatrix}.

โœ… Correct! 3detโก(v2,v1,v3)+detโก(v2,v1,v1)=3โ‹…(โˆ’4)+0=โˆ’123\det(v_2, v_1, v_3) + \det(v_2, v_1, v_1) = 3 \cdot (-4) + 0 = -12.
โŒ Not quite. Swapping the first two columns multiplies the determinant by โˆ’1-1.
โŒ Not quite. Linearity in column 33 pulls out the factor 33.
โŒ Not quite. Only the v1v_1 part of column 33 repeats a column; the 3v33v_3 part does not.
โŒ Not quite. Use that the determinant is an alternating 33-linear form in the columns.
Show solution

The determinant is linear in column 33:

detโก(v2,v1,3v3+v1)=3detโก(v2,v1,v3)+detโก(v2,v1,v1).\det(v_2, v_1, 3v_3 + v_1) = 3\det(v_2, v_1, v_3) + \det(v_2, v_1, v_1).

The second term has two equal columns, so it is 00. Swapping the first two columns changes the sign: detโก(v2,v1,v3)=โˆ’detโก(v1,v2,v3)=โˆ’4\det(v_2, v_1, v_3) = -\det(v_1, v_2, v_3) = -4. So the answer is 3โ‹…(โˆ’4)=โˆ’123 \cdot (-4) = -12.

Solved: 0 / 4