You are here:

Advanced Math/Solving systems of equations.

Advertisement


Question
Both Gaussian Elimination and Cramer's Rule are used for solving linear systems. If you need to solve large systems with more than three variables, which method is more efficient and why?

Answer
Questioner:   Chad Chase
Category:  Advanced Math
Private:  no
 
Subject:  College math
Question:  Both Gaussian Elimination and Cramer's Rule are used for solving linear systems. If you need to solve large systems with more than three variables, which method is more efficient and why?
.......................................
Hi, Chad,

You have to tell me exactly what you mean by 'more efficient'.  In the 'algorithmic' sense, I believe that both methods are considered to be O(n^3) in 'complexity'.

That's a fancy way of saying that, given that the system has 'n' equations in 'n' variables, the time needed is proportional to  n^3.  [The constant of proportionality would depend on lots of things, of course.]

There are, however, some sophisticated methods for computing determinants that have complexity that is lower than O(n^3), so if one of those is used, Cramer's rule becomes more efficient.

HOWEVER, this really only matters if you are talking about methods of solving linear systems with a few thousand variables.  If all you want is to find a simple way to do a small system and, perhaps, to program it, then Gaussian elimination is fairly simple to work out.

Advanced Math

All Answers


Answers by Expert:


Ask Experts

Volunteer


Paul Klarreich

Expertise

I can answer questions in basic to advanced algebra (theory of equations, complex numbers), precalculus (functions, graphs, exponential, logarithmic, and trigonometric functions and identities), basic probability, and finite mathematics, including mathematical induction. I can also try (but not guarantee) to answer questions on Abstract Algebra -- groups, rings, etc. and Analysis -- sequences, limits, continuity. I won't understand specialized engineering or business jargon.

Experience

I taught at a two-year college for 25 years, including all subjects from algebra to third-semester calculus.

Education/Credentials
-----------

©2012 About.com, a part of The New York Times Company. All rights reserved.