Skip to main content
Logo image

Section 10.4 Examples

Subsection 10.4.1 The 2×2 case

Let’s compute the adjoint of the general 2×2 matrix A=[abcd]. First, the minors.
described in detail following the image
Minor determinants for 2×2 matrices.
In the matrix of cofactors for a 2×2 matrix, the off-diagonal cofactors become negative, and then the adjoint is the transpose of that.
CA=[dcba]adjA=[dbca]
The inverse of A is then the reciprocal of the determinant times the adjoint, so that
A1=1adbc[dbca],
as promised in Proposition 5.5.4.

Subsection 10.4.2 Computing an inverse using the adjoint

As mentioned, using the adjoint to compute the inverse of a matrix is not very efficient for matrices larger than 2×2. In most cases, you are better off using the row reduction method. However, there are situations where you might want to use the adjoint instead, as in the example below.

Example 10.4.1. Using the adjoint to compute an inverse.

It can be tedious to row reduce a matrix with variable entries. Consider
X=[x11x10x0x1].
To row reduce X, our first step would be to obtain a leading one in the first column. We might choose to perform R11xR1, except that this operation would be invalid in the case that x=0. Or we might choose to perform R21x1R2, except that this operation would be invalid in the case that x=1. So to row reduce X we would need to consider three different cases, x=0, x=1, and x0,1, performing different row reduction sequences in each of these cases. And when we get to the point of trying to obtain a leading one in the second column, we might discover there are even more cases to consider.
So instead we will attempt to compute the inverse of X using the adjoint. First, the minors.
M11=|0xx1|=x2M12=|x1x01|=x1M13=|x100x|=x2xM21=|11x1|=1+xM22=|x101|=xM23=|x10x|=x2M31=|110x|=xM32=|x1x1x|=x2+x1M33=|x1x10|=1x
We obtain the matrix of cofactors by making certain minor determinants negative, according to the 3×3 pattern of cofactor signs, and then the adjoint is the transpose.
CX=[x21xx2x1xxx2xx2x+11x]adjX=[x21xx1xxx2x+1x2xx21x]
To compute the inverse of X, we still need its determinant. But we already have all the cofactors, so a cofactor expansion will be easy. Let’s do a cofactor expansion of detX along the third row. (Remember that the cofactors already have the appropriate signs, so we are just summing “entry times cofactor” terms.)
detX=0x+x(x2x+1)+1(1x)=1x3x2
Finally, we obtain a formula for the inverse of X that is valid for every value of x for which the determinant is nonzero,
X1=11x3x2[x21xx1xxx2x+1x2xx21x].

Subsection 10.4.3 Cramer’s rule

Example 10.4.2. Using Cramer’s rule to compute individual variable values in a system of equations.

Consider the system
{x1x2+2x3+x4=1,2x1+x3+x4=1,x23x4=0,x12x2x3=1,
with coefficient matrix and vector of constants,
A=[1121201101031210],b=[1101].
Conveniently, we have already computed detA=27 in Example 8.4.8 (and again in Example 9.3.1). Since detA0, we know that A is invertible and so the system has one unique solution. Suppose we want to know the value of x2 in the solution. We can form the matrix A2, where the second column of A is replaced by b,
A2=[1121211100031110],
and compute detA2 by a cofactor expansion along the third row (expanding the corresponding 3×3 minor determinant along the first row),
detA2=(3)|112211111|=3(1|1111|1|2111|+2|2111|)=3((11)(21)+2(21))=9.
Thus, the value of x2 in the one unique solution to the system is
x2=detA2detA=927=13.
If we also want to know the value of x4, we form the matrix A4, where the fourth column of A is replaced by b,
A4=[1121201101001211],
and compute detA4 (again by a cofactor expansion along the third row, followed by an expansion along the first row of the corresponding 3×3 minor determinant),
detA4=1[121211111]=1(1[1111]2[2111]+1[2111])=((1+1)2(21)+(21))=3.
Thus, the value of x4 in the one unique solution to the system is
x4=detA4detA=327=19.