Purpose for Matrix Factorization:
Matrix factorization in numerical linear algebra (NLA) typically serves the purpose of restating some given problem in such a way that it can be
solved more readily; for example, one major application is solving a linear system of
equations.
Proof: solve min (A*x-b)^T*(A*x-b). Assume there is no all-zero column or row in A.
Zero the derivative of the objective function w.r.t. x and then we have
2* A^T* (A*x-b) =0
A^T* A*x = A^T* b
x=(A^T*A)^{-1}*A^T*b = A^{+}* b (since A^T*A is a square matrix and invertible)
Proof: solve min x^T*x, subject to A*x=b. Assume there is no all-zero column or row in A.
Lagrangian multiplier method: L=x^T*x+\lambda^T*( A*x-b)
dL/dx= 2*x+ A^T*\lambda =0 -> x= - A^T*\lambda/2
A*x= - A*A^T*\lambda/2=b -> \lambda = -2*(A*A^T)^{-1}*b (since A*A^T is a square matrix and invertible)
x=- A^T*\lambda/2= A^T*(A*A^T)^{-1}*b = A^{-}* b