Chestermiller said:
When you refer to getting the matrix inverse, I think you're talking about using determinants to get the inverse. Of course, there are other ways of getting the inverse, such as solving Ax=B using ordinary elimination techniques. If the person really had to know the inverse of A, they could simultaneously apply the same sequence of elimination operations to the identity matrix I.
Chet
Even calculating the inverse of a matrix using elimination is advised against unless absolutely necessary. Roundoff may not become significant in all cases, but the number of operations required to calculate the inverse grows proportional to n
3, where n is the order of the matrix. In solving large problems involving hundreds, if not thousands of equations, no one forms the inverse; the solutions are typically obtained using some form of elimination or iteration.
Calculating the inverse of a matrix involves solving the system
AA-1 =
I, where
I is the n × n identity matrix,
A is the n × n matrix to be inverted, and
A-1 is the unknown n × n inverse of
A.
Most of the books on numerical analysis I've read, including Forsythe, Malcolm, and Moler,
Computer Methods for Mathematical Computations, advise against computing the inverse unless it is unavoidable.
http://www.netlib.org/lapack/lawnspdf/lawn27.pdf {See p. 2}
In the N-R method, the Jacobian matrix is updated as the solution vector is updated during the iterations. Since the inverse of the Jacobian is required only as a means of calculating a new solution vector, why not just solve the equations to obtain the new solution vector, instead of slavishly following the matrix equation?
It's why we use the quadratic formula to solve a quadratic equation, instead of laboriously completing the square for every equation. In the end, we get the same result, but one method involves fewer steps in the calculation.