Tutorials › Linear Algebra › The Four Moore-Penrose Equations

Pseudoinverse and Low-Rank Approximation · Tutorial 809 of 1000

The Four Moore-Penrose Equations

Use the SVD to construct a pseudoinverse candidate and check each of the four Moore-Penrose equations, including the required symmetry conditions.

Advanced 10 min read

What You'll Learn

  • State the four Moore-Penrose equations for a real matrix and its pseudoinverse candidate.
  • Construct the candidate from the positive singular values and singular vectors.
  • Verify both generalized-inverse equations by matrix multiplication.
  • Check why the products in the symmetry equations must be symmetric.
  • Work through rectangular, rank-deficient, and full-column-rank examples.
  • Identify why satisfying only AGA = A is not enough.

Why Four Equations Are Needed

For a square invertible matrix, the inverse is characterized by multiplying to the identity on either side. A rectangular or rank-deficient matrix cannot generally have an inverse of that kind, but its singular value decomposition (SVD) gives a natural candidate for a pseudoinverse. The four Moore-Penrose equations specify the properties this candidate must satisfy. Two equations express inverse-like behavior; the other two require symmetry of the products in opposite orders.

Throughout this tutorial, let \(\mathbf{A}\in\mathbb{R}^{m\times n}\). We use the real SVD, so transposes—not conjugate transposes—appear. Write the positive singular values of \(\mathbf{A}\) as \(s_1,\dots,s_r\), where each \(s_i>0\). The corresponding left and right singular vectors are the columns of \(\mathbf{U}_r\in\mathbb{R}^{m\times r}\) and \(\mathbf{V}_r\in\mathbb{R}^{n\times r}\). These columns are orthonormal, so \(\mathbf{U}_r^{\top}\mathbf{U}_r=\mathbf{I}_r\) and \(\mathbf{V}_r^{\top}\mathbf{V}_r=\mathbf{I}_r\).

Definition: The four Moore-Penrose equations for \(\mathbf{A}\in\mathbb{R}^{m\times n}\) and a proposed pseudoinverse \(\mathbf{G}\in\mathbb{R}^{n\times m}\) are $$ \mathbf{A}\mathbf{G}\mathbf{A}=\mathbf{A},\qquad \mathbf{G}\mathbf{A}\mathbf{G}=\mathbf{G},\qquad (\mathbf{A}\mathbf{G})^{\top}=\mathbf{A}\mathbf{G},\qquad (\mathbf{G}\mathbf{A})^{\top}=\mathbf{G}\mathbf{A}. $$ The first two equations are inverse-like identities. The last two say that \(\mathbf{A}\mathbf{G}\) and \(\mathbf{G}\mathbf{A}\) are symmetric.

The dimensions explain why the equations are arranged as they are. The product \(\mathbf{A}\mathbf{G}\) is \(m\times m\), so it can be compared with \(\mathbf{A}\) in \(\mathbf{A}\mathbf{G}\mathbf{A}=\mathbf{A}\). The product \(\mathbf{G}\mathbf{A}\) is \(n\times n\), so it can be compared with \(\mathbf{G}\) in \(\mathbf{G}\mathbf{A}\mathbf{G}=\mathbf{G}\). Both symmetry conditions are meaningful even when \(m\ne n\), since each product is square.

The SVD Candidate

In the compact SVD, \(\mathbf{A}=\mathbf{U}_r\mathbf{D}\mathbf{V}_r^{\top}\), where \(\mathbf{D}=\operatorname{diag}(s_1,\dots,s_r)\). Since all \(s_i\) are positive, \(\mathbf{D}^{-1}=\operatorname{diag}(1/s_1,\dots,1/s_r)\) is defined. The SVD-defined candidate reverses the roles of the left and right singular vectors and reciprocates each positive singular value.

Definition: Given the compact SVD \(\mathbf{A}=\mathbf{U}_r\mathbf{D}\mathbf{V}_r^{\top}\), the SVD-defined pseudoinverse candidate is $$ \mathbf{G}=\mathbf{V}_r\mathbf{D}^{-1}\mathbf{U}_r^{\top}\in\mathbb{R}^{n\times m}. $$ If \(r=0\), then \(\mathbf{A}=\mathbf{O}\), and the candidate is \(\mathbf{G}=\mathbf{O}\in\mathbb{R}^{n\times m}\).

The formula has an intuitive structure: \(\mathbf{U}_r^{\top}\) takes coordinates along the left singular vectors, \(\mathbf{D}^{-1}\) rescales those coordinates, and \(\mathbf{V}_r\) returns the result in the domain coordinates. Here the immediate task is not to interpret solutions of linear systems, but to check exactly what the formula guarantees.

