Laplace Expansion
정리
A square matrix is given.
- [1]: For the selected row
- [2]: For the selected column
- The determinant of the matrix obtained by removing the th row and th column from the square matrix is called a minor, and is called a cofactor.
설명
Laplace expansion is also known as cofactor expansion, and its usefulness is beyond words. It is much easier than calculating the determinant with just the definition. When finding the determinant of a matrix under specific conditions, its advantages increase even more, so it is absolutely essential to know this fact.
예시
Let’s look at the following Laplace expansion as an example that can be used to determine whether a matrix is invertible or not.
Therefore, it is easy to confirm that does not have an inverse.
Code
The following is the code for implementing and verifying the Laplace expansion in Julia. It is practically a direct translation of the equations, and in reality, it is implemented very inefficiently. For this, it would be good to refer to the following post: