Linear Algebra — Lecture 5

Lecture 5: The Determinant and Its Properties

Shuhong Gao  ·  Clemson University

These notes are interactive: click a section title to open it, click any dotted term to unfold its exact definition or statement in place, click ▸ Proof to expand a proof, and try the exercises — answers are checked instantly.

5.1  The 2×22 \times 2 determinant, found by elimination

💡 Intuition

Lecture 4 ended with a question. Deciding whether a square matrix is invertible costs a full elimination; is there a single number, computed straight from the entries, that answers the question? For 2×22 \times 2 matrices the answer was already hiding in the 2×22 \times 2 inverse formula: the quantity ad−bcad - bc. In this section we watch that number appear when elimination is run on a general 2×22 \times 2 matrix, and we record how it reacts to row operations. Those reactions are what the rest of the lecture builds on.

Example 5.1 (Eliminating a general 2×22 \times 2 matrix)

Let A=(abcd)A = \begin{pmatrix} a & b \\ c & d \end{pmatrix}. Recall from the invertibility theorem that AA is invertible exactly when an echelon form of AA has two pivots.

Case a≠0a \neq 0. One replacement clears the first column: (abcd)→R2−caR1(ab0d−bca)=(ab0ad−bca).\begin{pmatrix} a & b \\ c & d \end{pmatrix} \overset{R_2 - \frac{c}{a} R_1}{\longrightarrow} \begin{pmatrix} a & b \\ 0 & d - \frac{bc}{a} \end{pmatrix} = \begin{pmatrix} a & b \\ 0 & \frac{ad - bc}{a} \end{pmatrix}. The first pivot is aa; there is a second pivot exactly when ad−bc≠0ad - bc \neq 0. Notice that the product of the two diagonal entries is a⋅ad−bca=ad−bca \cdot \frac{ad - bc}{a} = ad - bc.

Case a=0a = 0. If also c=0c = 0 the first column is zero and AA is not invertible; then ad−bc=0ad - bc = 0 too. If c≠0c \neq 0, swap the rows: (0bcd)→R1↔R2(cd0b),\begin{pmatrix} 0 & b \\ c & d \end{pmatrix} \overset{R_1 \leftrightarrow R_2}{\longrightarrow} \begin{pmatrix} c & d \\ 0 & b \end{pmatrix}, which has two pivots exactly when b≠0b \neq 0, that is, when −bc≠0-bc \neq 0, and −bc=ad−bc-bc = ad - bc because a=0a = 0. The product of the diagonal entries is now cbcb, the negative of ad−bcad - bc: the swap flipped the sign.

In every case, AA is invertible if and only if ad−bc≠0ad - bc \neq 0.

Definition 5.2 (Determinant of a 2×22 \times 2 matrix)

The determinant of A=(abcd)A = \begin{pmatrix} a & b \\ c & d \end{pmatrix} is the number detA=ad−bc.\det A = ad - bc .

Theorem 5.3 (The 2×22 \times 2 determinant detects invertibility)

A 2×22 \times 2 matrix AA is invertible if and only if detA≠0\det A \neq 0.

Proposition 5.4 (Row operations and the 2×22 \times 2 determinant)

Let AA be 2×22 \times 2.

  1. Swapping the two rows changes the sign of the determinant.
  2. Multiplying one row by a scalar kk multiplies the determinant by kk.
  3. Adding a multiple of one row to the other leaves the determinant unchanged.
  4. detI2=1\det I_2 = 1.

Remark 5.5 (What the properties buy)

The proposition explains the example. Elimination uses replacements, which do not change the determinant, and swaps, which only change its sign; when it stops, the matrix is triangular and its determinant is the product of its diagonal entries. So detA=±(product of the pivots),\det A = \pm \, (\text{product of the pivots}), with the sign recording the number of swaps. That sentence is the blueprint for every size: we will define det\det for n×nn \times n matrices, prove that it obeys the same four rules, and then compute it by elimination.

Exercise 5.1 auto-check

What is det(4−231)\det \begin{pmatrix} 4 & -2 \\ 3 & 1 \end{pmatrix}?

Answer:
Exercise 5.2 auto-check

A 2×22 \times 2 matrix AA has detA=5\det A = 5. Let BB be obtained from AA by swapping its rows and then multiplying the new first row by 33. What is detB\det B?

Answer:

5.2  The n×nn \times n determinant and its row properties

💡 Intuition

For larger matrices we need a formula that reduces to ad−bcad - bc when n=2n = 2 and obeys the same rules under row operations. The cleanest definition is recursive: an n×nn \times n determinant is a signed combination of (n−1)×(n−1)(n-1) \times (n-1) determinants, one for each entry of the first row. The definition is easy to state and easy to use on small matrices; the work is in proving that it really obeys the rules. Once that is done, we will almost never expand by the definition again.

Remark 5.6 (Mathematical induction)

The determinant is defined, and its properties are proved, by mathematical induction, a method we will use several more times. Suppose that for each integer n≥1n \ge 1 we have a statement P(n)P(n), for example ``the determinant of every n×nn \times n matrix is linear in each row''. To prove P(n)P(n) for all n≥1n \ge 1 it suffices to prove two things:

  1. Base case: P(1)P(1) is true.
  2. Inductive step: for every n≥2n \ge 2, if P(n−1)P(n-1) is true, then P(n)P(n) is true.
Why this covers infinitely many integers with only two arguments: the base case gives P(1)P(1); the inductive step with n=2n = 2 turns P(1)P(1) into P(2)P(2); with n=3n = 3 it turns P(2)P(2) into P(3)P(3); and so on, like a row of dominoes. To see that no integer is missed, suppose some P(n)P(n) were false, and let mm be the smallest integer for which it fails. Then m≠1m \neq 1 by the base case, so m≥2m \ge 2 and P(m−1)P(m-1) is true because m−1<mm - 1 < m; the inductive step then makes P(m)P(m) true, a contradiction. The base case may start at another integer (for instance n=2n = 2), and the conclusion then holds for all nn from that point on.

A recursive definition works the same way: we say what the object is for n=1n = 1, and, for each n≥2n \ge 2, how to build it for size nn out of objects of size n−1n - 1, which are already defined. The determinant below is defined in exactly this way, and the theorem on its basic properties that follows is proved by induction on nn.

Definition 5.7 (Minor)

Let AA be an n×nn \times n matrix with n≥2n \ge 2. For 1≤i,j≤n1 \le i, j \le n, the minor AijA_{ij} is the (n−1)×(n−1)(n-1) \times (n-1) matrix obtained from AA by deleting row ii and column jj.

Definition 5.8 (Determinant)

The determinant of an n×nn \times n matrix A=(aij)A = (a_{ij}) is defined recursively. For n=1n = 1, det(a11)=a11\det (a_{11}) = a_{11}. For n≥2n \ge 2, detA=∑j=1n(−1)1+ja1jdetA1j=a11detA11−a12detA12+a13detA13−⋯+(−1)1+na1ndetA1n.\begin{aligned} \det A &= \sum_{j=1}^{n} (-1)^{1+j} \, a_{1j} \det A_{1j} \\ &= a_{11}\det A_{11} - a_{12}\det A_{12} + a_{13}\det A_{13} - \cdots + (-1)^{1+n} a_{1n}\det A_{1n} . \end{aligned} This is called the expansion along the first row. Each minor is smaller than AA, so the recursion ends at 1×11 \times 1 matrices. We also write |A||A| for detA\det A.

Example 5.9 (Small cases)

For n=2n = 2 the minors are A11=(d)A_{11} = (d) and A12=(c)A_{12} = (c), so the definition gives a⋅d−b⋅ca \cdot d - b \cdot c, agreeing with the 2×22 \times 2 determinant.

For A=(2130−14120)A = \begin{pmatrix} 2 & 1 & 3 \\ 0 & -1 & 4 \\ 1 & 2 & 0 \end{pmatrix}, detA=2det(−1420)−1det(0410)+3det(0−112)=2(−8)−1(−4)+3(1)=−9.\begin{aligned} \det A &= 2 \det \begin{pmatrix} -1 & 4 \\ 2 & 0 \end{pmatrix} - 1 \det \begin{pmatrix} 0 & 4 \\ 1 & 0 \end{pmatrix} + 3 \det \begin{pmatrix} 0 & -1 \\ 1 & 2 \end{pmatrix} \\ &= 2(-8) - 1(-4) + 3(1) = -9 . \end{aligned}

Example 5.10 (The general 3×33 \times 3 determinant)

Expanding A=(aij)A = (a_{ij}) of size 3×33 \times 3 along its first row, and then each 2×22 \times 2 minor, detA=a11(a22a33−a23a32)−a12(a21a33−a23a31)+a13(a21a32−a22a31)=a11a22a33+a12a23a31+a13a21a32−a11a23a32−a12a21a33−a13a22a31.\begin{aligned} \det A &= a_{11}(a_{22}a_{33} - a_{23}a_{32}) - a_{12}(a_{21}a_{33} - a_{23}a_{31}) + a_{13}(a_{21}a_{32} - a_{22}a_{31}) \\ &= a_{11}a_{22}a_{33} + a_{12}a_{23}a_{31} + a_{13}a_{21}a_{32} - a_{11}a_{23}a_{32} - a_{12}a_{21}a_{33} - a_{13}a_{22}a_{31} . \end{aligned} There are six terms. Each is a product of three entries, one from each row and one from each column, and there is one term for each of the 3!=63! = 6 ways to choose the columns. In the same way an n×nn \times n determinant, fully expanded, has n!n! terms: 2424 for n=4n = 4, and about 2.4×10182.4 \times 10^{18} for n=20n = 20. Full expansion is a definition, not a method of computation.

Theorem 5.11 (The three basic properties)

For every n≥1n \ge 1 the determinant of n×nn \times n matrices has the following properties. Write det(𝐚1,…,𝐚n)\det(\mathbf{a}_1, \dots, \mathbf{a}_n) for the determinant of the matrix whose rows are 𝐚1,…,𝐚n\mathbf{a}_1, \dots, \mathbf{a}_n.

  1. Linear in each row. For every ii, all rows 𝐚1,…,𝐚n\mathbf{a}_1, \dots, \mathbf{a}_n and 𝐮,𝐯\mathbf{u}, \mathbf{v}, and all scalars s,ts, t, det(𝐚1,…,𝐚i−1,s𝐮+t𝐯,𝐚i+1,…,𝐚n)=sdet(𝐚1,…,𝐚i−1,𝐮,𝐚i+1,…,𝐚n)+tdet(𝐚1,…,𝐚i−1,𝐯,𝐚i+1,…,𝐚n).\begin{aligned} &\det(\mathbf{a}_1, \dots, \mathbf{a}_{i-1},\, s\,\mathbf{u} + t\,\mathbf{v},\, \mathbf{a}_{i+1}, \dots, \mathbf{a}_n) \\ &\qquad = s \det(\mathbf{a}_1, \dots, \mathbf{a}_{i-1},\, \mathbf{u},\, \mathbf{a}_{i+1}, \dots, \mathbf{a}_n) \\ &\qquad\quad + t \det(\mathbf{a}_1, \dots, \mathbf{a}_{i-1},\, \mathbf{v},\, \mathbf{a}_{i+1}, \dots, \mathbf{a}_n). \end{aligned}
  2. Alternating. If n≥2n \ge 2, swapping two rows changes the sign of the determinant.
  3. Normalized. detIn=1\det I_n = 1.

Corollary 5.12 (All row operations)

Let AA be n×nn \times n.

  1. If AA has two equal rows, then detA=0\det A = 0.
  2. If AA has a zero row, then detA=0\det A = 0.
  3. Scaling: multiplying a row of AA by cc multiplies detA\det A by cc.
  4. Replacement: adding cc times row kk to row ii (i≠ki \neq k) does not change detA\det A.
  5. Swap: exchanging two rows multiplies detA\det A by −1-1.

Definition 5.13 (Cofactor)

The (i,j)(i,j) cofactor of an n×nn \times n matrix AA is the number Cij=(−1)i+jdetAij.C_{ij} = (-1)^{i+j} \det A_{ij} . The signs (−1)i+j(-1)^{i+j} form a checkerboard, with ++ in position (1,1)(1,1). In this notation the definition of the determinant reads detA=a11C11+a12C12+⋯+a1nC1n\det A = a_{11}C_{11} + a_{12}C_{12} + \cdots + a_{1n}C_{1n}.

Theorem 5.14 (Cofactor expansion along any row)

For every n×nn \times n matrix AA with n≥2n \ge 2 and every row index ii, detA=∑k=1naikCik=ai1Ci1+ai2Ci2+⋯+ainCin.\det A = \sum_{k=1}^{n} a_{ik} C_{ik} = a_{i1}C_{i1} + a_{i2}C_{i2} + \cdots + a_{in}C_{in} . This is the expansion along row ii.

Remark 5.15 (The cross product in ℝ3\mathbb{R}^3)

The expansion along a row explains a formula familiar from calculus and physics. For 𝐮,𝐯∈ℝ3\mathbf{u}, \mathbf{v} \in \mathbb{R}^3 the cross product is the vector 𝐮×𝐯=(u2v3−u3v2u3v1−u1v3u1v2−u2v1),\mathbf{u} \times \mathbf{v} = \begin{pmatrix} u_2 v_3 - u_3 v_2 \\ u_3 v_1 - u_1 v_3 \\ u_1 v_2 - u_2 v_1 \end{pmatrix}, and the dot product of 𝐰,𝐱∈ℝ3\mathbf{w}, \mathbf{x} \in \mathbb{R}^3 is the number 𝐰⋅𝐱=𝐰T𝐱=w1x1+w2x2+w3x3\mathbf{w} \cdot \mathbf{x} = \mathbf{w}^{T}\mathbf{x} = w_1 x_1 + w_2 x_2 + w_3 x_3, the row–column product of 𝐰T\mathbf{w}^{T} with 𝐱\mathbf{x}.

