Matrix determinant lemma explained

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, uvT, of a column vector u and a row vector vT.[1] [2]

Statement

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

\det\left(A+uvsf{T}\right)=\left(1+vsf{T}A-1u\right)\det\left(A\right).

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\left(A+uvsf{T}\right)=\det\left(A\right)+vsf{T}adj\left(A\right)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:[3]

\begin{pmatrix}I&0\vsf{T}&1\end{pmatrix} \begin{pmatrix}I+uvsf{T}&u\ 0&1\end{pmatrix} \begin{pmatrix}I&0\ -vsf{T}&1\end{pmatrix}= \begin{pmatrix}I&u\ 0&1+vsf{T}u\end{pmatrix}.

The determinant of the left hand side is the product of the determinants of the three matrices. Since the first and third matrix are triangular 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\left(I+uvsf{T}\right)=\left(1+vsf{T}u\right).

Then the general case can be found as:

\begin{align} \det\left(A+uvsf{T}\right) &=\det\left(A\right)\det\left(I+\left(A-1u\right)vsf{T}\right)\\ &=\det\left(A\right)\left(1+vsf{T}\left(A-1u\right)\right). \end{align}

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[4] 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\left(A+UVsf{T}\right)=

\det\left(Im

+Vsf{T}A-1U\right)\det(A).

In the special case

A=In
this is the Weinstein–Aronszajn identity.

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

\det\left(A+UWVsf{T}\right)=\det\left(W-1+Vsf{T}A-1U\right)\det\left(W\right)\det\left(A\right).

See also

Notes and References

  1. Book: Harville, D. A. . 1997 . Matrix Algebra From a Statistician's Perspective . New York . Springer-Verlag . 0-387-94978-X .
  2. Web site: Brookes, M. . The Matrix Reference Manual (online) . 2005.
  3. Ding, J. . Zhou, A. . 2007 . Eigenvalues of rank-one updated matrices with some applications . Applied Mathematics Letters . 20 . 12 . 1223–1226 . 0893-9659 . 10.1016/j.aml.2006.11.016 . free .
  4. Book: William H. Press . Brian P. Flannery . Saul A. Teukolsky . William T. Vetterling . Numerical Recipes in C: The Art of Scientific Computing . 73 . Cambridge University Press . 1992 . 0-521-43108-5 . Numerical Recipes .