Skip to main content

Determinant using Gauss Elimination

The Gauss Elimination method is an efficient way of calculating the determinant of a square matrix. When a square matrix is in lower triangular or upper triangular form, the determinant is just the product of all the diagonal elements.

We can use the forward elimination step of the Gauss Elimination method to reduce the square matrix into an upper triangular matrix. Then obtain the determinant by multiplying the diagonal elements.

Following is an interactive calculator for finding out the determinant of a matrix using the Gauss Elimination method:

Matrix size
Solution,

The above system can be represented in matrix notation as:

[753216123]\begin{bmatrix}7 & 5 & 3 \\ 2 & 1 & 6 \\ 1 & 2 & 3\end{bmatrix}
Step 1
Take R1R_{1} as pivot row, a11=7a_{11}=7 as pivot element, and eliminate x1x_{1} from R2,R3R_{2}, R_{3} by applying
R2R227R1,R3R317R1R_{2}\leftarrow R_{2}-\frac{2}{7}R_{1}, R_{3}\leftarrow R_{3}-\frac{1}{7}R_{1}
[75300.45.1401.32.57]\begin{bmatrix}7 & 5 & 3 \\ 0 & -0.4 & 5.14 \\ 0 & 1.3 & 2.57\end{bmatrix}
Step 2
Take R2R_{2} as pivot row, a22=0.4286a_{22}=-0.4286 as pivot element, and eliminate x2x_{2} from R3R_{3} by applying
R3R3+1.28570.4286R2R_{3}\leftarrow R_{3}+\frac{1.2857}{0.4286}R_{2}
[75300.45.140018]\begin{bmatrix}7 & 5 & 3 \\ 0 & -0.4 & 5.14 \\ 0 & 0 & 18\end{bmatrix}
Since the matrix has been reduced into an upper triangular matrix, we can find the determinant by multiplying the diagonal elements:
Δ=7×(0.4286)×18=54\Delta=7\times(-0.4286)\times18=-54