Neha Patil (Editor)

Matrix determinant lemma

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In mathematics, in particular linear algebra, the matrix determinant lemma computes the determinant of the sum of an invertible matrix A and the dyadic product, u vT, of a column vector u and a row vector vT.

Contents

Statement

Suppose A is an invertible square matrix and u, v are column vectors. Then the matrix determinant lemma states that

det ( A + u v T ) = ( 1 + v T A 1 u ) det ( A ) .

Here, uvT is the outer product of two vectors u and v.

The theorem can also be stated in terms of the adjugate matrix of A:

det ( A + u v T ) = det ( A ) + v T a d j ( A ) u ,

in which case it applies whether or not the square matrix A is invertible.

Proof

First the proof of the special case A = I follows from the equality:

( I 0 v T 1 ) ( I + u v T u 0 1 ) ( I 0 v T 1 ) = ( I u 0 1 + v T u ) .

The determinant of the left hand side is the product of the determinants of the three matrices. Since the first and third matrix are triangle matrices with unit diagonal, their determinants are just 1. The determinant of the middle matrix is our desired value. The determinant of the right hand side is simply (1 + vTu). So we have the result:

det ( I + u v T ) = ( 1 + v T u ) .

Then the general case can be found as:

det ( A + u v T ) = det ( A ) det ( I + ( A 1 u ) v T ) = det ( A ) ( 1 + v T ( A 1 u ) ) .

Application

If the determinant and inverse of A are already known, the formula provides a numerically cheap way to compute the determinant of A corrected by the matrix uvT. The computation is relatively cheap because the determinant of A+uvT does not have to be computed from scratch (which in general is expensive). Using unit vectors for u and/or v, individual columns, rows or elements of A may be manipulated and a correspondingly updated determinant computed relatively cheaply in this way.

When the matrix determinant lemma is used in conjunction with the Sherman-Morrison formula, both the inverse and determinant may be conveniently updated together.

Generalization

Suppose A is an invertible n-by-n matrix and U, V are n-by-m matrices. Then

det ( A + U V T ) = det ( I m + V T A 1 U ) det ( A ) .

In the special case A = I n this is Sylvester's theorem for determinants.

Given additionally an invertible m-by-m matrix W, the relationship can also be expressed as

det ( A + U W V T ) = det ( W 1 + V T A 1 U ) det ( W ) det ( A ) .

References

Matrix determinant lemma Wikipedia