Solving System of Linear Equations: Where is the Mistake?

AI Thread Summary
The discussion revolves around solving a system of linear equations using Cramer's Rule, where the user initially miscalculated the determinant of matrix A as 20 instead of the correct value of 30. The user expressed frustration over incorrect solutions obtained through Cramer's Rule, which were later confirmed to be wrong when solved algebraically. Marlon suggested that computing the cofactors of the matrix is a simpler and more reliable method for verifying results. The user acknowledged the mistake and expressed a lack of understanding regarding cofactors. Ultimately, the conversation highlights the importance of accurate determinant calculation and alternative methods for solving linear equations.
Nylex
Messages
552
Reaction score
2
It won't work and I don't see what I'm doing wrong.

Find the solutions of the following system of linear equations:

x + 3y - z = 1
2x + y + 2z = 3
5x + z = 2

I put these into the form Ax = b, where

A = (1 3 -1)
(2 1 2 )
(5 0 1 )

x = (x)
(y)
(z)

b = (1)
(3)
(2)

I worked out det A = 20.

Cramer's rule says the solutions are given by:

x = (1/det A) | 1 3 -1 | => x = 1/10
| 3 1 2 |
| 2 0 1 |

y = (1/det A) | 1 1 -1 | => y = 9/10
| 2 3 2 |
| 5 2 1 |

z = (1/det A) | 1 3 1 | => z = 11/10
| 2 1 3 |
| 5 0 2 |

These solutions are wrong, where have I gone wrong?? Grr.

When I work out the answers algebraically, I get x = 1/5, y = 3/5 and z = 1. These are correct.
 
Physics news on Phys.org
det A is 30 not 20

marlon
 
If you are not limited to using Cramer's Rule, I always find that just computing the cofactors of the matrix is much easier... and also a good way to check if your Cramer's Rule method is correct.
 
marlon said:
det A is 30 not 20

marlon

ARGH, thank you.

Theelectricchild said:
If you are not limited to using Cramer's Rule, I always find that just computing the cofactors of the matrix is much easier... and also a good way to check if your Cramer's Rule method is correct.

I didn't understand cofactors :(.
 
I multiplied the values first without the error limit. Got 19.38. rounded it off to 2 significant figures since the given data has 2 significant figures. So = 19. For error I used the above formula. It comes out about 1.48. Now my question is. Should I write the answer as 19±1.5 (rounding 1.48 to 2 significant figures) OR should I write it as 19±1. So in short, should the error have same number of significant figures as the mean value or should it have the same number of decimal places as...
Thread 'A cylinder connected to a hanging mass'
Let's declare that for the cylinder, mass = M = 10 kg Radius = R = 4 m For the wall and the floor, Friction coeff = ##\mu## = 0.5 For the hanging mass, mass = m = 11 kg First, we divide the force according to their respective plane (x and y thing, correct me if I'm wrong) and according to which, cylinder or the hanging mass, they're working on. Force on the hanging mass $$mg - T = ma$$ Force(Cylinder) on y $$N_f + f_w - Mg = 0$$ Force(Cylinder) on x $$T + f_f - N_w = Ma$$ There's also...
Back
Top