Class 12 Maths, Worked in Full Past papersGet updates
Chapter 4 · Determinants

Exercise 4.4 · Q10: Inverse of a 3×33\times3 matrix by the adjoint

Exercise 4.4Adjoint and inverse of a matrix · Section 4.5
The question

Find the inverse of the matrix (if it exists):

[1−1202−33−24]\begin{bmatrix} 1 & -1 & 2 \\ 0 & 2 & -3 \\ 3 & -2 & 4 \end{bmatrix}
Exam answer

Let AA be the given matrix.

Expanding along C1C_1⁠:

∣A∣=1∣2−3−24∣−0∣−12−24∣+3∣−122−3∣=1(8−6)−0+3(3−4)=2−3=−1\begin{aligned} |A| &= 1\begin{vmatrix} 2 & -3 \\ -2 & 4 \end{vmatrix} \\ &\quad - 0\begin{vmatrix} -1 & 2 \\ -2 & 4 \end{vmatrix} \\ &\quad + 3\begin{vmatrix} -1 & 2 \\ 2 & -3 \end{vmatrix} \\ &= 1(8 - 6) - 0 + 3(3 - 4) \\ &= 2 - 3 = -1 \end{aligned}

Since ∣A∣≠0|A| \ne 0⁠, A−1A^{-1} exists.

Cofactors, Aij=(−1)i+jMijA_{ij} = (-1)^{i+j}M_{ij}⁠:

A11=∣2−3−24∣=2A12=−∣0−334∣=−9A13=∣023−2∣=−6\begin{aligned} A_{11} &= \begin{vmatrix} 2 & -3 \\ -2 & 4 \end{vmatrix} = 2 \\ A_{12} &= -\begin{vmatrix} 0 & -3 \\ 3 & 4 \end{vmatrix} = -9 \\ A_{13} &= \begin{vmatrix} 0 & 2 \\ 3 & -2 \end{vmatrix} = -6 \end{aligned} A21=−∣−12−24∣=0A22=∣1234∣=−2A23=−∣1−13−2∣=−1\begin{aligned} A_{21} &= -\begin{vmatrix} -1 & 2 \\ -2 & 4 \end{vmatrix} = 0 \\ A_{22} &= \begin{vmatrix} 1 & 2 \\ 3 & 4 \end{vmatrix} = -2 \\ A_{23} &= -\begin{vmatrix} 1 & -1 \\ 3 & -2 \end{vmatrix} = -1 \end{aligned} A31=∣−122−3∣=−1A32=−∣120−3∣=3A33=∣1−102∣=2\begin{aligned} A_{31} &= \begin{vmatrix} -1 & 2 \\ 2 & -3 \end{vmatrix} = -1 \\ A_{32} &= -\begin{vmatrix} 1 & 2 \\ 0 & -3 \end{vmatrix} = 3 \\ A_{33} &= \begin{vmatrix} 1 & -1 \\ 0 & 2 \end{vmatrix} = 2 \end{aligned} adj⁡A=[20−1−9−23−6−12]\operatorname{adj}A = \begin{bmatrix} 2 & 0 & -1 \\ -9 & -2 & 3 \\ -6 & -1 & 2 \end{bmatrix} A−1=1∣A∣adj⁡A=−[20−1−9−23−6−12]\begin{aligned} A^{-1} &= \frac{1}{|A|}\operatorname{adj}A \\ &= -\begin{bmatrix} 2 & 0 & -1 \\ -9 & -2 & 3 \\ -6 & -1 & 2 \end{bmatrix} \end{aligned}

∴ A−1=[−20192−361−2]\therefore\ A^{-1} = \begin{bmatrix} -2 & 0 & 1 \\ 9 & 2 & -3 \\ 6 & 1 & -2 \end{bmatrix}

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

A square matrix has an inverse exactly when its determinant is not zero, and then

