Determinant Calculator

Find the determinant of a square matrix, exactly.

Matrix A
Size
3

Write rows separated by semicolons, like 1, 2; 3, 4.

Try

Result

You entereddet⁡(201132111)\det \begin{pmatrix} 2 & 0 & 1 \\ 1 & 3 & 2 \\ 1 & 1 & 1 \end{pmatrix}

0\displaystyle 0
Show the work
  1. Cofactor expansion along the first row

    Multiply each entry of the first row by the 2 by 2 determinant left when its row and column are crossed out (its minor). The signs alternate +,−,++, -, +.

    det⁡A=a11(a22a33−a23a32)−a12(a21a33−a23a31)+a13(a21a32−a22a31)=2(3×1−2×1)−0(1×1−2×1)+1(1×1−3×1)\begin{aligned} \det A &= a_{11}\left(a_{22}a_{33} - a_{23}a_{32}\right) - a_{12}\left(a_{21}a_{33} - a_{23}a_{31}\right) + a_{13}\left(a_{21}a_{32} - a_{22}a_{31}\right) \\ &= 2\left(3 \times 1 - 2 \times 1\right) - 0\left(1 \times 1 - 2 \times 1\right) + 1\left(1 \times 1 - 3 \times 1\right) \end{aligned}
  2. Value of each 2 by 2 minor

    Work out the three small determinants, each of the form ad−bcad - bc.

    det⁡A=2(3−2)−0(1−2)+1(1−3)=2(1)−0(−1)+1(−2)\begin{aligned} \det A &= 2\left(3 - 2\right) - 0\left(1 - 2\right) + 1\left(1 - 3\right) \\ &= 2\left(1\right) - 0\left(-1\right) + 1\left(-2\right) \end{aligned}
  3. Weighted sum of the minors

    Multiply each first-row entry by its minor, keeping the alternating signs, and add.

    det⁡A=2−0+(−2)=0\begin{aligned} \det A &= 2 - 0 + \left(-2\right) \\ &= 0 \end{aligned}
  4. Result

    So det⁡A=0\det A = 0. Because the determinant is 0, AA has no inverse (it is singular).

Worked examples