Cofactor Matrix Calculator

Enter a square matrix to find its cofactor matrix.

Matrix A
Rows
3
Columns
3

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

Try

Result

You enteredC((123045106))C\left(\begin{pmatrix} 1 & 2 & 3 \\ 0 & 4 & 5 \\ 1 & 0 & 6 \end{pmatrix}\right)

C=(245−4−1232−2−54)\displaystyle C = \begin{pmatrix} 24 & 5 & -4 \\ -12 & 3 & 2 \\ -2 & -5 & 4 \end{pmatrix}

Adjugate (the transpose)

adj⁡A=(24−12−253−5−424)\displaystyle \operatorname{adj}A = \begin{pmatrix} 24 & -12 & -2 \\ 5 & 3 & -5 \\ -4 & 2 & 4 \end{pmatrix}

Determinant

22\displaystyle 22
Show the work
  1. Minor of an entry

    The minor of the entry in row i, column j is the determinant of what is left when that row and column are deleted.

    Using Mij=det⁡(A without row i and column j)M_{ij} = \det(A \text{ without row } i \text{ and column } j)

    M11=det⁡(4506)=24,M12=det⁡(0516)=−5M_{11} = \det\begin{pmatrix} 4 & 5 \\ 0 & 6 \end{pmatrix} = 24,\quad M_{12} = \det\begin{pmatrix} 0 & 5 \\ 1 & 6 \end{pmatrix} = -5
  2. Matrix of minors

    Do this for all 9 entries.

    M=(24−5−4123−2−254)M = \begin{pmatrix} 24 & -5 & -4 \\ 12 & 3 & -2 \\ -2 & 5 & 4 \end{pmatrix}
  3. Cofactors: the checkerboard of signs

    Each cofactor is its minor with the sign + or − from the checkerboard pattern that starts with + in the top-left corner.

    Using Cij=(−1)i+jMijC_{ij} = (-1)^{i+j} M_{ij}

    C=(245−4−1232−2−54)C = \begin{pmatrix} 24 & 5 & -4 \\ -12 & 3 & 2 \\ -2 & -5 & 4 \end{pmatrix}
  4. Check by the determinant

    Multiplying the first row of A by its cofactors and adding gives det A (the cofactor expansion).

    det⁡A=1⋅24+2⋅5+3⋅(−4)=22\begin{aligned} \det A &= 1\cdot24 + 2\cdot5 + 3\cdot\left(-4\right) \\ &= 22 \end{aligned}
  5. Result

    The cofactor matrix.

    C=(245−4−1232−2−54)C = \begin{pmatrix} 24 & 5 & -4 \\ -12 & 3 & 2 \\ -2 & -5 & 4 \end{pmatrix}

Worked examples