A−1=1∣A∣ adj⁡A,A^{-1} = \frac{1}{|A|}\,\operatorname{adj}A,

where adj⁡A\operatorname{adj}A is the transpose of the matrix of cofactors. So the work is: one determinant, nine cofactors, one transpose, one division. Here ∣A∣=−1|A| = -1⁠, so dividing by ∣A∣|A| just changes every sign.

Given, to find, and the plan
Given
The 3×33\times3 matrix AA above, with entries a11=1a_{11}=1⁠, a12=−1a_{12}=-1⁠, a13=2a_{13}=2⁠, a21=0a_{21}=0⁠, a22=2a_{22}=2⁠, a23=−3a_{23}=-3⁠, a31=3a_{31}=3⁠, a32=−2a_{32}=-2⁠, a33=4a_{33}=4⁠.
To find
A−1A^{-1}⁠, if it exists.
Plan
(1) Compute ∣A∣|A|⁠; if it were 0 there would be no inverse. (2)–(4) Find the minor and cofactor of every element, row by row. (5) Form the matrix of cofactors and transpose it to get adj⁡A\operatorname{adj}A⁠. (6) Divide by ∣A∣|A|⁠. (7) Check that AA−1=IAA^{-1} = I⁠, entry by entry.

Basics you need

1Expanding a 3×33\times3 determinant

Pick any row or column. Multiply each of its elements by its cofactor and add. Every row and every column gives the same value, so choose one with zeros to save work (Section 4.2.3, Remarks). Lesson: expanding a 3 × 3 determinant

2Minor and cofactor

The minor MijM_{ij} is the 2×22\times2 determinant left after deleting row ii and column jj⁠. The cofactor is Aij=(−1)i+jMijA_{ij} = (-1)^{i+j}M_{ij} (Definitions 1 and 2, Section 4.4). Lesson: minors and cofactors

3The sign pattern

(−1)i+j(-1)^{i+j} is +1+1 when i+ji+j is even and −1-1 when it is odd, which gives the chessboard pattern below. Basics: the + − + sign pattern

[+−+−+−+−+]\begin{bmatrix} + & - & + \\ - & + & - \\ + & - & + \end{bmatrix}
4Adjoint and inverse

adj⁡A\operatorname{adj}A is the transpose of [Aij][A_{ij}] (Definition 3). If ∣A∣≠0|A|\neq0⁠, then A−1=1∣A∣adj⁡AA^{-1} = \frac{1}{|A|}\operatorname{adj}A (Theorem 4, Section 4.5). Basics: why the inverse divides by |A|

5Row times column

Entry (i,j)(i,j) of a product is row ii of the first matrix times column jj of the second: multiply matching entries and add. Basics: matrix facts the chapter uses

