When the inverse matrix is known at order n, compute it at order n+1
That is to say: add one row-and-column and update the inverse.
Let
be an invertible symmetrix matrix of order
and
its known inverse.
Let
be a vector of length
and
a scalar.
Compute the inverse of the block matrix:
with
a symmetrix matrix of order
,
a vector of length
and
a scalar, all to be determined so that:
where
is the identity matrix of order
and
a vector of length
with all components
.
By applying the row-by-column product to the block matrices one obtains the following relations:
The third relation is redundant because of the symmetry, and will not be used.
Multiply by
the first two relations:
Now use the auxiliary variable
(a vector of length
):
is known because
is known. Then:
Substitute in the last equation:
Of course this can be computed if
, which is the invertibility condition.
Then solve for
in the first equation:
Compute an inverse matrix of order
n from a known matrix of order n+1.
The problem is still stated as:
However, in this case,
,
and
are known, and
has to be computed. To do that, compute:
to obtain:
Note that if
then
is not invertible and
does not exist.
Remark: here one row-and-column is attached or eliminated in the last position
only for convenience of presentation.
The inverse matrix can be updated in this way when any row-and-column is eliminated.
When a row-and-column is attached in the last position,
row and columns can be sorted afterwards (in both matrices).

Francesco Uboldi 2014,2015,2016,2017