Matrix:

Cofactor Matrix of Input:

Steps to Calculate the Matrix of Cofactors:

  1. Start with the matrix of minors.
  2. Apply a checkerboard pattern of signs (alternating + and - signs) to the matrix of minors.
  3. The matrix of cofactors is the matrix of minors with these signs applied.