Limitations of Cramer's Rule in Solving Systems of Equations

In summary, Cramer's rule is a systematic and fast method for solving systems of equations with 3 unknowns, but it can fail when the determinant of the coefficient matrix is 0. In these cases, Gaussian elimination is a more reliable and efficient method for finding solutions. Additionally, Cramer's rule may not be applicable if the coefficient matrix is not square.
  • #1
hanhao
20
0
i usually solve 3 unknown sim equations using cramer's rule because it's systemic and fast, however today i encountered an equation that cramer's rule failed against age old tradition elimination and substitution method

-2A + B = -2
-2A - B - C = -4
2A - 3B - C = 0

usually i don't get nice interger numbers like that...
- how do i determine if a set of equations will fail to cramer's rule?
- any other helpful comments ?
 
Physics news on Phys.org
  • #2
If the determinant of the original matrix equals 0 then it will fail Cramers rule, otherwise it should always work...
 
  • #3
is there anyway to design a systematic way to calculate the 3 unknowns when cramer rule fails?
 
  • #4
hanhao said:
is there anyway to design a systematic way to calculate the 3 unknowns when cramer rule fails?

Not really.
Consider that:
x+y+z=1
2x+2y+2z=2
3x+3y+3z=3
doesn't have a unique solution

and
x+y+z=1
x+y+z=0
3x+8y+10z=52
doesn't have any solutions.

http://mathworld.wolfram.com/CramersRule.html
 
  • #5
If the determinant of the right hand side is 0, the only way Cramer's rule can fail, there is no one solution: either there are NO values of A, B, C that make the equations true or there are an infinite number of solutions.

In the particular system you give, it's not too hard to show that there are an infinite number of solutions and show how to get them.

Subtract the second equation from the first and you get 2B+ C= 2. Add the first and last equations and you get -2B- C= -2. Since those are the same, you can pick either B or C however you like and solve for the other.
In particular, C= 2- 2B. From the first equation A= 1+ B/2.
Taking B to be any number at all, A= 1+ B/2, C= 2- 2B gives solutions to the equations. For example, if you take B= 2, then A= 2, C= -2 is a solution:
-2(2)+ 2= -4+2= -2
-2(2)- 2-(-2)= -4- 2+ 2= -4
2(2)- 3(2)-(-2)= 4- 6+ 2= 0

Or, taking B= 6, then A= 4, C= -10 is a solution:
-2(4)+ 6= -8+ 6= -2
-2(4)- 6- (-10)= -8- 6+ 10= -4
2(4)- 3(6)-(-10)= 8- 18+ 10= 0

Indeed, taking B= 4000, then A= 2001, C= -7998 is a solution!
-2(2001)+ 4000= -4002+ 4000= -2
-2(2001)-(4000)-(-7998)= -2002- 4000+ 7998= -8002+ 7998= -4
2(2001)- 3(4000)-(-7998)= 4002- 12000+ 7998= 12000-12000= 0.
 
  • #6
hanhao said:
is there anyway to design a systematic way to calculate the 3 unknowns when cramer rule fails?

Gaussian elimination will always work.

Cramer's rule will also not apply if your coefficient matrix is not square.

Cramer's rule is also not something I'd describe as "fast". Even to find just one of the variables you'd have to find two determinants. Compare with the time it takes to solve the entire system by gaussian elimination. This will depend on the size of the system of course, but elimination quickly overtakes cramer for speed.
 

1. What is Cramer's rule?

Cramer's rule is a mathematical method used to solve a system of linear equations by using determinants.

2. What are the limitations of Cramer's rule?

One of the main limitations of Cramer's rule is that it can only be used for systems of linear equations with the same number of equations and variables. It also becomes computationally expensive for larger systems.

3. Can Cramer's rule be used to solve non-linear systems of equations?

No, Cramer's rule can only be used for systems of linear equations. Non-linear systems require different methods for solving.

4. Are there any other limitations of Cramer's rule?

Yes, Cramer's rule can only be used for systems of equations with unique solutions. If the system is inconsistent or has infinitely many solutions, Cramer's rule cannot be used.

5. How does the accuracy of Cramer's rule compare to other methods of solving systems of equations?

Cramer's rule is not as accurate as other methods, such as Gaussian elimination or matrix inversion, especially when dealing with systems with large coefficients or round-off errors.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
9
Views
2K
  • Precalculus Mathematics Homework Help
Replies
1
Views
2K
  • Precalculus Mathematics Homework Help
Replies
10
Views
2K
  • Precalculus Mathematics Homework Help
Replies
3
Views
4K
  • Engineering and Comp Sci Homework Help
Replies
8
Views
1K
  • Introductory Physics Homework Help
Replies
28
Views
1K
  • Precalculus Mathematics Homework Help
Replies
1
Views
2K
  • Linear and Abstract Algebra
Replies
11
Views
1K
  • Precalculus Mathematics Homework Help
Replies
6
Views
2K
  • General Math
Replies
3
Views
1K
Back
Top