Unit 6, lesson 83

Determinants and Their Geometric Meaning

How to compute 2 by 2 and 3 by 3 determinants, why a determinant measures how a matrix scales signed area or volume, and how a zero determinant marks a singular matrix.

  • Theory part 165
  • Practice part 166
  • Matrices

Feed the unit square to a 2×22 \times 2 matrix and a parallelogram comes out. Its area, and whether the square got flipped over on the way, are both recorded in one number computed from the four entries. That number is the determinant. It also tells you at a glance whether a system of equations with that coefficient matrix has exactly one solution.

Key terms

The 2 by 2 determinant

Definition The determinant of a 2×22 \times 2 matrix is

det⁡[abcd]=∣abcd∣=ad−bc.\det \begin{bmatrix} a & b \\ c & d \end{bmatrix} = \begin{vmatrix} a & b \\ c & d \end{vmatrix} = ad - bc.

Determinants are defined only for square matrices. Vertical bars around the entries mean the determinant, not an absolute value.

In plain words Multiply down the main diagonal, multiply down the other diagonal, and subtract the second product from the first.

Example For the matrix with rows (3,1)(3, 1) and (1,2)(1, 2)

∣3112∣=3⋅2−1⋅1=5.\begin{vmatrix} 3 & 1 \\ 1 & 2 \end{vmatrix} = 3 \cdot 2 - 1 \cdot 1 = 5.

Signed area scaling

Definition Let AA be a 2×22 \times 2 matrix with columns u\mathbf{u} and v\mathbf{v}. Draw u\mathbf{u}, v\mathbf{v} and u+v\mathbf{u} + \mathbf{v} from the origin. The parallelogram with corners at the origin and at the tips of these three vectors has area ∣det⁡A∣\lvert \det A \rvert. The map x↦Ax\mathbf{x} \mapsto A\mathbf{x} sends the unit square, with corners (0,0)(0, 0), (1,0)(1, 0), (1,1)(1, 1) and (0,1)(0, 1), onto this parallelogram, and it multiplies the area of every region by the same factor ∣det⁡A∣\lvert \det A \rvert. The number det⁡A\det A itself, with its sign, is called the signed area of the parallelogram spanned by u\mathbf{u} and v\mathbf{v} in that order. Swapping the two columns changes its sign but not the area.

In plain words The size of the determinant says how much the matrix stretches or shrinks areas. Its sign records a flip, described next.

Example The matrix above has columns ⟨3,1⟩\langle 3, 1 \rangle and ⟨1,2⟩\langle 1, 2 \rangle, so it sends the unit square to the parallelogram with corners (0,0)(0, 0), (3,1)(3, 1), (4,3)(4, 3) and (1,2)(1, 2). Check its area with the 4×34 \times 3 box around it. Outside the parallelogram the box holds two triangles of area 3/23/2, two triangles of area 11 and two unit squares, so the area is

12−3−2−2=5,12 - 3 - 2 - 2 = 5,

the determinant. A disk of area π\pi would map to an ellipse of area 5π5\pi.

Orientation

Definition Let u\mathbf{u} and v\mathbf{v} be the columns of a 2×22 \times 2 matrix AA. If det⁡A>0\det A > 0, turning u\mathbf{u} counterclockwise through an angle strictly between 00 and π\pi brings it to the direction of v\mathbf{v}, just as i\mathbf{i} turns to j\mathbf{j}, and the map x↦Ax\mathbf{x} \mapsto A\mathbf{x} preserves orientation. If det⁡A<0\det A < 0, the shorter turn from u\mathbf{u} to v\mathbf{v} is clockwise and the map reverses orientation. If det⁡A=0\det A = 0, the vectors u\mathbf{u} and v\mathbf{v} lie on one line through the origin.

In plain words A positive determinant means the picture may be turned, stretched or slanted, but not flipped over. A negative one means it has been flipped, as in a mirror.

Example The matrix that swaps coordinates reflects the plane across the line y=xy = x,

∣0110∣=0⋅0−1⋅1=−1.\begin{vmatrix} 0 & 1 \\ 1 & 0 \end{vmatrix} = 0 \cdot 0 - 1 \cdot 1 = -1.

