Post · 11 min read· pp. 733–738

What is a Diagonally Dominant Matrix?

Matrices arising in applications often have diagonal elements that are large relative to the off-diagonal elements. In the context of a linear system this corresponds to relatively weak interactions between the different unknowns. We might expect a matrix with a large diagonal to be assured of certain properties, such as nonsingularity. However, to ensure nonsingularity it is not enough for each diagonal element to be the largest in its row. For example, the matrix

[3−1−2−23−1−2−13](1)\notag \left[\begin{array}{rrr} 3 & -1 & -2\\ -2 & 3 & -1\\ -2 & -1 & 3 \end{array}\right] \qquad (1)

is singular because [1 1 1]T[1~1~1]^T is a null vector. A useful definition of a matrix with large diagonal requires a stronger property.

A matrix A∈Cn×nA\in\mathbb{C}^{n\times n} is diagonally dominant by rows if

∣aii∣≥∑j≠i∣aij∣,i=1 ⁣:n.(2)\notag |a_{ii}| \ge \displaystyle\sum_{j\ne i} |a_{ij}|, \quad i=1\colon n. \qquad (2)

It is strictly diagonally dominant by rows if strict inequality holds in (2) for all ii. AA is (strictly) diagonally dominant by columns if ATA^T is (strictly) diagonally dominant by rows.

Diagonal dominance on its own is not enough to ensure nonsingularity, as the matrix (1) shows. Strict diagonal dominance does imply nonsingularity, however.

Theorem 1.

If A∈Cn×nA\in\mathbb{C}^{n\times n} is strictly diagonally dominant by rows or columns then it is nonsingular.

Proof. Since AA is nonsingular if and only if ATA^T is nonsingular, it suffices to consider diagonal dominance by rows. For any nonzero xx let y=Axy = Ax and choose kk so that ∣xk∣=∥x∥∞|x_k| = \|x\|_{\infty}. Then the kkth equation of y=Axy = Ax can be written

akkxk=yk−∑j≠kakjxj,\notag a_{kk}x_k = y_k - \displaystyle\sum_{j\ne k} a_{kj}x_j,

which gives

∣akk∣∥x∥∞=∣akk∣∣xk∣≤∣yk∣+∑j≠k∣akj∣∣xj∣≤∣yk∣+∥x∥∞∑j≠k∣akj∣.\notag |a_{kk}|\|x\|_{\infty} = |a_{kk}||x_k| \le |y_k| + \displaystyle\sum_{j\ne k} |a_{kj}||x_j| \le |y_k| + \|x\|_\infty \displaystyle\sum_{j\ne k} |a_{kj}|.

Using (2), we have

∣yk∣≥∥x∥∞(∣akk∣−∑j≠k∣akj∣)>0.(3)\notag |y_k| \ge \|x\|_{\infty} \Bigl(|a_{kk}| - \displaystyle\sum_{j\ne k} |a_{kj}|\Bigr) > 0. \qquad (3)

Therefore y≠0y\ne0 and so AA is nonsingular.  □~\square

Diagonal dominance plus two further conditions is enough to ensure nonsingularity. We need the notion of irreducibility. A matrix A∈Rn×nA\in\mathbb{R}^{n\times n} is irreducible if there does not exist a permutation matrix PP such that

PTAP=[A11A120A22]\notag P^TAP = \begin{bmatrix} A_{11} & A_{12} \\ 0 & A_{22} \end{bmatrix}

with A11A_{11} and A22A_{22} square matrices. Irreducibility is equivalent to the directed graph of AA being strongly connected.

Theorem 2.

If A∈Cn×nA\in\mathbb{C}^{n\times n} is irreducible and diagonally dominant by rows with strict inequality in (2)(2) for some ii then it is nonsingular.

Proof. The proof is by contradiction. Suppose there exists x≠0x\ne 0 such that Ax=0Ax = 0. Define

G={ j:∣xj∣=∥x∥∞ },H={ j:∣xj∣<∥x∥∞ }.\notag G = \{\, j: |x_j| = \|x\|_{\infty} \,\}, \quad H = \{\, j: |x_j| < \|x\|_{\infty} \,\}.

The iith equation of Ax=0Ax = 0 can be written

aiixi=−∑j≠iaijxj=−∑j∈Gj≠iaijxj−∑j∈Hj≠iaijxj.(4)\notag a_{ii}x_i = - \displaystyle\sum_{j\ne i} a_{ij}x_j = - \displaystyle\sum_{j\in G \atop j\ne i } a_{ij}x_j - \displaystyle\sum_{j\in H \atop j\ne i } a_{ij}x_j. \qquad (4)

Hence for i=r∈Gi = r\in G,

∣arr∣≤∑j∈Gj≠r∣arj∣+∑j∈Hj≠r∣arj∣∣xj∣∥x∥∞.\notag |a_{rr}| \le \displaystyle\sum_{j\in G \atop j\ne r } |a_{rj}| + \displaystyle\sum_{j\in H \atop j\ne r } |a_{rj}|\frac{|x_j|}{\|x\|_\infty}.

The set HH is nonempty, because if it were empty then we would have ∣xj∣=∥x∥∞|x_j| = \|x\|_\infty for all jj and if there is strict inequality in (2)(2) for i=mi = m, then putting i=mi = m in (4) would give ∣amm∣≤∑j≠m∣amj∣∣xj∣/∣xm∣=∑j≠m∣amj∣|a_{mm}| \le \sum_{j\ne m} |a_{mj}| |x_j|/|x_m| = \sum_{j\ne m} |a_{mj}|, which is a contradiction. Hence as long as arj≠0a_{rj}\ne0 for some j∈Hj\in H, we obtain ∣arr∣<∑j≠r∣arj∣|a_{rr}| < \sum_{j\ne r } |a_{rj}|, which contradicts the diagonal dominance. Therefore we must have arj=0a_{rj}= 0 for all j∈Hj\in H and all r∈Gr\in G. This means that all the rows indexed by GG have zeros in the columns indexed by HH, which means that AA is reducible. This is a contradiction, so AA must be nonsingular.  □~\square

The obvious analogue of Theorem 2 holds for column diagonal dominance.

As an example, the n×nn\times n symmetric tridiagonal matrix (minus the second difference matrix)

\notag T_n = \left[\begin{array}{@{\mskip 5mu}c*{4}{@{\mskip 15mu} r}@{\mskip 5mu}} 2 & -1 & & & \\ -1 & 2 & -1 & & \\ & -1 & 2 & \ddots & \\ & & \ddots & \ddots & -1\\ & & & -1 & 2 \end{array}\right], \qquad (5)

is row diagonally dominant with strict inequality in the first and last diagonal dominance relations. It can also be shown to be irreducible and so it is nonsingular by Theorem 2. If we replace t11t_{11} or tnnt_{nn} by 11, then TT remains nonsingular by the same argument. What if we replace both t11t_{11} and tnnt_{nn} by 11? We can answer this question by using an observation of Strang. If we define the rectangular matrix

Ln=[1−11−1⋱⋱1−1]∈R(n+1)×n\notag L_n = \begin{bmatrix} 1 & & & \\ -1 & 1 & & \\ & -1 & \ddots & \\ & & \ddots & 1 \\ & & & -1 \end{bmatrix} \in\mathbb{R}^{(n+1)\times n}

then Tn=LnTLnT_n = L_n^T L_n and

T~n+1=[1−1−12⋱⋱⋱−1−12−1−11]=LnLnT∈R(n+1)×(n+1).\notag \widetilde{T}_{n+1} = \begin{bmatrix} 1 &-1 & & & \\ -1 & 2 & \ddots & & \\ & \ddots & \ddots & -1 & \\ & & -1 & 2 & -1\\ & & & -1 & 1 \end{bmatrix} = L_n L_n^T \in \mathbb{R}^{(n+1) \times (n+1)}.

Since in general ABAB and BABA have the same nonzero eigenvalues, we conclude that Λ(T~n+1)=Λ(Tn)∪{0}\Lambda(\widetilde{T}_{n+1}) = \Lambda(T_n) \cup \{0\}, where Λ(⋅)\Lambda(\cdot) denotes the spectrum. Hence TnT_n is symmetric positive definite and T~n\widetilde{T}_n is singular and symmetric positive semidefinite.

Relation to Gershgorin’s Theorem

Theorem 1 can be used to obtain information about the location of the eigenvalues of a matrix. Indeed if λ\lambda is an eigenvalue of AA then A−λIA - \lambda I is singular and hence cannot be strictly diagonally dominant, by Theorem 1. So ∣aii−λ∣>∑j≠i∣aij∣|a_{ii}-\lambda| > \sum_{j\ne i} |a_{ij}| cannot be true for all ii. Gershgorin’s theorem is simply a restatement of this fact.

Theorem 3 (Gershgorin’s theorem).

The eigenvalues of A∈Cn×nA\in\mathbb{C}^{n\times n} lie in the union of the nn discs in the complex plane

Di={z∈C:∣z−aii∣≤∑j≠i∣aij∣},i=1 ⁣:n.\notag D_i = \Big\{ z\in\mathbb{C}: |z-a_{ii}| \le \displaystyle\sum_{j\ne i} |a_{ij}|\Big\}, \quad i=1\colon n.

If AA is symmetric with positive diagonal elements and satisfies the conditions of Theorem 1 or Theorem 2 then it is positive definite. Indeed the eigenvalues are real and so in Gershgorin’s theorem the discs are intervals and aii−z≤∣z−aii∣≤∑j≠in∣aij∣a_{ii} - z \le |z-a_{ii}| \le \sum_{j\ne i}^n |a_{ij}|, so z≥∣aii∣−∑j≠in∣aij∣≥0z \ge |a_{ii}| - \sum_{j\ne i}^n |a_{ij}| \ge 0, so the eigenvalues are nonnegative, and hence positive since nonzero. This provides another proof that the matrix TnT_n in (5) is positive definite.

Generalized Diagonal Dominance

In some situations AA is not diagonally dominant but a row or column scaling of it is. For example, the matrix

A=[1102/321/42/31/21]\notag A = \begin{bmatrix} 1 & 1 & 0 \\ 2/3 & 2 & 1/4 \\ 2/3 & 1/2 & 1 \end{bmatrix}

is not diagonally dominant by rows or columns but

A diag(3,2,4)=[320241214]\notag A \, \mathrm{diag}(3,2,4) = \begin{bmatrix} 3 & 2 & 0 \\ 2 & 4 & 1 \\ 2 & 1 & 4 \end{bmatrix}

is strictly diagonally dominant by rows.

A matrix A∈Cn×nA\in\mathbb{C}^{n\times n} is generalized diagonally dominant by rows if ADAD is diagonally dominant by rows for some diagonal matrix D=diag(di)D = \mathrm{diag}(d_i) with di>0d_i > 0 for all ii, that is, if

∣aii∣di≥∑j≠i∣aij∣dj,i=1 ⁣:n.(6)\notag |a_{ii}|d_i \ge \displaystyle\sum_{j\ne i} |a_{ij}|d_j, \quad i=1\colon n. \qquad (6)

It is easy to see that if AA is irreducible and there is strictly inequality in (6) for some ii then AA is nonsingular by Theorem 2.

It can be shown that AA is generalized diagonally dominant by rows if and only if it is an HH-matrix, where an HH-matrix is a matrix for which the comparison matrix M(A)M(A), defined by

M(A)=(mij),mij={∣aii∣,i=j,−∣aij∣,i≠j,\notag M(A) = (m_{ij}), \quad m_{ij} = \begin{cases} |a_{ii}|, & i=j, \\ -|a_{ij}|, & i\ne j, \end{cases}

is an MM-matrix (see What Is an M-Matrix?).

Block Diagonal Dominance

A matrix A∈Cn×nA\in\mathbb{C}^{n\times n} is block diagonally dominant by rows if, for a given norm and block m×mm\times m partitioning A=(Aij)A = (A_{ij}), the diagonal blocks AjjA_{jj} are all nonsingular and

∑j≠i∥Aij∥≤∥Aii−1∥−1,i=1 ⁣:m.\labelbdd\notag \displaystyle\sum_{j\ne i} \|A_{ij}\| \le \|A_{ii}^{-1}\|^{-1}, \quad i = 1\colon m. \label{bdd}

AA is block diagonally dominant by columns if ATA^T is block diagonally dominant by rows. If the blocks are all 1×11\times 1 then block diagonal dominance reduces to the usual notion of diagonal dominance. Block diagonal dominance holds for certain block tridiagonal matrices arising in the discretization of PDEs.

Analogues of Theorems 1 and 2 giving conditions under which block diagonal dominance implies nonsingularity are given by Feingold and Varga (1962).

Bounding the Inverse

If a matrix is strictly diagonally dominant then we can bound its inverse in terms of the minimum amount of diagonal dominance. For full generality, we state the bound in terms of generalized diagonal dominance.

Theorem 4.

If A∈Cn×nA\in\mathbb{C}^{n\times n} and ADAD is strictly diagonally dominant by rows for a diagonal matrix D=diag(di)D = \mathrm{diag}(d_i) with di>0d_i > 0 for all ii, then

∥A−1∥∞≤∥D∥∞α,\notag \|A^{-1}\|_\infty \le \displaystyle\frac{\|D\|_{\infty}}{\alpha},

where α=min⁡i(∣aii∣di−∑j≠i∣aij∣dj)\alpha = \min_i (|a_{ii}|d_i - \sum_{j\ne i} |a_{ij}|d_j).

Proof. Assume first that D=ID = I. Let yy satisfy ∥A−1∥∞=∥A−1y∥∞/∥y∥∞\|A^{-1}\|_{\infty} = \|A^{-1}y\|_{\infty} / \|y\|_{\infty} and let x=A−1yx = A^{-1}y. Applying (3) gives ∥A−1∥∞=∥x∥∞/∥y∥∞≤α−1\|A^{-1}\|_{\infty} = \|x\|_{\infty} / \|y\|_{\infty} \le \alpha^{-1}. The result is obtained on applying this bound to ADAD and using ∥A−1∥∞≤∥D∥∞∥(AD)−1∥∞\|A^{-1}\|_{\infty} \le \|D\|_{\infty} \|(AD)^{-1}\|_{\infty}.  □~\square.

Another bound for A−1A^{-1} when AA is strictly diagonally dominant by rows can be obtained by writing A=D(I−E)A = D(I - E), where D=diag(aii)D = \mathrm{diag}(a_{ii}), eii=0e_{ii} = 0, and eij=−aij/aiie_{ij} = -a_{ij}/a_{ii} for i≠ji\ne j. It is easy to see that ∥E∥∞<1\|E\|_\infty < 1, which gives another proof that AA is nonsingular. Then

∣A−1∣=∣(I−E)−1D−1∣=∣I+E+E2+⋯∣∣D−1∣≤(I+∣E∣+∣E∣2+⋯ )∣D∣−1=(I−∣E∣)−1∣D∣−1=M(A)−1.\notag \begin{aligned} |A^{-1}| &= |(I-E)^{-1}D^{-1}| = |I + E + E^2 + \cdots | |D^{-1}|\\ &\le (I + |E| + |E|^2 + \cdots ) |D|^{-1}\\ &= (I - |E|)^{-1} |D|^{-1}\\ &= M(A)^{-1}. \end{aligned}

This bound implies that M(A)−1≥0M(A)^{-1} \ge 0, so in view of its sign pattern M(A)M(A) is an MM-matrix, which essentially proves one direction of the HH-matrix equivalence in the previous section. The same bound holds if AA is diagonally dominant by columns, by writing A=(I−E)DA = (I-E)D.

An upper bound also holds for block diagonal dominance.

Theorem 5.

If A∈Cn×nA\in\mathbb{C}^{n\times n} is block diagonally dominant by rows then

∥A−1∥∞≤1α.\notag \|A^{-1}\|_\infty \le \displaystyle\frac{1}{\alpha}.

where α=min⁡i(∥Aii−1∥−1−∑j≠i∥Aij∥)\alpha = \min_i ( \|A_{ii}^{-1}\|^{-1} - \sum_{j\ne i} \|A_{ij}\| ).

It is interesting to note that the inverse of a strictly row diagonally dominant matrix enjoys a form of diagonal dominance, namely that the largest element in each column is on the diagonal.

Theorem 6.

If A∈Cn×nA\in\mathbb{C}^{n\times n} is strictly diagonally dominant by rows then B=A−1B = A^{-1} satisfies ∣bij∣<∣bjj∣|b_{ij}| < |b_{jj}| for all i≠ji\ne j.

Proof. For i≠ji\ne j we have ∑k=1naikbkj=0\sum_{k=1}^n a_{ik}b_{kj} = 0. Let βj=max⁡k∣bkj∣\beta_j = \max_k |b_{kj}|. Taking absolute values in aiibij=−∑k≠iaikbkja_{ii}b_{ij} = -\sum_{k\ne i}a_{ik}b_{kj} gives

∣aii∣∣bij∣≤βj∑k≠i∣aik∣<βj∣aii∣,\notag |a_{ii}||b_{ij}| \le \beta_j \sum_{k\ne i} |a_{ik}| < \beta_j |a_{ii}|,

or ∣bij∣<βj|b_{ij}| < \beta_j, since aii≠0a_{ii} \ne 0. This inequality holds for all i≠ji\ne j, so we must have βj=∣bjj∣\beta_j = |b_{jj}|, which gives the result.

Historical Remarks

Theorems 1 and 2 have a long history and have been rediscovered many times. Theorem 1 was first stated by Lévy (1881) with additional assumptions. In a short but influential paper, Taussky (1949) pointed out the recurring nature of the theorems and gave simple proofs (our proof of Theorem 2 is Taussky’s). Schneider (1977) attributes the surge in interest in matrix theory in the 1950s and 1960s to Taussky’s paper and a few others by her, Brauer, Ostrowski, and Wielandt. The history of Gershgorin’s theorem (published in 1931) is intertwined with that of Theorems 1 and 2; see Varga’s 2004 book for details.

Theorems 4 and 5 are from Varah (1975) and Theorem 6 is from Ostrowski (1952).

References

This is a minimal set of references, which contain further useful references within.

This article is part of the “What Is” series, available from https://nhigham.com/category/what-is and in PDF form from the GitHub repository https://github.com/higham/what-is.