Evaluating numerical algorithm
The determinant of a square matrix is a single number: for a 2×2 matrix, and for bigger matrices you expand along a row using cofactors. If , the matrix has no inverse.
Find for .
Each entry of row 1 multiplies the 2×2 determinant left after crossing out its row and column. The signs go + − +.
Each 2×2 determinant is :
Make the matrix upper triangular; the determinant is then the product of the diagonal.
Because the determinant is not zero, this matrix has an inverse.