Solution

  1. Compute ∣A∣|A| to see whether A−1A^{-1} exists

    Look for zeros. Column 1 is 1,0,31, 0, 3 and row 2 is 0,2,−30, 2, -3⁠; each has one zero, and no row or column has two. Expand along column 1. Its signs, read down the first column of the pattern, are +,−,++, -, +⁠.

    ∣A∣=1⋅M11−0⋅M21+3⋅M31\begin{aligned} |A| &= 1\cdot M_{11} - 0\cdot M_{21} + 3\cdot M_{31} \end{aligned}

    The three minors, each with its row and column deleted:

    M11=∣2−3−24∣=2⋅4−(−3)(−2)=2M21=∣−12−24∣=(−1)4−2(−2)=0M31=∣−122−3∣=(−1)(−3)−2⋅2=−1\begin{aligned} M_{11} &= \begin{vmatrix} 2 & -3 \\ -2 & 4 \end{vmatrix}\\ &= 2\cdot4-(-3)(-2) = 2\\[1mm] M_{21} &= \begin{vmatrix} -1 & 2 \\ -2 & 4 \end{vmatrix}\\ &= (-1)4-2(-2) = 0\\[1mm] M_{31} &= \begin{vmatrix} -1 & 2 \\ 2 & -3 \end{vmatrix}\\ &= (-1)(-3)-2\cdot2 = -1 \end{aligned}

    So

    ∣A∣=1⋅2−0⋅0+3⋅(−1)=2−0−3=−1\begin{aligned} |A| &= 1\cdot2 - 0\cdot0 + 3\cdot(-1)\\ &= 2 - 0 - 3 = -1 \end{aligned}

    Since ∣A∣=−1≠0|A| = -1 \neq 0⁠, AA is non-singular, so A−1A^{-1} exists.

    The question says "if it exists", so existence must be settled first. Theorem 4 says a square matrix is invertible exactly when its determinant is non-zero. The zero in column 1 means one of the three products is 00 whatever its minor is; we computed M21M_{21} anyway because it is needed again for the cofactor A21A_{21} in Step 3.
    A 2×22\times2 determinant is the main diagonal product minus the other diagonal product, ad−bcad - bc⁠. Lesson: determinant of a square matrix
  2. Cofactors of row 1

    Delete row 1 and the column of each element. Signs for row 1: +,−,++, -, +⁠.

    M11=∣2−3−24∣=2(Step 1)A11=(−1)1+1M11=+2M12=∣0−334∣=0⋅4−(−3)⋅3=9A12=(−1)1+2M12=−9M13=∣023−2∣=0(−2)−2⋅3=−6A13=(−1)1+3M13=−6\begin{aligned} M_{11} &= \begin{vmatrix} 2 & -3 \\ -2 & 4 \end{vmatrix} = 2 \quad (\text{Step 1})\\ A_{11} &= (-1)^{1+1}M_{11} = +2\\[2mm] M_{12} &= \begin{vmatrix} 0 & -3 \\ 3 & 4 \end{vmatrix} = 0\cdot4-(-3)\cdot3 = 9\\ A_{12} &= (-1)^{1+2}M_{12} = -9\\[2mm] M_{13} &= \begin{vmatrix} 0 & 2 \\ 3 & -2 \end{vmatrix} = 0(-2)-2\cdot3 = -6\\ A_{13} &= (-1)^{1+3}M_{13} = -6 \end{aligned}
    For M12M_{12} we delete row 1 and column 2 of AA⁠. What is left is rows 2 and 3 of columns 1 and 3: the entries 0,−30, -3 on top and 3,43, 4 below. The cofactor then attaches the chessboard sign: position (1,2)(1,2) has 1+2=31+2 = 3⁠, odd, so the sign is −- and A12=−9A_{12} = -9⁠. Position (1,3)(1,3) has 1+3=41+3=4⁠, even, so A13=M13=−6A_{13} = M_{13} = -6⁠: a plus sign keeps the minor's own sign, even when the minor is negative.
    Minor first, sign second. Mixing the two up (for example writing A13=+6A_{13} = +6 because "the sign is +") is the most common slip. Basics: the sign pattern
  3. Cofactors of row 2

    Signs for row 2: −,+,−-, +, -⁠.

    M21=∣−12−24∣=0(Step 1)A21=(−1)2+1M21=0M22=∣1234∣=1⋅4−2⋅3=−2A22=(−1)2+2M22=−2M23=∣1−13−2∣=1(−2)−(−1)3=1A23=(−1)2+3M23=−1\begin{aligned} M_{21} &= \begin{vmatrix} -1 & 2 \\ -2 & 4 \end{vmatrix} = 0 \quad (\text{Step 1})\\ A_{21} &= (-1)^{2+1}M_{21} = 0\\[2mm] M_{22} &= \begin{vmatrix} 1 & 2 \\ 3 & 4 \end{vmatrix} = 1\cdot4-2\cdot3 = -2\\ A_{22} &= (-1)^{2+2}M_{22} = -2\\[2mm] M_{23} &= \begin{vmatrix} 1 & -1 \\ 3 & -2 \end{vmatrix} = 1(-2)-(-1)3 = 1\\ A_{23} &= (-1)^{2+3}M_{23} = -1 \end{aligned}
    M22M_{22} keeps the four corners of AA (delete the middle row and middle column). M23M_{23} deletes row 2 and column 3, leaving columns 1 and 2 of rows 1 and 3. A minus sign on a zero minor still gives zero, so A21=0A_{21} = 0⁠.
  4. Cofactors of row 3

    Signs for row 3: +,−,++, -, +⁠.

    M31=∣−122−3∣=−1(Step 1)A31=(−1)3+1M31=−1M32=∣120−3∣=1(−3)−2⋅0=−3A32=(−1)3+2M32=3M33=∣1−102∣=1⋅2−(−1)0=2A33=(−1)3+3M33=2\begin{aligned} M_{31} &= \begin{vmatrix} -1 & 2 \\ 2 & -3 \end{vmatrix} = -1 \quad (\text{Step 1})\\ A_{31} &= (-1)^{3+1}M_{31} = -1\\[2mm] M_{32} &= \begin{vmatrix} 1 & 2 \\ 0 & -3 \end{vmatrix} = 1(-3)-2\cdot0 = -3\\ A_{32} &= (-1)^{3+2}M_{32} = 3\\[2mm] M_{33} &= \begin{vmatrix} 1 & -1 \\ 0 & 2 \end{vmatrix} = 1\cdot2-(-1)0 = 2\\ A_{33} &= (-1)^{3+3}M_{33} = 2 \end{aligned}
    A quick test that the nine cofactors are right: multiplying any row of AA by its own cofactors must give ∣A∣|A|⁠. Row 1: 1⋅2+(−1)(−9)+2(−6)1\cdot2 + (-1)(-9) + 2(-6) is 2+9−12=−12 + 9 - 12 = -1⁠. Row 3: 3(−1)+(−2)(3)+4⋅23(-1) + (-2)(3) + 4\cdot2 is −3−6+8=−1-3 - 6 + 8 = -1⁠. Both equal ∣A∣|A|⁠, as the Remark in Section 4.4 says they must.
    Sum of (element × its own cofactor) along any row or column is ∣A∣|A|⁠. Lesson: minors and cofactors
  5. Matrix of cofactors, then transpose it to get adj⁡A\operatorname{adj}A

    Put each cofactor AijA_{ij} in position (i,j)(i,j)⁠:

    [Aij]=[2−9−60−2−1−132][A_{ij}] = \begin{bmatrix} 2 & -9 & -6 \\ 0 & -2 & -1 \\ -1 & 3 & 2 \end{bmatrix}

    The adjoint is its transpose: row 1 becomes column 1, row 2 becomes column 2, row 3 becomes column 3.

    adj⁡A=[20−1−9−23−6−12]\operatorname{adj}A = \begin{bmatrix} 2 & 0 & -1 \\ -9 & -2 & 3 \\ -6 & -1 & 2 \end{bmatrix}
    matrix of cofactors adj A 2−9−6 0−2−1 −132 2−9−6 0−2−1 −132 transpose row i becomes column i The cofactors of row 1 (blue) become column 1 of adj A, and so on.
    Transposing the matrix of cofactors: the cofactors of row ii of AA end up in column ii of adj⁡A\operatorname{adj}A⁠.
    Why the transpose? Entry (i,j)(i,j) of A(adj⁡A)A(\operatorname{adj}A) is row ii of AA times column jj of adj⁡A\operatorname{adj}A⁠. After transposing, column jj of adj⁡A\operatorname{adj}A holds the cofactors of row jj⁠. So the diagonal entries are "row times its own cofactors", which is ∣A∣|A|⁠, and the off-diagonal entries are "row times another row's cofactors", which is 00 (Note in Section 4.4). That is exactly A(adj⁡A)=∣A∣ IA(\operatorname{adj}A) = |A|\,I (Theorem 1). Without the transpose the rows and cofactors would be mismatched.
    Transpose: the (i,j)(i,j) entry moves to position (j,i)(j,i)⁠. Basics: transpose and identity · Lesson: the adjoint
  6. Divide by ∣A∣|A|

    A−1=1∣A∣adj⁡A=1−1[20−1−9−23−6−12]A^{-1} = \frac{1}{|A|}\operatorname{adj}A = \frac{1}{-1}\begin{bmatrix} 2 & 0 & -1 \\ -9 & -2 & 3 \\ -6 & -1 & 2 \end{bmatrix}

    Multiplying a matrix by 1−1=−1\frac{1}{-1} = -1 changes the sign of every entry:

    A−1=[−20192−361−2]A^{-1} = \begin{bmatrix} -2 & 0 & 1 \\ 9 & 2 & -3 \\ 6 & 1 & -2 \end{bmatrix}
    This is the formula from Theorem 4: since A(adj⁡A)=∣A∣ IA(\operatorname{adj}A) = |A|\,I and ∣A∣≠0|A|\neq0⁠, dividing by the number ∣A∣|A| gives A⋅1∣A∣adj⁡A=IA\cdot\frac{1}{|A|}\operatorname{adj}A = I⁠, and the same on the other side. Because ∣A∣=−1|A| = -1⁠, every entry of the inverse is a whole number, which is unusual and handy.
    A scalar times a matrix multiplies every entry. Basics: scaling and adding matrices · Lesson: inverse of a matrix
  7. Check: A A−1=IA\,A^{-1} = I

    Both matrices are 3×33\times3⁠, so the product is defined and is 3×33\times3⁠. Write cijc_{ij} for entry (i,j)(i,j)⁠: row ii of AA times column jj of A−1A^{-1}⁠.

    c11=1(−2)+(−1)(9)+2(6)=1c12=1(0)+(−1)(2)+2(1)=0c13=1(1)+(−1)(−3)+2(−2)=0c21=0(−2)+2(9)+(−3)(6)=0c22=0(0)+2(2)+(−3)(1)=1c23=0(1)+2(−3)+(−3)(−2)=0c31=3(−2)+(−2)(9)+4(6)=0c32=3(0)+(−2)(2)+4(1)=0c33=3(1)+(−2)(−3)+4(−2)=1\begin{aligned} c_{11} &= 1(-2)+(-1)(9)+2(6) = 1\\ c_{12} &= 1(0)+(-1)(2)+2(1) = 0\\ c_{13} &= 1(1)+(-1)(-3)+2(-2) = 0\\[1mm] c_{21} &= 0(-2)+2(9)+(-3)(6) = 0\\ c_{22} &= 0(0)+2(2)+(-3)(1) = 1\\ c_{23} &= 0(1)+2(-3)+(-3)(-2) = 0\\[1mm] c_{31} &= 3(-2)+(-2)(9)+4(6) = 0\\ c_{32} &= 3(0)+(-2)(2)+4(1) = 0\\ c_{33} &= 3(1)+(-2)(-3)+4(-2) = 1 \end{aligned} A A−1=[100010001]=IA\,A^{-1} = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix} = I
    The check catches any slip in a cofactor, a sign or the transpose: a single wrong entry in A−1A^{-1} would spoil at least one cijc_{ij}⁠. For square matrices of the same order, AB=IAB = I already forces BA=IBA = I too (taking determinants, ∣A∣∣B∣=1|A||B| = 1⁠, so AA is invertible and B=A−1B = A^{-1}⁠), so one product is enough.
