Linear AlgebraDeterminants

Properties of Determinants

Row operations change the determinant in predictable ways; det(AB) = det A det B.

Not started Jump to practice

Cofactor expansion is slow for big matrices. Row reduction from echelon form is fast, and the determinant changes in a simple, predictable way under each row operation.

How row operations change det A.
Row operationEffect on the determinant
Replacement: add a multiple of one row to anotherNo change
Interchange: swap two rowsMultiplied by $-1$
Scaling: multiply one row by $k$Multiplied by $k$

Why it works

Two facts about the determinant do the work: it is linear in each row (if you fix the other rows, it is a linear function of the remaining one) and it changes sign when two rows are swapped. Scaling a row by $k$ multiplies by $k$ by linearity. A matrix with two equal rows has determinant $0$, because swapping those rows changes nothing yet must flip the sign. Then replacement: $$\det(\ldots, \mathbf{r}_i + c\mathbf{r}_j, \ldots) = \det(\ldots, \mathbf{r}_i, \ldots) + c\det(\ldots, \mathbf{r}_j, \ldots),$$ and the second determinant has row $\mathbf{r}_j$ twice, so it is $0$. Geometrically, a replacement is a shear, and shears do not change area.

Worked example: Determinant by row reduction

Find $\det C$ for $C = \begin{bmatrix} 0 & 2 & 4 \\ 1 & 3 & 5 \\ 2 & 1 & -1 \end{bmatrix}$.
  1. $R_{1} \leftrightarrow R_{2}$ to get a nonzero pivot: the determinant flips sign. $\begin{bmatrix} 1 & 3 & 5 \\ 0 & 2 & 4 \\ 2 & 1 & -1 \end{bmatrix}$
  2. $R_{3} \to R_{3} - 2R_{1}$ and then $R_{3} \to R_{3} + \frac{5}{2}R_{2}$ (replacements, no change): $\begin{bmatrix} 1 & 3 & 5 \\ 0 & 2 & 4 \\ 0 & 0 & -1 \end{bmatrix}$
  3. Triangular, so its determinant is $1 \cdot 2 \cdot (-1) = -2$.
  4. Undo the one swap: $\det C = -(-2) = 2$.

Answer: $2$

This gives a fast method for any size: row reduce to an echelon form $U$ using replacements and swaps only. If you made $r$ swaps, then $\det A$ is $(-1)^{r}$ times the product of the diagonal entries of $U$. For a $20 \times 20$ matrix that is a few thousand arithmetic steps instead of the $20!$ terms of cofactor expansion.

Products, transposes and inverses

  • $\det(AB) = (\det A)(\det B)$.
  • $\det A^{T} = \det A$, so everything said about rows holds for columns too.
  • $A$ is invertible exactly when $\det A \neq 0$, and then $\det A^{-1} = \dfrac{1}{\det A}$ (from $\det A \cdot \det A^{-1} = \det I = 1$).
  • For an $n \times n$ matrix, $\det(kA) = k^{n}\det A$: every one of the $n$ rows is scaled by $k$.

Worked example: Combining the rules

$A$ and $B$ are $3 \times 3$ with $\det A = 2$ and $\det B = -5$. Find $\det(2A^{T}B^{-1})$.
  1. $\det(2A^{T}B^{-1}) = 2^{3}\det(A^{T}B^{-1})$, since $2A^{T}B^{-1}$ is $3 \times 3$.
  2. $\det(A^{T}B^{-1})$ $= \det A^{T}\cdot\det B^{-1}$ $= 2 \cdot \left(-\frac{1}{5}\right)$ $= -\frac{2}{5}$.
  3. Total: $8 \cdot \left(-\frac{2}{5}\right) = -\frac{16}{5}$.

Answer: $-\frac{16}{5}$

Common mistake

Assuming $\det(A + B) = \det A + \det B$. The determinant respects products, not sums. With $A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}$ and $B = \begin{bmatrix} 2 & 0 \\ 1 & 3 \end{bmatrix}$: $\det A + \det B = -2 + 6 = 4$, but $A + B = \begin{bmatrix} 3 & 2 \\ 4 & 7 \end{bmatrix}$ has determinant $21 - 8 = 13$. Quick check: try $A = B = I_2$; then $\det(2I) = 4$, not $2$.
A row replacement acts like a shear: the area, and so the determinant, does not change.

Key idea

Reduce to triangular form, multiply the diagonal, and correct for the operations: each swap flips the sign, each scaling by $k$ multiplies by $k$, replacements change nothing. And $\det(AB) = \det A\det B$, $\det A^{T} = \det A$, $\det A^{-1} = 1/\det A$.

Practice

Pass with 3 right answers, the last 2 in a row. Each right answer earns 2 XP.

Loading practice…

Builds on

Leads to

Sources and further reading

  • Margalit and Rabinoff, Interactive Linear Algebra (Georgia Tech), §4.1 Determinants: Definition
  • MIT OpenCourseWare 18.06 Linear Algebra (Gilbert Strang, Spring 2010), Lecture 18: Properties of Determinants
@teddyrookbook GitHub