| Thread Closed |
Unable to calculate the Determinant of a large matrix |
Share Thread |
| May17-09, 02:02 PM | #35 |
|
|
Unable to calculate the Determinant of a large matrixThe determinant of the first matrix is minus one, but I think you see what is going on here. In the first matrix the positions of the ones in the rows from 1 to 3 was: 2, 1, 3 In case of the second matrix the positions of the ones starting from the fist to the last are: 2, 1, 3, 2 In the first case the numbers 2, 1, 3 is a permutation of the numbers 1, 2, 3 (i.e. the 2,1,3, is just the list 1,2,3 written down in a different order) while in the second case we don't get a permutation of the numbers 1, 2, 3, 4. The number 4 is missing and the number 2 is appearing twice. Do you see that the list of positions of the ones always has to be a permutation of the row numbers for the determinant to be nonzero? |
| May17-09, 04:15 PM | #36 |
|
|
Thank you for pointing that out! :) I investigated matrixes before by having a goal to make an identity matrix. This way, I had an implicit idea that the ones always has to be a permutation of the row numbers for the determinant to be nonzero. This caused me often to forget to change the sign of the determinant when flipping rows, or to multiply it with x if I multiplied a column/row by x. |
| May18-09, 12:27 AM | #37 |
|
|
Here goes: There are 120 possible permutations of the five rows and they can be listed in seven different classes according to how many elements they move. I'm going to use the group theory notation where (123) means 1 goes to 2, 2 goes to 3, 3 goes back to 1, and 4 and 5 are unmoved: Class 1: Similar to (12345) where everything moves: 24 permutations Class 2: Similar to (1234) (5) where only four rows move: 30 permutations Class 3: Similar to (123) where only 3 rows move: 20 permutations Class 4. Similar to (123)(45) where all 5 rows move (with incomplete mixing!) 20 permutations Class 5: Similar to (12)(34) where 4 rows move: 15 permutations Class 6: similar to (12) where only 2 rows move: 10 permutations Class 7: the identity e, where nothing moves: 1 permuation A quick check shows I've accounted for all 120 possible permutations of 5 rows. Interesting that each class has a definite parity...members of Class 2, for instance, can all be generated by a composition of 3 simple swaps, hence Clas 2 has odd parity. Since we need to clear all the zeroes out of the diagonal, we need only be interested in those classes for which every row gets moved. So only Class 1 and Class 4 need be counted. The 24 permutations in Class 1 are even, so they give a net of +24; the 20 permutations in Class 4 are odd so they net -20. Total = 4, which is the determinant of the 5x5 matrix. |
| May18-09, 08:04 AM | #38 |
|
|
If you first replace row i by row i minus row 1 for all i > 1, you get the matrix:
[tex]\begin{pmatrix} 0&1&1&1&1\\ 1&-1&0&0&0\\ 1&0&-1&0&0\\ 1&0&0&-1&0\\ 1&0&0&0&-1 \end{pmatrix}[/tex] And if you now evaluate the determinant by summing over permutations, it is even simpler. |
| May18-09, 08:06 AM | #39 |
Recognitions:
|
|
| May18-09, 12:42 PM | #40 |
|
|
I now see what you mean. I get a lot of zeros for the top rows all matrices. It seems that the determinant is 4 if there are odd number of rows, while -4 if there are even number of rows in the column. |
| May18-09, 01:55 PM | #41 |
Recognitions:
|
|
| May18-09, 02:01 PM | #42 |
|
|
I would have you start with the 1x1 matrix, find the det for that one, continue with the 2x2 matrix. Just use the simplest way of calculating the determinant (diagonal --> right --> down = + and diagonal --> left -->down = -). |
| May18-09, 03:01 PM | #43 |
|
|
|
| May18-09, 03:48 PM | #44 |
Recognitions:
|
|
| May19-09, 01:09 AM | #45 |
|
Recognitions:
|
Here is another approach to the problem. Write the matrix as A-I, where A is the matrix for which every entry is 1. If we could find the eigenvalues of A, it would be easy to calculate the determinant. Compute A2; you should find that A2 = nA. What does that tell you about the allowed eigenvalues of A?
|
| May19-09, 02:10 AM | #46 |
|
|
Ha! I like that method, but you missed a neat trick. We can just do matrix algebra now -- we can find the characteristic polynomial for A, and thus for the original matrix.
|
| May19-09, 02:44 AM | #47 |
|
|
for rows n >= 2 det(n) = (n - 1) * (-1)^(n+1) A few examples of determinants: n det 2 -1 3 2 4 -3 5 4 6 -5 ... 777 776 The result should now be correct. |
| May19-09, 07:51 AM | #48 |
Recognitions:
|
|
| May19-09, 08:10 AM | #49 |
|
|
|
| May19-09, 08:18 AM | #50 |
Recognitions:
|
|
| May19-09, 04:45 PM | #51 |
|
Recognitions:
|
I'm not sure what Hurkyl had in mind, but you can get the multiplicities by noting that Tr A = n. (I had this in my original post, but then edited it out so as not to be giving out too much info to the OP.)
|
| Thread Closed |
| Tags |
| determinant, matrix |
Similar discussions for: Unable to calculate the Determinant of a large matrix
|
||||
| Thread | Forum | Replies | ||
| Determinant of large matrix | Calculus & Beyond Homework | 11 | ||
| Determinant of matrix | Calculus & Beyond Homework | 3 | ||
| matrix determinant | Calculus & Beyond Homework | 8 | ||
| Matrix determinant | Calculus & Beyond Homework | 11 | ||
| Matrix determinant | Introductory Physics Homework | 9 | ||