Skip to content

Mathematics · Ch 2 — Matrices

Inverse of a Square Matrix by Adjoint Method

2.2.2

Inverse of a Square Matrix by Adjoint Method

The elementary-transformation method of section 2.2.1 works but is elaborate, needing a series of transformations tracked carefully. This section develops a second, direct route: the adjoint method. It relies on the definitions of a minor, a cofactor, and the adjoint of a matrix.

Recalling minor and cofactor. The minor of an element aija_{ij} of a determinant is the determinant obtained by deleting the ii-th row and jj-th column in which aija_{ij} lies, denoted MijM_{ij}. The cofactor of aija_{ij} is Aij=(−1)i+jMijA_{ij} = (-1)^{i+j}M_{ij}.

Worked illustration. For A=[1−2345−67−89]A=\begin{bmatrix}1&-2&3\\4&5&-6\\7&-8&9\end{bmatrix}, the minor of the element 44 (which sits in row 2, column 1) is M21=∣−23−89∣=−18−(−24)=6M_{21}=\begin{vmatrix}-2&3\\-8&9\end{vmatrix}=-18-(-24)=6. The corresponding cofactor is A21=(−1)2+1M21=(−1)(6)=−6A_{21}=(-1)^{2+1}M_{21}=(-1)(6)=-6.

Definition of the adjoint. For a square matrix A=[aij]m×mA=[a_{ij}]_{m\times m}, the adjoint, written adj A\text{adj}\,A, is defined as the transpose of the matrix of cofactors [Aij]m×m[A_{ij}]_{m\times m}, where AijA_{ij} is the cofactor of aija_{ij}, for every i,j=1,2,…,mi,j=1,2,\dots,m. For a 3×33\times3 matrix, the cofactor matrix is [A11A12A13A21A22A23A31A32A33]\begin{bmatrix}A_{11}&A_{12}&A_{13}\\A_{21}&A_{22}&A_{23}\\A_{31}&A_{32}&A_{33}\end{bmatrix} and the adjoint -- its transpose -- is adj A=[A11A21A31A12A22A32A13A23A33]\text{adj}\,A=\begin{bmatrix}A_{11}&A_{21}&A_{31}\\A_{12}&A_{22}&A_{32}\\A_{13}&A_{23}&A_{33}\end{bmatrix}. The transpose step is easy to skip by mistake, but it is exactly what turns the "cofactor matrix" into the "adjoint".

Worked Examples -- cofactors and adjoint. For A=[1234]A=\begin{bmatrix}1&2\\3&4\end{bmatrix}: A11=(−1)1+1(4)=4A_{11}=(-1)^{1+1}(4)=4, A12=(−1)1+2(3)=−3A_{12}=(-1)^{1+2}(3)=-3, A21=(−1)2+1(2)=−2A_{21}=(-1)^{2+1}(2)=-2, A22=(−1)2+2(1)=1A_{22}=(-1)^{2+2}(1)=1; the required cofactors are 4,−3,−2,14,-3,-2,1. For A=[2−341]A=\begin{bmatrix}2&-3\\4&1\end{bmatrix}: A11=1A_{11}=1, A12=−4A_{12}=-4, A21=3A_{21}=3, A22=2A_{22}=2, so the cofactor matrix is [1−432]\begin{bmatrix}1&-4\\3&2\end{bmatrix} and adj A=[13−42]\text{adj}\,A=\begin{bmatrix}1&3\\-4&2\end{bmatrix}. For A=[20−1312−112]A=\begin{bmatrix}2&0&-1\\3&1&2\\-1&1&2\end{bmatrix}, computing all nine cofactors gives the cofactor matrix [0−84−13−21−72]\begin{bmatrix}0&-8&4\\-1&3&-2\\1&-7&2\end{bmatrix}, so adj A=[0−11−83−74−22]\text{adj}\,A=\begin{bmatrix}0&-1&1\\-8&3&-7\\4&-2&2\end{bmatrix}.

Why A(adj A)=∣A∣IA(\text{adj}\,A)=|A|I. A determinant can be expanded along any row using its own cofactors: e.g. a21A21+a22A22+⋯+a2nA2n=∣A∣a_{21}A_{21}+a_{22}A_{22}+\dots+a_{2n}A_{2n}=|A|. But if a row's entries are combined with a different row's cofactors, the sum is always 00: e.g. a21A31+a22A32+⋯+a2nA3n=0a_{21}A_{31}+a_{22}A_{32}+\dots+a_{2n}A_{3n}=0. Multiplying these two facts out across every row/column pair shows A⋅adj AA\cdot\text{adj}\,A is a matrix with ∣A∣|A| on every diagonal entry and 00 everywhere else -- i.e. A⋅adj A=∣A∣⋅IA\cdot\text{adj}\,A = |A|\cdot I. Dividing both sides by the scalar ∣A∣|A| (valid whenever ∣A∣≠0|A|\neq0) gives the key formula:

A−1=1∣A∣(adj A)A^{-1} = \frac{1}{|A|}(\text{adj}\,A)

So if A=[aij]m×mA=[a_{ij}]_{m\times m} is non-singular, its inverse exists and is given directly by this formula. (Think about why A−1A^{-1} cannot exist when AA is singular: with ∣A∣=0|A|=0, dividing by ∣A∣|A| is undefined, and indeed A⋅adj A=0⋅IA\cdot\text{adj}\,A=0\cdot I is the zero matrix, not II, whenever AA is singular.)

Worked Example -- adjoint method, 2×22\times2. For A=[2−243]A=\begin{bmatrix}2&-2\\4&3\end{bmatrix}: M11=3, A11=3M_{11}=3,\ A_{11}=3; M12=4, A12=−4M_{12}=4,\ A_{12}=-4; M21=−2, A21=2M_{21}=-2,\ A_{21}=2; M22=2, A22=2M_{22}=2,\ A_{22}=2. So adj A=[32−42]\text{adj}\,A=\begin{bmatrix}3&2\\-4&2\end{bmatrix}, and ∣A∣=2(3)−4(−2)=6+8=14≠0|A|=2(3)-4(-2)=6+8=14\neq0. Hence A−1=114[32−42]A^{-1}=\dfrac{1}{14}\begin{bmatrix}3&2\\-4&2\end{bmatrix}.

Worked Example -- adjoint method, 3×33\times3. For A=[2−11−12−11−12]A=\begin{bmatrix}2&-1&1\\-1&2&-1\\1&-1&2\end{bmatrix}: computing all nine cofactors gives adj A=[31−1131−113]\text{adj}\,A=\begin{bmatrix}3&1&-1\\1&3&1\\-1&1&3\end{bmatrix}, and ∣A∣=2(4−1)+1(−2+1)+1(1−2)=6−1−1=4|A|=2(4-1)+1(-2+1)+1(1-2)=6-1-1=4. Hence A−1=14[31−1131−113]A^{-1}=\dfrac{1}{4}\begin{bmatrix}3&1&-1\\1&3&1\\-1&1&3\end{bmatrix}. …

Misc 2.2.2aWorked illustration -- minor and cofactor of one element of a 3x3 determinant

Worked out. The minor of a single named element of a 3x3 numeric matrix is computed by deleting that element's row and column and evaluating the remaining 2x2 determinant, then the corresponding cofactor is obtained by attaching the correct sign (−1)i+j(-1)^{i+j}, illustrating the minor/cofactor notation before it is used to build a full adjoint. …

Table 2.2.2bDefinition layout -- the cofactor matrix and its transpose for a general 3x3 matrix

Cofactor matrix [Aij]3×3=[A11A12A13A21A22A23A31A32A33][A_{ij}]_{3\times3} = \begin{bmatrix} A_{11} & A_{12} & A_{13} \\ A_{21} & A_{22} & A_{23} \\ A_{31} & A_{32} & A_{33} \end{bmatrix}; adjoint $\text{adj},A = [A_{ij}]^T = \begin{bmatrix} A_{11} & A_{21} & A_{31} \ A_{12} & A_{22} & A_{ …

Misc 2.2.2cSolved Examples 1-3 -- co-factors, adjoint, and the identity A(adj A)=(adj A)A=|A|I

Worked out. Example 1 finds all four cofactors of a 2x2 matrix; Example 2 assembles the adjoint of a different 2x2 matrix from its cofactor matrix and its transpose; Example 3 finds all nine cofactors of a 3x3 matrix, assembles the 3x3 adjoint, then verifies numerically that A(adj A), (adj A)A and |A| times the identity all come out equal. …

Misc 2.2.2dSolved Examples 1-3 (adjoint method proper) -- inverse of a 2x2, a 3x3, and a verification example

Worked out. Example 1 finds the inverse of a 2x2 matrix directly via A−1=1∣A∣adj AA^{-1}=\frac{1}{|A|}\text{adj}\,A; Example 2 repeats the full process for a 3x3 matrix, computing all nine cofactors, the adjoint, the determinant by cofactor expansion, and the final inverse; Example 3 takes a 2x2 matrix and explicitly verifies the identity A(adj A)=(adj A)A=∣A∣IA(\text{adj}\,A)=(\text{adj}\,A)A=|A|I by computing all three products side by side. …