Moore–Penrose pseudoinverse

The solution (1.6) suggests introducing a matrix that, when applied to the vector $\mathbf{y}$, gives the least-squares solution directly. When the matrix has full column rank, this matrix is

\begin{displaymath}
\left(\mathbf{A}^{\top}\mathbf{A}\right)^{-1}\mathbf{A}^{\top}.
\end{displaymath} (1.8)

This expression, however, is not the general definition of the pseudoinverse, since it requires $\mathbf{A}^{\top}\mathbf{A}$ to be invertible.

The general definition of the Moore–Penrose pseudoinverse follows naturally from the singular value decomposition (Singular Value Decomposition, SVD). Let

\begin{displaymath}
\mathbf{A}
=
\mathbf{U}\mathbf{\Sigma}\mathbf{V}^{\top}
\end{displaymath} (1.9)

be the singular value decomposition of $\mathbf{A}$, where, in the reduced form for $m\geq n$,

\begin{displaymath}
\mathbf{U}\in\mathbb{R}^{m\times n},
\qquad
\mathbf{\Sigma}\...
...bb{R}^{n\times n},
\qquad
\mathbf{V}\in\mathbb{R}^{n\times n},
\end{displaymath}

has orthonormal columns for $\mathbf{U}$ and $\mathbf{V}$, and $\mathbf{\Sigma}$ is diagonal:
\begin{displaymath}
\mathbf{\Sigma}
=
\operatorname{diag}
\left(
\sigma_1,\sigma...
...ight),
\qquad
\sigma_1\geq\sigma_2\geq\ldots\geq\sigma_n\geq0.
\end{displaymath} (1.10)

The values $\sigma_i$ are called the singular values of $\mathbf{A}$ and are related to the eigenvalues of the matrices $\mathbf{A}^{\top}\mathbf{A}$ and $\mathbf{A}\mathbf{A}^{\top}$ by the relation

\begin{displaymath}
\sigma_i^2=\lambda_i.
\end{displaymath} (1.11)

The Moore–Penrose pseudoinverse of $\mathbf{A}$ is defined as

\begin{displaymath}
\mathbf{A}^{+}
=
\mathbf{V}\mathbf{\Sigma}^{+}\mathbf{U}^{\top},
\end{displaymath} (1.12)

where $\mathbf{\Sigma}^{+}$ is obtained by replacing each nonzero singular value with its reciprocal and leaving the zero values unchanged:
\begin{displaymath}
\left(\mathbf{\Sigma}^{+}\right)_{ii}
=
\begin{cases}
\dfrac...
...t{se }\sigma_i>0,\\ [6pt]
0 & \text{se }\sigma_i=0.
\end{cases}\end{displaymath} (1.13)

This definition is general, and the Moore–Penrose pseudoinverse exists and is unique for every matrix, even when $\mathbf{A}$ is not full rank. The least-squares solution can therefore be expressed compactly as

\begin{displaymath}
\hat{\mathbf{x}}
=
\mathbf{A}^{+}\mathbf{y}.
\end{displaymath} (1.14)

When the system has multiple least-squares solutions, $\mathbf{A}^{+}\mathbf{y}$ also returns the solution with minimum norm.

In the special case where $\mathbf{A}$ has full column rank, Definition (1.12) coincides with the expression obtained from the normal equations. Indeed:

\begin{displaymath}
\begin{split}
\mathbf{A}^{\top}\mathbf{A}
&=
\mathbf{V}\math...
...
&=
\mathbf{V}\mathbf{\Sigma}^{2}\mathbf{V}^{\top},
\end{split}\end{displaymath} (1.15)

which gives
\begin{displaymath}
\begin{split}
\left(\mathbf{A}^{\top}\mathbf{A}\right)^{-1}\...
...\Sigma}^{-1}\mathbf{U}^{\top}\\
&=
\mathbf{A}^{+}.
\end{split}\end{displaymath} (1.16)

Therefore,
\begin{displaymath}
\boxed{
\mathbf{A}^{+}
=
\left(\mathbf{A}^{\top}\mathbf{A}\right)^{-1}
\mathbf{A}^{\top}
}
\end{displaymath} (1.17)

is simply the special case of the pseudoinverse for matrices $\mathbf{A}$ with full column rank.

Paolo medici
2026-10-19