Cofactor matrix of $$$\left[\begin{array}{cc}a & b\\c & d\end{array}\right]$$$
Your Input
Find the cofactor matrix of $$$\left[\begin{array}{cc}a & b\\c & d\end{array}\right]$$$.
Solution
The cofactor matrix consists of all cofactors of the given matrix, which are calculated according to the formula $$$C_{ij}=\left(-1\right)^{i+j}M_{ij}$$$, where $$$M_{ij}$$$ is the minor, i.e. the determinant of the submatrix formed by deleting row $$$i$$$ and column $$$j$$$ from the given matrix.
Calculate all cofactors:
$$$C_{11} = \left(-1\right)^{1 + 1} \left|\begin{array}{c}d\end{array}\right| = d$$$ (for steps, see determinant calculator).
$$$C_{12} = \left(-1\right)^{1 + 2} \left|\begin{array}{c}c\end{array}\right| = - c$$$ (for steps, see determinant calculator).
$$$C_{21} = \left(-1\right)^{2 + 1} \left|\begin{array}{c}b\end{array}\right| = - b$$$ (for steps, see determinant calculator).
$$$C_{22} = \left(-1\right)^{2 + 2} \left|\begin{array}{c}a\end{array}\right| = a$$$ (for steps, see determinant calculator).
Thus, the cofactor matrix is $$$\left[\begin{array}{cc}d & - c\\- b & a\end{array}\right]$$$.
Answer
The cofactor matrix is $$$\left[\begin{array}{cc}d & - c\\- b & a\end{array}\right]$$$A.