Database › Mathematics › Pure mathematics › Algebra
A square matrix with non-zero determinant has the inverse adj(A)/det A, and Cramer's rule gives each unknown of Ax = b as a ratio of determinants.
Explanation
$C_{ij}$ is the cofactor, $(-1)^{i+j}$ times the minor; $A_k$ is $A$ with column $k$ replaced by $\mathbf b$. For a $2\times2$ matrix, swap the diagonal, negate the off-diagonal and divide by the determinant.
Cofactor formulas are useful in theory and for small matrices; numerically, Gaussian elimination (LU decomposition) is far cheaper. Also $(A^{\rm T})^{-1}=(A^{-1})^{\rm T}$ and $\det A^{-1}=1/\det A$.
Example 1
Invert $A=\begin{pmatrix}2&1\\5&3\end{pmatrix}$ and solve $2x+y=4$, $5x+3y=11$ by Cramer's rule.
Solution
$\det A=1$, $A^{-1}=\begin{pmatrix}3&-1\\-5&2\end{pmatrix}$. $x=\frac{4\cdot3-1\cdot11}{1}=1$, $y=\frac{2\cdot11-5\cdot4}{1}=2$.
Example 2
Show that $\det({\rm adj}\,A)=(\det A)^{n-1}$ for an invertible $n\times n$ matrix.
Solution
${\rm adj}\,A=(\det A)A^{-1}$, so $\det({\rm adj}\,A)=(\det A)^n\det A^{-1}=(\det A)^{n-1}$.