Differents answers to the same determinant

  • Thread starter Thread starter fawk3s
  • Start date Start date
  • Tags Tags
    Determinant
fawk3s
Messages
341
Reaction score
1

Homework Statement



Lets find the determinant of

1 1 1 1 ... 1
1 2 2 2 ... 2
1 2 3 3 ... 3
1 2 3 4 ... 4
...
1 2 3 4 ... n

The Attempt at a Solution



In class, we solved it by subtracting the previous line of every single line, ending up with

1 1 1 1 ... 1
1 2 2 2 ... 2 II-I
1 2 3 3 ... 3 III-II
1 2 3 4 ... 4 IV-III =
... ...
1 2 3 4 ... n n-(n-1)

1 1 1 1 ... 1
0 1 1 1 ... 1
0 0 1 1 ... 1
0 0 0 1 ... 1
...
0 0 0 0 ... 1

And from the multiplication of the main diagonal elements we get that its equal to 1.
Makes sense.

Yet when I started looking at the problem at home, I tried a solution like this:

1 1 1 1 ... 1
1 2 2 2 ... 2 II-n
1 2 3 3 ... 3 III-n
1 2 3 4 ... 4 IV-n =
... ...
1 2 3 4 ... (n-2) (n-2)-n
1 2 3 4 ... (n-1) (n-1)-(n-2)
1 2 3 4 ... n n-(n-1)

1 1 1 1 ... 1
0 0 -1 -2 ... (-n+2)
0 0 0 -1 ... (-n+3)
0 0 0 0 ... (-n+4)
......
0 0 0 0 ... -2
0 0 0 0 ... -1
0 0 0 0 ... 1

This way we get zeros below the main diagonal, and we can calculate the determinant by multiplying the elements of the main diagonal. Since it contains zeros, we get it equal to 0.

I end up with the same result when subtracting the first line times the line number from every other line, for example

II - 2*I
III - 3*I
IV - 4*I
...
n - n*I

because this way I get a triangle of zeros above the main diagonal, which is basically the same thing as below. The main diagonal also contains zeros, giving the answer 0.

As I am new to matrixes, I am probably missing something fundamental here. Would like to know what it is. Thanks.

EDIT: Didnt know how to insert the determinants here properly, so changed the color of the first side of the equation to red, to make it a tad better to read. Sorry about that.
 
Last edited:
Physics news on Phys.org
fawk3s said:

Homework Statement



Lets find the determinant of

1 1 1 1 ... 1
1 2 2 2 ... 2
1 2 3 3 ... 3
1 2 3 4 ... 4
...
1 2 3 4 ... n

The Attempt at a Solution



In class, we solved it by subtracting the previous line of every single line, ending up with

1 1 1 1 ... 1 1 1 1 1 ... 1
1 2 2 2 ... 2 II-I 0 1 1 1 ... 1
1 2 3 3 ... 3 III-II 0 0 1 1 ... 1
1 2 3 4 ... 4 IV-III = 0 0 0 1 ... 1
... ... ...
1 2 3 4 ... n n-(n-1) 0 0 0 0 ... 1

And from the multiplication of the main diagonal elements we get that its equal to 1.
Makes sense.

Yet when I started looking at the problem at home, I tried a solution like this:

1 1 1 1 ... 1 1 1 1 1 ... 1
1 2 2 2 ... 2 II-n 0 0 -1 -2 ... (-n+2)
1 2 3 3 ... 3 III-n 0 0 0 -1 ... (-n+3)
1 2 3 4 ... 4 IV-n = 0 0 0 0 ... (-n+4)
... ... ......
1 2 3 4 ... (n-2) (n-2)-n 0 0 0 0 ... -2
1 2 3 4 ... (n-1) (n-1)-(n-2) 0 0 0 0 ... -1
1 2 3 4 ... n n-(n-1) 0 0 0 0 ... 1

This way we get zeros below the main diagonal, and we can calculate the determinant by multiplying the elements of the main diagonal. Since it contains zeros, we get it equal to 0.