Areas stay the same since ∣−1∣=1\lvert -1 \rvert = 1. But the corners (0,0)(0, 0), (1,0)(1, 0), (1,1)(1, 1), (0,1)(0, 1), listed counterclockwise, land at (0,0)(0, 0), (0,1)(0, 1), (1,1)(1, 1), (1,0)(1, 0), which run clockwise. The quarter turn with rows (0,−1)(0, -1) and (1,0)(1, 0) has determinant 0−(−1)=10 - (-1) = 1 and keeps the order.

The 3 by 3 determinant

Definition The determinant of a 3×33 \times 3 matrix A=[aij]A = [a_{ij}] is

det⁡A=a11∣a22a23a32a33∣−a12∣a21a23a31a33∣+a13∣a21a22a31a32∣.\begin{aligned} \det A &= a_{11} \begin{vmatrix} a_{22} & a_{23} \\ a_{32} & a_{33} \end{vmatrix} \\[0.8em] &\quad - a_{12} \begin{vmatrix} a_{21} & a_{23} \\ a_{31} & a_{33} \end{vmatrix} \\[0.8em] &\quad + a_{13} \begin{vmatrix} a_{21} & a_{22} \\ a_{31} & a_{32} \end{vmatrix}. \end{aligned}

Each small determinant comes from deleting the row and the column of the entry in front of it, and the signs alternate ++, −-, ++.

In plain words Go along the top row. For each entry, cover its row and column, take the 2×22 \times 2 determinant of what is left, multiply, and combine the three results with alternating signs.

Example For the matrix below

A=[2130−14120],A = \begin{bmatrix} 2 & 1 & 3 \\ 0 & -1 & 4 \\ 1 & 2 & 0 \end{bmatrix},

the definition gives

det⁡A=2(−1⋅0−4⋅2)−1(0⋅0−4⋅1)+3(0⋅2−(−1)⋅1)=−16+4+3=−9.\begin{aligned} \det A &= 2(-1 \cdot 0 - 4 \cdot 2) \\[0.4em] &\quad - 1(0 \cdot 0 - 4 \cdot 1) \\[0.4em] &\quad + 3(0 \cdot 2 - (-1) \cdot 1) \\[0.4em] &= -16 + 4 + 3 = -9. \end{aligned}

Expansion by minors

Definition Let A=[aij]A = [a_{ij}] be an n×nn \times n matrix with n≥2n \ge 2. The minor MijM_{ij} is the determinant of the (n−1)×(n−1)(n - 1) \times (n - 1) matrix left after deleting row ii and column jj of AA, where a 1×11 \times 1 matrix [a][a] has determinant aa. The cofactor is Cij=(−1)i+jMijC_{ij} = (-1)^{i + j} M_{ij}. For any fixed row ii and any fixed column jj

det⁡A=∑k=1naikCik=∑k=1nakjCkj,\det A = \sum_{k=1}^{n} a_{ik} C_{ik} = \sum_{k=1}^{n} a_{kj} C_{kj},

so every row and every column gives the same value. For n=2n = 2 and n=3n = 3 this agrees with the formulas above. For n≥4n \ge 4 the expansion along the first row is taken as the definition of det⁡A\det A, since its minors are determinants of smaller matrices that are already defined. For a 3×33 \times 3 matrix the signs (−1)i+j(-1)^{i + j} form a checkerboard,

[+−+−+−+−+].\begin{bmatrix} + & - & + \\ - & + & - \\ + & - & + \end{bmatrix}.

In plain words You may expand along any row or column you like, as long as you use the checkerboard signs. Pick the one with the most zeros to save work.

Example Expand the same matrix AA along its first column, which has a zero in the middle. The signs down that column are ++, −-, ++, and the middle term drops out,

det⁡A=2∣−1420∣+1∣13−14∣=2(−8)+1(7)=−9.\begin{aligned} \det A &= 2 \begin{vmatrix} -1 & 4 \\ 2 & 0 \end{vmatrix} + 1 \begin{vmatrix} 1 & 3 \\ -1 & 4 \end{vmatrix} \\[0.8em] &= 2(-8) + 1(7) = -9. \end{aligned}

Volume scaling

Definition Let AA be a 3×33 \times 3 matrix with columns u\mathbf{u}, v\mathbf{v} and w\mathbf{w}. The parallelepiped with edges u\mathbf{u}, v\mathbf{v} and w\mathbf{w} from the origin has volume ∣det⁡A∣\lvert \det A \rvert, and the map x↦Ax\mathbf{x} \mapsto A\mathbf{x} multiplies the volume of every solid by ∣det⁡A∣\lvert \det A \rvert. The sign gives the orientation. The determinant is positive when u\mathbf{u}, v\mathbf{v}, w\mathbf{w} form a right-handed triple like the coordinate directions, negative when they form a left-handed triple, the mirror image of a right-handed one, and 00 when the three vectors lie in one plane through the origin. For square matrices AA and BB of the same size

det⁡(AB)=det⁡(A)det⁡(B),\det(AB) = \det(A)\det(B),

matching the fact that doing BB and then AA scales first by det⁡B\det B and then by det⁡A\det A.

In plain words In space the determinant is the factor by which volumes grow or shrink, with a minus sign for a mirror flip.

Example Take the columns ⟨1,0,0⟩\langle 1, 0, 0 \rangle, ⟨0,2,0⟩\langle 0, 2, 0 \rangle and ⟨1,1,3⟩\langle 1, 1, 3 \rangle. Expanding along the first column,

∣101021003∣=1∣2103∣=6.\begin{vmatrix} 1 & 0 & 1 \\ 0 & 2 & 1 \\ 0 & 0 & 3 \end{vmatrix} = 1 \begin{vmatrix} 2 & 1 \\ 0 & 3 \end{vmatrix} = 6.

Geometry agrees. The first two edges span a 1×21 \times 2 rectangle in the xyxy-plane, and the third edge rises to height 33 above it, so the volume is 2⋅3=62 \cdot 3 = 6.

Zero determinant

Definition For a 2×22 \times 2 or 3×33 \times 3 matrix AA, det⁡A=0\det A = 0 exactly when the columns are linearly dependent, which means that some column is a sum of multiples of the other columns. For 2×22 \times 2 this means one column is a multiple of the other, a zero column included. For 3×33 \times 3 it means the three columns lie in one plane through the origin. Equivalently, the map x↦Ax\mathbf{x} \mapsto A\mathbf{x} flattens the plane onto a line or a point, or space onto a plane, a line or a point, and there is a nonzero vector x\mathbf{x} with Ax=0A\mathbf{x} = \mathbf{0}. The same holds with rows in place of columns, so a matrix with a zero row or two equal rows has determinant 00.

In plain words Zero area means the square was crushed flat. Once that happens, many points pile onto the same spot.

Example For the matrix below the columns ⟨2,1⟩\langle 2, 1 \rangle and ⟨4,2⟩\langle 4, 2 \rangle are parallel, and

∣2412∣=2⋅2−4⋅1=0.\begin{vmatrix} 2 & 4 \\ 1 & 2 \end{vmatrix} = 2 \cdot 2 - 4 \cdot 1 = 0.

Every vector ⟨x,y⟩\langle x, y \rangle goes to ⟨2x+4y,x+2y⟩=(x+2y)⟨2,1⟩\langle 2x + 4y, x + 2y \rangle = (x + 2y)\langle 2, 1 \rangle, so every image, drawn from the origin, ends on the line y=x/2y = x/2. The nonzero vector ⟨2,−1⟩\langle 2, -1 \rangle goes to 0\mathbf{0}.

Singular matrices

Definition A square matrix AA is singular when det⁡A=0\det A = 0 and nonsingular when det⁡A≠0\det A \ne 0. For an n×nn \times n matrix AA the following hold.

  1. If AA is nonsingular, the system Ax=bA\mathbf{x} = \mathbf{b} has exactly one solution for every b\mathbf{b} in Rn\mathbb{R}^n.
  2. If AA is singular, then for each b\mathbf{b} the system Ax=bA\mathbf{x} = \mathbf{b} has either no solution or infinitely many, and Ax=0A\mathbf{x} = \mathbf{0} has infinitely many.

The next lesson shows that the nonsingular matrices are exactly the ones that have an inverse, which is why many books define a singular matrix as one with no inverse.

In plain words A nonsingular matrix moves the plane without crushing it, so every target point comes from exactly one starting point. A singular one crushes it, so some targets are never reached and others are reached infinitely many times.

Example The coefficient matrix with rows (3,6)(3, 6) and (1,2)(1, 2) has determinant 3⋅2−6⋅1=03 \cdot 2 - 6 \cdot 1 = 0. The system 3x+6y=93x + 6y = 9, x+2y=3x + 2y = 3 has infinitely many solutions, since the first equation is three times the second. The system 3x+6y=93x + 6y = 9, x+2y=4x + 2y = 4 has none, since three times the second equation would give 3x+6y=123x + 6y = 12.

Cramer’s rule

Definition Let AA be an n×nn \times n matrix with det⁡A≠0\det A \ne 0, and let AiA_i be the matrix obtained from AA by replacing column ii with b\mathbf{b}. Then the unique solution of Ax=bA\mathbf{x} = \mathbf{b} is

xi=det⁡Aidet⁡A,i=1,…,n.x_i = \frac{\det A_i}{\det A}, \qquad i = 1, \ldots, n.

The rule says nothing when det⁡A=0\det A = 0. It is an optional method, handy for a 2×22 \times 2 system or for finding a single unknown, but for larger systems elimination takes far less arithmetic.

In plain words Each unknown is a ratio of two determinants. The bottom one uses the coefficients, and the top one swaps that unknown’s column for the right side.

Example Solve 2x+y=52x + y = 5 and x−3y=−1x - 3y = -1. The coefficient determinant is 2(−3)−1⋅1=−72(-3) - 1 \cdot 1 = -7, so

x=∣51−1−3∣−7=−14−7=2,y=∣251−1∣−7=−7−7=1.\begin{aligned} x &= \frac{\begin{vmatrix} 5 & 1 \\ -1 & -3 \end{vmatrix}}{-7} = \frac{-14}{-7} = 2, \\[0.8em] y &= \frac{\begin{vmatrix} 2 & 5 \\ 1 & -1 \end{vmatrix}}{-7} = \frac{-7}{-7} = 1. \end{aligned}

Check it in the original equations, 2⋅2+1=52 \cdot 2 + 1 = 5 and 2−3⋅1=−12 - 3 \cdot 1 = -1.

Check yourself

  1. Find the area of the parallelogram with corners (0,0)(0, 0), (4,3)(4, 3), (−2,1)(-2, 1) and (2,4)(2, 4), and say whether the matrix with columns ⟨4,3⟩\langle 4, 3 \rangle and ⟨−2,1⟩\langle -2, 1 \rangle preserves or reverses orientation.
Show the answer

The determinant is

∣4−231∣=4⋅1−(−2)⋅3=10,\begin{vmatrix} 4 & -2 \\ 3 & 1 \end{vmatrix} = 4 \cdot 1 - (-2) \cdot 3 = 10,

so the area is 1010. The determinant is positive, so orientation is preserved.

  1. For which values of kk is the matrix with rows (k,2)(k, 2) and (8,k)(8, k) singular?
Show the answer

Its determinant is k2−16k^2 - 16, which is 00 exactly when k=4k = 4 or k=−4k = -4.

  1. Compute the determinant below. By what factor does the matrix scale volumes, and does it reverse orientation?
∣1203−12011∣\begin{vmatrix} 1 & 2 & 0 \\ 3 & -1 & 2 \\ 0 & 1 & 1 \end{vmatrix}
Show the answer

Expanding along the first row,

1(−1⋅1−2⋅1)−2(3⋅1−2⋅0)+0=−3−6=−9.\begin{aligned} &1(-1 \cdot 1 - 2 \cdot 1) \\[0.4em] &\qquad - 2(3 \cdot 1 - 2 \cdot 0) + 0 \\[0.4em] &\quad = -3 - 6 = -9. \end{aligned}

Volumes are multiplied by 99, and the negative sign means orientation is reversed.

How this lesson connects