Determinant
Det is a function that we can apply to Matrix to get a scalar. It’s
defined for n×n only.
For a 2×2 matrix it’s just
det[acbd]=ad−bc
For an n×n matrix it can be done with cofactor expansion
det(A)=j=1∑n(−1)i+jaijMij
Note it’s recursive so it’s really expensive
also dont forget that
det(A^B^)=det(A^)det(B^)
An easier way to do it is through row reduction. Make a triangular
matrix and multiply the diags together
deta110∗a220∗∗a33=a11a22a33