In
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, specifically
linear algebra
Linear algebra is the branch of mathematics concerning linear equations such as
:a_1x_1+\cdots +a_nx_n=b,
linear maps such as
:(x_1, \ldots, x_n) \mapsto a_1x_1+\cdots +a_nx_n,
and their representations in vector spaces and through matrix (mathemat ...
, the Woodbury matrix identity – named after
Max A. Woodbury – says that the inverse of a rank-''k'' correction of some
matrix
Matrix (: matrices or matrixes) or MATRIX may refer to:
Science and mathematics
* Matrix (mathematics), a rectangular array of numbers, symbols or expressions
* Matrix (logic), part of a formula in prenex normal form
* Matrix (biology), the m ...
can be computed by doing a rank-''k'' correction to the inverse of the original matrix. Alternative names for this formula are the matrix inversion lemma, Sherman–Morrison–Woodbury formula or just Woodbury formula. However, the identity appeared in several papers before the Woodbury report.
The Woodbury matrix identity is
[
]
where ''A'', ''U'', ''C'' and ''V'' are
conformable matrices: ''A'' is ''n''×''n'', ''C'' is ''k''×''k'', ''U'' is ''n''×''k'', and ''V'' is ''k''×''n''. This can be derived using
blockwise matrix inversion.
While the identity is primarily used on matrices, it holds in a general
ring
(The) Ring(s) may refer to:
* Ring (jewellery), a round band, usually made of metal, worn as ornamental jewelry
* To make a sound with a bell, and the sound made by a bell
Arts, entertainment, and media Film and TV
* ''The Ring'' (franchise), a ...
or in an
Ab-category.
The Woodbury matrix identity allows cheap computation of inverses and solutions to linear equations. However, little is known about the numerical stability of the formula. There are no published results concerning its error bounds. Anecdotal evidence suggests that it may diverge even for seemingly benign examples (when both the original and modified matrices are
well-conditioned
In numerical analysis, the condition number of a function measures how much the output value of the function can change for a small change in the input argument. This is used to measure how sensitive a function is to changes or errors in the inpu ...
).
Discussion
To prove this result, we will start by proving a simpler one. Replacing ''A'' and ''C'' with the
identity matrix
In linear algebra, the identity matrix of size n is the n\times n square matrix with ones on the main diagonal and zeros elsewhere. It has unique properties, for example when the identity matrix represents a geometric transformation, the obje ...
''I'', we obtain another identity which is a bit simpler:
To recover the original equation from this ''reduced identity'', replace
by
and
by
.
This identity itself can be viewed as the combination of two simpler identities. We obtain the first identity from
thus,
and similarly
The second identity is the so-called push-through identity
that we obtain from
after multiplying by
on the right and by
on the left.
Putting all together,
where the first and second equality come from the first and second identity, respectively.
Special cases
When
are vectors, the identity reduces to the
Sherman–Morrison formula
In linear algebra, the Sherman–Morrison formula, named after Jack Sherman and Winifred J. Morrison, computes the inverse of a "rank-1 update" to a matrix whose inverse has previously been computed. That is, given an invertible matrix A and the ...
.
In the scalar case, the reduced version is simply
Inverse of a sum
If ''n'' = ''k'' and ''U'' = ''V'' = ''I''
''n'' is the identity matrix, then
Continuing with the merging of the terms of the far right-hand side of the above equation results in
Hua's identity
Another useful form of the same identity is
which, unlike those above, is valid even if
is
singular
Singular may refer to:
* Singular, the grammatical number that denotes a unit quantity, as opposed to the plural and other forms
* Singular or sounder, a group of boar, see List of animal names
* Singular (band), a Thai jazz pop duo
*'' Singula ...
, and has a recursive structure that yields
if the
spectral radius
''Spectral'' is a 2016 Hungarian-American military science fiction action film co-written and directed by Nic Mathieu. Written with Ian Fried (screenwriter), Ian Fried & George Nolfi, the film stars James Badge Dale as DARPA research scientist Ma ...
of
is less than one. That is, if the above sum converges then it is equal to
.
This form can be used in perturbative expansions where ''B'' is a perturbation of ''A''.
Variations
Binomial inverse theorem
If ''A'', ''B'', ''U'', ''V'' are matrices of sizes ''n''×''n'', ''k''×''k'', ''n''×''k'', ''k''×''n'', respectively, then
provided ''A'' and ''B'' + ''BVA''
−1''UB'' are nonsingular. Nonsingularity of the latter requires that ''B''
−1 exist since it equals and the rank of the latter cannot exceed the rank of ''B''.
Since ''B'' is invertible, the two ''B'' terms flanking the parenthetical quantity inverse in the right-hand side can be replaced with which results in the original Woodbury identity.
A variation for when ''B'' is singular and possibly even non-square:
[
Formulas also exist for certain cases in which ''A'' is singular.
]
Pseudoinverse with positive semidefinite matrices
In general Woodbury's identity is not valid if one or more inverses are replaced by (Moore–Penrose) pseudoinverses. However, if and are positive semidefinite, and (implying that is itself positive semidefinite), then the following formula provides a generalization:
where can be written as because any positive semidefinite matrix is equal to for some .
Derivations
Direct proof
The formula can be proven by checking that times its alleged inverse on the right side of the Woodbury identity gives the identity matrix:
Alternative proofs
First consider these useful identities,
Now,
Deriving the Woodbury matrix identity is easily done by solving the following block matrix inversion problem
Expanding, we can see that the above reduces to
which is equivalent to . Eliminating the first equation, we find that , which can be substituted into the second to find . Expanding and rearranging, we have , or . Finally, we substitute into our , and we have . Thus,
:
We have derived the Woodbury matrix identity.
We start by the matrix
By eliminating the entry under the ''A'' (given that ''A'' is invertible) we get
Likewise, eliminating the entry above ''C'' gives
Now combining the above two, we get
Moving to the right side gives
which is the LDU decomposition of the block matrix into an upper triangular, diagonal, and lower triangular matrices.
Now inverting both sides gives
We could equally well have done it the other way (provided that ''C'' is invertible) i.e.
Now again inverting both sides,
Now comparing elements (1, 1) of the RHS of (1) and (2) above gives the Woodbury formula
Applications
This identity is useful in certain numerical computations where ''A''−1 has already been computed and it is desired to compute (''A'' + ''UCV'')−1. With the inverse of ''A'' available, it is only necessary to find the inverse of ''C''−1 + ''VA''−1''U'' in order to obtain the result using the right-hand side of the identity. If ''C'' has a much smaller dimension than ''A'', this is more efficient than inverting ''A'' + ''UCV'' directly. A common case is finding the inverse of a low-rank update ''A'' + ''UCV'' of ''A'' (where ''U'' only has a few columns and ''V'' only a few rows), or finding an approximation of the inverse of the matrix ''A'' + ''B'' where the matrix ''B'' can be approximated by a low-rank matrix ''UCV'', for example using the singular value decomposition
In linear algebra, the singular value decomposition (SVD) is a Matrix decomposition, factorization of a real number, real or complex number, complex matrix (mathematics), matrix into a rotation, followed by a rescaling followed by another rota ...
.
This is applied, e.g., in the Kalman filter
In statistics and control theory, Kalman filtering (also known as linear quadratic estimation) is an algorithm that uses a series of measurements observed over time, including statistical noise and other inaccuracies, to produce estimates of unk ...
and recursive least squares methods, to replace the parametric solution, requiring inversion of a state vector sized matrix, with a condition equations based solution. In case of the Kalman filter this matrix has the dimensions of the vector of observations, i.e., as small as 1 in case only one new observation is processed at a time. This significantly speeds up the often real time calculations of the filter.
In the case when ''C'' is the identity matrix ''I'', the matrix is known in numerical linear algebra
Numerical linear algebra, sometimes called applied linear algebra, is the study of how matrix operations can be used to create computer algorithms which efficiently and accurately provide approximate answers to questions in continuous mathemati ...
and numerical partial differential equations
Numerical may refer to:
* Number
* Numerical digit
* Numerical analysis
Numerical analysis is the study of algorithms that use numerical approximation (as opposed to symbolic computation, symbolic manipulations) for the problems of mathematical ...
as the capacitance matrix.
See also
*Sherman–Morrison formula
In linear algebra, the Sherman–Morrison formula, named after Jack Sherman and Winifred J. Morrison, computes the inverse of a "rank-1 update" to a matrix whose inverse has previously been computed. That is, given an invertible matrix A and the ...
*Schur complement
The Schur complement is a key tool in the fields of linear algebra, the theory of matrices, numerical analysis, and statistics.
It is defined for a block matrix. Suppose ''p'', ''q'' are nonnegative integers such that ''p + q > 0'', and suppose ...
* Matrix determinant lemma, formula for a rank-''k'' update to a determinant
In mathematics, the determinant is a Scalar (mathematics), scalar-valued function (mathematics), function of the entries of a square matrix. The determinant of a matrix is commonly denoted , , or . Its value characterizes some properties of the ...
*Invertible matrix
In linear algebra, an invertible matrix (''non-singular'', ''non-degenarate'' or ''regular'') is a square matrix that has an inverse. In other words, if some other matrix is multiplied by the invertible matrix, the result can be multiplied by a ...
*
Notes
*
External links
Some matrix identities
* {{MathWorld, title=Woodbury formula, urlname=WoodburyFormula
Lemmas in linear algebra
Matrices (mathematics)
Matrix theory