What is the best method to get a matrix into upper triangular form?

Click For Summary

Homework Help Overview

The discussion revolves around finding the determinant of a 4x4 matrix using Gaussian elimination to convert it into upper triangular form. Participants explore various methods and approaches to achieve this goal.

Discussion Character

  • Mixed

Approaches and Questions Raised

  • The original poster attempts to use Gaussian elimination but expresses confusion about their method and results. Some participants suggest alternative methods, such as using cofactors, while others question the correctness of the operations performed. There is a focus on the row operations and their impact on the determinant calculation.

Discussion Status

Participants are actively discussing the steps taken in the Gaussian elimination process, with some providing feedback on the row operations. There is a recognition of potential calculation errors, and multiple interpretations of the methods being used are explored. Guidance has been offered regarding the row operations, but a definitive consensus on the correctness of the methods has not been reached.

Contextual Notes

There is mention of a correction to the original matrix provided by the poster, which may affect the determinant calculation. Participants also note the complexity of using cofactors for larger matrices and the importance of showing all row operations for clarity.

Firepanda
Messages
425
Reaction score
0
[SOLVED] Determinant of Matrices

Find the det. of the matrix:

1 3 -2 2
3 0 -1 4
1 -3 4 2
2 3 -3 3

Using gaussian elimination to get it into upper triangular form (which I think is easiest) is where I am struggling. I get as far as:

1 3 -2 2
0 -9 5 -2
0 -6 6 0
0 -3 0 -1

Now I am trying to get everythingbelow the diagonal all zeros, next i was going to use row3 and add on 2 lots of row1 to get a 0 for the -6, but it also removes one of my zero values and replaces it as a 2.

I guess the method I am using is wrong to get it into upper traingular form, can anyone tell me where I am going wrong? Perhaps I should be using column operations instead.
 
Physics news on Phys.org
Actually perhaps I'm being stupid and doing this completely wrong, I think I can use cofactors instead, I don't know where I got the other method from, I guess it was for something else to do with matrices :)
 
-12 is my answer if that looks correct.
 
Firepanda said:
next i was going to use row3 and add on 2 lots of row1
That's not going to work (as you already found out), instead add multiples of the second row to the third and fourth one (e.g. add the second to the first -2/3 times)

By the way, the answer of -12 is not correct.
 
awww, was the method of cofactors bad? :P cos I only did it with 3x3 matirces in practise.
 
Last edited:
Just looked up "cofactor" on Wikipedia -- obviously I know the method but I never heard that name :smile:
That method will also work for any matrix (though the larger the matrices get, the more work it will be), so you probably just made a calculation error.
Can you post a calculation?
 
actually I just got the answer using my original method as -12 again, are you sure it's not correct?
 
my end matrix for the original method is:

1 3 -2 2
0 -9 5 -2
0 0 8/3 4/3
0 0 0 0.5

and 1*-9*(8/3)*0.5 is -12 :P
 
Firepanda said:
my end matrix for the original method is:

1 3 -2 2
0 -9 5 -2
0 0 8/3 4/3
0 0 0 0.5

and 1*-9*(8/3)*0.5 is -12 :P

Maple tells me the answer's zero. We can't really help you unless you show every row operation.
 
  • #10
Well in my original method my row operations were:

R2 - 3R1 and R3 - R1 and R4 - 2R1

to give

1 3 -2 2
0 -9 5 -2
0 -6 6 0
0 -3 0 -1

then, R3 - (2/3)R2 and R4 - (1/3)R2

to give

1 3 -2 2
0 -9 5 -2
0 0 (8/3) (4/3)
0 0 (-5/3) (-1/3)

then finally R4 + (5/8)R3

to give

1 3 -2 2
0 -9 5 -2
0 0 8/3 4/3
0 0 0 0.5
:)
 
  • #11
It all seems ok to me, considering how I got the same answer for both methods, unless the methods were wrong.
 
  • #12
Firepanda said:
Well in my original method my row operations were:

R2 - 3R1 and R3 - R1 and R4 - 2R1

to give

1 3 -2 2
0 -9 5 -2
0 -6 6 0
0 -3 0 -1
The last row is wrong; that is, check "R4-2R1."
 
  • #13
Ah dammit.

Still weird I ended up with the same answer for both :P
 
  • #14
Nono, w8 w8, the start matrix i wrote down here wasn't correct :P it should have been:

1 3 -2 2
3 0 -1 4
1 -3 4 2
2 3 -4 3

=P I hope I'm correct now, sorry lol, guess i was typing out the numbers too quick
 
  • #15
That has determinant -12 indeed, so you were correct after all :smile:
It's often in the little steps
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
9
Views
2K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
12
Views
4K
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 19 ·
Replies
19
Views
2K