Result

∣A∣=−1≠0|A| = -1 \neq 0⁠, so the inverse exists, and

A−1=[−20192−361−2]A^{-1} = \begin{bmatrix} -2 & 0 & 1 \\ 9 & 2 & -3 \\ 6 & 1 & -2 \end{bmatrix}

(Textbook answer: the same matrix.)

Check it with numbers

The other order works too. Row 1 of A−1A^{-1} times the columns of AA⁠: (−2)(1)+0(0)+1(3)=1(-2)(1)+0(0)+1(3) = 1⁠, (−2)(−1)+0(2)+1(−2)=0(-2)(-1)+0(2)+1(-2) = 0⁠, (−2)(2)+0(−3)+1(4)=0(-2)(2)+0(-3)+1(4) = 0⁠. That is row 1 of II ✓. A second test: column 2 of AA times its own cofactors A12,A22,A32A_{12}, A_{22}, A_{32} gives (−1)(−9)+2(−2)+(−2)(3)(-1)(-9)+2(-2)+(-2)(3)⁠, which is 9−4−6=−1=∣A∣9 - 4 - 6 = -1 = |A| ✓.

Common mistakes
  1. Forgetting the transpose. The matrix of cofactors is not the adjoint. Using it directly gives a matrix whose product with AA is not ∣A∣ I|A|\,I⁠.
  2. Applying the sign twice or not at all. A13=(+1)(−6)=−6A_{13} = (+1)(-6) = -6⁠, not +6+6⁠; A32=(−1)(−3)=3A_{32} = (-1)(-3) = 3⁠, not −3-3⁠.
  3. Deleting the wrong row or column. MijM_{ij} deletes row ii and column jj⁠; write the remaining 2×22\times2 block out before evaluating it.
  4. Dividing by ∣A∣|A| as if it were +1+1⁠. ∣A∣=−1|A| = -1⁠, so every sign of adj⁡A\operatorname{adj}A flips.
  5. Skipping the existence check. If ∣A∣|A| had been 00⁠, the answer would be "the inverse does not exist", and the formula would involve division by zero.
