- Sherman–Morrison formula
In
mathematics , in particularlinear algebra , the Sherman–Morrison formula,Jack Sherman and Winifred J. Morrison, " [http://projecteuclid.org/euclid.aoms/1177729940 Adjustment of an Inverse Matrix Corresponding to Changes in the Elements of a Given Column or a Given Row of the Original Matrix] " (abstract), Annals of Mathematical Statistics, Volume 20, p. 621 (1949).] Jack Sherman, Winifred J. Morrison, [http://projecteuclid.org/euclid.aoms/1177729893 "Adjustment of an Inverse Matrix Corresponding to a Change in One Element of a Given Matrix"] , Annals of Mathematical Statistics, Vol. 21, No. 1, pp. 124-127 (1950) [http://www.ams.org/mathscinet-getitem?mr=35118 MR35118] ] William H. Press, Brian P. Flannery, Saul A. Teukolsky, William T. Vetterling, "", pp.73+. Cambridge University Press (1992). ISBN 0-521-43108-5.] named after Jack Sherman andWinifred J. Morrison , computes the inverse of the sum of an invertible
matrix and thedyadic product , ,of a column vector and a row vector . The Sherman–Morrison formula is a special case of the Woodbury formula.Statement
Suppose "A" is an
invertible square matrix and "u", "v" are vectors. Suppose furthermore that .Thenthe Sherman–Morrison formula states that:Here, is the
dyadic product of two vectors "u" and "v". The general form shown here is the one published by BartlettM. S. Bartlett, [http://projecteuclid.org/euclid.aoms/1177729698 "An Inverse Matrix Adjustment Arising in Discriminant Analysis"] , Annals of Mathematical Statistics, Vol. 22, No. 1, pp. 107-111 (1951) [http://www.ams.org/mathscinet-getitem?mr=40068 MR40068] ] .Application
If the inverse of is already known, the formula provides a
numerically cheap wayto compute the inverse of corrected by the matrix (depending on the point of view, the correction may be seen as a
perturbation or as a rank-1 update).The computation is relatively cheap because the inverse of does not have to be computed from scratch (which in general is expensive),but can be computed by correcting (or perturbing) .Usingunit vectors for or , individual columns or rows of may be manipulatedand a correspondingly updated inverse computed relatively cheaply in this way.In the general case, where is a times matrixand and are arbitrary vectors (in which case the whole matrix is updated),the computation takes scalar multiplications [ [http://www.alglib.net/matrixops/general/invupdate.php Update of the inverse matrix by the Sherman-Morrison formula] ] .
If is a unit vector, only one row of is updated and the computation takes only scalar multiplications.The same goes if is a unit vector,in which case only one column of is updated.
If both and are unit vectors, only a single element of is updated and the computation takes only scalar multiplications.
Verification
We verify the properties of the inverse.A matrix (in this case the right-hand side of the Sherman–Morrison formula)is the inverse of a matrix (in this case )if and only if .
We first verify that the right hand side () satisfies ."'Note that is a scalar and can be factored out."':
::
::
::
::
::
In the same way, we can verify that
:
See also
* The
matrix determinant lemma performs a rank-1 update to adeterminant .
*Sherman–Morrison–Woodbury formula References
External links
*
* [http://www.ocolon.org/editor/template.php?.matrix_sherman_morrison Sherman–Morrison formula online calculation template]
Wikimedia Foundation. 2010.