How to use these solutions#
These are the worked solutions to the mixed practice in Adjoint, Inverse and Systems of Equations . Try each question yourself first, then compare. Most errors here are sign errors in cofactors, so check the sign pattern + − + − + − + − + \begin{smallmatrix} + & - & + \\ - & + & - \\ + & - & + \end{smallmatrix} + − + − + − + − + at every step, and always multiply back to test an inverse.
Question 1: Adjoint and inverse of a 2 × 2 matrix#
The problem#
Find adj A \operatorname{adj}A adj A and A − 1 A^{-1} A − 1 for A = [ 4 − 1 3 2 ] A = \begin{bmatrix} 4 & -1 \\ 3 & 2 \end{bmatrix} A = [ 4 3 − 1 2 ] .
Understanding the problem#
You need two things: the adjoint, and the inverse, which exists only if ∣ A ∣ ≠ 0 \lvert A \rvert \ne 0 ∣ A ∣ = 0 .
The idea#
For a 2 × 2 2 \times 2 2 × 2 matrix, the adjoint is found by swapping the diagonal entries and changing the signs of the other two. Then A − 1 = 1 ∣ A ∣ adj A \displaystyle A^{-1} = \frac{1}{\lvert A \rvert}\operatorname{adj}A A − 1 = ∣ A ∣ 1 adj A .
Step-by-step solution#
Step 1. Determinant.
∣ A ∣ = 4 ( 2 ) − ( − 1 ) ( 3 ) = 8 + 3 = 11 ≠ 0 \lvert A \rvert = 4(2) - (-1)(3) = 8 + 3 = 11 \ne 0 ∣ A ∣ = 4 ( 2 ) − ( − 1 ) ( 3 ) = 8 + 3 = 11 = 0
so A A A is invertible.
Step 2. Adjoint: swap 4 4 4 and 2 2 2 ; change the signs of − 1 -1 − 1 and 3 3 3 .
adj A = [ 2 1 − 3 4 ] \operatorname{adj}A = \begin{bmatrix} 2 & 1 \\ -3 & 4 \end{bmatrix} adj A = [ 2 − 3 1 4 ]
Step 3. Inverse.
A − 1 = 1 11 [ 2 1 − 3 4 ] \displaystyle A^{-1} = \frac{1}{11}\begin{bmatrix} 2 & 1 \\ -3 & 4 \end{bmatrix} A − 1 = 11 1 [ 2 − 3 1 4 ]
Checking the answer#
A ( adj A ) = [ 4 − 1 3 2 ] [ 2 1 − 3 4 ] = [ 8 + 3 4 − 4 6 − 6 3 + 8 ] = [ 11 0 0 11 ] = 11 I ✓ A\,(\operatorname{adj}A) = \begin{bmatrix} 4 & -1 \\ 3 & 2 \end{bmatrix}\begin{bmatrix} 2 & 1 \\ -3 & 4 \end{bmatrix} = \begin{bmatrix} 8 + 3 & 4 - 4 \\ 6 - 6 & 3 + 8 \end{bmatrix} = \begin{bmatrix} 11 & 0 \\ 0 & 11 \end{bmatrix} = 11I \;✓ A ( adj A ) = [ 4 3 − 1 2 ] [ 2 − 3 1 4 ] = [ 8 + 3 6 − 6 4 − 4 3 + 8 ] = [ 11 0 0 11 ] = 11 I ✓
Answer#
adj A = [ 2 1 − 3 4 ] \operatorname{adj}A = \begin{bmatrix} 2 & 1 \\ -3 & 4 \end{bmatrix} adj A = [ 2 − 3 1 4 ] , A − 1 = 1 11 [ 2 1 − 3 4 ] \displaystyle A^{-1} = \frac{1}{11}\begin{bmatrix} 2 & 1 \\ -3 & 4 \end{bmatrix} A − 1 = 11 1 [ 2 − 3 1 4 ] .
Question 2: Inverse of a 3 × 3 matrix#
The problem#
Find A − 1 A^{-1} A − 1 for A = [ 2 1 0 0 1 1 1 0 3 ] A = \begin{bmatrix} 2 & 1 & 0 \\ 0 & 1 & 1 \\ 1 & 0 & 3 \end{bmatrix} A = 2 0 1 1 1 0 0 1 3 and verify A A − 1 = I AA^{-1} = I A A − 1 = I .
Understanding the problem#
For a 3 × 3 3 \times 3 3 × 3 matrix you need all nine cofactors. The cofactor A i j = ( − 1 ) i + j M i j A_{ij} = (-1)^{i+j}M_{ij} A ij = ( − 1 ) i + j M ij , where M i j M_{ij} M ij is the minor: the determinant left after deleting row i i i and column j j j .
The idea#
Find the cofactors, use them to find ∣ A ∣ \lvert A \rvert ∣ A ∣ (expanding along row 1), transpose the cofactor matrix to get adj A \operatorname{adj}A adj A , and divide by ∣ A ∣ \lvert A \rvert ∣ A ∣ .
Step-by-step solution#
Step 1. Cofactors of row 1.
A 11 = + ∣ 1 1 0 3 ∣ = 3 , A 12 = − ∣ 0 1 1 3 ∣ = − ( 0 − 1 ) = 1 , A 13 = + ∣ 0 1 1 0 ∣ = − 1 A_{11} = +\begin{vmatrix} 1 & 1 \\ 0 & 3 \end{vmatrix} = 3, \quad A_{12} = -\begin{vmatrix} 0 & 1 \\ 1 & 3 \end{vmatrix} = -(0 - 1) = 1, \quad A_{13} = +\begin{vmatrix} 0 & 1 \\ 1 & 0 \end{vmatrix} = -1 A 11 = + 1 0 1 3 = 3 , A 12 = − 0 1 1 3 = − ( 0 − 1 ) = 1 , A 13 = + 0 1 1 0 = − 1
Step 2. Cofactors of row 2.
A 21 = − ∣ 1 0 0 3 ∣ = − 3 , A 22 = + ∣ 2 0 1 3 ∣ = 6 , A 23 = − ∣ 2 1 1 0 ∣ = − ( 0 − 1 ) = 1 A_{21} = -\begin{vmatrix} 1 & 0 \\ 0 & 3 \end{vmatrix} = -3, \quad A_{22} = +\begin{vmatrix} 2 & 0 \\ 1 & 3 \end{vmatrix} = 6, \quad A_{23} = -\begin{vmatrix} 2 & 1 \\ 1 & 0 \end{vmatrix} = -(0 - 1) = 1 A 21 = − 1 0 0 3 = − 3 , A 22 = + 2 1 0 3 = 6 , A 23 = − 2 1 1 0 = − ( 0 − 1 ) = 1
Step 3. Cofactors of row 3.
A 31 = + ∣ 1 0 1 1 ∣ = 1 , A 32 = − ∣ 2 0 0 1 ∣ = − 2 , A 33 = + ∣ 2 1 0 1 ∣ = 2 A_{31} = +\begin{vmatrix} 1 & 0 \\ 1 & 1 \end{vmatrix} = 1, \quad A_{32} = -\begin{vmatrix} 2 & 0 \\ 0 & 1 \end{vmatrix} = -2, \quad A_{33} = +\begin{vmatrix} 2 & 1 \\ 0 & 1 \end{vmatrix} = 2 A 31 = + 1 1 0 1 = 1 , A 32 = − 2 0 0 1 = − 2 , A 33 = + 2 0 1 1 = 2
Step 4. Determinant, expanding along row 1.
∣ A ∣ = 2 ( 3 ) + 1 ( 1 ) + 0 ( − 1 ) = 7 \lvert A \rvert = 2(3) + 1(1) + 0(-1) = 7 ∣ A ∣ = 2 ( 3 ) + 1 ( 1 ) + 0 ( − 1 ) = 7
Step 5. Adjoint = transpose of the cofactor matrix (rows become columns).
adj A = [ 3 − 3 1 1 6 − 2 − 1 1 2 ] , A − 1 = 1 7 [ 3 − 3 1 1 6 − 2 − 1 1 2 ] \displaystyle \operatorname{adj}A = \begin{bmatrix} 3 & -3 & 1 \\ 1 & 6 & -2 \\ -1 & 1 & 2 \end{bmatrix}, \qquad A^{-1} = \frac17\begin{bmatrix} 3 & -3 & 1 \\ 1 & 6 & -2 \\ -1 & 1 & 2 \end{bmatrix} adj A = 3 1 − 1 − 3 6 1 1 − 2 2 , A − 1 = 7 1 3 1 − 1 − 3 6 1 1 − 2 2
Step 6. Verify A A − 1 = I AA^{-1} = I A A − 1 = I .
1 7 [ 2 1 0 0 1 1 1 0 3 ] [ 3 − 3 1 1 6 − 2 − 1 1 2 ] = 1 7 [ 6 + 1 − 6 + 6 2 − 2 1 − 1 6 + 1 − 2 + 2 3 − 3 − 3 + 3 1 + 6 ] = 1 7 [ 7 0 0 0 7 0 0 0 7 ] = I \displaystyle \frac17\begin{bmatrix} 2 & 1 & 0 \\ 0 & 1 & 1 \\ 1 & 0 & 3 \end{bmatrix}\begin{bmatrix} 3 & -3 & 1 \\ 1 & 6 & -2 \\ -1 & 1 & 2 \end{bmatrix} = \frac17\begin{bmatrix} 6 + 1 & -6 + 6 & 2 - 2 \\ 1 - 1 & 6 + 1 & -2 + 2 \\ 3 - 3 & -3 + 3 & 1 + 6 \end{bmatrix} = \frac17\begin{bmatrix} 7 & 0 & 0 \\ 0 & 7 & 0 \\ 0 & 0 & 7 \end{bmatrix} = I 7 1 2 0 1 1 1 0 0 1 3 3 1 − 1 − 3 6 1 1 − 2 2 = 7 1 6 + 1 1 − 1 3 − 3 − 6 + 6 6 + 1 − 3 + 3 2 − 2 − 2 + 2 1 + 6 = 7 1 7 0 0 0 7 0 0 0 7 = I
Checking the answer#
Step 6 is itself the check: the product is the identity. ✓
Answer#
A − 1 = 1 7 [ 3 − 3 1 1 6 − 2 − 1 1 2 ] \displaystyle A^{-1} = \frac17\begin{bmatrix} 3 & -3 & 1 \\ 1 & 6 & -2 \\ -1 & 1 & 2 \end{bmatrix} A − 1 = 7 1 3 1 − 1 − 3 6 1 1 − 2 2 , and A A − 1 = I AA^{-1} = I A A − 1 = I .
Common mistake to avoid#
Forgetting to transpose : the cofactors of row 1 (3 , 1 , − 1 3, 1, -1 3 , 1 , − 1 ) become column 1 of the adjoint.
Question 3: Verifying A(adj A) = |A| I#
The problem#
Verify A ( adj A ) = ∣ A ∣ I A(\operatorname{adj}A) = \lvert A \rvert I A ( adj A ) = ∣ A ∣ I for A = [ 1 − 1 2 0 2 1 3 0 − 1 ] A = \begin{bmatrix} 1 & -1 & 2 \\ 0 & 2 & 1 \\ 3 & 0 & -1 \end{bmatrix} A = 1 0 3 − 1 2 0 2 1 − 1 .
Understanding the problem#
"Verify" means calculate both sides separately and show they are equal.
The idea#
Find all cofactors, form adj A \operatorname{adj}A adj A , find ∣ A ∣ \lvert A \rvert ∣ A ∣ , then multiply A A A by adj A \operatorname{adj}A adj A .
Step-by-step solution#
Step 1. Cofactors.
A 11 = + ( 2 ⋅ ( − 1 ) − 1 ⋅ 0 ) = − 2 , A 12 = − ( 0 ⋅ ( − 1 ) − 1 ⋅ 3 ) = 3 , A 13 = + ( 0 − 6 ) = − 6 A 21 = − ( ( − 1 ) ( − 1 ) − 2 ⋅ 0 ) = − 1 , A 22 = + ( − 1 − 6 ) = − 7 , A 23 = − ( 0 − ( − 3 ) ) = − 3 A 31 = + ( ( − 1 ) ( 1 ) − 2 ⋅ 2 ) = − 5 , A 32 = − ( 1 − 0 ) = − 1 , A 33 = + ( 2 − 0 ) = 2 \begin{aligned}
A_{11} &= +(2 \cdot (-1) - 1 \cdot 0) = -2, & A_{12} &= -(0 \cdot (-1) - 1 \cdot 3) = 3, & A_{13} &= +(0 - 6) = -6 \\
A_{21} &= -((-1)(-1) - 2 \cdot 0) = -1, & A_{22} &= +(-1 - 6) = -7, & A_{23} &= -(0 - (-3)) = -3 \\
A_{31} &= +((-1)(1) - 2 \cdot 2) = -5, & A_{32} &= -(1 - 0) = -1, & A_{33} &= +(2 - 0) = 2
\end{aligned} A 11 A 21 A 31 = + ( 2 ⋅ ( − 1 ) − 1 ⋅ 0 ) = − 2 , = − (( − 1 ) ( − 1 ) − 2 ⋅ 0 ) = − 1 , = + (( − 1 ) ( 1 ) − 2 ⋅ 2 ) = − 5 , A 12 A 22 A 32 = − ( 0 ⋅ ( − 1 ) − 1 ⋅ 3 ) = 3 , = + ( − 1 − 6 ) = − 7 , = − ( 1 − 0 ) = − 1 , A 13 A 23 A 33 = + ( 0 − 6 ) = − 6 = − ( 0 − ( − 3 )) = − 3 = + ( 2 − 0 ) = 2
Step 2. Determinant along row 1.
∣ A ∣ = 1 ( − 2 ) + ( − 1 ) ( 3 ) + 2 ( − 6 ) = − 2 − 3 − 12 = − 17 \lvert A \rvert = 1(-2) + (-1)(3) + 2(-6) = -2 - 3 - 12 = -17 ∣ A ∣ = 1 ( − 2 ) + ( − 1 ) ( 3 ) + 2 ( − 6 ) = − 2 − 3 − 12 = − 17
Step 3. Adjoint (transpose of cofactors).
adj A = [ − 2 − 1 − 5 3 − 7 − 1 − 6 − 3 2 ] \operatorname{adj}A = \begin{bmatrix} -2 & -1 & -5 \\ 3 & -7 & -1 \\ -6 & -3 & 2 \end{bmatrix} adj A = − 2 3 − 6 − 1 − 7 − 3 − 5 − 1 2
Step 4. Multiply.
A ( adj A ) = [ − 2 − 3 − 12 − 1 + 7 − 6 − 5 + 1 + 4 0 + 6 − 6 0 − 14 − 3 0 − 2 + 2 − 6 + 0 + 6 − 3 + 0 + 3 − 15 + 0 − 2 ] = [ − 17 0 0 0 − 17 0 0 0 − 17 ] A(\operatorname{adj}A) = \begin{bmatrix} -2 - 3 - 12 & -1 + 7 - 6 & -5 + 1 + 4 \\ 0 + 6 - 6 & 0 - 14 - 3 & 0 - 2 + 2 \\ -6 + 0 + 6 & -3 + 0 + 3 & -15 + 0 - 2 \end{bmatrix} = \begin{bmatrix} -17 & 0 & 0 \\ 0 & -17 & 0 \\ 0 & 0 & -17 \end{bmatrix} A ( adj A ) = − 2 − 3 − 12 0 + 6 − 6 − 6 + 0 + 6 − 1 + 7 − 6 0 − 14 − 3 − 3 + 0 + 3 − 5 + 1 + 4 0 − 2 + 2 − 15 + 0 − 2 = − 17 0 0 0 − 17 0 0 0 − 17
Step 5. This is − 17 I = ∣ A ∣ I -17I = \lvert A \rvert I − 17 I = ∣ A ∣ I , as required.
Checking the answer#
The off-diagonal zeros are expected: a row times the cofactors of a different row always gives 0 0 0 . ✓
Answer#
∣ A ∣ = − 17 \lvert A \rvert = -17 ∣ A ∣ = − 17 and A ( adj A ) = − 17 I = ∣ A ∣ I A(\operatorname{adj}A) = -17I = \lvert A \rvert I A ( adj A ) = − 17 I = ∣ A ∣ I .
Question 4: Which matrices are singular?#
The problem#
Which are singular? (a) [ 3 6 2 4 ] \begin{bmatrix} 3 & 6 \\ 2 & 4 \end{bmatrix} [ 3 2 6 4 ] ; (b) [ 1 2 3 4 5 6 7 8 9 ] \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{bmatrix} 1 4 7 2 5 8 3 6 9 ; (c) [ 2 0 1 1 1 0 0 2 1 ] \begin{bmatrix} 2 & 0 & 1 \\ 1 & 1 & 0 \\ 0 & 2 & 1 \end{bmatrix} 2 1 0 0 1 2 1 0 1 .
Understanding the problem#
A square matrix is singular when its determinant is 0 0 0 (it has no inverse).
The idea#
Evaluate each determinant.
Step-by-step solution#
Part (a)
3 ( 4 ) − 6 ( 2 ) = 12 − 12 = 0 ⇒ singular 3(4) - 6(2) = 12 - 12 = 0 \quad\Rightarrow\quad \text{singular} 3 ( 4 ) − 6 ( 2 ) = 12 − 12 = 0 ⇒ singular
Part (b)
Step 1. Expand along row 1.
1 ( 45 − 48 ) − 2 ( 36 − 42 ) + 3 ( 32 − 35 ) = − 3 + 12 − 9 = 0 1(45 - 48) - 2(36 - 42) + 3(32 - 35) = -3 + 12 - 9 = 0 1 ( 45 − 48 ) − 2 ( 36 − 42 ) + 3 ( 32 − 35 ) = − 3 + 12 − 9 = 0
So it is singular. (Also, row 2 − - − row 1 = ( 3 , 3 , 3 ) = = (3, 3, 3) = = ( 3 , 3 , 3 ) = row 3 − - − row 2, so the rows are dependent.)
Part (c)
Step 1. Expand along row 1.
2 ( 1 − 0 ) − 0 ( 1 − 0 ) + 1 ( 2 − 0 ) = 2 + 2 = 4 ≠ 0 ⇒ non-singular 2(1 - 0) - 0(1 - 0) + 1(2 - 0) = 2 + 2 = 4 \ne 0 \quad\Rightarrow\quad \text{non-singular} 2 ( 1 − 0 ) − 0 ( 1 − 0 ) + 1 ( 2 − 0 ) = 2 + 2 = 4 = 0 ⇒ non-singular
Checking the answer#
In (a) row 1 is 3 2 × \displaystyle \tfrac32 \times 2 3 × row 2, so a zero determinant is expected. ✓
Answer#
(a) and (b) are singular; (c) is non-singular (∣ A ∣ = 4 \lvert A \rvert = 4 ∣ A ∣ = 4 ).
Question 5: Consistent or inconsistent?#
The problem#
Consistent or inconsistent? (a) x + 3 y = 4 x + 3y = 4 x + 3 y = 4 , 2 x + 6 y = 9 2x + 6y = 9 2 x + 6 y = 9 ; (b) 3 x − y = 2 3x - y = 2 3 x − y = 2 , 6 x − 2 y = 4 6x - 2y = 4 6 x − 2 y = 4 .
Understanding the problem#
A system is consistent if it has at least one solution, inconsistent if it has none.
The idea#
Write each as A X = B AX = B A X = B . If ∣ A ∣ = 0 \lvert A \rvert = 0 ∣ A ∣ = 0 , compute ( adj A ) B (\operatorname{adj}A)B ( adj A ) B : if it is not O O O , the system is inconsistent; if it is O O O , check further.
Step-by-step solution#
Part (a)
Step 1. A = [ 1 3 2 6 ] A = \begin{bmatrix} 1 & 3 \\ 2 & 6 \end{bmatrix} A = [ 1 2 3 6 ] , B = [ 4 9 ] B = \begin{bmatrix} 4 \\ 9 \end{bmatrix} B = [ 4 9 ] ; ∣ A ∣ = 6 − 6 = 0 \lvert A \rvert = 6 - 6 = 0 ∣ A ∣ = 6 − 6 = 0 .
Step 2. adj A = [ 6 − 3 − 2 1 ] \operatorname{adj}A = \begin{bmatrix} 6 & -3 \\ -2 & 1 \end{bmatrix} adj A = [ 6 − 2 − 3 1 ] .
( adj A ) B = [ 24 − 27 − 8 + 9 ] = [ − 3 1 ] ≠ O (\operatorname{adj}A)B = \begin{bmatrix} 24 - 27 \\ -8 + 9 \end{bmatrix} = \begin{bmatrix} -3 \\ 1 \end{bmatrix} \ne O ( adj A ) B = [ 24 − 27 − 8 + 9 ] = [ − 3 1 ] = O
So the system is inconsistent.
Part (b)
Step 1. A = [ 3 − 1 6 − 2 ] A = \begin{bmatrix} 3 & -1 \\ 6 & -2 \end{bmatrix} A = [ 3 6 − 1 − 2 ] , B = [ 2 4 ] B = \begin{bmatrix} 2 \\ 4 \end{bmatrix} B = [ 2 4 ] ; ∣ A ∣ = − 6 + 6 = 0 \lvert A \rvert = -6 + 6 = 0 ∣ A ∣ = − 6 + 6 = 0 .
Step 2. adj A = [ − 2 1 − 6 3 ] \operatorname{adj}A = \begin{bmatrix} -2 & 1 \\ -6 & 3 \end{bmatrix} adj A = [ − 2 − 6 1 3 ] .
( adj A ) B = [ − 4 + 4 − 12 + 12 ] = O (\operatorname{adj}A)B = \begin{bmatrix} -4 + 4 \\ -12 + 12 \end{bmatrix} = O ( adj A ) B = [ − 4 + 4 − 12 + 12 ] = O
Step 3. Check further: the second equation is exactly twice the first, so both describe the same line y = 3 x − 2 y = 3x - 2 y = 3 x − 2 . Every point on it is a solution.
Checking the answer#
(a) Doubling the first equation gives 2 x + 6 y = 8 2x + 6y = 8 2 x + 6 y = 8 , which contradicts 2 x + 6 y = 9 2x + 6y = 9 2 x + 6 y = 9 : parallel lines. ✓
Answer#
(a) Inconsistent (no solution); (b) consistent with infinitely many solutions (the same line).
Question 6: Solving a 2 × 2 system by matrices#
The problem#
Solve by matrices: 3 x − 2 y = 7 3x - 2y = 7 3 x − 2 y = 7 , 5 x + 4 y = 19 5x + 4y = 19 5 x + 4 y = 19 .
Understanding the problem#
Write the system as A X = B AX = B A X = B and solve with X = A − 1 B X = A^{-1}B X = A − 1 B .
The idea#
A = [ 3 − 2 5 4 ] A = \begin{bmatrix} 3 & -2 \\ 5 & 4 \end{bmatrix} A = [ 3 5 − 2 4 ] , X = [ x y ] X = \begin{bmatrix} x \\ y \end{bmatrix} X = [ x y ] , B = [ 7 19 ] B = \begin{bmatrix} 7 \\ 19 \end{bmatrix} B = [ 7 19 ] .
Step-by-step solution#
Step 1. ∣ A ∣ = 12 + 10 = 22 ≠ 0 \lvert A \rvert = 12 + 10 = 22 \ne 0 ∣ A ∣ = 12 + 10 = 22 = 0 , so there is a unique solution.
Step 2. adj A = [ 4 2 − 5 3 ] \operatorname{adj}A = \begin{bmatrix} 4 & 2 \\ -5 & 3 \end{bmatrix} adj A = [ 4 − 5 2 3 ] .
Step 3. Multiply.
X = 1 22 [ 4 2 − 5 3 ] [ 7 19 ] = 1 22 [ 28 + 38 − 35 + 57 ] = 1 22 [ 66 22 ] = [ 3 1 ] \displaystyle X = \frac{1}{22}\begin{bmatrix} 4 & 2 \\ -5 & 3 \end{bmatrix}\begin{bmatrix} 7 \\ 19 \end{bmatrix} = \frac{1}{22}\begin{bmatrix} 28 + 38 \\ -35 + 57 \end{bmatrix} = \frac{1}{22}\begin{bmatrix} 66 \\ 22 \end{bmatrix} = \begin{bmatrix} 3 \\ 1 \end{bmatrix} X = 22 1 [ 4 − 5 2 3 ] [ 7 19 ] = 22 1 [ 28 + 38 − 35 + 57 ] = 22 1 [ 66 22 ] = [ 3 1 ]
Checking the answer#
3 ( 3 ) − 2 ( 1 ) = 7 3(3) - 2(1) = 7 3 ( 3 ) − 2 ( 1 ) = 7 ✓ and 5 ( 3 ) + 4 ( 1 ) = 19 5(3) + 4(1) = 19 5 ( 3 ) + 4 ( 1 ) = 19 ✓.
Answer#
x = 3 x = 3 x = 3 , y = 1 y = 1 y = 1 .
Question 7: Solving a 3 × 3 system by matrices#
The problem#
Solve by matrices: 2 x + y + z = 7 2x + y + z = 7 2 x + y + z = 7 , x − y + 2 z = 5 x - y + 2z = 5 x − y + 2 z = 5 , 3 x + 2 y − z = 6 3x + 2y - z = 6 3 x + 2 y − z = 6 .
Understanding the problem#
Three equations, three unknowns. Write A X = B AX = B A X = B with
A = [ 2 1 1 1 − 1 2 3 2 − 1 ] , B = [ 7 5 6 ] . A = \begin{bmatrix} 2 & 1 & 1 \\ 1 & -1 & 2 \\ 3 & 2 & -1 \end{bmatrix}, \quad B = \begin{bmatrix} 7 \\ 5 \\ 6 \end{bmatrix}. A = 2 1 3 1 − 1 2 1 2 − 1 , B = 7 5 6 .
The idea#
If ∣ A ∣ ≠ 0 \lvert A \rvert \ne 0 ∣ A ∣ = 0 , then X = A − 1 B = 1 ∣ A ∣ ( adj A ) B \displaystyle X = A^{-1}B = \frac{1}{\lvert A \rvert}(\operatorname{adj}A)B X = A − 1 B = ∣ A ∣ 1 ( adj A ) B .
Step-by-step solution#
Step 1. Cofactors.
A 11 = ( 1 − 4 ) = − 3 , A 12 = − ( − 1 − 6 ) = 7 , A 13 = ( 2 + 3 ) = 5 A 21 = − ( − 1 − 2 ) = 3 , A 22 = ( − 2 − 3 ) = − 5 , A 23 = − ( 4 − 3 ) = − 1 A 31 = ( 2 + 1 ) = 3 , A 32 = − ( 4 − 1 ) = − 3 , A 33 = ( − 2 − 1 ) = − 3 \begin{aligned}
A_{11} &= (1 - 4) = -3, & A_{12} &= -(-1 - 6) = 7, & A_{13} &= (2 + 3) = 5 \\
A_{21} &= -(-1 - 2) = 3, & A_{22} &= (-2 - 3) = -5, & A_{23} &= -(4 - 3) = -1 \\
A_{31} &= (2 + 1) = 3, & A_{32} &= -(4 - 1) = -3, & A_{33} &= (-2 - 1) = -3
\end{aligned} A 11 A 21 A 31 = ( 1 − 4 ) = − 3 , = − ( − 1 − 2 ) = 3 , = ( 2 + 1 ) = 3 , A 12 A 22 A 32 = − ( − 1 − 6 ) = 7 , = ( − 2 − 3 ) = − 5 , = − ( 4 − 1 ) = − 3 , A 13 A 23 A 33 = ( 2 + 3 ) = 5 = − ( 4 − 3 ) = − 1 = ( − 2 − 1 ) = − 3
Step 2. Determinant along row 1.
∣ A ∣ = 2 ( − 3 ) + 1 ( 7 ) + 1 ( 5 ) = 6 ≠ 0 \lvert A \rvert = 2(-3) + 1(7) + 1(5) = 6 \ne 0 ∣ A ∣ = 2 ( − 3 ) + 1 ( 7 ) + 1 ( 5 ) = 6 = 0
Step 3. Adjoint.
adj A = [ − 3 3 3 7 − 5 − 3 5 − 1 − 3 ] \operatorname{adj}A = \begin{bmatrix} -3 & 3 & 3 \\ 7 & -5 & -3 \\ 5 & -1 & -3 \end{bmatrix} adj A = − 3 7 5 3 − 5 − 1 3 − 3 − 3
Step 4. Multiply.
X = 1 6 [ − 21 + 15 + 18 49 − 25 − 18 35 − 5 − 18 ] = 1 6 [ 12 6 12 ] = [ 2 1 2 ] \displaystyle X = \frac16\begin{bmatrix} -21 + 15 + 18 \\ 49 - 25 - 18 \\ 35 - 5 - 18 \end{bmatrix} = \frac16\begin{bmatrix} 12 \\ 6 \\ 12 \end{bmatrix} = \begin{bmatrix} 2 \\ 1 \\ 2 \end{bmatrix} X = 6 1 − 21 + 15 + 18 49 − 25 − 18 35 − 5 − 18 = 6 1 12 6 12 = 2 1 2
Checking the answer#
2 ( 2 ) + 1 + 2 = 7 2(2) + 1 + 2 = 7 2 ( 2 ) + 1 + 2 = 7 ✓; 2 − 1 + 4 = 5 2 - 1 + 4 = 5 2 − 1 + 4 = 5 ✓; 6 + 2 − 2 = 6 6 + 2 - 2 = 6 6 + 2 − 2 = 6 ✓.
Answer#
x = 2 x = 2 x = 2 , y = 1 y = 1 y = 1 , z = 2 z = 2 z = 2 .
Question 8: The reversal law for inverses#
The problem#
For A = [ 2 3 1 − 4 ] A = \begin{bmatrix} 2 & 3 \\ 1 & -4 \end{bmatrix} A = [ 2 1 3 − 4 ] and B = [ 1 − 2 − 1 3 ] B = \begin{bmatrix} 1 & -2 \\ -1 & 3 \end{bmatrix} B = [ 1 − 1 − 2 3 ] , verify ( A B ) − 1 = B − 1 A − 1 (AB)^{-1} = B^{-1}A^{-1} ( A B ) − 1 = B − 1 A − 1 .
Understanding the problem#
Compute the left side (multiply first, then invert) and the right side (invert each, then multiply in the reverse order), and show they are equal.
The idea#
Use the 2 × 2 2 \times 2 2 × 2 inverse rule each time.
Step-by-step solution#
Step 1. Product A B AB A B .
A B = [ 2 − 3 − 4 + 9 1 + 4 − 2 − 12 ] = [ − 1 5 5 − 14 ] AB = \begin{bmatrix} 2 - 3 & -4 + 9 \\ 1 + 4 & -2 - 12 \end{bmatrix} = \begin{bmatrix} -1 & 5 \\ 5 & -14 \end{bmatrix} A B = [ 2 − 3 1 + 4 − 4 + 9 − 2 − 12 ] = [ − 1 5 5 − 14 ]
Step 2. Its inverse: ∣ A B ∣ = 14 − 25 = − 11 \lvert AB \rvert = 14 - 25 = -11 ∣ A B ∣ = 14 − 25 = − 11 .
( A B ) − 1 = 1 − 11 [ − 14 − 5 − 5 − 1 ] \displaystyle (AB)^{-1} = \frac{1}{-11}\begin{bmatrix} -14 & -5 \\ -5 & -1 \end{bmatrix} ( A B ) − 1 = − 11 1 [ − 14 − 5 − 5 − 1 ]
Step 3. Inverses of A A A and B B B : ∣ A ∣ = − 8 − 3 = − 11 \lvert A \rvert = -8 - 3 = -11 ∣ A ∣ = − 8 − 3 = − 11 , ∣ B ∣ = 3 − 2 = 1 \lvert B \rvert = 3 - 2 = 1 ∣ B ∣ = 3 − 2 = 1 .
A − 1 = 1 − 11 [ − 4 − 3 − 1 2 ] , B − 1 = [ 3 2 1 1 ] \displaystyle A^{-1} = \frac{1}{-11}\begin{bmatrix} -4 & -3 \\ -1 & 2 \end{bmatrix}, \qquad B^{-1} = \begin{bmatrix} 3 & 2 \\ 1 & 1 \end{bmatrix} A − 1 = − 11 1 [ − 4 − 1 − 3 2 ] , B − 1 = [ 3 1 2 1 ]
Step 4. Multiply B − 1 A − 1 B^{-1}A^{-1} B − 1 A − 1 in that order.
B − 1 A − 1 = 1 − 11 [ 3 2 1 1 ] [ − 4 − 3 − 1 2 ] = 1 − 11 [ − 12 − 2 − 9 + 4 − 4 − 1 − 3 + 2 ] = 1 − 11 [ − 14 − 5 − 5 − 1 ] \displaystyle B^{-1}A^{-1} = \frac{1}{-11}\begin{bmatrix} 3 & 2 \\ 1 & 1 \end{bmatrix}\begin{bmatrix} -4 & -3 \\ -1 & 2 \end{bmatrix} = \frac{1}{-11}\begin{bmatrix} -12 - 2 & -9 + 4 \\ -4 - 1 & -3 + 2 \end{bmatrix} = \frac{1}{-11}\begin{bmatrix} -14 & -5 \\ -5 & -1 \end{bmatrix} B − 1 A − 1 = − 11 1 [ 3 1 2 1 ] [ − 4 − 1 − 3 2 ] = − 11 1 [ − 12 − 2 − 4 − 1 − 9 + 4 − 3 + 2 ] = − 11 1 [ − 14 − 5 − 5 − 1 ]
Step 5. Steps 2 and 4 give the same matrix, so ( A B ) − 1 = B − 1 A − 1 (AB)^{-1} = B^{-1}A^{-1} ( A B ) − 1 = B − 1 A − 1 .
Checking the answer#
∣ A B ∣ = ∣ A ∣ ∣ B ∣ = ( − 11 ) ( 1 ) = − 11 \lvert AB \rvert = \lvert A \rvert\lvert B \rvert = (-11)(1) = -11 ∣ A B ∣ = ∣ A ∣ ∣ B ∣ = ( − 11 ) ( 1 ) = − 11 , matching Step 2. ✓
Answer#
Both sides equal 1 − 11 [ − 14 − 5 − 5 − 1 ] = 1 11 [ 14 5 5 1 ] \displaystyle \frac{1}{-11}\begin{bmatrix} -14 & -5 \\ -5 & -1 \end{bmatrix} = \frac{1}{11}\begin{bmatrix} 14 & 5 \\ 5 & 1 \end{bmatrix} − 11 1 [ − 14 − 5 − 5 − 1 ] = 11 1 [ 14 5 5 1 ] .
Common mistake to avoid#
The order reverses: ( A B ) − 1 = B − 1 A − 1 (AB)^{-1} = B^{-1}A^{-1} ( A B ) − 1 = B − 1 A − 1 , not A − 1 B − 1 A^{-1}B^{-1} A − 1 B − 1 .
Question 9: A matrix equation and the inverse from it#
The problem#
If A = [ 3 2 1 1 ] A = \begin{bmatrix} 3 & 2 \\ 1 & 1 \end{bmatrix} A = [ 3 1 2 1 ] , find a , b a, b a , b with A 2 + a A + b I = O A^2 + aA + bI = O A 2 + a A + b I = O and use it to find A − 1 A^{-1} A − 1 .
Understanding the problem#
You must find numbers a a a and b b b that make the matrix A 2 + a A + b I A^2 + aA + bI A 2 + a A + b I the zero matrix, then use that equation (not the adjoint) to get A − 1 A^{-1} A − 1 .
The idea#
Compute A 2 A^2 A 2 , write A 2 + a A + b I A^2 + aA + bI A 2 + a A + b I entry by entry, and set each entry to 0 0 0 . Then multiply the equation by A − 1 A^{-1} A − 1 .
Step-by-step solution#
Step 1. Square A A A .
A 2 = [ 3 2 1 1 ] [ 3 2 1 1 ] = [ 9 + 2 6 + 2 3 + 1 2 + 1 ] = [ 11 8 4 3 ] A^2 = \begin{bmatrix} 3 & 2 \\ 1 & 1 \end{bmatrix}\begin{bmatrix} 3 & 2 \\ 1 & 1 \end{bmatrix} = \begin{bmatrix} 9 + 2 & 6 + 2 \\ 3 + 1 & 2 + 1 \end{bmatrix} = \begin{bmatrix} 11 & 8 \\ 4 & 3 \end{bmatrix} A 2 = [ 3 1 2 1 ] [ 3 1 2 1 ] = [ 9 + 2 3 + 1 6 + 2 2 + 1 ] = [ 11 4 8 3 ]
Step 2. Form the sum.
A 2 + a A + b I = [ 11 + 3 a + b 8 + 2 a 4 + a 3 + a + b ] A^2 + aA + bI = \begin{bmatrix} 11 + 3a + b & 8 + 2a \\ 4 + a & 3 + a + b \end{bmatrix} A 2 + a A + b I = [ 11 + 3 a + b 4 + a 8 + 2 a 3 + a + b ]
Step 3. Set each entry to 0 0 0 . From 4 + a = 0 4 + a = 0 4 + a = 0 : a = − 4 a = -4 a = − 4 (and 8 + 2 a = 0 8 + 2a = 0 8 + 2 a = 0 agrees). Then 11 − 12 + b = 0 11 - 12 + b = 0 11 − 12 + b = 0 gives b = 1 b = 1 b = 1 (and 3 − 4 + 1 = 0 3 - 4 + 1 = 0 3 − 4 + 1 = 0 agrees).
Step 4. So A 2 − 4 A + I = O A^2 - 4A + I = O A 2 − 4 A + I = O . Since ∣ A ∣ = 3 − 2 = 1 ≠ 0 \lvert A \rvert = 3 - 2 = 1 \ne 0 ∣ A ∣ = 3 − 2 = 1 = 0 , A − 1 A^{-1} A − 1 exists. Multiply by A − 1 A^{-1} A − 1 .
A − 4 I + A − 1 = O ⇒ A − 1 = 4 I − A A - 4I + A^{-1} = O \;\Rightarrow\; A^{-1} = 4I - A A − 4 I + A − 1 = O ⇒ A − 1 = 4 I − A
Step 5. Compute.
A − 1 = [ 4 0 0 4 ] − [ 3 2 1 1 ] = [ 1 − 2 − 1 3 ] A^{-1} = \begin{bmatrix} 4 & 0 \\ 0 & 4 \end{bmatrix} - \begin{bmatrix} 3 & 2 \\ 1 & 1 \end{bmatrix} = \begin{bmatrix} 1 & -2 \\ -1 & 3 \end{bmatrix} A − 1 = [ 4 0 0 4 ] − [ 3 1 2 1 ] = [ 1 − 1 − 2 3 ]
Checking the answer#
A A − 1 = [ 3 − 2 − 6 + 6 1 − 1 − 2 + 3 ] = I ✓ AA^{-1} = \begin{bmatrix} 3 - 2 & -6 + 6 \\ 1 - 1 & -2 + 3 \end{bmatrix} = I \;✓ A A − 1 = [ 3 − 2 1 − 1 − 6 + 6 − 2 + 3 ] = I ✓
Answer#
a = − 4 a = -4 a = − 4 , b = 1 b = 1 b = 1 ; A − 1 = [ 1 − 2 − 1 3 ] A^{-1} = \begin{bmatrix} 1 & -2 \\ -1 & 3 \end{bmatrix} A − 1 = [ 1 − 1 − 2 3 ] .
Question 10: Prices of fruit from three purchases#
The problem#
Three friends buy fruit: 2 2 2 apples, 3 3 3 oranges, 1 1 1 mango cost ₹115; 1 1 1 apple, 2 2 2 oranges, 2 2 2 mangoes cost ₹95; 3 3 3 apples, 1 1 1 orange, 2 2 2 mangoes cost ₹130. Find the price of each fruit.
Understanding the problem#
Let the prices (in rupees) be a a a for an apple, o o o for an orange and m m m for a mango. Each purchase gives one equation:
2 a + 3 o + m = 115 , a + 2 o + 2 m = 95 , 3 a + o + 2 m = 130. 2a + 3o + m = 115, \qquad a + 2o + 2m = 95, \qquad 3a + o + 2m = 130. 2 a + 3 o + m = 115 , a + 2 o + 2 m = 95 , 3 a + o + 2 m = 130.
The idea#
Write A X = B AX = B A X = B with A = [ 2 3 1 1 2 2 3 1 2 ] A = \begin{bmatrix} 2 & 3 & 1 \\ 1 & 2 & 2 \\ 3 & 1 & 2 \end{bmatrix} A = 2 1 3 3 2 1 1 2 2 , X = [ a o m ] X = \begin{bmatrix} a \\ o \\ m \end{bmatrix} X = a o m , B = [ 115 95 130 ] B = \begin{bmatrix} 115 \\ 95 \\ 130 \end{bmatrix} B = 115 95 130 , and use X = A − 1 B X = A^{-1}B X = A − 1 B .
Step-by-step solution#
Step 1. Cofactors.
A 11 = ( 4 − 2 ) = 2 , A 12 = − ( 2 − 6 ) = 4 , A 13 = ( 1 − 6 ) = − 5 A 21 = − ( 6 − 1 ) = − 5 , A 22 = ( 4 − 3 ) = 1 , A 23 = − ( 2 − 9 ) = 7 A 31 = ( 6 − 2 ) = 4 , A 32 = − ( 4 − 1 ) = − 3 , A 33 = ( 4 − 3 ) = 1 \begin{aligned}
A_{11} &= (4 - 2) = 2, & A_{12} &= -(2 - 6) = 4, & A_{13} &= (1 - 6) = -5 \\
A_{21} &= -(6 - 1) = -5, & A_{22} &= (4 - 3) = 1, & A_{23} &= -(2 - 9) = 7 \\
A_{31} &= (6 - 2) = 4, & A_{32} &= -(4 - 1) = -3, & A_{33} &= (4 - 3) = 1
\end{aligned} A 11 A 21 A 31 = ( 4 − 2 ) = 2 , = − ( 6 − 1 ) = − 5 , = ( 6 − 2 ) = 4 , A 12 A 22 A 32 = − ( 2 − 6 ) = 4 , = ( 4 − 3 ) = 1 , = − ( 4 − 1 ) = − 3 , A 13 A 23 A 33 = ( 1 − 6 ) = − 5 = − ( 2 − 9 ) = 7 = ( 4 − 3 ) = 1
Step 2. Determinant along row 1.
∣ A ∣ = 2 ( 2 ) + 3 ( 4 ) + 1 ( − 5 ) = 11 \lvert A \rvert = 2(2) + 3(4) + 1(-5) = 11 ∣ A ∣ = 2 ( 2 ) + 3 ( 4 ) + 1 ( − 5 ) = 11
Step 3. Adjoint.
adj A = [ 2 − 5 4 4 1 − 3 − 5 7 1 ] \operatorname{adj}A = \begin{bmatrix} 2 & -5 & 4 \\ 4 & 1 & -3 \\ -5 & 7 & 1 \end{bmatrix} adj A = 2 4 − 5 − 5 1 7 4 − 3 1
Step 4. Multiply.
X = 1 11 [ 230 − 475 + 520 460 + 95 − 390 − 575 + 665 + 130 ] = 1 11 [ 275 165 220 ] = [ 25 15 20 ] \displaystyle X = \frac{1}{11}\begin{bmatrix} 230 - 475 + 520 \\ 460 + 95 - 390 \\ -575 + 665 + 130 \end{bmatrix} = \frac{1}{11}\begin{bmatrix} 275 \\ 165 \\ 220 \end{bmatrix} = \begin{bmatrix} 25 \\ 15 \\ 20 \end{bmatrix} X = 11 1 230 − 475 + 520 460 + 95 − 390 − 575 + 665 + 130 = 11 1 275 165 220 = 25 15 20
Checking the answer#
2 ( 25 ) + 3 ( 15 ) + 20 = 115 2(25) + 3(15) + 20 = 115 2 ( 25 ) + 3 ( 15 ) + 20 = 115 ✓; 25 + 30 + 40 = 95 25 + 30 + 40 = 95 25 + 30 + 40 = 95 ✓; 75 + 15 + 40 = 130 75 + 15 + 40 = 130 75 + 15 + 40 = 130 ✓.
Answer#
Apple ₹25, orange ₹15, mango ₹20.