What to take away
  1. Recipe: ∣A∣|A| (stop if 0), nine minors, nine cofactors with the chessboard signs, transpose, divide by ∣A∣|A|⁠, check AA−1=IAA^{-1} = I⁠.
  2. Row times its own cofactors equals ∣A∣|A|⁠: a cheap way to catch a wrong cofactor before transposing.
  3. When ∣A∣=±1|A| = \pm1 and AA has integer entries, A−1A^{-1} has integer entries too.

Every fact used, and where it comes from

FactUsed inSource
Expansion of a 3×33\times3 determinant along any row or column gives the same value; choose zerosStep 1Section 4.2.3 and its Remarks (Lesson: expanding)
Minor MijM_{ij} and cofactor Aij=(−1)i+jMijA_{ij} = (-1)^{i+j}M_{ij}Steps 1–4Definitions 1 and 2, Section 4.4 (Lesson: minors and cofactors)
Row (or column) times its own cofactors =∣A∣= |A|⁠; times another row's cofactors =0= 0Steps 4, 5; CheckRemark and Note, Section 4.4
adj⁡A\operatorname{adj}A = transpose of [Aij][A_{ij}]Step 5Definition 3, Section 4.5.1 (Lesson: the adjoint)
A(adj⁡A)=(adj⁡A)A=∣A∣ IA(\operatorname{adj}A) = (\operatorname{adj}A)A = |A|\,ISteps 5, 6Theorem 1, Section 4.5
AA invertible   ⟺  ∣A∣≠0\iff |A|\neq0⁠, and A−1=1∣A∣adj⁡AA^{-1} = \frac{1}{|A|}\operatorname{adj}ASteps 1, 6Theorem 4, Section 4.5 (Lesson: inverse)
∣AB∣=∣A∣∣B∣|AB| = |A||B|Step 7 remarkTheorem 3, Section 4.5
Row-times-column rule for productsStep 7, CheckChapter 3, Section 3.4.5
Every minor, cofactor and product entrySteps 1–7Recomputed in the site's verification script
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →