Pseudoinverse
The Moore-Penrose generalization of a matrix inverse — exists for any matrix, even non-square or singular ones, and gives the least-squares solution.
Only square, invertible matrices have a true inverse . The pseudoinverse (also called the Moore-Penrose inverse) extends the idea of "undoing" a matrix to any matrix — square or not, invertible or not.
When is actually invertible, . When it isn't, gives the best possible substitute: the matrix that turns into the closest thing to a solution, even when no exact solution exists or when many solutions do.
Suppose is — five equations, two unknowns. Generically, has no exact solution: you're asking five constraints to be satisfied by only two degrees of freedom.
doesn't pretend a solution exists. Instead, gives the that makes as close to as possible — the least-squares solution.
If is square and invertible, what should equal, and why?
Solution
. The pseudoinverse is built to generalize the inverse, so whenever the ordinary inverse exists, the pseudoinverse must agree with it — otherwise it wouldn't deserve the name.
Related concepts
Needs first