Now let MM be the 3×33 \times 3 matrix with rows 𝐮T\mathbf{u}^{T}, 𝐯T\mathbf{v}^{T}, 𝐱T\mathbf{x}^{T}, and expand detM\det M along row 33. The cofactors of that row are computed from rows 11 and 22 alone: C31=+det(u2u3v2v3)=u2v3−u3v2,C32=−det(u1u3v1v3)=u3v1−u1v3,C33=+det(u1u2v1v2)=u1v2−u2v1.\begin{aligned} C_{31} &= +\det \begin{pmatrix} u_2 & u_3 \\ v_2 & v_3 \end{pmatrix} = u_2 v_3 - u_3 v_2, \\ C_{32} &= -\det \begin{pmatrix} u_1 & u_3 \\ v_1 & v_3 \end{pmatrix} = u_3 v_1 - u_1 v_3, \\ C_{33} &= +\det \begin{pmatrix} u_1 & u_2 \\ v_1 & v_2 \end{pmatrix} = u_1 v_2 - u_2 v_1 . \end{aligned} These are exactly the three entries of 𝐮×𝐯\mathbf{u} \times \mathbf{v}: the cross product is the vector of cofactors of the third row. So the expansion along row 33 reads det(u1u2u3v1v2v3x1x2x3)=x1C31+x2C32+x3C33=(𝐮×𝐯)⋅𝐱\begin{aligned} \det \begin{pmatrix} u_1 & u_2 & u_3 \\ v_1 & v_2 & v_3 \\ x_1 & x_2 & x_3 \end{pmatrix} &= x_1 C_{31} + x_2 C_{32} + x_3 C_{33} \\ &= (\mathbf{u} \times \mathbf{v}) \cdot \mathbf{x} \end{aligned} for every 𝐱∈ℝ3\mathbf{x} \in \mathbb{R}^3. The mnemonic from calculus, a “determinant” with 𝐞1,𝐞2,𝐞3\mathbf{e}_1, \mathbf{e}_2, \mathbf{e}_3 in its first row and 𝐮T\mathbf{u}^{T}, 𝐯T\mathbf{v}^{T} below, is the same bookkeeping: expanding it formally along the first row produces the same three 2×22 \times 2 determinants with the same signs, as the coefficients of 𝐞1,𝐞2,𝐞3\mathbf{e}_1, \mathbf{e}_2, \mathbf{e}_3. (It is not a determinant in our sense, since its first row holds vectors, not numbers.)

The familiar properties of the cross product are now properties of the determinant.

  1. Perpendicular to both factors. Taking 𝐱=𝐮\mathbf{x} = \mathbf{u} gives a matrix with two equal rows, so (𝐮×𝐯)⋅𝐮=0(\mathbf{u} \times \mathbf{v}) \cdot \mathbf{u} = 0 by the corollary on row operations; likewise (𝐮×𝐯)⋅𝐯=0(\mathbf{u} \times \mathbf{v}) \cdot \mathbf{v} = 0.
  2. Antisymmetric. Swapping rows 11 and 22 changes the sign of the determinant for every 𝐱\mathbf{x}, so (𝐯×𝐮)⋅𝐱=−(𝐮×𝐯)⋅𝐱(\mathbf{v} \times \mathbf{u}) \cdot \mathbf{x} = -(\mathbf{u} \times \mathbf{v}) \cdot \mathbf{x}. Taking 𝐱=𝐞1,𝐞2,𝐞3\mathbf{x} = \mathbf{e}_1, \mathbf{e}_2, \mathbf{e}_3 compares the entries, so 𝐯×𝐮=−𝐮×𝐯\mathbf{v} \times \mathbf{u} = -\,\mathbf{u} \times \mathbf{v}; in particular 𝐮×𝐮=0\mathbf{u} \times \mathbf{u} = \mathbf{0}.
  3. Volume. By the transpose theorem and the volume theorem, both proved later in this lecture, the triple product (𝐮×𝐯)⋅𝐰(\mathbf{u} \times \mathbf{v}) \cdot \mathbf{w} is, up to sign, the volume of the parallelepiped spanned by 𝐮,𝐯,𝐰\mathbf{u}, \mathbf{v}, \mathbf{w}: |(𝐮×𝐯)⋅𝐰|=|det(𝐮𝐯𝐰)|=volP(𝐮,𝐯,𝐰).\bigl|(\mathbf{u} \times \mathbf{v}) \cdot \mathbf{w}\bigr| = \bigl|\det(\mathbf{u}\ \mathbf{v}\ \mathbf{w})\bigr| = \operatorname{vol} P(\mathbf{u}, \mathbf{v}, \mathbf{w}) .
  4. Length. Write ∥𝐰∥=𝐰⋅𝐰\|\mathbf{w}\| = \sqrt{\mathbf{w} \cdot \mathbf{w}} for the length of 𝐰\mathbf{w}, and suppose 𝐮×𝐯≠0\mathbf{u} \times \mathbf{v} \neq \mathbf{0}. Taking 𝐰=𝐮×𝐯\mathbf{w} = \mathbf{u} \times \mathbf{v} in (3), the volume is (𝐮×𝐯)⋅(𝐮×𝐯)=∥𝐮×𝐯∥2(\mathbf{u} \times \mathbf{v}) \cdot (\mathbf{u} \times \mathbf{v}) = \|\mathbf{u} \times \mathbf{v}\|^2. That parallelepiped has as base the parallelogram spanned by 𝐮\mathbf{u} and 𝐯\mathbf{v}, and, by (1), height ∥𝐮×𝐯∥\|\mathbf{u} \times \mathbf{v}\|; so its volume is also the area of that parallelogram times ∥𝐮×𝐯∥\|\mathbf{u} \times \mathbf{v}\|. Dividing, ∥𝐮×𝐯∥\|\mathbf{u} \times \mathbf{v}\| is the area of the parallelogram spanned by 𝐮\mathbf{u} and 𝐯\mathbf{v}.
For example, 𝐮=(1,2,0)T\mathbf{u} = (1,\, 2,\, 0)^{T} and 𝐯=(0,1,3)T\mathbf{v} = (0,\, 1,\, 3)^{T} give 𝐮×𝐯=(6,−3,1)T\mathbf{u} \times \mathbf{v} = (6,\, -3,\, 1)^{T}. Indeed (𝐮×𝐯)⋅𝐮=6−6+0=0(\mathbf{u} \times \mathbf{v}) \cdot \mathbf{u} = 6 - 6 + 0 = 0 and (𝐮×𝐯)⋅𝐯=0−3+3=0(\mathbf{u} \times \mathbf{v}) \cdot \mathbf{v} = 0 - 3 + 3 = 0, and the parallelogram spanned by 𝐮\mathbf{u} and 𝐯\mathbf{v} has area 36+9+1=46\sqrt{36 + 9 + 1} = \sqrt{46}.

Exercise 5.3 auto-check

Expand along the first row: det(102310041)=?\det \begin{pmatrix} 1 & 0 & 2 \\ 3 & 1 & 0 \\ 0 & 4 & 1 \end{pmatrix} = \ ?

Answer:
Exercise 5.4 auto-check

A 4×44 \times 4 matrix has row 33 equal to twice row 11. What is its determinant?

5.3  Computing determinants by elimination

💡 Intuition

The row properties turn Gaussian elimination into a determinant calculator. Elimination needs only replacements and swaps to reach an echelon form; replacements leave the determinant alone and swaps flip its sign. A square echelon form is triangular, and the determinant of a triangular matrix is simply the product of its diagonal. So the determinant costs no more than one elimination, and along the way we get, for every nn, the invertibility test that ad−bcad - bc gave us for n=2n = 2.

Lemma 5.16 (Triangular matrices)

If AA is upper triangular (all entries below the diagonal are zero) or lower triangular (all entries above the diagonal are zero), then detA=a11a22⋯ann.\det A = a_{11} a_{22} \cdots a_{nn} .

Theorem 5.17 (Determinant by elimination)

Let AA be n×nn \times n, and reduce AA to an echelon form UU using only row replacements and ss row swaps. Then UU is upper triangular and detA=(−1)su11u22⋯unn.\det A = (-1)^{s} \, u_{11} u_{22} \cdots u_{nn} . Moreover, AA is invertible if and only if detA≠0\det A \neq 0.

Example 5.18 (A 4×44 \times 4 determinant with two swaps)

Let A=(0213110224151322)A = \begin{pmatrix} 0 & 2 & 1 & 3 \\ 1 & 1 & 0 & 2 \\ 2 & 4 & 1 & 5 \\ 1 & 3 & 2 & 2 \end{pmatrix}. The (1,1)(1,1) entry is 00, so begin with a swap, starting from AA: →R1↔R2(1102021324151322)→R3−2R1R4−R1(1102021302110220)→R3−R2R4−R2(11020213000−2001−3)→R3↔R4(11020213001−3000−2).\begin{aligned} &\overset{R_1 \leftrightarrow R_2}{\longrightarrow} \begin{pmatrix} 1 & 1 & 0 & 2 \\ 0 & 2 & 1 & 3 \\ 2 & 4 & 1 & 5 \\ 1 & 3 & 2 & 2 \end{pmatrix} \\[4pt] &\overset{\substack{R_3 - 2R_1 \\ R_4 - R_1}}{\longrightarrow} \begin{pmatrix} 1 & 1 & 0 & 2 \\ 0 & 2 & 1 & 3 \\ 0 & 2 & 1 & 1 \\ 0 & 2 & 2 & 0 \end{pmatrix} \\[4pt] &\overset{\substack{R_3 - R_2 \\ R_4 - R_2}}{\longrightarrow} \begin{pmatrix} 1 & 1 & 0 & 2 \\ 0 & 2 & 1 & 3 \\ 0 & 0 & 0 & -2 \\ 0 & 0 & 1 & -3 \end{pmatrix} \\[4pt] &\overset{R_3 \leftrightarrow R_4}{\longrightarrow} \begin{pmatrix} 1 & 1 & 0 & 2 \\ 0 & 2 & 1 & 3 \\ 0 & 0 & 1 & -3 \\ 0 & 0 & 0 & -2 \end{pmatrix}. \end{aligned} Two swaps, so s=2s = 2, and detA=(−1)2⋅1⋅2⋅1⋅(−2)=−4\det A = (-1)^2 \cdot 1 \cdot 2 \cdot 1 \cdot (-2) = -4. In particular AA is invertible. Expanding along the first row would have required four 3×33 \times 3 determinants.

Example 5.19 (Dependent rows)

For A=(123456789)A = \begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{pmatrix}, the replacements R2−4R1R_2 - 4R_1, R3−7R1R_3 - 7R_1 give rows (0,−3,−6)(0, -3, -6) and (0,−6,−12)(0, -6, -12), and then R3−2R2R_3 - 2R_2 produces a zero row. So detA=0\det A = 0 and AA is not invertible: the rows are dependent, since 𝐫1−2𝐫2+𝐫3=0\mathbf{r}_1 - 2\mathbf{r}_2 + \mathbf{r}_3 = \mathbf{0}.

Example 5.20 (The matrix A−λInA - \lambda I_n)

In applications one often needs the numbers λ\lambda for which A−λInA - \lambda I_n fails to be invertible. By the theorem, these are the roots of the polynomial det(A−λIn)\det(A - \lambda I_n).

For A=(2112)A = \begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix}, the 2×22 \times 2 formula gives det(A−λI2)=det(2−λ112−λ)=(2−λ)2−1=(λ−1)(λ−3).\det(A - \lambda I_2) = \det \begin{pmatrix} 2 - \lambda & 1 \\ 1 & 2 - \lambda \end{pmatrix} = (2 - \lambda)^2 - 1 = (\lambda - 1)(\lambda - 3). With letters in the matrix, elimination must avoid dividing by an expression that could be zero. Here the entry 11 in the second row avoids it: the replacement R1−(2−λ)R2R_1 - (2 - \lambda)R_2, which does not change the determinant, clears the first entry of row 11: det(A−λI2)=det(01−(2−λ)212−λ)=0⋅(2−λ)−(1−(2−λ)2)⋅1=(2−λ)2−1,\begin{aligned} \det(A - \lambda I_2) &= \det \begin{pmatrix} 0 & 1 - (2 - \lambda)^2 \\ 1 & 2 - \lambda \end{pmatrix} \\ &= 0 \cdot (2 - \lambda) - \bigl(1 - (2-\lambda)^2\bigr) \cdot 1 = (2 - \lambda)^2 - 1 , \end{aligned} the same polynomial. So A−λI2A - \lambda I_2 is singular exactly for λ=1\lambda = 1 and λ=3\lambda = 3.

For A=(120210003)A = \begin{pmatrix} 1 & 2 & 0 \\ 2 & 1 & 0 \\ 0 & 0 & 3 \end{pmatrix}, expansion along the first row is quickest, because of the zero: det(A−λI3)=(1−λ)det(1−λ003−λ)−2det(2003−λ)=(3−λ)((1−λ)2−4)=−(λ−3)2(λ+1),\begin{aligned} \det(A - \lambda I_3) &= (1 - \lambda) \det \begin{pmatrix} 1 - \lambda & 0 \\ 0 & 3 - \lambda \end{pmatrix} - 2 \det \begin{pmatrix} 2 & 0 \\ 0 & 3 - \lambda \end{pmatrix} \\ &= (3 - \lambda)\bigl((1 - \lambda)^2 - 4\bigr) = -(\lambda - 3)^2(\lambda + 1), \end{aligned} which vanishes for λ=3\lambda = 3 and λ=−1\lambda = -1.

Exercise 5.5 auto-check

What is the determinant of (27−150−13800340001)\begin{pmatrix} 2 & 7 & -1 & 5 \\ 0 & -1 & 3 & 8 \\ 0 & 0 & 3 & 4 \\ 0 & 0 & 0 & 1 \end{pmatrix}?

Answer:
Exercise 5.6 auto-check

Let A=(4213)A = \begin{pmatrix} 4 & 2 \\ 1 & 3 \end{pmatrix}. The polynomial det(A−λI2)\det(A - \lambda I_2) has two roots. What is the larger one?

Answer:

5.4  Products, inverses, and transposes

💡 Intuition

Lecture 4 showed that row operations are multiplications by elementary matrices, and that every invertible matrix is a product of them. We now know exactly how each elementary operation changes the determinant. Put the two facts together and the determinant turns out to respect products: det(AB)=detAdetB\det(AB) = \det A \det B. Everything else in this section, including expansion along any column, follows from that rule. From then on columns are as useful as rows, and column operations evaluate the Vandermonde determinant in a few lines.

Lemma 5.21 (Determinants of elementary matrices)

Let EE be an n×nn \times n elementary matrix. Then detE=−1\det E = -1 if EE swaps two rows, detE=c\det E = c if EE multiplies a row by c≠0c \neq 0, and detE=1\det E = 1 if EE adds a multiple of one row to another. Moreover, for every n×nn \times n matrix AA, det(EA)=detEdetA.\det(EA) = \det E \, \det A .

Theorem 5.22 (The product rule)

For n×nn \times n matrices AA and BB, det(AB)=detAdetB.\det(AB) = \det A \, \det B .

Example 5.23 (The product rule, and what is not true)

For A=(1234)A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} and B=(2013)B = \begin{pmatrix} 2 & 0 \\ 1 & 3 \end{pmatrix} we have detA=−2\det A = -2 and detB=6\det B = 6, and AB=(461012)AB = \begin{pmatrix} 4 & 6 \\ 10 & 12 \end{pmatrix} has determinant 48−60=−12=(−2)(6)48 - 60 = -12 = (-2)(6). The determinant does not respect sums: A+B=(3247)A + B = \begin{pmatrix} 3 & 2 \\ 4 & 7 \end{pmatrix} has determinant 1313, not −2+6=4-2 + 6 = 4. Nor does it respect scalars in the naive way: scaling all nn rows by cc gives det(cA)=cndetA\det(cA) = c^{n} \det A.

Corollary 5.24 (Inverses and powers)

If AA is invertible, then det(A−1)=1detA.\det(A^{-1}) = \frac{1}{\det A} . For every square AA and every k≥0k \ge 0, det(Ak)=(detA)k\det(A^{k}) = (\det A)^{k}.

Theorem 5.25 (The transpose)

For every n×nn \times n matrix AA, detAT=detA\det A^{T} = \det A.

Remark 5.26 (Columns behave like rows)

Since the columns of AA are the rows of ATA^{T}, the transpose theorem turns every statement about rows into one about columns: the determinant is linear in each column, changes sign when two columns are swapped, is unchanged when a multiple of one column is added to another, and is 00 when the columns are dependent.

Theorem 5.27 (Cofactor expansion along any column)

For every n×nn \times n matrix AA with n≥2n \ge 2 and every column index jj, detA=∑k=1nakjCkj=a1jC1j+a2jC2j+⋯+anjCnj.\det A = \sum_{k=1}^{n} a_{kj} C_{kj} = a_{1j}C_{1j} + a_{2j}C_{2j} + \cdots + a_{nj}C_{nj} . This is the expansion along column jj; together with the expansion along any row, a determinant may be expanded along whichever row or column is most convenient.

Example 5.28 (Choosing a good column)

Let A=(30105249−20106072)A = \begin{pmatrix} 3 & 0 & 1 & 0 \\ 5 & 2 & 4 & 9 \\ -2 & 0 & 1 & 0 \\ 6 & 0 & 7 & 2 \end{pmatrix}. Every row has at least two nonzero entries, but column 22 has only one, the entry 22 in position (2,2)(2,2), with sign (−1)2+2=+(-1)^{2+2} = +. Expanding along column 22, detA=2det(310−210672).\det A = 2 \det \begin{pmatrix} 3 & 1 & 0 \\ -2 & 1 & 0 \\ 6 & 7 & 2 \end{pmatrix}. In the 3×33 \times 3 matrix, column 33 has the single nonzero entry 22, in position (3,3)(3,3) with sign ++, so expanding along it, detA=2⋅2⋅det(31−21)=4⋅5=20\det A = 2 \cdot 2 \cdot \det \begin{pmatrix} 3 & 1 \\ -2 & 1 \end{pmatrix} = 4 \cdot 5 = 20. Expanding along any row would have required at least two 3×33 \times 3 determinants.

Example 5.29 (The Vandermonde determinant)

Column operations are the natural tool for determinants whose entries are powers. For real numbers a,b,ca, b, c, let V=(1aa21bb21cc2)V = \begin{pmatrix} 1 & a & a^2 \\ 1 & b & b^2 \\ 1 & c & c^2 \end{pmatrix}. We make the first row (1,0,0)(1, 0, 0): subtract aa times column 22 from column 33, and then aa times column 11 from column 22. By the column properties neither step changes the determinant. (The order matters: column 33 is changed first, while column 22 still holds a,b,ca, b, c.) Since b2−ab=b(b−a)b^2 - ab = b(b - a) and c2−ac=c(c−a)c^2 - ac = c(c - a), detV=det(1a01bb(b−a)1cc(c−a))=det(1001b−ab(b−a)1c−ac(c−a)).\begin{aligned} \det V &= \det \begin{pmatrix} 1 & a & 0 \\ 1 & b & b(b - a) \\ 1 & c & c(c - a) \end{pmatrix} \\ &= \det \begin{pmatrix} 1 & 0 & 0 \\ 1 & b - a & b(b - a) \\ 1 & c - a & c(c - a) \end{pmatrix} . \end{aligned} Now the factors are in plain sight. Expanding along the first row leaves a 2×22 \times 2 determinant whose first row has the factor b−ab - a and whose second row has the factor c−ac - a; taking them out by linearity in each row, detV=det(b−ab(b−a)c−ac(c−a))=(b−a)(c−a)det(1b1c)=(b−a)(c−a)(c−b).\begin{aligned} \det V &= \det \begin{pmatrix} b - a & b(b - a) \\ c - a & c(c - a) \end{pmatrix} = (b - a)(c - a) \det \begin{pmatrix} 1 & b \\ 1 & c \end{pmatrix} \\ &= (b - a)(c - a)(c - b) . \end{aligned} Hence VV is invertible exactly when aa, bb, cc are distinct. (This is why a parabola y=x0+x1t+x2t2y = x_0 + x_1 t + x_2 t^2 through three points with distinct tt-values always exists and is unique.)

The general Vandermonde matrix. For real numbers x1,x2,…,xnx_1, x_2, \dots, x_n, the n×nn \times n Vandermonde matrix V(x1,…,xn)V(x_1, \dots, x_n) has row ii equal to (1,xi,xi2,…,xin−1)(1, x_i, x_i^2, \dots, x_i^{n-1}): V(x1,…,xn)=(1x1x12⋯x1n−11x2x22⋯x2n−1⋮⋮⋮⋮1xnxn2⋯xnn−1).V(x_1, \dots, x_n) = \begin{pmatrix} 1 & x_1 & x_1^2 & \cdots & x_1^{n-1} \\ 1 & x_2 & x_2^2 & \cdots & x_2^{n-1} \\ \vdots & \vdots & \vdots & & \vdots \\ 1 & x_n & x_n^2 & \cdots & x_n^{n-1} \end{pmatrix}. Its determinant is the product of all differences xj−xix_j - x_i with the larger index first: detV(x1,…,xn)=∏1≤i<j≤n(xj−xi).\det V(x_1, \dots, x_n) = \prod_{1 \le i < j \le n} (x_j - x_i) . For n=3n = 3, with (x1,x2,x3)=(a,b,c)(x_1, x_2, x_3) = (a, b, c), this is the formula just found. In particular V(x1,…,xn)V(x_1, \dots, x_n) is invertible exactly when x1,…,xnx_1, \dots, x_n are distinct.

The same column operations prove the formula for every n≥2n \ge 2, by induction on nn. For n=2n = 2 the determinant is x2−x1x_2 - x_1. Let n≥3n \ge 3 and assume the formula for size n−1n - 1. For j=n,n−1,…,2j = n, n-1, \dots, 2, in this order, subtract x1x_1 times column j−1j - 1 from column jj. Each step is a column replacement, which does not change the determinant, and when column jj is changed, column j−1j - 1 still holds its original entries xij−2x_i^{j-2}. So for j≥2j \ge 2 the (i,j)(i, j) entry becomes xij−1−x1xij−2=(xi−x1)xij−2x_i^{j-1} - x_1 x_i^{j-2} = (x_i - x_1)\, x_i^{j-2}, and the first row becomes (1,0,…,0)(1, 0, \dots, 0): detV(x1,…,xn)=det(10⋯01x2−x1⋯(x2−x1)x2n−2⋮⋮⋮1xn−x1⋯(xn−x1)xnn−2).\det V(x_1, \dots, x_n) = \det \begin{pmatrix} 1 & 0 & \cdots & 0 \\ 1 & x_2 - x_1 & \cdots & (x_2 - x_1)\, x_2^{n-2} \\ \vdots & \vdots & & \vdots \\ 1 & x_n - x_1 & \cdots & (x_n - x_1)\, x_n^{n-2} \end{pmatrix}. Expanding along the first row leaves the (n−1)×(n−1)(n-1) \times (n-1) matrix whose rows are (xi−x1)(1,xi,…,xin−2)(x_i - x_1)(1, x_i, \dots, x_i^{n-2}) for i=2,…,ni = 2, \dots, n. Taking the factor xi−x1x_i - x_1 out of each row leaves exactly V(x2,…,xn)V(x_2, \dots, x_n), so detV(x1,…,xn)=(x2−x1)(x3−x1)⋯(xn−x1)detV(x2,…,xn).\det V(x_1, \dots, x_n) = (x_2 - x_1)(x_3 - x_1) \cdots (x_n - x_1) \, \det V(x_2, \dots, x_n) . By the inductive hypothesis the last determinant is the product of all xj−xix_j - x_i with 2≤i<j≤n2 \le i < j \le n; together with the factors xj−x1x_j - x_1 in front, this is the product over all 1≤i<j≤n1 \le i < j \le n.

Exercise 5.7 auto-check

Let AA and BB be 3×33 \times 3 matrices with detA=3\det A = 3 and detB=−2\det B = -2. What is det(2ABT)\det(2\,A B^{T})?

Answer:
Exercise 5.8 auto-check

An invertible matrix AA satisfies det(A2)=16\det(A^{2}) = 16 and detA<0\det A < 0. What is det(A−1)\det(A^{-1})?

Answer:

5.5  Determinants and volume

2026-09-16T04:16:50.524497 image/svg+xml Matplotlib v3.10.9, https://matplotlib.org/ e 1 e 2 area 1 unit square A e a 1 1 = a 2 a r e a   | d e t | = 5 A i m a g e   u n d e r   A = ( ) a a 1 2 ⟶
The unit square and its image under A=(𝐚1𝐚2)A = (\mathbf{a}_1\ \mathbf{a}_2) with 𝐚1=(3,1)T\mathbf{a}_1 = (3,\,1)^{T}, 𝐚2=(1,2)T\mathbf{a}_2 = (1,\,2)^{T}. The image is the parallelogram spanned by the columns, and its area is |detA|=5|\det A| = 5.
💡 Intuition

The determinant has a geometric meaning, and it is the reason the determinant appears in multivariable calculus. The columns of a 2×22 \times 2 matrix span a parallelogram; the columns of a 3×33 \times 3 matrix span a slanted box. Their area and volume are |detA||\det A|. The reason is that area and volume obey the same rules as the determinant: sliding one edge along another does not change the size, stretching an edge by cc multiplies it by |c||c|, and the unit square or cube has size 11.

Definition 5.30 (Parallelogram and parallelepiped)

The parallelogram spanned by 𝐚1,𝐚2∈ℝ2\mathbf{a}_1, \mathbf{a}_2 \in \mathbb{R}^2 and the parallelepiped spanned by 𝐚1,𝐚2,𝐚3∈ℝ3\mathbf{a}_1, \mathbf{a}_2, \mathbf{a}_3 \in \mathbb{R}^3 are the sets P(𝐚1,𝐚2)={s1𝐚1+s2𝐚2:0≤s1,s2≤1},P(\mathbf{a}_1, \mathbf{a}_2) = \{\, s_1\mathbf{a}_1 + s_2\mathbf{a}_2 : 0 \le s_1, s_2 \le 1 \,\}, P(𝐚1,𝐚2,𝐚3)={s1𝐚1+s2𝐚2+s3𝐚3:0≤s1,s2,s3≤1}.P(\mathbf{a}_1, \mathbf{a}_2, \mathbf{a}_3) = \{\, s_1\mathbf{a}_1 + s_2\mathbf{a}_2 + s_3\mathbf{a}_3 : 0 \le s_1, s_2, s_3 \le 1 \,\}. If the spanning vectors are dependent, the set is flat (it lies in a line, or in a plane), and its area, respectively volume, is 00.

2026-09-16T04:16:50.599529 image/svg+xml Matplotlib v3.10.9, https://matplotlib.org/ a 1 a 2 a a 2 1 + t height
Replacing 𝐚2\mathbf{a}_2 by 𝐚2+t𝐚1\mathbf{a}_2 + t\,\mathbf{a}_1 slides the top edge along the dashed line. The two parallelograms have the same base 𝐚1\mathbf{a}_1 and the same height, hence the same area.
Theorem 5.31 (Area and volume)

Let A=(𝐚1𝐚2)A = (\mathbf{a}_1\ \mathbf{a}_2) be 2×22 \times 2 and B=(𝐚1𝐚2𝐚3)B = (\mathbf{a}_1\ \mathbf{a}_2\ \mathbf{a}_3) be 3×33 \times 3. Then areaP(𝐚1,𝐚2)=|detA|,volP(𝐚1,𝐚2,𝐚3)=|detB|.\operatorname{area} P(\mathbf{a}_1, \mathbf{a}_2) = |\det A|, \qquad \operatorname{vol} P(\mathbf{a}_1, \mathbf{a}_2, \mathbf{a}_3) = |\det B| .

2026-09-16T04:18:02.789511 image/svg+xml Matplotlib v3.10.9, https://matplotlib.org/ a 1 a 2 a 3 v o l u m e   = | d e t ( ) | a a a 1 2 3
The parallelepiped spanned by three vectors in ℝ3\mathbb{R}^3. Its volume is the absolute value of the determinant of the matrix whose columns are the three vectors.
Example 5.32 (An area and a volume)

The parallelogram spanned by (3,1)T(3,\,1)^{T} and (1,2)T(1,\,2)^{T} has area |3⋅2−1⋅1|=5|3 \cdot 2 - 1 \cdot 1| = 5. The parallelepiped spanned by (1,1,0)T(1,\,1,\,0)^{T}, (0,1,1)T(0,\,1,\,1)^{T}, (1,0,1)T(1,\,0,\,1)^{T} has volume |det(101110011)|=|1⋅(1−0)−0+1⋅(1−0)|=2.\left| \det \begin{pmatrix} 1 & 0 & 1 \\ 1 & 1 & 0 \\ 0 & 1 & 1 \end{pmatrix} \right| = |1 \cdot (1 - 0) - 0 + 1 \cdot (1 - 0)| = 2 .

Theorem 5.33 (How a linear map changes volume)

Let T(𝐱)=A𝐱T(\mathbf{x}) = A\mathbf{x} with AA of size n×nn \times n, n=2n = 2 or 33, and let PP be the parallelogram (n=2n = 2) or parallelepiped (n=3n = 3) spanned by 𝐯1,…,𝐯n\mathbf{v}_1, \dots, \mathbf{v}_n. Then the image T(P)T(P) is the parallelogram (respectively parallelepiped) spanned by A𝐯1,…,A𝐯nA\mathbf{v}_1, \dots, A\mathbf{v}_n, and volT(P)=|detA|⋅volP.\operatorname{vol} T(P) = |\det A| \cdot \operatorname{vol} P .

Theorem 5.34 (The scaling factor for an arbitrary region)

The same factor works for regions of any shape. Let T(𝐱)=A𝐱T(\mathbf{x}) = A\mathbf{x} with AA of size n×nn \times n, n=2n = 2 or 33, and let S⊆ℝnS \subseteq \mathbb{R}^n be any region that has an area (for n=2n = 2) or a volume (for n=3n = 3). Then T(S)T(S) has one too, and volT(S)=|detA|⋅volS.\operatorname{vol} T(S) = |\det A| \cdot \operatorname{vol} S .

2026-09-21T15:52:36.366477 image/svg+xml Matplotlib v3.10.9, https://matplotlib.org/ e a c h   s q u a r e   h a s   a r e a   h 2 S   c o v e r e d   b y   s m a l l   s q u a r e s e a c h   i m a g e   h a s   a r e a   | d e t | A h 2 T S ( ) ,   o n e   p a r a l l e l o g r a m   p e r   s q u a r e ⟶ T
A region SS filled with small squares of side hh, and its image under a linear map TT. Every square of the grid becomes a parallelogram of area |detA|h2|\det A|\,h^2 (one is shaded in both pictures), so the whole region has its area multiplied by |detA||\det A|.
Remark 5.35 (Scaling factor and orientation)

For example A=(3112)A = \begin{pmatrix} 3 & 1 \\ 1 & 2 \end{pmatrix} sends the unit disk, of area π\pi, to an ellipse of area 5π5\pi. (In multivariable calculus this factor reappears for non-linear maps as well: near each point a differentiable map looks like a linear one, and the determinant of that linear part — the Jacobian determinant — is the local scaling factor in the change-of-variables formula.) A map with detA=0\det A = 0 flattens space and cannot be undone, in agreement with the invertibility test. The sign of detA\det A also has a meaning: it is positive when TT preserves orientation (counterclockwise stays counterclockwise), as for a rotation, where detRθ=cos2θ+sin2θ=1\det R_\theta = \cos^2\theta + \sin^2\theta = 1, and negative when TT reverses it, as for a reflection.

Exercise 5.9 auto-check

What is the area of the parallelogram spanned by (2,1)T(2,\,1)^{T} and (1,3)T(1,\,3)^{T}?

Answer:
Exercise 5.10 auto-check

A linear map T:ℝ2→ℝ2T\colon \mathbb{R}^2 \to \mathbb{R}^2 has matrix with determinant −3-3. A region SS has area 22. What is the area of T(S)T(S)?

Answer:

5.6  Cramer's rule and the adjugate

💡 Intuition

Because the determinant is linear in each column, it can solve linear systems: when AA is invertible, each unknown of A𝐱=𝐛A\mathbf{x} = \mathbf{b} is a ratio of two determinants. The same idea gives an explicit formula for A−1A^{-1}, built from cofactors, which generalizes the 2×22 \times 2 formula of Lecture 4. Neither formula is a good way to compute with large matrices, since elimination is far cheaper, but both are exact formulas, and exact formulas are what one needs to reason about how the solution depends on the entries.

Theorem 5.36 (Cramer's rule)

Let AA be an invertible n×nn \times n matrix and 𝐛∈ℝn\mathbf{b} \in \mathbb{R}^n. For each ii, let Ai(𝐛)A_i(\mathbf{b}) be the matrix obtained from AA by replacing column ii with 𝐛\mathbf{b}. Then the unique solution of A𝐱=𝐛A\mathbf{x} = \mathbf{b} is given by xi=detAi(𝐛)detA,i=1,…,n.x_i = \frac{\det A_i(\mathbf{b})}{\det A}, \qquad i = 1, \dots, n .

Definition 5.37 (Adjugate)

The adjugate (or the adjoint) of an n×nn \times n matrix AA is the n×nn \times n matrix A*A^{*} whose (i,j)(i,j) entry is the cofactor CjiC_{ji}: A*=(C11C21⋯Cn1C12C22⋯Cn2⋮⋮⋮C1nC2n⋯Cnn),A^{*} = \begin{pmatrix} C_{11} & C_{21} & \cdots & C_{n1} \\ C_{12} & C_{22} & \cdots & C_{n2} \\ \vdots & \vdots & & \vdots \\ C_{1n} & C_{2n} & \cdots & C_{nn} \end{pmatrix}, the transpose of the matrix of cofactors. Note the order of the indices.

Theorem 5.38 (The adjugate formula)

For every n×nn \times n matrix AA (n≥2n \ge 2), AA*=A*A=(detA)In.A\,A^{*} = A^{*} A = (\det A)\, I_n . Consequently, if detA≠0\det A \neq 0, then A−1=1detAA*A^{-1} = \dfrac{1}{\det A}\, A^{*}.

Example 5.39 (Revisiting the 2×22 \times 2 inverse)

For A=(abcd)A = \begin{pmatrix} a & b \\ c & d \end{pmatrix} the cofactors are C11=dC_{11} = d, C12=−cC_{12} = -c, C21=−bC_{21} = -b, C22=aC_{22} = a. So A*=(d−b−ca)A^{*} = \begin{pmatrix} d & -b \\ -c & a \end{pmatrix} and the theorem gives A−1=1ad−bc(d−b−ca)A^{-1} = \frac{1}{ad - bc}\begin{pmatrix} d & -b \\ -c & a \end{pmatrix}, which is the formula of Lecture 4, now with a proof of where it comes from.

Example 5.40 (Cramer's rule and the adjugate for a 3×33 \times 3 system)

Take the matrix of the inversion example in Lecture 4 and solve A𝐱=𝐛,A=(112121211),𝐛=(543).A\mathbf{x} = \mathbf{b}, \qquad A = \begin{pmatrix} 1 & 1 & 2 \\ 1 & 2 & 1 \\ 2 & 1 & 1 \end{pmatrix}, \qquad \mathbf{b} = \begin{pmatrix} 5 \\ 4 \\ 3 \end{pmatrix}. First, detA=1(2−1)−1(1−2)+2(1−4)=−4\det A = 1(2 - 1) - 1(1 - 2) + 2(1 - 4) = -4. Replacing one column at a time by 𝐛\mathbf{b}, detA1(𝐛)=det(512421311)=0,detA2(𝐛)=det(152141231)=−4,detA3(𝐛)=det(115124213)=−8,\begin{aligned} \det A_1(\mathbf{b}) &= \det \begin{pmatrix} 5 & 1 & 2 \\ 4 & 2 & 1 \\ 3 & 1 & 1 \end{pmatrix} = 0, \\[4pt] \det A_2(\mathbf{b}) &= \det \begin{pmatrix} 1 & 5 & 2 \\ 1 & 4 & 1 \\ 2 & 3 & 1 \end{pmatrix} = -4, \\[4pt] \det A_3(\mathbf{b}) &= \det \begin{pmatrix} 1 & 1 & 5 \\ 1 & 2 & 4 \\ 2 & 1 & 3 \end{pmatrix} = -8, \end{aligned} so Cramer's rule gives 𝐱=(0,1,2)T\mathbf{x} = (0,\, 1,\, 2)^{T}. Check: A𝐱=(1+4,2+2,1+2)T=(5,4,3)TA\mathbf{x} = (1 + 4,\ 2 + 2,\ 1 + 2)^{T} = (5,\, 4,\, 3)^{T}.

The nine cofactors of AA are C11=1C_{11} = 1, C12=1C_{12} = 1, C13=−3C_{13} = -3, C21=1C_{21} = 1, C22=−3C_{22} = -3, C23=1C_{23} = 1, C31=−3C_{31} = -3, C32=1C_{32} = 1, C33=1C_{33} = 1, so A*=(11−31−31−311),A−1=1−4A*=14(−1−13−13−13−1−1),A^{*} = \begin{pmatrix} 1 & 1 & -3 \\ 1 & -3 & 1 \\ -3 & 1 & 1 \end{pmatrix}, \qquad A^{-1} = \frac{1}{-4} A^{*} = \frac{1}{4}\begin{pmatrix} -1 & -1 & 3 \\ -1 & 3 & -1 \\ 3 & -1 & -1 \end{pmatrix}, the same inverse that elimination produced in Lecture 4. (Here AA is symmetric, so A*A^{*} equals the cofactor matrix; in general the transpose matters.)

Exercise 5.11 auto-check

Use Cramer's rule on the system 2x1+x2=52x_1 + x_2 = 5, x1+3x2=5x_1 + 3x_2 = 5. What is x2x_2?

Answer:
Exercise 5.12 auto-check

Let A=(4726)A = \begin{pmatrix} 4 & 7 \\ 2 & 6 \end{pmatrix}. What is the (1,2)(1,2) entry of the adjugate A*A^{*}?

Answer:
Remark 5.41 (Looking ahead)

The invertibility theorem of Lecture 4 gains a sixth condition: AA is invertible if and only if detA≠0\det A \neq 0. And the example with A−λInA - \lambda I_n points to the next topic. A nonzero vector 𝐱\mathbf{x} with A𝐱=λ𝐱A\mathbf{x} = \lambda\mathbf{x} exists exactly when (A−λIn)𝐱=0(A - \lambda I_n)\mathbf{x} = \mathbf{0} has a nonzero solution, that is, exactly when det(A−λIn)=0\det(A - \lambda I_n) = 0. Such numbers λ\lambda are the eigenvalues of AA, and the determinant is how we will find them.

Index of statements

  1. Example 5.1 (Eliminating a general 2×22 \times 2 matrix)
  2. Definition 5.2 (Determinant of a 2×22 \times 2 matrix)
  3. Theorem 5.3 (The 2×22 \times 2 determinant detects invertibility)
  4. Proposition 5.4 (Row operations and the 2×22 \times 2 determinant)
  5. Remark 5.5 (What the properties buy)
  6. Remark 5.6 (Mathematical induction)
  7. Definition 5.7 (Minor)
  8. Definition 5.8 (Determinant)
  9. Example 5.9 (Small cases)
  10. Example 5.10 (The general 3×33 \times 3 determinant)
  11. Theorem 5.11 (The three basic properties)
  12. Corollary 5.12 (All row operations)
  13. Definition 5.13 (Cofactor)
  14. Theorem 5.14 (Cofactor expansion along any row)
  15. Remark 5.15 (The cross product in ℝ3\mathbb{R}^3)
  16. Lemma 5.16 (Triangular matrices)
  17. Theorem 5.17 (Determinant by elimination)
  18. Example 5.18 (A 4×44 \times 4 determinant with two swaps)
  19. Example 5.19 (Dependent rows)
  20. Example 5.20 (The matrix A−λInA - \lambda I_n)
  21. Lemma 5.21 (Determinants of elementary matrices)
  22. Theorem 5.22 (The product rule)
  23. Example 5.23 (The product rule, and what is not true)
  24. Corollary 5.24 (Inverses and powers)
  25. Theorem 5.25 (The transpose)
  26. Remark 5.26 (Columns behave like rows)
  27. Theorem 5.27 (Cofactor expansion along any column)
  28. Example 5.28 (Choosing a good column)
  29. Example 5.29 (The Vandermonde determinant)
  30. Definition 5.30 (Parallelogram and parallelepiped)
  31. Theorem 5.31 (Area and volume)
  32. Example 5.32 (An area and a volume)
  33. Theorem 5.33 (How a linear map changes volume)
  34. Theorem 5.34 (The scaling factor for an arbitrary region)
  35. Remark 5.35 (Scaling factor and orientation)
  36. Theorem 5.36 (Cramer's rule)
  37. Definition 5.37 (Adjugate)
  38. Theorem 5.38 (The adjugate formula)
  39. Example 5.39 (Revisiting the 2×22 \times 2 inverse)
  40. Example 5.40 (Cramer's rule and the adjugate for a 3×33 \times 3 system)
  41. Remark 5.41 (Looking ahead)