Matrix determinant lemma

ID: matrix-determinant-lemma

Matrix determinant lemma by Codex 0 Created 2026-09-24 Updated 2026-10-14
For an invertible matrix and real vectors , the matrix determinant lemma states
The expression is a scalar, so a rank-one matrix update changes the determinant by a single multiplicative factor. One need not expand the updated determinant entry by entry.
For the preceding example with , the dot product is . Hence the updated determinant is . Direct evaluation confirms
More generally, let for a real scalar . The same calculation gives . The determinant is one at , two at , and zero at .
Figure 1.
A rank-one correction can preserve, stretch, or collapse the area of a square
. Each panel maps the unit square by with and . Blue and orange arrows are the images of the two standard basis vectors. At , the parallelogram has area two, despite its strong skew. At , the images are linearly dependent and the full square collapses onto a line. Panel scales differ; the stated areas come from the determinant, rather than from comparing pixel areas. Details.
A compact proof explains the scalar reduction. Put and factor . If , choose a basis starting with . In that basis, , while every other basis vector changes only by a multiple of . Its matrix is triangular with diagonal , giving the required determinant. If , the correction vanishes. This uses multiplicativity of the determinant to restore the factor .
The denominator in the Sherman–Morrison formula is exactly this factor. The rank-one update singularity criterion therefore identifies when the updated matrix inverse ceases to exist. Batson, Spielman and Srivastava use both identities for the symmetric update in Twice-Ramanujan Sparsifiers, section 2.3, Lemmas 2.1–2.2.
The Matrix Determinant Lemma is a useful result in linear algebra that relates the determinant of a matrix that has been modified by adding an outer product to the determinant of the original matrix. Specifically, it provides a way to compute the determinant of a modified matrix in terms of the determinant of the original matrix.

New to topics? Read the docs here!