Post · 4 min read· pp. 510–512

What Is a Generalized Inverse of a Matrix?

The matrix inverse is defined only for square nonsingular matrices. A generalized inverse is an extension of the concept of inverse that applies to square singular matrices and rectangular matrices. There are many definitions of generalized inverses, all of which reduce to the usual inverse when the matrix is square and nonsingular.

A large class of generalized inverses of an m×nm \times n matrix AA can be defined in terms of the Moore–Penrose conditions, in which XX is n×mn\times m:

(1)AXA=A,  (2)XAX=X,(3)(AX)∗=AX,  (4)(XA)∗=XA.\begin{array}{rcrc} \mathrm{(1)} & AXA = A, \; & \mathrm{(2)} & XAX=X,\\ \mathrm{(3)} & (AX)^* = AX, \; & \mathrm{(4)} & (XA)^* = XA. \end{array}

Here, the superscript ∗* denotes the conjugate transpose. A 1-inverse is any XX satisfying condition (1), a (1,3)-inverse is any XX satisfying conditions (1) and (3), and so on for any subset of the four conditions.

Condition (1) implies that if Ax=bAx = b then A(Xb)=A(XAx)=AXAx=Ax=bA(Xb) = A (XAx) = AXAx = Ax = b, so XbXb solves the equation, meaning that any 1-inverse is an equation-solving inverse. Condition (2) implies that X=0X = 0 if A=0A = 0.

A (1,3) inverse can be shown to provide a least squares solution to an inconsistent linear system. A (1,4) inverse can be shown to provide the minimum 2-norm solution of a consistent linear system (where the 2-norm is defined by ∥x∥2=(x∗x)1/2\|x\|_2 = (x^*x)^{1/2}).

There is not a unique matrix satisfying any one, two, or three of the Moore–Penrose conditions. But there is a unique matrix satisfying all four of the conditions, and it is called the Moore-Penrose pseudoinverse, denoted by A+A^+ or A†A^{\dagger}. For any system of linear equations Ax=bAx = b, x=A+bx = A^+b minimizes ∥Ax−b∥2\|Ax - b\|_2 and has the minimum 2–norm over all minimizers.

The pseudoinverse can be expressed in terms of the singular value decomposition (SVD). If A=UΣV∗A = U\Sigma V^* is an SVD, where the m×mm\times m matrix UU and n×nn\times n matrix VV are orthogonal, and Σ=diag(σ1,…,σn)\Sigma = \mathrm{diag}(\sigma_1,\dots , \sigma_n) with σ1≥σ2≥⋯≥σr>σr+1=⋯=σn=0\sigma_1 \ge \sigma_2 \ge \cdots \ge \sigma_r > \sigma_{r+1} = \cdots =\sigma_n = 0 (so that rank(A)=r\mathrm{rank}(A) = r), then

A+=Vdiag(σ1−1,…,σr−1,0,…,0)U∗.A^+ = V\mathrm{diag}(\sigma_1^{-1},\dots,\sigma_r^{-1},0,\dots,0)U^*.

In MATLAB, the function pinv computes A+A^+ using this formula. If rank(A)=n\mathrm{rank}(A) = n then the concise formula A+=(A∗A)−1A∗A^+ = (A^*A)^{-1}A^* holds.

For square matrices, the Drazin inverse is the unique matrix ADA^D such that

ADAAD=AD,AAD=ADA,Ak+1AD=Ak,A^D A A^D = A^D, \quad A A ^D = A^D A, \quad A^{k+1} A^D = A^k,

where k=index(A)k = \mathrm{index}(A). The first condition is the same as the second of the Moore–Penrose conditions, but the second and third have a different flavour. The index of a matrix of AA is the smallest nonnegative integer kk such that rank(Ak)=rank(Ak+1)\mathrm{rank}(A^k) = \mathrm{rank}(A^{k+1}); it is characterized as the dimension of the largest Jordan block of AA with eigenvalue zero.

If index(A)=1\mathrm{index}(A)=1 then ADA^D is also known as the group inverse of AA and is denoted by A#A^\#. The Drazin inverse is an equation-solving inverse precisely when index(A)≤1\mathrm{index}(A)\le 1, for then AADA=AAA^DA=A, which is the first of the Moore–Penrose conditions.

The Drazin inverse can be represented explicitly as follows. If

A=P[B00N]P−1,A = P \begin{bmatrix} B & 0 \\ 0 & N \end{bmatrix} P^{-1},

where PP and BB are nonsingular and NN has only zero eigenvalues, then

AD=P[B−1000]P−1.A^D = P \begin{bmatrix} B^{-1} & 0 \\ 0 & 0 \end{bmatrix} P^{-1}.

Here is the pseudoinverse and the Drazin inverse for a particular matrix with index 22:

A=[1−1−100−1000],A+=[12−120−121200−10],AD=[1−10000000].A = \left[\begin{array}{rrr} 1 & -1 & -1\\[3pt] 0 & 0 & -1\\[3pt] 0 & 0 & 0 \end{array}\right], \quad A^+ = \left[\begin{array}{rrr} \frac{1}{2} & -\frac{1}{2} & 0\\[3pt] -\frac{1}{2} & \frac{1}{2} & 0\\[3pt] 0 & -1 & 0 \end{array}\right], \quad A^D = \left[\begin{array}{rrr} 1 & -1 & 0\\[3pt] 0 & 0 & 0\\[3pt] 0 & 0 & 0 \end{array}\right].

Applications

The Moore–Penrose pseudoinverse is intimately connected with orthogonality, whereas the Drazin inverse has spectral properties related to those of the original matrix. The pseudoinverse occurs in all kinds of least squares problems. Applications of the Drazin inverse include population modelling, Markov chains, and singular systems of linear differential equations. It is not usually necessary to compute generalized inverses, but they are valuable theoretical tools.

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.