how to find inverse of a nxn matrix when n is large ie n=8,10...

how to find inverse of a nxn matrix when n is large ie n=8,10...
please provide proper method and example

Who is Participating?
d-glitchConnect With a Mentor Commented:
You typically use Gaussian Elimination to invert matrices:

It works, you can do it by hand, but it is not likely to be much fun.
Even in Linear Algebra courses, they don't make you work with anything over 4x4.

There are solvers on line that will do up to 30x30.

Matlab is probably the software of choice for this sort of thing.
NovaDenizenConnect With a Mentor Commented:
The Numerical Recipes series of books are good for learning about this sort of thing.  There used to be free PDF's floating around the internet, but now they're all hosted on virus-laden .ru sites and the current publisher's horribly encumbered site.

There's a lot of drama about the unique license for the code in the book, see for details.  So don't include any Numerical Recipes code in a project that is potentially vulnerable to a lawsuit.

But if you learn the right chapter in the book, you will understand what is required to write your own good inversion routine, and how to check that your routine works.  

Just make sure whatever you use has pivoting.
BigRatConnect With a Mentor Commented:
You might also look at the Gauss-Seidel method ( and the "over relaxation" techniques for improving convergance ( Note also that practically, very large matrixes  are often full of zeros, so there are various "banding" techniques which can improve performace.

Gaussian elimination will always, when such exists, produce a result, although there are two problems associated with it. 1) the number of operatuions is n³, so when n is large this is a very lage number of operations. The Seidel method tends to n² so is somewhat faster. 2) One can get very large or very small numbers as intermediate results, which propates inaccuracies into the result. The other methods tend to avoid this.
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

I've requested that this question be deleted for the following reason:

No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Not enough information to confirm an answer.

If you feel this question should be closed differently, post an objection and a moderator will read all objections and then close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

Experts-Exchange Auto Deleter
Enough information has been provided.
Split point between all three responders.
Split point between all three responders.

d-glitch   http:#a24259952  167 points
Cited the relevant Wikipedia article and an on-line calculator that is still working seven years later.

NovaDenizen  http:#a24261886  166 points
Cited Numerical Recipes, probably the best text practical text on the subject.  His link has gone stale.

BigRat   http:#a24268295   167 points
Cited Wikipedia articles that provided more depth on the subject and valuable information on faster algorithms.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.