Theorem: For every real matrix \(\mathbf{A}\), the SVD-defined candidate \(\mathbf{G}=\mathbf{V}_r\mathbf{D}^{-1}\mathbf{U}_r^{\top}\) satisfies all four Moore-Penrose equations.

Proof. First suppose \(r>0\). Using \(\mathbf{U}_r^{\top}\mathbf{U}_r=\mathbf{I}_r\), \(\mathbf{V}_r^{\top}\mathbf{V}_r=\mathbf{I}_r\), and \(\mathbf{D}\mathbf{D}^{-1}=\mathbf{D}^{-1}\mathbf{D}=\mathbf{I}_r\), compute $$ \begin{aligned} \mathbf{A}\mathbf{G}\mathbf{A} &=\mathbf{U}_r\mathbf{D}\mathbf{V}_r^{\top} \mathbf{V}_r\mathbf{D}^{-1}\mathbf{U}_r^{\top} \mathbf{U}_r\mathbf{D}\mathbf{V}_r^{\top}\\ &=\mathbf{U}_r\mathbf{D}\mathbf{D}^{-1}\mathbf{D}\mathbf{V}_r^{\top} =\mathbf{U}_r\mathbf{D}\mathbf{V}_r^{\top} =\mathbf{A}. \end{aligned} $$ For the second equation, $$ \begin{aligned} \mathbf{G}\mathbf{A}\mathbf{G} &=\mathbf{V}_r\mathbf{D}^{-1}\mathbf{U}_r^{\top} \mathbf{U}_r\mathbf{D}\mathbf{V}_r^{\top} \mathbf{V}_r\mathbf{D}^{-1}\mathbf{U}_r^{\top}\\ &=\mathbf{V}_r\mathbf{D}^{-1}\mathbf{D}\mathbf{D}^{-1}\mathbf{U}_r^{\top} =\mathbf{V}_r\mathbf{D}^{-1}\mathbf{U}_r^{\top} =\mathbf{G}. \end{aligned} $$ The two products in the symmetry conditions reduce to $$ \mathbf{A}\mathbf{G} =\mathbf{U}_r\mathbf{D}\mathbf{D}^{-1}\mathbf{U}_r^{\top} =\mathbf{U}_r\mathbf{U}_r^{\top}, \qquad \mathbf{G}\mathbf{A} =\mathbf{V}_r\mathbf{D}^{-1}\mathbf{D}\mathbf{V}_r^{\top} =\mathbf{V}_r\mathbf{V}_r^{\top}. $$ Taking transposes gives \((\mathbf{U}_r\mathbf{U}_r^{\top})^{\top}=\mathbf{U}_r\mathbf{U}_r^{\top}\) and \((\mathbf{V}_r\mathbf{V}_r^{\top})^{\top}=\mathbf{V}_r\mathbf{V}_r^{\top}\), so both products are symmetric. If \(r=0\), then \(\mathbf{A}=\mathbf{O}\) and \(\mathbf{G}=\mathbf{O}\); all four equations reduce to equalities between zero matrices. Thus the result holds in every case. \(\square\)

This proof also shows the useful formulas \(\mathbf{A}\mathbf{G}=\mathbf{U}_r\mathbf{U}_r^{\top}\) and \(\mathbf{G}\mathbf{A}=\mathbf{V}_r\mathbf{V}_r^{\top}\). Their symmetry is not an extra accident of a particular example: it follows directly from the orthonormal columns in the SVD. The two products need not be the same matrix, since one acts on \(\mathbb{R}^m\) and the other on \(\mathbb{R}^n\).

Worked Checks in Different Matrix Shapes

Worked Example: A Rank-One Rectangular Matrix

Let $$ \mathbf{A}=\begin{bmatrix}3&0&0\\0&0&0\end{bmatrix}, \qquad \mathbf{G}=\begin{bmatrix}\tfrac13&0\\0&0\\0&0\end{bmatrix}. $$ The only positive singular value is \(3\), and these matrices give the SVD candidate. Verify all four equations.

First multiply in the order \(\mathbf{A}\mathbf{G}\): $$ \mathbf{A}\mathbf{G} =\begin{bmatrix}3&0&0\\0&0&0\end{bmatrix} \begin{bmatrix}\tfrac13&0\\0&0\\0&0\end{bmatrix} =\begin{bmatrix}1&0\\0&0\end{bmatrix}. $$ Therefore $$ \mathbf{A}\mathbf{G}\mathbf{A} =\begin{bmatrix}1&0\\0&0\end{bmatrix} \begin{bmatrix}3&0&0\\0&0&0\end{bmatrix} =\begin{bmatrix}3&0&0\\0&0&0\end{bmatrix} =\mathbf{A}. $$ In the reverse order, $$ \mathbf{G}\mathbf{A} =\begin{bmatrix}\tfrac13&0\\0&0\\0&0\end{bmatrix} \begin{bmatrix}3&0&0\\0&0&0\end{bmatrix} =\begin{bmatrix}1&0&0\\0&0&0\\0&0&0\end{bmatrix}, $$ so $$ \mathbf{G}\mathbf{A}\mathbf{G} =\begin{bmatrix}1&0&0\\0&0&0\\0&0&0\end{bmatrix} \begin{bmatrix}\tfrac13&0\\0&0\\0&0\end{bmatrix} =\begin{bmatrix}\tfrac13&0\\0&0\\0&0\end{bmatrix} =\mathbf{G}. $$ Both \(\mathbf{A}\mathbf{G}\) and \(\mathbf{G}\mathbf{A}\) are diagonal, hence equal to their transposes. This verifies the two symmetry equations as well.

Worked Example: A Nonzero Rank-One Matrix in Two Dimensions

Consider $$ \mathbf{A}=\begin{bmatrix}1&1\\1&1\end{bmatrix}. $$ Its positive singular value is \(2\), with left and right singular vector \(\frac{1}{\sqrt{2}}(1,1)^{\top}\). The SVD candidate is therefore $$ \mathbf{G}=\frac12 \begin{bmatrix}\tfrac{1}{\sqrt2}\\[2pt]\tfrac{1}{\sqrt2}\end{bmatrix} \begin{bmatrix}\tfrac{1}{\sqrt2}&\tfrac{1}{\sqrt2}\end{bmatrix} =\begin{bmatrix}\tfrac14&\tfrac14\\\tfrac14&\tfrac14\end{bmatrix} =\tfrac14\mathbf{A}. $$ Check the equations by first noting that $$ \mathbf{A}^2= \begin{bmatrix}1&1\\1&1\end{bmatrix} \begin{bmatrix}1&1\\1&1\end{bmatrix} =\begin{bmatrix}2&2\\2&2\end{bmatrix}=2\mathbf{A}. $$ It follows, by one more multiplication, that \(\mathbf{A}^3=2\mathbf{A}^2=4\mathbf{A}\). Since \(\mathbf{G}=\tfrac14\mathbf{A}\), $$ \mathbf{A}\mathbf{G}\mathbf{A} =\tfrac14\mathbf{A}^3 =\mathbf{A}, \qquad \mathbf{G}\mathbf{A}\mathbf{G} =\tfrac{1}{16}\mathbf{A}^3 =\tfrac14\mathbf{A} =\mathbf{G}. $$ The other two products are $$ \mathbf{A}\mathbf{G}=\tfrac14\mathbf{A}^2 =\begin{bmatrix}\tfrac12&\tfrac12\\\tfrac12&\tfrac12\end{bmatrix}, \qquad \mathbf{G}\mathbf{A}=\tfrac14\mathbf{A}^2 =\begin{bmatrix}\tfrac12&\tfrac12\\\tfrac12&\tfrac12\end{bmatrix}. $$ Each is symmetric, so both transpose equations hold. The equality of these two products here comes from \(\mathbf{A}\) and \(\mathbf{G}\) being scalar multiples of the same matrix; it is not required in the general case.

Worked Example: A Full-Column-Rank Rectangular Matrix

Let $$ \mathbf{A}=\begin{bmatrix}1&0\\0&2\\0&0\end{bmatrix}, \qquad \mathbf{G}=\begin{bmatrix}1&0&0\\0&\tfrac12&0\end{bmatrix}. $$ The singular values are \(1\) and \(2\); the displayed \(\mathbf{G}\) is the SVD candidate. The products are $$ \mathbf{A}\mathbf{G} =\begin{bmatrix}1&0&0\\0&1&0\\0&0&0\end{bmatrix}, \qquad \mathbf{G}\mathbf{A} =\begin{bmatrix}1&0\\0&1\end{bmatrix}. $$ Consequently, $$ \mathbf{A}\mathbf{G}\mathbf{A} =\begin{bmatrix}1&0&0\\0&1&0\\0&0&0\end{bmatrix} \begin{bmatrix}1&0\\0&2\\0&0\end{bmatrix} =\begin{bmatrix}1&0\\0&2\\0&0\end{bmatrix} =\mathbf{A}, $$ and $$ \mathbf{G}\mathbf{A}\mathbf{G} =\begin{bmatrix}1&0\\0&1\end{bmatrix} \begin{bmatrix}1&0&0\\0&\tfrac12&0\end{bmatrix} =\begin{bmatrix}1&0&0\\0&\tfrac12&0\end{bmatrix} =\mathbf{G}. $$ The displayed \(\mathbf{A}\mathbf{G}\) and \(\mathbf{G}\mathbf{A}\) are both diagonal, so each equals its transpose. All four equations are verified, including in this case where the two products have different sizes.

