Solving Systems of Linear Equations (3)
The Pseudoinverse of a Matrix
The pseudoinverse introduced here is the Moore-Penrose inverse, defined as follows: given a matrix , if a matrix satisfies and there exist two matrices such that
then is called the pseudoinverse of the matrix . It can be proven that the pseudoinverse of a matrix is unique.
For a matrix with , one can verify from the above definition that the pseudoinverse of is
For a matrix with , one can likewise verify from the above definition that the pseudoinverse of is
The two cases above give the pseudoinverse when the matrix has full column rank or full row rank. For a general matrix , we can use the method of full-rank factorization to obtain its pseudoinverse.
Any matrix can be factored into the product of a full-row-rank matrix and a full-column-rank matrix: that is,
It can be proven that: , where , which is how the pseudoinverse of a general matrix is computed.
Solving Systems of Linear Equations in the General Case
Consider a system of linear equations . The vector minimizes over the space ; moreover, among all vectors in that minimize , the vector has the smallest norm and is unique.
When , has full row rank, and in this case is the minimum-norm solution of the system .
When , has full column rank, and in this case is the least-squares solution of the system .