The Determinant of a Square Matrix

Part 1, Chapter 1: Linear Algebra Toolkit

Learning objectives

  • Compute the determinant of a 2×22 \times 2 and 3×33 \times 3 matrix using cofactor expansion
  • Interpret the determinant geometrically as a signed area or volume scaling factor
  • Apply key properties: multiplicativity, row-operation effects, and the link to invertibility
  • Predict the sign of the determinant from orientation (preservation versus reversal)

The determinant compresses an entire square matrix into a single number that tells you everything important about volumes and invertibility. When detA\det A is non-zero, the matrix is invertible and the linear map mathbfxmapstoAmathbfx\mathbf{x} \mapsto A \mathbf{x} stretches the unit cube into a parallelepiped of volume detA|\det A|, with the sign indicating whether orientation flipped. When detA=0\det A = 0, the matrix collapses space into a lower-dimensional flat, rank deficient, non-invertible, kernel non-trivial. One number, all that information.

The 2times22 \times 2 formula and its geometry

For A = \begin{pmatrix} a & b \\ c & d \end{pmatrix}, the determinant is detA=adbc\det A = a d - b c. Geometrically, detA|\det A| is the area of the parallelogram with sides (a,c)(a, c) and (b,d)(b, d), the columns of AA. The sign of detA\det A records orientation: positive if the columns are counter-clockwise from each other (preserving the standard orientation of the plane), negative if they have been swapped or reflected.

3times33 \times 3 and cofactor expansion

For a 3times33 \times 3 matrix, expand along any row or column. The cofactor Cij=(1)i+jMijC_{ij} = (-1)^{i+j} M_{ij}ij where MijM_{ij}ij is the determinant of the 2times22 \times 2 matrix obtained by deleting row ii and column jj. Expanding along row 1: detA=a11C11+a12C12+a13C13\det A = a_{11} C_{11} + a_{12} C_{12} + a_{13} C_{13}a12C12+a13C13. The cofactor formula generalises to ntimesnn \times n matrices by recursion.

Key properties

(i) det(AB)=det(A)det(B)\det(A B) = \det(A) \det(B), the multiplicativity. (ii) Swapping two rows multiplies the determinant by 1-1. (iii) Multiplying a row by cc multiplies the determinant by cc; in particular det(cA)=cndet(A)\det(c A) = c^n \det(A) for an ntimesnn \times n matrix. (iv) Adding a multiple of one row to another leaves the determinant unchanged. (v) det(AT)=det(A)\det(A^T) = \det(A). (vi) The determinant equals the product of eigenvalues (counted with multiplicity).

The determinant-area widget above gives the geometric picture: as you change the columns of the matrix, the parallelogram (the image of the unit square) updates in real time. When the area number flashes negative, the orientation has flipped. When it hits zero, the parallelogram collapses to a line, the matrix is singular at that instant.

Where this shows up
  • Computer graphics back-face culling: Renderers compute the determinant of a triangle's vertex matrix to decide whether the triangle faces the camera (positive determinant) or is on the back of the model (negative), saving a per-pixel rendering step on hidden geometry.
  • Change of variables in calculus: When converting a multiple integral from Cartesian to polar, spherical, or any other coordinates, the Jacobian determinant detJ|\det J| is the volume-correction factor that keeps the integral correct.
  • Cryptography and combinatorics: Several public-key schemes use Hadamard-type matrices whose determinants are known exactly; the determinant value certifies linear independence of the codewords. Permanent (a sibling of determinant) appears in counting perfect matchings of bipartite graphs.

Pause and think: Suppose AA is a 4times44 \times 4 matrix and you scale every entry by 22. What happens to the determinant? Predict the formula in terms of detA\det A before reading further. (Hint: each of the four rows gets multiplied by 22.)

Try it

  • Before computing, predict the determinant of A = \begin{pmatrix} 3 & 7 \\ 1 & 4 \end{pmatrix}. Then verify with adbcad - bc.
  • Predict for what value of kk the matrix \begin{pmatrix} 2 & k \\ 4 & 6 \end{pmatrix} becomes singular. Solve 124k=012 - 4k = 0 to verify.
  • Predict det(2A)\det(2 A) if detA=6\det A = 6 and AA is 3times33 \times 3. (Hint: each of 3 rows is scaled by 2.)
  • For A = \begin{pmatrix} 1 & 0 & 2 \\ 3 & 1 & 0 \\ 0 & 2 & 1 \end{pmatrix}, predict the sign of detA\det A from the row patterns, then compute by cofactor expansion along row 1.
  • If detA=4\det A = 4 and detB=2\det B = -2, predict det(AB)\det(A B) and det(A1)\det(A^{-1}) before justifying with the multiplicativity property.

A trap to watch for

The most common error in cofactor expansion is forgetting the alternating signs. The sign pattern for a 3times33 \times 3 matrix is \begin{pmatrix} + & - & + \\ - & + & - \\ + & - & + \end{pmatrix}. When expanding along row 1, the middle term gets a MINUS sign: detA=a11M11a12M12+a13M13\det A = a_{11} M_{11} - a_{12} M_{12} + a_{13} M_{13}a12M12+a13M13, not a11M11+a12M12+a13M13a_{11} M_{11} + a_{12} M_{12} + a_{13} M_{13}a12M12+a13M13. Forgetting the minus is the single most common source of wrong determinants in homework. Use the formula Cij=(1)i+jMijC_{ij} = (-1)^{i+j} M_{ij}ij explicitly to avoid sign errors.

What you now know

You can compute determinants by cofactor expansion or row reduction, interpret them geometrically as signed volume scalings, and chain them through products. The next section (§1.6) ties determinants together with rank, nullity, and invertibility into the Key Theorem of Linear Algebra, one unified picture of square matrices.

Mark section complete →

References

  • Garrity, T. (2002). All the Mathematics You Missed. Cambridge University Press, ch. 1, §1.5.
  • Strang, G. (2016). Introduction to Linear Algebra (5th ed.). Wellesley-Cambridge, ch. 5 (determinants).
  • Hoffman, K., Kunze, R. (1971). Linear Algebra (2nd ed.). Prentice-Hall, ch. 5.
  • Axler, S. (2015). Linear Algebra Done Right (3rd ed.). Springer, ch. 10.
  • Trefethen, L. N., Bau, D. (1997). Numerical Linear Algebra. SIAM, lec. 1 (basic linear-algebra facts).

This page is prerendered for SEO and accessibility. The interactive widgets above hydrate on JavaScript load.