The inverse of a matrix can be expressed in terms of its matrix of cofactors.

math.la.t.mat.inv.cofactors