I end up with the same result when subtracting the first line times the line number from every other line, for example

II - 2*I
III - 3*I
IV - 4*I
...
n - n*I

because this way I get a triangle of zeros above the main diagonal, which is basically the same thing as below. The main diagonal also contains zeros, giving the answer 0.

As I am new to matrixes, I am probably missing something fundamental here. Would like to know what it is. Thanks.

EDIT: Didnt know how to insert the determinants here properly, so changed the color of the first side of the equation to red, to make it a tad better to read. Sorry about that.

In the second way you have newRow2 = Row2-Row_n, newRow3 = Row3 - Row_n, ... But this still leaves Row_n unchanged, so you do not have a diagonal matrix.
 
Ray Vickson said:
In the second way you have newRow2 = Row2-Row_n, newRow3 = Row3 - Row_n, ... But this still leaves Row_n unchanged, so you do not have a diagonal matrix.

No. I changed the colors of what I did to the rows to blue. Look at my post again.
 
fawk3s said:
No. I changed the colors of what I did to the rows to blue. Look at my post again.

I cannot tell how you managed to get a final row [0,0,0,...,1]. For example, for n = 4 your initial matrix is
A = \pmatrix{1&1&1&1\\1&2&2&2\\1&2&3&3\\1&2&3&4}
After subtracting row 4 from rows 2 and 3 we have
A_1 = \pmatrix{1&1&1&1\\0&0&-1&-2\\0&0&0&-1\\1&2&3&4}
At this point I don't see any row operations that can "zero-out" the first three components of row 4. Please explain further.
 
A = \pmatrix{1&1&1&1\\1&2&2&2\\1&2&3&3\\1&2&3&4}

During the same step we
subtract Row4 from Row2
subtract Row2 from Row3
subtract Row3 from Row4

ending up with

A_1 = \pmatrix{1&1&1&1\\0&0&-1&-2\\0&0&1&1\\0&0&0&1}

And the answer to be 0.
 
fawk3s said:
A = \pmatrix{1&1&1&1\\1&2&2&2\\1&2&3&3\\1&2&3&4}

During the same step we
subtract Row4 from Row2
subtract Row2 from Row3
subtract Row3 from Row4

ending up with

A_1 = \pmatrix{1&1&1&1\\0&0&-1&-2\\0&0&1&1\\0&0&0&1}

And the answer to be 0.


I am assuming you meant that you applied those steps to A. When I follow the steps exactly as you have written them I get
\pmatrix{1&1&1&1\\0&0&-1&2\\1&2&4&5\\0&0&-1&-1}
with determinant equal to 1.
 
Ray Vickson said:
I am assuming you meant that you applied those steps to A. When I follow the steps exactly as you have written them I get
\pmatrix{1&1&1&1\\0&0&-1&2\\1&2&4&5\\0&0&-1&-1}
with determinant equal to 1.

So what you're saying is that I am supposed to use the "new"/changed Row2 when doing further calculations to the rows?
That wasnt followed in the following example (in class with the teacher):

\pmatrix{0&1&1&1\\1&0&1&1\\1&1&0&1\\1&1&1&0} = - \pmatrix{1&0&1&1\\0&1&1&1\\1&1&0&1\\1&1&1&0} = - \pmatrix{1&0&1&1\\0&1&1&1\\0&1&-1&0\\0&0&1&-1} (III-I ; IV - III) = - \pmatrix{1&0&1&1\\0&1&1&1\\0&0&-2&-1\\0&0&1&-1} (III-II) = - \pmatrix{1&0&1&1\\0&1&1&1\\0&0&-2&-1\\0&0&0&-1,5} (IV+1/2*III) = -3
 
Right, row operations are performed one at a time and you can only use the updated rows at each step. In the original teacher's example, this is possible if you do the operations from the bottom up.
 
Oh, so IV - III is calculated before III-I in the previous example. Makes perfect sense to me now. Thats why my version of the original problem was wrong.

Thanks guys.
 
Back
Top