Why the Symmetry Conditions Cannot Be Dropped

The first equation alone does not specify the SVD candidate. It permits many matrices \(\mathbf{G}\), even when \(\mathbf{A}\) is fixed. For example, take $$ \mathbf{A}=\begin{bmatrix}1&0\\0&0\end{bmatrix}, \qquad \mathbf{G}=\begin{bmatrix}1&1\\0&0\end{bmatrix}. $$ Direct multiplication gives $$ \mathbf{A}\mathbf{G} =\begin{bmatrix}1&1\\0&0\end{bmatrix}, \qquad \mathbf{A}\mathbf{G}\mathbf{A} =\begin{bmatrix}1&1\\0&0\end{bmatrix} \begin{bmatrix}1&0\\0&0\end{bmatrix} =\begin{bmatrix}1&0\\0&0\end{bmatrix} =\mathbf{A}. $$ Thus the first equation holds. But $$ (\mathbf{A}\mathbf{G})^{\top} =\begin{bmatrix}1&0\\1&0\end{bmatrix} \ne \begin{bmatrix}1&1\\0&0\end{bmatrix} =\mathbf{A}\mathbf{G}. $$ So it fails the third equation and is not a solution of all four. This is the common mistake: checking \(\mathbf{A}\mathbf{G}\mathbf{A}=\mathbf{A}\) and declaring the proposed matrix the pseudoinverse. The correction is to test each equation separately; an inverse-like identity does not imply either symmetry condition.

The two symmetry equations are also distinct conditions in general. One concerns a matrix acting on the codomain, and the other concerns a matrix acting on the domain. Their dimensions may differ, and neither transpose equality should be inferred solely from the other. The SVD verification is effective precisely because it computes both products explicitly.

A Reliable Verification Checklist

For a proposed candidate \(\mathbf{G}\in\mathbb{R}^{n\times m}\), a careful check can be organized as follows:

  1. Confirm the dimensions: \(\mathbf{A}\mathbf{G}\) must be \(m\times m\), and \(\mathbf{G}\mathbf{A}\) must be \(n\times n\).
  2. Multiply \(\mathbf{A}\mathbf{G}\mathbf{A}\) and compare every entry with \(\mathbf{A}\).
  3. Multiply \(\mathbf{G}\mathbf{A}\mathbf{G}\) and compare every entry with \(\mathbf{G}\).
  4. Transpose \(\mathbf{A}\mathbf{G}\) and check that it equals \(\mathbf{A}\mathbf{G}\).
  5. Transpose \(\mathbf{G}\mathbf{A}\) and check that it equals \(\mathbf{G}\mathbf{A}\).

For an SVD-defined candidate, the theorem supplies a general verification without having to expand every entry: orthonormality reduces the inverse-like products to identities in the \(r\)-dimensional singular-vector coordinates, and the remaining products have the forms \(\mathbf{U}_r\mathbf{U}_r^{\top}\) and \(\mathbf{V}_r\mathbf{V}_r^{\top}\), which are symmetric by transposition. The examples show how the same checks appear in direct arithmetic. The four equations are the defining conditions under study here; establishing that a matrix satisfying them is unique is a separate result.

Check Your Understanding

For each question, track the dimensions as well as the matrix entries.

  1. If \(\mathbf{A}\) is \(4\times 2\), what are the dimensions of a proposed \(\mathbf{G}\), \(\mathbf{A}\mathbf{G}\), and \(\mathbf{G}\mathbf{A}\)?
  2. In the compact SVD formula, why is \(\mathbf{D}^{-1}\) defined for the retained singular values?
  3. For the SVD candidate, write the simplified expressions for \(\mathbf{A}\mathbf{G}\) and \(\mathbf{G}\mathbf{A}\), then verify their symmetry by transposing them.
  4. For \(\mathbf{A}=\begin{bmatrix}2&0\\0&0\end{bmatrix}\), compute the SVD candidate and check all four equations.
  5. Give a reason that checking only \(\mathbf{A}\mathbf{G}\mathbf{A}=\mathbf{A}\) is insufficient, and identify which equation fails in the concrete pitfall above.

Test yourself: Linear Algebra final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon