1. Introduction
For various historical reasons, what may have been called the Aitken–Hotelling–Duncan (AHD) formula has been dominantly known as the Sherman–Morrison–Woodbury (SMW) formula. The formula was discovered and rediscovered by different researchers, for example, by Duncan [
1] and Guttman [
2] in the mid-1940s, about five years earlier than Sherman–Morrison [
3,
4] and Woodbury [
5]. Such a repeated discovery is a strong sign of the importance of the formula.
“
An important formula is not easily laid to rest.” This quote is from Hager [
6]; it aptly points out a golden criterion that can measure the magnitude of significance of a formula: How well does it endure the test of the relentless passing of time?
The AHD/SMW formula passes the test of time remarkably well. Instead of being laid to rest, it has thrived. Derivations of the formula and its variants have continued since the 1950s. Representative works include Henderson and Searle [
7] and Hager [
6]. One of the classic and powerful approach for the derivation is via the Schur complements (see, e.g., [
7] and Bojock (p. 128, [
8])). Strang presents a similarly powerful approach in (pp. 161–162, [
9]) using block Gauss elimination.
More importantly, the AHD/SMW formula and its variants have continued to find new applications in diverse fields. For example, Kailath utilized the formula in his pioneering work [
10] to prove the equivalence of the Winner filter and a maximum-likelihood process, while Brooks and Reed applied the formula to establish the equivalence of the Wiener filter and the maximum signal-to-noise ratio filter [
11].
More recent applications include those in diverse fields such as: Google search engines [
12]; recursive least squares (RLS) and Kalman filtering (e.g., [
13,
14,
15,
16]); wireless communications (e.g., [
17]); dynamical systems (e.g., [
18,
19]); flow simulations (e.g., [
20]); structured equations (e.g., [
21,
22,
23]); and machine learning (e.g., [
24,
25,
26,
27]).
The AHD/SMW formula and its variants are known for their efficiency for inverting matrices of form
, where
B is inexpensive to invert, and
E is low rank (usually as a product of low-rank matrices). To emphasize the low-rank property in
E, the
structure is often called the
low-rank perturbation in traditional fields, such as dynamical systems and control, and the
low-rank update in machine learning. Such a structure arises frequently in diverse fields, and there is great demand for computing or approximating
efficiently. Representative demands include those from Gaussian processes (GPs) (p. 201, [
28]) and reinforcement learning (RL) (Chapter 9, [
29]). The formula is frequently utilized to exploit the low-rank updates naturally occurring to the kernel matrices in GP and the Bellman matrices in RL. Owing to such continual and progressive demands, the formula not only ages well but also shows renewed vigor in an age of machine learning and artificial intelligence.
For such an influential formula over 75 years old, it can be difficult to shed new lights on it since the vast existing literature usually implies that most of the important aspects of the formula have been covered. However, we find three topics that are still worth writing on.
First, in
Section 2, we examine historical documents to argue that AHD is at least as equally deserving a name for the formula as SMW. In our opinion, AHD is a more appropriate name than SMW.
Second, in
Section 3, we present two methods for the direct derivation that do not seem to exist in the literature, one slow and one fast. The slow method can clearly show the interconnections among related formulas; it also introduces a QR trick useful for conditioning bounds. The fast method can make the common practice of directly verifying a given inverse formula via matrix multiplications appear burdensome. The derivations in
Section 3 are suitable for an advanced undergraduate course on linear algebra.
Lastly, in
Section 4, we develop significant improvements over the classic conditioning bounds of Yip [
30]. Numerical experiments show that our bounds can be several orders of magnitude sharper than the bounds in [
30]. The QR trick that we use for the direct derivation of the formula in
Section 3 plays a key role in the development of our conditioning bounds. Our improved bounds shed a new light on the generally perceived tricky stability issue related to the formula and provide theoretical support to the observations reported (e.g., in [
18,
19]) and other cases where the formula naturally performs stably.
A formula that passes the test of time and continues to find new applications in diverse fields necessitates a stability exceeding the bounds suggested in [
30]. Our improved bounds theoretically justify this possibly long-held but less-articulated expectation.
2. Some Brief History
Two excellent reviews of Henderson and Searle [
7] and Hager [
6] contain scrupulous historical accounts of the development of related formulas predating Sherman–Morrison [
3,
4] and Woodbury [
5].
Duncan [
1] already contains the complete form of what is later called the Woodbury formula (or the SMW formula in general). In [
1], Duncan particularly mentioned that “the expression for the reciprocal of a partitioned matrix which appears in Equation 3.3 has been given by Dr. A. C. Aitken of Edinburgh in lectures to his students, together with some alternative equivalent forms which are now included in the present paper.” We do not have access to the mentioned lecture notes, but it is reasonable to assume that Aitken’s notes were later included in his book [
31].
In [
1], Duncan also credited Hotelling [
32] for developing related formulas.
Waugh in [
33] improved Hotelling’s method for deriving the same formula by reducing four inversions of half-sized matrices into just two inversions.
Guttman [
2] also contributed to the derivation of the formula, but he appeared unaware of Duncan’s [
1] before submitting [
2]. At the footnote on the first page of [
2], he wrote that “Professor Harold Hotelling has called my attention to reference [1], which overlaps substantially with the present paper…”
Duncan in [
1] also cited Frazer et al. [
34]—a book on Elementary Matrices that he coauthored. This book [
34] already contains techniques for obtaining the inverse of a
block matrix (such a block matrix is called the “augmented”, “enlarged”, or “bordered” matrix by later researchers). The origin of the inverse formula of the augmented
block matrix traces back to Banachiewicz [
35,
36] (as cited in [
7]). Guttman in [
2] termed the techniques using block-augmented matrices the
enlargement principle. Both Duncan’s and Guttman’s derivations utilized this enlargement technique.
Henderson and Searle had a precise summary of Duncan [
1] on page 56 of [
7]. They in particular noted that Duncan [
1] “does give (
1), in what seems to be its first appearance.”
In (
1), the
A and
D are invertible, of size
and
, respectively, and
U and
V are of size
and
, respectively. We note that (
1) is already the modern form of what is known as the SMW formula, with the minor exception that the modern form often uses
(or
in the complex case) in place of
V so that the
U and
V matrices can have the same dimensions.
Next, we take a closer look at some historical documents related to the Sherman–Morrison formula.
The formula commonly attributed to Sherman and Morrison based on [
3,
4] is
where
A is invertible and
u and
v are compatible vectors, with
.
The work [
3] is a one-third-page abstract. It describes an algorithm instead of presenting a formula. This algorithm, as pointed out by Hager [
6], contains typographic errors, which may stem from its complicated elementwise notation. The subsequent paper [
4] also describes an algorithm rather than a compact formula.
Somewhat surprisingly, Formula (
2) dominantly attributed to Sherman and Morrison is not contained in either [
3] or [
4].
The title of [
3] says the inverse is for a matrix with changes in a row or in a column, while [
4] is even more specific—the inverse is for a matrix with only one element changed. However, (
2) is for the inverse of
in which the
may change all elements of
A. More specifically, [
3] is for
or
, and [
4] is for both
and
, where
and
denote standard basis vectors, and
c and
d are nonzero scalars; both are special cases of (
2). At the end of [
4], Sherman and Morrison suggested “successive applications of the method” to address a matrix with changes in two or more elements. In contrast, (
2) can address such multiple element changes in one-shot, which is more convenient than the “successive applications” suggested by Sherman and Morrison, especially when all elements in
A got changed by
.
Hager [
6] traces Formula (
2) back to Bartlett [
37]. Indeed, Sherman and Morrison [
3,
4] are special cases of (
2), and Bartlett explicitly stated that his formula “includes the cases considered by Sherman and Morrison” in the introduction part of [
37].
Woodbury in [
5] cited Bartlett [
37] as “submitted for publication”, what he generalized is Bartlett’s (
2) instead of the narrower but more complicated algorithms in [
3,
4].
On page 2 of [
5], Woodbury wrote the following:
“Let
A be a nonsingular
matrix, let
S be a square
matrix and let
U and
V be
and
rectangular matrices, then
If further
S is non-singular, then the equation
holds.”
Comparing Woodbury’s (
4) with the Formula (
1) that already exists in Duncan [
1], we see that they are identical (using
S or
D makes no difference to the formula).
Woodbury appeared to consider (
3) as more general than (
4) since he only assumed
S to be invertible for (
4) but not for (
3). However, since
S in (
3) is a common factor in the invertible matrix
, this
S must also be invertible, which makes (
3) equivalent to (
4), not more general.
Woodbury obtained (
4) via inverting “bordered matrices”—the same technique used by Duncan in [
1] and by Guttman in [
2]. A notable difference is that Duncan derived the inverse formula of a
bordered matrix in [
1], while Woodbury directly specified the inverse of the bordered matrix and stated that “(the inverse) can be verified by multiplication” in [
5].
The commonly adopted view is that Woodbury was unaware of the earlier work of Duncan et al., and in [
5], he cited none of their work. However, from the fact that Woodbury did not seek a formal publication of [
5], and it has remained a technical report since 1950, it is plausible that he became aware of the earlier work after finishing [
5].
The above brief historical review shows that Sherman and Morrison [
3,
4] address only special cases of (
2), and (
2) itself is a special case of (
4). However, (
4) is already explicitly derived in [
1], six years before Woodbury stated it in [
5] without a derivation.
Owing to the fact that Duncan [
1] already contains the explicit form of what is later called the SMW formula, and that Duncan in [
1] credited the essential contributions of Aitken and Hotelling for the formula, we feel it is appropriate to call the SMW formula the Aitken–Hotelling–Duncan (AHD) formula.
There are similar situations in which initial inventors of certain theories (including formulas) do not receive the credits they deserve. Here, we list only three examples:
As pointed out in (p. 1, [
38]), the influential Kantorovich inequality is named after Kantorovich (1975 Nobel Laureate in Economy) based on his derivation in a survey paper published in Russian in 1948. (In matrix form, the inequality claims that for a (Hermitian) positive definite matrix
A with eigenvalues inside the interval
,
.) However, the inequality was already published five years earlier by graph theorist Frucht in Spanish in 1943.
The reflector named after Householder can be traced back to (pp. 102–105, [
42]), which is 26 years earlier than 1958—the year Householder published [
43] and popularized its effective usage in digital computations. (See, e.g., Golub and Van Loan (p. 222, [
44]), Higham (p. 383, [
45]), and Stewart (p. 289, [
46]).)
The under-recognition of certain initial inventors happened for various historical reasons. Lacking efficient communication means (especially in more ancient times), lack of communications between different communities, difficulties in tracing the original source, and obstructions caused by devastating world wars, etc., are some of the reasons. However, in most cases, those who were credited for the inventions were as deserving as the initial inventors.
In the remaining paper, we will use AHD when referring to the formula commonly known as SMW, as our humble means to attribute the deserving credits to Aitken, Hotelling, and Duncan. This also avoids using the lengthier AHD/SMW or AHD-SMW that appears awkward.
3. Direct Derivations
It is well known that once the AHD formula for the inverse of is provided, to prove the formula is true becomes straightforward since one only needs to verify either or . Indeed, this is the most common approach taken in many textbooks and lecture notes when introducing the AHD formula. In comparison, far fewer resources are concerned about how to derive the formula from scratch.
In
Section 3.1, we present two novel elementary derivations. In
Section 3.2, we give an overview of the classic methods that pioneers such as Duncan et al. used to derive the formula and present a simplification. We also compare our methods with the simplified classic method.
First, we begin the discussion of direct derivations with the approach Bartlett used in [
37] to derive Formula (
2). To preserve related historical contents faithfully, we use a screenshot. As shown in
Figure 1, Bartlett’s derivation indeed looks succinct and beautiful.
However, Bartlett’s derivation is incomplete: First, the expansion of
into the Neumann series needs the condition
, where
denotes the spectral radius. Since
is rank-1, this condition reduces to
. Second, the final step summing up the binomial series also requires
. However, the inverse Formula (
2) can hold for any
u and
v whenever
. Therefore, Bartlett’s derivation missed the larger region
. However, Bartlett was careful to mention that the derived formula can be further verified by checking
or
.
Bartlett’s derivation can be fixed by a suitable scaling, but it involves more than what is shown in
Figure 1. The derivation—published by a pioneer and expert in the field—signals that a complete and elementary derivation of the AHD formula is more involved than one would normally expect. This likely explains why most textbooks and tutorials adopt the approach of verification from a given inverse instead of deriving the inverse directly.
In the next two subsections we focus on direct elementary derivations from scratch. That is, we do not assume or use any information about the form of the inverse before it is derived.
From here onward, we use I to denote the identity matrix of size-n; when the size of the identity matrix differs from n, we specify it explicitly using a subindex, such as for the size-k identity matrix.
3.1. Elementary Direct Derivations of the Family of AHD Formulas
We directly work in the complex setting, let U and , and let be invertible. We start by deriving the formula for , which is essential for all the formulas in the AHD family. The other AHD family members follow suit easily once is derived.
We first assume that
V contains orthonormal columns,
. (Orthonormality is a critical stepping stone in this derivation. Our method also works if we start by assuming
U to have orthonormal columns. This “symmetry” in treating both
U and
V will be useful when we study the conditioning bounds in
Section 4.) This assumption appears to severely limit generality; however, we can readily recover the lost generality by a QR trick once we derive the simplest formula.
Since
, we can extend
V into a size-
n unitary matrixes as
. Then,
This instantly makes it clear that
being invertible is sufficient to guarantee
to be invertible, and finding
is essentially finding the inverse of the block lower triangular matrix in the middle of (
5). So, the task becomes easier since finding the inverse of a
block lower triangular matrix is standard via a block Gauss elimination. We only need to find the block
X such that
Equating the
block on both sides gives
. This leads to
To find a succinct formula for
, we only need some patience to simplify terms: since
, we substitute
by
. With some reordering, equality (
7) becomes
The last three terms cancel out because
This leads to the formula
The above derivation of (
9) appears lengthy with all details written down, but it is rather straightforward. However, the straightforwardness is obtained by assuming
V to have orthonormal columns, allowing
V to be augmented into a unitary matrix
. After which the orthonormality quickly reveals the essential structure of the sought inverse. Once derived, it becomes easy to check via multiplication that (
9) is the inverse without needing the condition
. However, we need neither “verification” nor the condition
.
For the general case where
V may not have orthonormal columns, we can apply QR factorization to
V. Let
, where
, and
R is triangular (not necessarily invertible); then, we combine the
factor with
U, leading to
, for which Formula (
9) can be readily applied:
The terms (
10) and (11) are equal because
The right part in (
12) is obvious. The left part in (
12) is sometimes called the
push-through identity.
Therefore, Formula (
9) holds for general
U and
V under the basic condition that
is invertible. We derive (
9) from scratch, using no previous knowledge about
.
Now, we address the other members in the AHD family. First, the
I in (
9) needs to be replaced by an invertible
. We only need the basic condition that
is invertible. Then, by Formula (
9), we obtain
Next comes the more general
replacing
, where
. Under the basic condition that
is invertible, we can easily obtain
via (
13). If we group
C with
U and then apply (
13), we obtain
If we group
C with
and then apply (
13), we obtain
If
C is assumed to be invertible, then from either (
14) or (
15) we can derive
Identity (
16) is exactly the AHD Formula (
4) that was the center of discussion in
Section 2.
It is noteworthy that both (
14) and (
15) hold without requiring
C to be invertible. In fact, Formula (
15) is identical to the general formula that Henderson and Searle labeled as identity (1) to start their excellent review [
7].
Also worth noting is that Woodbury in [
5] appeared to seek a more general formula than (
4) for the more general case where
S may be singular. However, the one he obtained in [
5] is (
3), which is equivalent to (
4) since the
S in (
3) must be invertible. In comparison, our elementary method derives from scratch two formulas, (
14) and (
15), that are more general than (
4), and the process is effortless after the essential (
9) is established.
There are no doubt quicker ways to derive (
9). We present one method that is both simple and fast. It is even faster than the quickest derivation listed in Wikipedia (
https://en.wikipedia.org/wiki/Woodbury_matrix_identity, accessed in September 2025), since it does not need to use the push-through identity.
Denote
, then
Right multiplying (
17) by
U leads to
Moreover, since
and
have same nonzero eigenvalues,
being invertible guarantees
to be invertible. (The fastest derivation in Wikipedia missed a step to show that
exists before using it.) Therefore,
Plugging
from (
18) in (
17), we obtain
Formula (
19) is the same as (
9) since
.
Our method is systematic in that it can be applied directly to derive all the formulas in the AHD family.
We apply it to the more complicated
directly: Denote
, then
. Right multiplying by
leads to
Right multiplying (
20) by
U leads to
. Moreover,
being invertible can guarantee
to be invertible. Therefore,
Plugging
from (
21) in (
20), we obtain
Formula (
22) is the general (
15) without requiring
C to be invertible.
Similarly, right multiplying (
20) by
leads to
. The assumption of
being invertible guarantees
to be invertible. Therefore,
Plugging
from (
23) in (
20), we obtain
Formula (
24) is the general (
14) without requiring
C to be invertible.
If
C is further assumed to be invertible, we obtain the same (
16) from either (
22) or (
24) in just one more step by pulling
C into the inverse of the smaller
matrix.
Our little method is so fast that it makes the common practice of proving the formulas through verification appear slow and burdensome. Recall that the common practice is to prove that an explicitly given inverse formula is true by verifying that its product with the original matrix is the identity matrix.
The given complicated inverse formula may occasionally contain typos, which can make the lengthy verification via matrix multiplications even more taxing. In contrast, our method can quickly derive the inverse formulas from scratch, making it unnecessary to depend on a given inverse. Our method is also more systematic for the derivation than all the other methods we are aware of in the existing literature.
Even though our first method described earlier appears much slower and lengthier than the fast method just presented, it is more elementary: It does not need to resort to eigenvalues or determinant identities such as
to establish the invertibility of the two size
matrices needed at (
21) and (
23). More importantly, this method is based on the idea of making
U or
V to have orthonormal columns, which plays a key role for improving the conditioning bounds in
Section 4.
3.2. Classic Direct Derivations
In this subsection, we give an overview of the classic methods used by the pioneers to derive the formulas. What Aitken, Hotelling [
32], Duncan [
1], and also Guttman [
2] used is an augmentation technique, which finds the inverse of a
augmented matrix. Guttman in [
2] coined a vivid term
the enlargement principle for such a technique. The found inverse formulas may be traced back to Banachiewicz [
35,
36] (as cited in [
7]).
The classic approaches commonly involve matrix factors containing Schur complements, although the term
Schur complement has to wait a few more years to be coined by Haynsworth in 1968 [
47]. Each such found AHD formula is essentially the inverse of a Schur complement [
6].
During the early development, the derivations were rather complicated. For example, Hotelling [
32] used four inversions of half-sized matrices for his derivation, and Waugh [
33] improved Hotelling’s method by reducing four block-wise inversions into just two inversions.
A relatively recent presentation of the classic derivations includes Hager [
6] and Bjorck (p. 128, [
8]). We skip the details of the classic approaches, which can be found in the listed references, but we note that the classic methods are quite involved and often need several steps of derivation.
In the following, we present the details of a modified classic method that provides some simplification over the classic methods. This approach is in the same vein as the classic methods; it casts finding an inverse matrix as a problem of solving an augmented linear equation.
Under the condition that is invertible, solving is equivalent to finding for a matrix M of n rows. Denote , then .
If
C is further assumed to be invertible, then
We can apply a block Gauss elimination to obtain
Then, solving backwardly, we obtain
Comparing (28) with
, we establish
by letting
. (Here,
M can be chosen as any invertible matrix, or it can simply be a vector that loops through all columns of an invertible matrix. Both are sufficient to show that all corresponding columns on both sides of (
29) are equal.)
Formula (
29) is the same as (
16), obtained by the simplified classic method in only a few steps.
This method is described in (pp. 82–83, [
48]), although [
48] does not specify its origin.
The method appears able to derive the AHD Formula (
16) quickly, without any tedious calculations, and it essentially uses only one block inversion.
A careful look over this method can reveal that its origin is indeed in the classic methods used by Duncan et al. In fact, the augmented matrix in (
25) is almost identical to the one used in Hager [
6] (they differ only in minor notations). Two reasons make this method appear to be much quicker for the derivation than the classic methods.
First, it focuses on finding only
, while the classic methods (as described in Hager [
6] and Bjorck in (p. 128, [
8])) have the broader goal of finding the inverse of the whole block augmented matrix, thus incurring the need for two block inverses and some more involved calculations.
Second, step (
27) requires
to be invertible, but this is not obvious under the common condition that
is invertible. One would need a more involved argument using Schur complements: The
is the Schur complement of
in the augmented matrix in (
25); this Schur complement being invertible guarantees the
block augmented matrix in (
25) to be invertible, which ensures
to be invertible, based on (
26). So, the quick derivation via this simplified method hides quite some involved steps in the background.
Even comparing with this simplified classic method that targets at deriving only
and appears fast, our two methods are still competitive: (i) they also need only one block inverse; (ii) they are straightforward and need no ingenious augmentation of matrices; (iii) they do not need the
C to be invertible and can naturally derive the more general formulas (such as (
14) and (
15)). More importantly, our lengthier method initially reduces the
V matrix into having orthonormal columns via a QR factorization and then groups the
R factor with other terms. The same procedure can be applied to the
U matrix. This QR trick is useful in [
49] for extending the Householder reflector to reflect block matrices when a symmetry condition is lost; it is also useful for establishing the significantly improved conditioning bounds, which we discuss in the next section.
4. Effective Conditioning of the AHD Formula
A major reference on the numerical stability of the AHD formulas is Yip [
30]. In [
30], Yip focuses on the stability issue of computing
via (
30)
for
, where
A and
B are invertible of size
, and
U and
V are of size
with full column rank
p.
The stability of Formula (
30) critically depends on
, where
denotes the condition number in 2-norm. In this section, we solely use
to denote the 2-norm; thus,
for any invertible matrix
M. We also use the same notations to agree with those in [
30]; thus, the AHD formula is applied to
instead of
. However, the bounds obtained work for both
.
A key result in Yip [
30] is Lemma 1 listed below; this lemma establishes an upper bound for
. The two theorems in [
30] heavily depend on this lemma. The theoretical bounds in [
30] are important in that they address the critical term in the AHD formula that is most responsible for its numerical stability. Yip [
30] has been a main reference on the numerical stability of the AHD formulas (cited in, e.g., [
6,
18,
19,
20,
21,
22,
23,
26]).
Lemma 1 ([
30])
. If A and B are nonsingular matrices, and U and V are matrices such that , with U and V of full column rank, thenwherewith The proof given in [
30] first derives that
After (
32), Yip immediately follows with
Then, Yip obtains one branch of the bound via the following
Finally, Yip states that the other branch of the bound
can be established similarly, thus proving (
31).
However, there is a gap from (
32) to (
33). Recall that the “reverse order law” such as
in general does not hold when the matrices
E and
F are singular [
50,
51]; therefore, we cannot obtain (
33) via
since the last step may not hold. Indeed,
and
can differ even when both
X and
are invertible. A simple example showing that
is
Then, we have
So even with an invertible
, the (
33) may still fail. Fortunately for (
33), the
U is not independent to the matrix
but linked via
. This condition is critical for (
33) to hold. The proof needs a few steps of algebra and is given in
Appendix A as Lemma A1.
Here, we provide a different proof to establish the bound (
31). Our proof does not really need (
33), but we need to guarantee that
is invertible. Although it can be done without (
33), we opt to prove (
33) in Lemma A1, filling a gap in [
30] and at the same time showing that
is invertible, based on (
32). The main advantage of our proof is in revealing much sharper bounds of
than (
31).
Proof. We prove Lemma 1 in the general complex setting, where
A and
are nonsingular,
, and
U and
have rank
p. Let the QR factorization of
U be
. Since
U has full column rank, we have
with
, and
is invertible. Therefore,
Since
, we have
. Left multiplying by
leads to
After substituting
and
, we obtain
Let
, then
By the definition of the condition number and the sub-multiplicity of the 2-norm, we have
The last equality is because .
Now, we bound
by
, for which we need to compare singular values. For this, we use the variational expressions of singular values. Assume
are nonzero vectors, then
Combining bounds (
35) and (
36), we obtain
The same argument can be used to establish the other bound involving
V. We only need to apply the argument to
. This involves replacing
A by
, and
B by
, and switching
U and
V in the above proof. So, we obtain
Since
and
, we obtain
Combining the two bounds (
37) and (
38), we obtain
Finally, since
, we obtain Yip’s bound (
31) (in the complex setting)
□
Our proof establishes two bounds sharper than Yip’s (
31). One of them is the bound (
39); however, the improvement in general is moderate.
Our other bound is significantly sharper than both (
39) and (
31), especially when
p is relatively small comparing to
n, which corresponds to the more common low-rank modifications encountered in diverse applications where the AHD formulas are utilized.
Applying the same argument that leads to (
35) to
, using QR factorization of
, we can obtain
We can also obtain (
41) without using the transpose trick as done above. Since
, we have
. Left multiplying
by
leads to
; further, right multiplying by
, we obtain
Identity (
42) already exists in [
52] and is used for other purpose there. For our purpose here, we only need to apply the QR factorization
directly to (
42) and then apply the same reasoning as done for the
U branch. This can directly lead to the bound
, which is the same as (
41) but without using the quicker transpose trick.
Combining (
40) and (
41), we obtain a tighter bound, which we summarize as bound (
43) in Lemma 2.
Lemma 2. Assume , where A and are nonsingular, and U and have rank p. Let and , where denotes the Moore–Penrose pseudo-inverse. Let the QR factorizations of U and V be, respectively, and , then We call (
43) the
compressed bound since it involves compressing the matrices
and
on the range subspaces generated by
U and
V, respectively. The sharper compressed bound may be considered as the effective conditioning for
. This is because bound (
43) shows that the components of the matrices
and
outside the compressed parts are ineffective in affecting
. Including only the effective components significantly improves the quality of the bounds.
Bound (44) is denoted by the
mod bound (meaning the modified Yip’s bound), and we call (45) the
Yip’s bound, which is the same as (
31) but allows all
to be complex.
For the random matrix generations in the numerical experiments presented in
Figure 2 and
Figure 3, there is no essential difference in using the uniform distribution
rand() or the standard normal distribution
randn(). The Matlab code used for numerical tests is available at the url provided in the
Data Availability Statement at the end of this paper.
As seen from
Figure 2 and
Figure 3, the compressed bound (
43) in general can capture the true value of
remarkably well, while the other two bounds (44) and (45) tend to significantly overestimate the true condition number.
In [
30], Yip mentioned that his bound (
31) can become overly pessimistic. We may apply bound (
43) for a feasible explanation: The effective (or active) components affecting
are in the compressed
matrices
and
, while the larger uncompressed
matrices
and
contain mostly ineffective components for measuring
since theoretically bound (
43) does not need these components. Keeping the ineffective components in the bounds only contributes to making the bounds overestimate the true
. Separating the matrices as done in (
31) and (45) may cause even larger overestimates leading to more pessimistic bounds.
Our bound (
43) reveals that the true
mainly depends on the conditioning of the compressed matrices
and
, which can be much smaller than the conditioning of the uncompressed
or
. The
low-rank perturbation or
low-rank update commonly encountered in diverse applications implies that
, for which the two
compressed matrices can naturally have a much smaller condition number than the two
uncompressed matrices.
Voet et al. (p. 124, [
19]) and Zhang et al. (p. 1591, [
18]) both mentioned that although stability concerns about the AHD formulas have been raised by Yip [
30], their algorithms applying the formulas encounter no numerical instabilities. The fact that the family of AHD formulas has continued to shine in diverse fields implies that numerical stability, especially in the low rank
case, is far better than bounds in Yip [
30] suggest. Our sharper bound (
43) can provide theoretical support to the observations made in [
18,
19] and in other cases where the formulas naturally perform stably.
Since the compressed bound (
43) can closely bound the true value of
, which is an effective indicator of the stability when applying Formula (
30) to compute
, we consider (
43) as an
effective conditioning bound of the associated AHD formula.
Certainly numerical methods, especially those employing matrix inverses, do have numerical stability concerns. The alarm sound in [
30] is based on a valid concern. However, the bound (45) from [
30] can severely overestimate the ill-conditioning, making the AHD formulas appear prone to be unstable. The fact that the AHD formulas have been employed in diverse fields for satisfactory numerical performance implies that they are in general not as ill-conditioned as the bound (45) suggests. Keeping only the effective components in the bound as in (
43) provides a more realistic view of the true conditioning.
We can improve bound (
43) even further by the QR technique utilized in
Section 3.1, which is to perform QR factorization to
U or
V to make at least one of them to have orthonormal columns, so that
or
, and then combine the R-factor with the other term so that
stay unchanged. We state the bounds in Theorem 1.
Theorem 1. If A and B are nonsingular matrices, and U and V are matrices such that , with U and V of full column rank. Let the QR factorizations of U and V be, respectively, and . Let and . Then, Proof. Since
, we associate
R with
V and
with
U and then apply Lemma 2. We have the following two cases:
For , the corresponding in Lemma 2 is . Similarly for , the corresponding in Lemma 2 is .
Therefore, by Lemma 2, we have
and
. Combining them establishes (
46).
The other two bounds (47) and (48) hold because the same reasoning in our proof of Lemma 1 shows they are the upper bounds in nondecreasing order of the compressed upper bound in (
46). □
In Theorem 1, the
and
correspond to computing
via (
49) and (50), respectively,
Lemma 2 shows that an ill-conditioned
U and
V may worsen the conditioning of the capacitance matrix
, owing to the presence of
and
in the compressed bound. In contrast, Theorem 1 shows that one can mitigate the ill effect of a large
or
by applying the QR trick to
U or
V so that the conditioning of the reordered capacitance matrix
or
is not negatively affected because the compressed bound (
46) guarantees no influence from
or
.
If
or
is moderate, one does not need to apply the QR trick, and the compressed bound in Lemma 2 already can explain the good stability observed in many applications, including those in [
18,
19]. However, the QR trick will be particularly beneficial when both
and
happen to be large. In this case, if
, one can apply the QR trick to the ill-conditioned
U and compute
via (
49); if
, one can apply the QR trick to the ill-conditioned
V and compute
via (50). Then, bound (
46) shows that
has a good chance to stay well-bounded.
Numerical stability concerns both the way obtaining
and later applying this
. If the QR trick needs to be invoked and the
is obtained via (
49) or (50), one may wonder if the extra
R in (
49) outside the inverse of
, or the extra
in (50) outside the inverse of
, may cause extra instability. This concern is based on
and
, which can be large when
U and
V are ill-conditioned. However, both obtaining
and later applying this
do not need the extra
R or
to be further inverted; thus, they do not post extra instability. (Recall that multiplying by a matrix with tiny singular values does not pose instability; it is multiplying by
the inverse of such a matrix that poses instability.) Therefore, if the compressed bound (
46) is moderate, then the stability associated with
is comparable to the stability provided by
.
Bound (
46) is our compressed bound obtained after applying the QR trick. Bound (48) is essentially Yip’s bound from the two Theorems in [
30] based on Lemma 1. Since both (
46) and (48) are not influenced by
or
, the comparisons are similar to those observed in
Figure 2 and
Figure 3 based on Lemma 2, with the
y-axis values divided by
or
.