I have to compute the determinant of this 4x4 matrix:
\begin{bmatrix}2&1&3&0\\-1&0&1&2\\2&0&-1&-1\\-3&1&0&1\end{bmatrix}
this is what I did: I swapped first column with second column (and according to linear algebra theory, the determinant becomes negative: -det. But I swapped again in order to keep the determinant positive,therefore I swapped third column with second column. I did it, because I prefer working with "1" as the first entry of the matrix (the entry with i = j = 1).
Then, I did:
4th row = (-1) * (4th row) * (1st row) + (4th row). And I got:
\begin{bmatrix}1&3&2&0\\0&1&-1&2\\0&-1&2&-1\\0&0&3&1\end{bmatrix}
Now, I used Laplace theorem in the first column, and then Sarrus' rule. Since the first entry is always positive ( because -1 raised to an even number is always equal to 1), I used directly Sarrus' rule, as follows:
( (1 * 2 * 1) + 0 + (-6)) = -4 (this is the positive permutations)
( (0 - (-3) - 1) = 2 (this is the negative permutations)
Therefore, -4+2 = -2.
(according to Sarrus' rule, I copied the first column and the second column at the end of the minor in order to compute the determinant using its definitions (recall, it involves the positive/negative permutations) \begin{bmatrix}1&-1&2&1&-1\\-1&2&-1&-1&2\\0&3&1&0&3\end{bmatrix}
Apparently, the determinant is -2, but the exercise suggests otherwise. According the the result, the determinant of this matrix should have been equal to 15. What's wrong with this exercise?
[EDIT] - solution: I applied incorrectly row operations, because multiplying a row by a row isn't a row operation (but I can multiply a row by a multiple of the same row). So I have to subtract R1 from R4, as follows: R4 - R1.