Course index · Chapter 2 · Leon, Linear Algebra with Applications, 8th ed.

Determinants, hands-on

One number decides whether a square matrix can be inverted. Here you can compute it three ways (cofactors, elimination, geometry), see why row operations change it the way they do, solve systems with Cramer's rule, and decode a hidden message. Every exercise is checked exactly.

≔

Definitions, animated

The chapter's definitions and key theorems. Animations are paced for following step by step; use the speed buttons under a video to change the pace. Jump to a card here.
2.1

The determinant of a matrix

Minors, cofactors, and expansion along any row or column

For a 2 × 2 matrix, det(A) = a11a22 − a12a21, and A is nonsingular exactly when this number is not 0. Larger determinants are defined inductively: delete a row and a column to get a smaller matrix (a minor), attach a sign, and add up.

Geometrically, |det A| is the area (in 3D, the volume) of the parallelogram spanned by the columns, and the sign records whether the columns keep or reverse the orientation of the plane.

Cofactor expansion explorer

Definition, Theorem 2.1.1 · Exercises 2.1.1, 2.1.3
expand along
How much work is this? (Table 1 of §2.2)

A cofactor expansion of an n × n determinant needs about n! multiplications; elimination needs about n3/3. For n = 25 the factorial is about 1.5 × 1025.

Try this
  • Expand the same matrix along different rows and columns. The terms change but the total does not (Theorem 2.1.1).
  • Load the 4 × 4 example with many zeros. The suggested line skips every zero entry, so only one 3 × 3 minor is needed.
  • Make two rows equal, or a row of zeros, and watch the determinant become 0 (Theorem 2.1.4).

The determinant as a signed area

Geometric meaning of det for 2 × 2 matrices

Drag the tips of a₁ and a₂, the columns of A.

Try this
  • Swap the two columns. The area stays the same, the sign flips, and the letter F comes out mirrored.
  • Make the columns parallel. The parallelogram collapses and det A = 0: no inverse can undo a collapse.
  • Slide a₂ parallel to a₁ (a shear). The area does not change: that is row/column operation III.
2.2

Properties of determinants

Row operations, singularity, and det(AB) = det(A) det(B)

Each elementary row operation changes the determinant in a predictable way: I. interchanging two rows changes its sign, II. multiplying a row by α multiplies it by α, III. adding a multiple of one row to another leaves it unchanged. So the determinant can be computed by reducing to triangular form and multiplying the diagonal entries, at a cost of about n3/3 operations instead of n!.

Theorem 2.2.2 · Theorem 2.2.3An n × n matrix A is singular if and only if det(A) = 0. For n × n matrices A and B, det(AB) = det(A) det(B).

Determinant by elimination, with a ledger

Lemma 2.2.1–Theorem 2.2.2 · Exercise 2.2.2
    Try this
    • Load Exercise 2.2.2 and run to triangular form. The ledger multiplies the diagonal and undoes each swap's sign change.
    • Scale a row by 3 yourself. The ledger divides by 3 at the end, so the answer for det(A) does not change.
    2.3

    Additional topics and applications

    The adjoint, Cramer's rule, and coded messages

    The adjoint adj A is the transpose of the matrix of cofactors. It satisfies A(adj A) = det(A)I, so when det(A) ≠ 0, A−1 = adj A / det(A). Applied to Ax = b, this gives Cramer's rule.

    Theorem 2.3.1 · Cramer's ruleIf A is a nonsingular n × n matrix and b ∈ ℝn, let Ai be the matrix obtained by replacing the ith column of A by b. Then the unique solution of Ax = b is xi = det(Ai) / det(A).

    Cramer's rule and the adjoint

    Theorem 2.3.1 · Exercises 2.3.1–2.3.3
    Try this
    • Each Ai differs from A in one column only, highlighted. Watch which determinant ends up in which numerator.
    • In the adjoint view, check that A times adj A is det(A) times the identity.

    Coded messages

    Application 1 · Exercise 2.3.14

    Write each letter as a number (space = 0, A = 1, …, Z = 26), put the numbers into the columns of a matrix B, and send AB. If A has integer entries and det(A) = ±1, then A−1 = ±adj A also has integer entries, so the receiver can decode exactly.

    1 · numbers
    2 · sent (A × columns)
    3 · decoded with A⁻¹