Determinate of a Matrix of any (square) order

In summary, the conversation discusses the challenge of finding a determinate for matrices and the limitations of using algorithms for 2x2 and 3x3 matrices. The idea of using upper triangle and multiplying diagonal numbers is mentioned, with a reference to a Wikipedia article and a paper for further clarification. The solution of using Gaussian Elimination is suggested as a potentially easier approach.
  • #1
sciwizeh
25
0
Hello, I'm new to this site.

I am trying to write a program that will deal with matrices, my problem is in finding a determinate, it would be easy if I limit the usage to 2x2 and 3x3, for which I already know the algorithms. I think that limiting the usage in that way would limit the usefulness of the program. Is there an "easy to program" algorithm for an nXn matrix? I saw something about getting it to upper triangle and multiplying the diagonal numbers together does this work for all matrices?
 
Mathematics news on Phys.org
  • #2
I believe so: http://en.wikipedia.org/wiki/Determinant, you can find this quote:

If A is a triangular matrix, i.e. A_{i,j} = 0 \, whenever i > j or, alternatively, whenever i < j, then [tex] \det(A) = A_{1,1} A_{2,2} \cdots A_{n,n} [/tex] (the product of the diagonal entries of A).

But maybe you'll enjoy this paper http://www.axler.net/DwD.pdf :)
 
  • #3
Thanks. That wikipedia article was kind of confusing, at least for me. OK that means I just need to make the program do Gaussian Elimination, which shouldn't be too hard, I hope.
 

FAQ: Determinate of a Matrix of any (square) order

What is a matrix determinant?

The determinant of a matrix is a numerical value that represents certain properties of the matrix. It is calculated using a specific formula and can only be found for square matrices (equal number of rows and columns).

How is the determinant of a matrix calculated?

The determinant of a matrix is calculated by multiplying the elements of the first row by their corresponding minors (determinants of sub-matrices) and then adding or subtracting these products according to a specific pattern. This process is repeated for each row and the final sum is the determinant of the matrix.

What properties can the determinant of a matrix tell us?

The determinant of a matrix can tell us if the matrix is invertible or singular, if the matrix is linearly independent or dependent, and the volume of the parallelepiped formed by the column vectors of the matrix.

Can the determinant of a matrix be negative or zero?

Yes, the determinant of a matrix can be negative, zero, or positive. A negative determinant indicates that the matrix is invertible but the orientation of the vector space is reversed. A zero determinant indicates that the matrix is singular and not invertible.

How does changing the order of a matrix affect its determinant?

Changing the order of a matrix does not affect its determinant. The determinant only depends on the elements of the matrix, not on the order of the elements. However, the determinant of a matrix and its transpose (rows and columns switched) have the same value.

Similar threads

Replies
8
Views
2K
Replies
4
Views
5K
Replies
5
Views
460
Replies
1
Views
2K
Replies
4
Views
1K
Replies
1
Views
2K
Replies
7
Views
4K
Back
Top