LINEAR-ALGEBRA ยท Unit 17 ยท Video 3 ยท Interactive Practice

Multiply the Diagonal: The Only Determinant Trick You Actually Need

IKey Formulas

Formula Name Key Fact
detโก(U)=u11โ‹…u22โ‹ฏunn\det(U) = u_{11} \cdot u_{22} \cdots u_{nn} Triangular determinant Product of diagonal entries
detโก(A)=(โˆ’1)rโ€‰p1โ€‰p2โ‹ฏpn\det(A) = (-1)^r \, p_1 \, p_2 \cdots p_n Elimination formula rr = row swaps, pip_i = pivots
Riโ†Ri+cโ€‰RjR_i \leftarrow R_i + c\,R_j Row replacement (P5) Does not change det
Riโ†”RjR_i \leftrightarrow R_j Row swap (P2) Flips sign of det

IIVisualization 1 โ€” Triangular Determinant = Diagonal Product

In a triangular matrix only the diagonal entries reach the determinant โ€” the entries above never do.

๐Ÿ’ก Row-replacement clears every above-diagonal entry without changing the determinant, so only the diagonal product survives.

IIIVisualization 2 โ€” Elimination Tracks the Determinant

Elimination drives AA to upper-triangular form; each move either preserves the determinant or flips its sign.

IVVisualization 3 โ€” Why Libraries Use Elimination

Cofactor expansion costs O(n!)O(n!); elimination costs O(n3)O(n^3) โ€” the gap explodes as nn grows.

VQuiz Questions

Question 1

Consider the upper triangular matrix:

U=[231054003]U = \begin{bmatrix} 2 & 3 & 1 \\ 0 & 5 & 4 \\ 0 & 0 & 3 \end{bmatrix}

What is detโก(U)\det(U)?

โœ… Correct! The determinant of a triangular matrix is the product of its diagonal entries: 2 ร— 5 ร— 3 = 30.

โŒ Not quite. For a triangular matrix, only the diagonal entries matter โ€” multiply them together.

Show solution

Solution:

For an upper triangular matrix, the determinant equals the product of the diagonal entries:

detโก(U)=2ร—5ร—3=30\det(U) = 2 \times 5 \times 3 = 30

The off-diagonal entries (3,1,4)(3, 1, 4) do not affect the determinant. You can verify this using the argument from the video: use row replacement to zero out entries above the diagonal (Property 5 โ€” det unchanged), then factor out each diagonal entry (Property 3A), leaving the identity matrix (Property 1 โ€” det = 1).

Question 2

During Gaussian elimination of a matrix AA, you perform one row swap and arrive at the upper triangular form:

U=[312021005/2]U = \begin{bmatrix} 3 & 1 & 2 \\ 0 & 2 & 1 \\ 0 & 0 & 5/2 \end{bmatrix}

What is detโก(A)\det(A)?

โœ… Correct! The pivot product is 15, but the single row swap flips the sign to โˆ’15.

โŒ Almost! You got the pivot product right, but forgot the sign flip from the row swap. Each swap multiplies the determinant by โˆ’1.

โŒ Not quite. Apply the formula: det(A) = (โˆ’1)^r ร— (product of pivots), where r = number of row swaps.

Show solution

Solution:

Use the elimination formula: detโก(A)=(โˆ’1)rร—p1ร—p2ร—p3\det(A) = (-1)^r \times p_1 \times p_2 \times p_3

Step 1 โ€” Product of pivots: p1โ‹…p2โ‹…p3=3ร—2ร—52=15p_1 \cdot p_2 \cdot p_3 = 3 \times 2 \times \tfrac{5}{2} = 15

Step 2 โ€” Sign correction: r=1r = 1 swap, so (โˆ’1)1=โˆ’1(-1)^1 = -1

Step 3 โ€” Final answer: detโก(A)=(โˆ’1)ร—15=โˆ’15\det(A) = (-1) \times 15 = -15

Each row swap flips the sign of the determinant (Property 2). Forgetting this sign correction is the most common mistake!

Question 3

True or False: If Gaussian elimination produces a zero pivot and no row swap can fix it (no nonzero entry below in that column), then detโก(A)=0\det(A) = 0.

โœ… Correct! A zero pivot with no possible swap means a zero in the diagonal product, giving det = 0.

โŒ Not quite. If a pivot is zero, the entire product of pivots becomes zero โ€” and so does the determinant.

Show solution

Answer: True

Here is the reasoning:

  1. If no row swap can produce a nonzero pivot, the elimination results in a row of all zeros in the upper triangular form UU.
  2. That zero row means at least one diagonal entry (pivot) is 00.
  3. The product of the pivots includes a factor of 00, so the product is 00.
  4. Therefore detโก(A)=(โˆ’1)rร—0=0\det(A) = (-1)^r \times 0 = 0.

A zero determinant means the matrix is singular โ€” it has no inverse. This is the "binary test" from the video: detโก(A)=0โ€…โ€ŠโŸบโ€…โ€ŠA\det(A) = 0 \iff A is singular.

Question 4

You perform Gaussian elimination on a 4ร—44 \times 4 matrix AA, making 3 row swaps. The pivots of the resulting upper triangular matrix are 2,โˆ’1,4,32, -1, 4, 3.

What is detโก(A)\det(A)?

โœ… Correct! The negative from the odd number of swaps and the negative pivot cancel, giving det(A) = 24.

โŒ Close! You may have either forgotten the sign correction or missed one of the negatives. Carefully track: (โˆ’1)ยณ ร— (2)(โˆ’1)(4)(3) = (โˆ’1)(โˆ’24) = 24.

โŒ Not quite. First multiply all four pivots together, then apply the (โˆ’1)^r sign correction for the row swaps.

Show solution

Solution:

Apply detโก(A)=(โˆ’1)rร—p1โ‹…p2โ‹…p3โ‹…p4\det(A) = (-1)^r \times p_1 \cdot p_2 \cdot p_3 \cdot p_4.

Step 1 โ€” Product of pivots: 2ร—(โˆ’1)ร—4ร—3=โˆ’242 \times (-1) \times 4 \times 3 = -24

Step 2 โ€” Sign correction: r=3r = 3 swaps, so (โˆ’1)3=โˆ’1(-1)^3 = -1

Step 3 โ€” Combine: detโก(A)=(โˆ’1)ร—(โˆ’24)=24\det(A) = (-1) \times (-24) = 24

The two negatives โ€” one from the odd number of swaps and one from the negative pivot โ€” cancel each other out, giving a positive determinant.

Solved: 0 / 4