With ordinary numbers, you solve 5 x = 15 5x = 15 5 x = 15 by dividing by 5 5 5 , which is the same as multiplying by 5 − 1 5^{-1} 5 − 1 . Matrices have no division, but many square matrices have an inverse that does the same job. The determinant , a single number worked out from a square matrix, tells you whether that inverse exists. Together they let you solve whole systems of equations in one step, and they’re the key to codes, transformations and much more.
For a 2 × 2 2 \times 2 2 × 2 matrix, the determinant is “leading diagonal minus the other diagonal”:
A = ( a b c d ) ⇒ det A = ∣ A ∣ = a d − b c A = \begin{pmatrix} a & b \\ c & d \end{pmatrix} \qquad \Rightarrow \qquad \det A = |A| = ad - bc A = ( a c b d ) ⇒ det A = ∣ A ∣ = a d − b c
For example, det ( 4 3 2 5 ) = 4 ( 5 ) − 3 ( 2 ) = 14 \det \begin{pmatrix} 4 & 3 \\ 2 & 5 \end{pmatrix} = 4(5) - 3(2) = 14 det ( 4 2 3 5 ) = 4 ( 5 ) − 3 ( 2 ) = 14 .
Only square matrices have determinants. For 3 × 3 3 \times 3 3 × 3 and larger matrices, use your GDC’s det \det det function: in this course you find those with technology, not by hand.
The inverse of a square matrix A A A is the matrix A − 1 A^{-1} A − 1 that undoes it:
A A − 1 = A − 1 A = I AA^{-1} = A^{-1}A = I A A − 1 = A − 1 A = I
For a 2 × 2 2 \times 2 2 × 2 matrix: swap the entries on the leading diagonal, change the signs of the other two, and divide by the determinant.
A = ( a b c d ) ⇒ A − 1 = 1 a d − b c ( d − b − c a ) A = \begin{pmatrix} a & b \\ c & d \end{pmatrix} \qquad \Rightarrow \qquad A^{-1} = \frac{1}{ad - bc}\begin{pmatrix} d & -b \\ -c & a \end{pmatrix} A = ( a c b d ) ⇒ A − 1 = a d − b c 1 ( d − c − b a )
For larger matrices, enter A A A in the GDC and use A − 1 A^{-1} A − 1 (the x − 1 x^{-1} x − 1 key). Many GDCs can show the result as fractions.
If det A = 0 \det A = 0 det A = 0 , the formula would divide by zero, and A A A has no inverse . Such a matrix is called singular . A matrix with a non-zero determinant is non-singular (or invertible). For a 2 × 2 2 \times 2 2 × 2 matrix, det A = 0 \det A = 0 det A = 0 means one row is a multiple of the other: for example, ( 6 − 4 3 − 2 ) \begin{pmatrix} 6 & -4 \\ 3 & -2 \end{pmatrix} ( 6 3 − 4 − 2 ) has determinant − 12 − ( − 12 ) = 0 -12 - (-12) = 0 − 12 − ( − 12 ) = 0 .
Any system of linear equations can be written as one matrix equation. For example,
4 x + 3 y = 1 2 x + 5 y = 11 ⟺ ( 4 3 2 5 ) ⏟ A ( x y ) ⏟ X = ( 1 11 ) ⏟ B \begin{aligned} 4x + 3y &= 1 \\ 2x + 5y &= 11 \end{aligned}
\qquad \Longleftrightarrow \qquad
\underbrace{\begin{pmatrix} 4 & 3 \\ 2 & 5 \end{pmatrix}}_{A}\underbrace{\begin{pmatrix} x \\ y \end{pmatrix}}_{X} = \underbrace{\begin{pmatrix} 1 \\ 11 \end{pmatrix}}_{B} 4 x + 3 y 2 x + 5 y = 1 = 11 ⟺ A ( 4 2 3 5 ) X ( x y ) = B ( 1 11 )
A A A is the coefficient matrix . If A A A is invertible, multiply both sides on the left by A − 1 A^{-1} A − 1 :
A − 1 A X = A − 1 B ⇒ I X = A − 1 B ⇒ X = A − 1 B A^{-1}AX = A^{-1}B \quad\Rightarrow\quad IX = A^{-1}B \quad\Rightarrow\quad X = A^{-1}B A − 1 A X = A − 1 B ⇒ I X = A − 1 B ⇒ X = A − 1 B
Order matters. A − 1 A^{-1} A − 1 must go on the left of both sides, so the answer is A − 1 B A^{-1}B A − 1 B , never B A − 1 BA^{-1} B A − 1 . (If instead the equation is X A = B XA = B X A = B , multiply on the right: X = B A − 1 X = BA^{-1} X = B A − 1 .) In IB exams, A A A will always be invertible in these questions, so each system has a unique solution.
One classic use: turn letters into numbers (A = 1 A = 1 A = 1 , B = 2 B = 2 B = 2 , …, Z = 26 Z = 26 Z = 26 ), arrange them in columns of a matrix M M M , and multiply by a key matrix K K K to get the coded matrix C = K M C = KM C = K M . Anyone who knows K K K decodes with M = K − 1 C M = K^{-1}C M = K − 1 C . The key must be invertible, or the message could never be recovered.
Let A = ( 4 3 2 5 ) A = \begin{pmatrix} 4 & 3 \\ 2 & 5 \end{pmatrix} A = ( 4 2 3 5 ) . Find A − 1 A^{-1} A − 1 and check your answer.
Solution. det A = 4 ( 5 ) − 3 ( 2 ) = 14 ≠ 0 \det A = 4(5) - 3(2) = 14 \ne 0 det A = 4 ( 5 ) − 3 ( 2 ) = 14 = 0 , so the inverse exists. Swap 4 4 4 and 5 5 5 , negate 3 3 3 and 2 2 2 , and divide by 14 14 14 :
A − 1 = 1 14 ( 5 − 3 − 2 4 ) A^{-1} = \frac{1}{14}\begin{pmatrix} 5 & -3 \\ -2 & 4 \end{pmatrix} A − 1 = 14 1 ( 5 − 2 − 3 4 )
Check:
A A − 1 = 1 14 ( 4 ( 5 ) + 3 ( − 2 ) 4 ( − 3 ) + 3 ( 4 ) 2 ( 5 ) + 5 ( − 2 ) 2 ( − 3 ) + 5 ( 4 ) ) = 1 14 ( 14 0 0 14 ) = I ✓ AA^{-1} = \frac{1}{14}\begin{pmatrix} 4(5) + 3(-2) & 4(-3) + 3(4) \\ 2(5) + 5(-2) & 2(-3) + 5(4) \end{pmatrix} = \frac{1}{14}\begin{pmatrix} 14 & 0 \\ 0 & 14 \end{pmatrix} = I \;\checkmark A A − 1 = 14 1 ( 4 ( 5 ) + 3 ( − 2 ) 2 ( 5 ) + 5 ( − 2 ) 4 ( − 3 ) + 3 ( 4 ) 2 ( − 3 ) + 5 ( 4 ) ) = 14 1 ( 14 0 0 14 ) = I ✓
Leaving the 1 14 \dfrac{1}{14} 14 1 outside keeps the fractions out of the way.
Find the values of k k k for which ( k 6 2 k − 1 ) \begin{pmatrix} k & 6 \\ 2 & k - 1 \end{pmatrix} ( k 2 6 k − 1 ) is singular.
Solution. Set the determinant equal to 0 0 0 :
k ( k − 1 ) − 6 ( 2 ) = 0 k 2 − k − 12 = 0 ( k − 4 ) ( k + 3 ) = 0 \begin{aligned}
k(k - 1) - 6(2) &= 0 \\
k^2 - k - 12 &= 0 \\
(k - 4)(k + 3) &= 0
\end{aligned} k ( k − 1 ) − 6 ( 2 ) k 2 − k − 12 ( k − 4 ) ( k + 3 ) = 0 = 0 = 0
So k = 4 k = 4 k = 4 or k = − 3 k = -3 k = − 3 . For any other value of k k k , the matrix has an inverse.
Check k = 4 k = 4 k = 4 : ( 4 6 2 3 ) \begin{pmatrix} 4 & 6 \\ 2 & 3 \end{pmatrix} ( 4 2 6 3 ) , and the first row is twice the second. ✓
Write this system as A X = B AX = B A X = B and solve it using the inverse matrix.
x + y + z = 9 2 x − y + 3 z = 13 3 x + 2 y − 4 z = − 4 \begin{aligned}
x + y + z &= 9 \\
2x - y + 3z &= 13 \\
3x + 2y - 4z &= -4
\end{aligned} x + y + z 2 x − y + 3 z 3 x + 2 y − 4 z = 9 = 13 = − 4
Solution.
( 1 1 1 2 − 1 3 3 2 − 4 ) ( x y z ) = ( 9 13 − 4 ) \begin{pmatrix} 1 & 1 & 1 \\ 2 & -1 & 3 \\ 3 & 2 & -4 \end{pmatrix}\begin{pmatrix} x \\ y \\ z \end{pmatrix} = \begin{pmatrix} 9 \\ 13 \\ -4 \end{pmatrix} 1 2 3 1 − 1 2 1 3 − 4 x y z = 9 13 − 4
On the GDC, det A = 22 \det A = 22 det A = 22 , which isn’t 0 0 0 , so A − 1 A^{-1} A − 1 exists:
A − 1 = 1 22 ( − 2 6 4 17 − 7 − 1 7 1 − 3 ) A^{-1} = \frac{1}{22}\begin{pmatrix} -2 & 6 & 4 \\ 17 & -7 & -1 \\ 7 & 1 & -3 \end{pmatrix} A − 1 = 22 1 − 2 17 7 6 − 7 1 4 − 1 − 3
Then X = A − 1 B X = A^{-1}B X = A − 1 B (calculate A − 1 B A^{-1}B A − 1 B directly on the GDC):
( x y z ) = A − 1 ( 9 13 − 4 ) = ( 2 3 4 ) \begin{pmatrix} x \\ y \\ z \end{pmatrix} = A^{-1}\begin{pmatrix} 9 \\ 13 \\ -4 \end{pmatrix} = \begin{pmatrix} 2 \\ 3 \\ 4 \end{pmatrix} x y z = A − 1 9 13 − 4 = 2 3 4
So x = 2 x = 2 x = 2 , y = 3 y = 3 y = 3 , z = 4 z = 4 z = 4 . Check the third equation: 3 ( 2 ) + 2 ( 3 ) − 4 ( 4 ) = 6 + 6 − 16 = − 4 3(2) + 2(3) - 4(4) = 6 + 6 - 16 = -4 3 ( 2 ) + 2 ( 3 ) − 4 ( 4 ) = 6 + 6 − 16 = − 4 ✓.
A message is coded by writing letters as numbers (A = 1 A = 1 A = 1 , …, Z = 26 Z = 26 Z = 26 ) in the columns of a 2 × 2 2 \times 2 2 × 2 matrix M M M , then finding C = K M C = KM C = K M with key K = ( 2 1 3 2 ) K = \begin{pmatrix} 2 & 1 \\ 3 & 2 \end{pmatrix} K = ( 2 3 1 2 ) . The coded matrix received is C = ( 27 48 41 76 ) C = \begin{pmatrix} 27 & 48 \\ 41 & 76 \end{pmatrix} C = ( 27 41 48 76 ) . Decode it. (Read the message down the first column, then down the second.)
Solution. det K = 4 − 3 = 1 \det K = 4 - 3 = 1 det K = 4 − 3 = 1 , so
K − 1 = 1 1 ( 2 − 1 − 3 2 ) = ( 2 − 1 − 3 2 ) K^{-1} = \frac{1}{1}\begin{pmatrix} 2 & -1 \\ -3 & 2 \end{pmatrix} = \begin{pmatrix} 2 & -1 \\ -3 & 2 \end{pmatrix} K − 1 = 1 1 ( 2 − 3 − 1 2 ) = ( 2 − 3 − 1 2 )
Since C = K M C = KM C = K M , we get M = K − 1 C M = K^{-1}C M = K − 1 C :
M = ( 2 − 1 − 3 2 ) ( 27 48 41 76 ) = ( 54 − 41 96 − 76 − 81 + 82 − 144 + 152 ) = ( 13 20 1 8 ) M = \begin{pmatrix} 2 & -1 \\ -3 & 2 \end{pmatrix}\begin{pmatrix} 27 & 48 \\ 41 & 76 \end{pmatrix} = \begin{pmatrix} 54 - 41 & 96 - 76 \\ -81 + 82 & -144 + 152 \end{pmatrix} = \begin{pmatrix} 13 & 20 \\ 1 & 8 \end{pmatrix} M = ( 2 − 3 − 1 2 ) ( 27 41 48 76 ) = ( 54 − 41 − 81 + 82 96 − 76 − 144 + 152 ) = ( 13 1 20 8 )
Reading down the columns: 13 , 1 , 20 , 8 13, 1, 20, 8 13 , 1 , 20 , 8 , which is M , A , T , H M, A, T, H M , A , T , H . The message is MATH .
Forgetting to divide by the determinant. ( d − b − c a ) \begin{pmatrix} d & -b \\ -c & a \end{pmatrix} ( d − c − b a ) on its own is not the inverse unless det A = 1 \det A = 1 det A = 1 . Always multiply by 1 a d − b c \dfrac{1}{ad - bc} a d − b c 1 .
Swapping and negating the wrong entries. The leading-diagonal entries (a a a and d d d ) swap places; the other two (b b b and c c c ) stay where they are but change sign. Check by multiplying: A A − 1 AA^{-1} A A − 1 should be I I I .
Writing BA⁻¹ instead of A⁻¹B. From A X = B AX = B A X = B , the inverse goes on the left : X = A − 1 B X = A^{-1}B X = A − 1 B . Usually B A − 1 BA^{-1} B A − 1 isn’t even defined (a 2 × 1 2 \times 1 2 × 1 times a 2 × 2 2 \times 2 2 × 2 ), and when it is, it’s a different answer.
Trying to invert a singular matrix. If det A = 0 \det A = 0 det A = 0 there is no inverse; your GDC will say “singular matrix”. In a system of equations, that means there’s no unique solution.
Finding the determinant of a non-square matrix. Only square matrices have determinants and inverses. A 2 × 3 2 \times 3 2 × 3 matrix has neither.
Entering a system with the variables out of order. Each column of A A A belongs to one variable. If an equation is written 3 z + x = 5 3z + x = 5 3 z + x = 5 , its row is ( 1 0 3 ) \begin{pmatrix} 1 & 0 & 3 \end{pmatrix} ( 1 0 3 ) when the variables are in the order x , y , z x, y, z x , y , z .
1. (Warm-up) Find the determinant of each matrix.
(a) ( 3 2 1 4 ) \begin{pmatrix} 3 & 2 \\ 1 & 4 \end{pmatrix} ( 3 1 2 4 )
(b) ( − 2 5 3 − 1 ) \begin{pmatrix} -2 & 5 \\ 3 & -1 \end{pmatrix} ( − 2 3 5 − 1 )
(c) ( 6 − 4 3 − 2 ) \begin{pmatrix} 6 & -4 \\ 3 & -2 \end{pmatrix} ( 6 3 − 4 − 2 )
Solution (a) 3 ( 4 ) − 2 ( 1 ) = 12 − 2 = 10 3(4) - 2(1) = 12 - 2 = 10 3 ( 4 ) − 2 ( 1 ) = 12 − 2 = 10
(b) ( − 2 ) ( − 1 ) − 5 ( 3 ) = 2 − 15 = − 13 (-2)(-1) - 5(3) = 2 - 15 = -13 ( − 2 ) ( − 1 ) − 5 ( 3 ) = 2 − 15 = − 13
(c) 6 ( − 2 ) − ( − 4 ) ( 3 ) = − 12 + 12 = 0 6(-2) - (-4)(3) = -12 + 12 = 0 6 ( − 2 ) − ( − 4 ) ( 3 ) = − 12 + 12 = 0 (this matrix is singular)
2. (Warm-up) Find the inverse of B = ( 3 − 1 5 − 2 ) B = \begin{pmatrix} 3 & -1 \\ 5 & -2 \end{pmatrix} B = ( 3 5 − 1 − 2 ) .
Solution det B = 3 ( − 2 ) − ( − 1 ) ( 5 ) = − 6 + 5 = − 1 \det B = 3(-2) - (-1)(5) = -6 + 5 = -1 det B = 3 ( − 2 ) − ( − 1 ) ( 5 ) = − 6 + 5 = − 1 .
B − 1 = 1 − 1 ( − 2 1 − 5 3 ) = ( 2 − 1 5 − 3 ) B^{-1} = \frac{1}{-1}\begin{pmatrix} -2 & 1 \\ -5 & 3 \end{pmatrix} = \begin{pmatrix} 2 & -1 \\ 5 & -3 \end{pmatrix} B − 1 = − 1 1 ( − 2 − 5 1 3 ) = ( 2 5 − 1 − 3 ) Check: B B − 1 = ( 6 − 5 − 3 + 3 10 − 10 − 5 + 6 ) = I BB^{-1} = \begin{pmatrix} 6 - 5 & -3 + 3 \\ 10 - 10 & -5 + 6 \end{pmatrix} = I B B − 1 = ( 6 − 5 10 − 10 − 3 + 3 − 5 + 6 ) = I ✓.
3. (Warm-up) Which of these matrices are singular?
P = ( 2 8 1 4 ) , Q = ( 3 − 6 − 1 2 ) , R = ( 5 2 2 1 ) P = \begin{pmatrix} 2 & 8 \\ 1 & 4 \end{pmatrix}, \qquad Q = \begin{pmatrix} 3 & -6 \\ -1 & 2 \end{pmatrix}, \qquad R = \begin{pmatrix} 5 & 2 \\ 2 & 1 \end{pmatrix} P = ( 2 1 8 4 ) , Q = ( 3 − 1 − 6 2 ) , R = ( 5 2 2 1 )
Solution det P = 8 − 8 = 0 \det P = 8 - 8 = 0 det P = 8 − 8 = 0 , det Q = 6 − 6 = 0 \det Q = 6 - 6 = 0 det Q = 6 − 6 = 0 , det R = 5 − 4 = 1 \det R = 5 - 4 = 1 det R = 5 − 4 = 1 .
P P P and Q Q Q are singular. R R R is not (its inverse is ( 1 − 2 − 2 5 ) \begin{pmatrix} 1 & -2 \\ -2 & 5 \end{pmatrix} ( 1 − 2 − 2 5 ) ).
4. (Core) By hand, use an inverse matrix to solve:
3 x + 2 y = 4 5 x + 4 y = 10 \begin{aligned}
3x + 2y &= 4 \\
5x + 4y &= 10
\end{aligned} 3 x + 2 y 5 x + 4 y = 4 = 10
Solution A = ( 3 2 5 4 ) A = \begin{pmatrix} 3 & 2 \\ 5 & 4 \end{pmatrix} A = ( 3 5 2 4 ) , det A = 12 − 10 = 2 \det A = 12 - 10 = 2 det A = 12 − 10 = 2 , so
A − 1 = 1 2 ( 4 − 2 − 5 3 ) A^{-1} = \frac{1}{2}\begin{pmatrix} 4 & -2 \\ -5 & 3 \end{pmatrix} A − 1 = 2 1 ( 4 − 5 − 2 3 ) X = A − 1 B = 1 2 ( 4 − 2 − 5 3 ) ( 4 10 ) = 1 2 ( 16 − 20 − 20 + 30 ) = ( − 2 5 ) X = A^{-1}B = \frac{1}{2}\begin{pmatrix} 4 & -2 \\ -5 & 3 \end{pmatrix}\begin{pmatrix} 4 \\ 10 \end{pmatrix} = \frac{1}{2}\begin{pmatrix} 16 - 20 \\ -20 + 30 \end{pmatrix} = \begin{pmatrix} -2 \\ 5 \end{pmatrix} X = A − 1 B = 2 1 ( 4 − 5 − 2 3 ) ( 4 10 ) = 2 1 ( 16 − 20 − 20 + 30 ) = ( − 2 5 ) So x = − 2 x = -2 x = − 2 , y = 5 y = 5 y = 5 . Check: 3 ( − 2 ) + 2 ( 5 ) = 4 3(-2) + 2(5) = 4 3 ( − 2 ) + 2 ( 5 ) = 4 ✓ and 5 ( − 2 ) + 4 ( 5 ) = 10 5(-2) + 4(5) = 10 5 ( − 2 ) + 4 ( 5 ) = 10 ✓.
5. (Core) A school places three supply orders:
2 2 2 binders, 1 1 1 pack of pens and 1 1 1 ruler: $11.00
1 1 1 binder, 3 3 3 packs of pens and 2 2 2 rulers: $13.75
1 1 1 binder, 1 1 1 pack of pens and 4 4 4 rulers: $12.75
Write this as a matrix equation and use an inverse matrix to find the price of each item.
Solution Let b b b , p p p , r r r be the prices in dollars.
( 2 1 1 1 3 2 1 1 4 ) ( b p r ) = ( 11.00 13.75 12.75 ) \begin{pmatrix} 2 & 1 & 1 \\ 1 & 3 & 2 \\ 1 & 1 & 4 \end{pmatrix}\begin{pmatrix} b \\ p \\ r \end{pmatrix} = \begin{pmatrix} 11.00 \\ 13.75 \\ 12.75 \end{pmatrix} 2 1 1 1 3 1 1 2 4 b p r = 11.00 13.75 12.75 GDC: det A = 16 ≠ 0 \det A = 16 \ne 0 det A = 16 = 0 , and
( b p r ) = A − 1 ( 11.00 13.75 12.75 ) = ( 3.50 2.25 1.75 ) \begin{pmatrix} b \\ p \\ r \end{pmatrix} = A^{-1}\begin{pmatrix} 11.00 \\ 13.75 \\ 12.75 \end{pmatrix} = \begin{pmatrix} 3.50 \\ 2.25 \\ 1.75 \end{pmatrix} b p r = A − 1 11.00 13.75 12.75 = 3.50 2.25 1.75 A binder costs $3.50, a pack of pens $2.25 and a ruler $1.75. Check the first order: 7.00 + 2.25 + 1.75 = 11.00 7.00 + 2.25 + 1.75 = 11.00 7.00 + 2.25 + 1.75 = 11.00 ✓.
6. (Core) Let A = ( 2 1 5 3 ) A = \begin{pmatrix} 2 & 1 \\ 5 & 3 \end{pmatrix} A = ( 2 5 1 3 ) and B = ( 4 3 1 − 2 ) B = \begin{pmatrix} 4 & 3 \\ 1 & -2 \end{pmatrix} B = ( 4 1 3 − 2 ) . Find the matrix X X X such that X A = B XA = B X A = B .
Solution Multiply both sides on the right by A − 1 A^{-1} A − 1 : X A A − 1 = B A − 1 XAA^{-1} = BA^{-1} X A A − 1 = B A − 1 , so X = B A − 1 X = BA^{-1} X = B A − 1 .
det A = 6 − 5 = 1 \det A = 6 - 5 = 1 det A = 6 − 5 = 1 , so A − 1 = ( 3 − 1 − 5 2 ) A^{-1} = \begin{pmatrix} 3 & -1 \\ -5 & 2 \end{pmatrix} A − 1 = ( 3 − 5 − 1 2 ) .
X = ( 4 3 1 − 2 ) ( 3 − 1 − 5 2 ) = ( 12 − 15 − 4 + 6 3 + 10 − 1 − 4 ) = ( − 3 2 13 − 5 ) X = \begin{pmatrix} 4 & 3 \\ 1 & -2 \end{pmatrix}\begin{pmatrix} 3 & -1 \\ -5 & 2 \end{pmatrix} = \begin{pmatrix} 12 - 15 & -4 + 6 \\ 3 + 10 & -1 - 4 \end{pmatrix} = \begin{pmatrix} -3 & 2 \\ 13 & -5 \end{pmatrix} X = ( 4 1 3 − 2 ) ( 3 − 5 − 1 2 ) = ( 12 − 15 3 + 10 − 4 + 6 − 1 − 4 ) = ( − 3 13 2 − 5 ) Check: X A = ( − 6 + 10 − 3 + 6 26 − 25 13 − 15 ) = ( 4 3 1 − 2 ) = B XA = \begin{pmatrix} -6 + 10 & -3 + 6 \\ 26 - 25 & 13 - 15 \end{pmatrix} = \begin{pmatrix} 4 & 3 \\ 1 & -2 \end{pmatrix} = B X A = ( − 6 + 10 26 − 25 − 3 + 6 13 − 15 ) = ( 4 1 3 − 2 ) = B ✓.
7. (Core) A four-letter word was coded as in Example 4 (A = 1 A = 1 A = 1 , …, Z = 26 Z = 26 Z = 26 , letters in the columns of M M M , C = K M C = KM C = K M ), but with key K = ( 3 1 5 2 ) K = \begin{pmatrix} 3 & 1 \\ 5 & 2 \end{pmatrix} K = ( 3 5 1 2 ) . The coded matrix is C = ( 24 17 45 30 ) C = \begin{pmatrix} 24 & 17 \\ 45 & 30 \end{pmatrix} C = ( 24 45 17 30 ) . Find the word.
Solution det K = 6 − 5 = 1 \det K = 6 - 5 = 1 det K = 6 − 5 = 1 , so K − 1 = ( 2 − 1 − 5 3 ) K^{-1} = \begin{pmatrix} 2 & -1 \\ -5 & 3 \end{pmatrix} K − 1 = ( 2 − 5 − 1 3 ) .
M = K − 1 C = ( 2 − 1 − 5 3 ) ( 24 17 45 30 ) = ( 48 − 45 34 − 30 − 120 + 135 − 85 + 90 ) = ( 3 4 15 5 ) M = K^{-1}C = \begin{pmatrix} 2 & -1 \\ -5 & 3 \end{pmatrix}\begin{pmatrix} 24 & 17 \\ 45 & 30 \end{pmatrix} = \begin{pmatrix} 48 - 45 & 34 - 30 \\ -120 + 135 & -85 + 90 \end{pmatrix} = \begin{pmatrix} 3 & 4 \\ 15 & 5 \end{pmatrix} M = K − 1 C = ( 2 − 5 − 1 3 ) ( 24 45 17 30 ) = ( 48 − 45 − 120 + 135 34 − 30 − 85 + 90 ) = ( 3 15 4 5 ) Down the columns: 3 , 15 , 4 , 5 3, 15, 4, 5 3 , 15 , 4 , 5 , which is C , O , D , E C, O, D, E C , O , D , E . The word is CODE .
8. (Challenge) Let P = ( k 2 3 k + 1 ) P = \begin{pmatrix} k & 2 \\ 3 & k + 1 \end{pmatrix} P = ( k 3 2 k + 1 ) .
(a) Find the values of k k k for which P P P has no inverse.
(b) Find P − 1 P^{-1} P − 1 in terms of k k k , for all other values of k k k .
(c) Use your answer to find P − 1 P^{-1} P − 1 when k = 3 k = 3 k = 3 .
Solution (a) det P = k ( k + 1 ) − 6 = k 2 + k − 6 = ( k + 3 ) ( k − 2 ) \det P = k(k + 1) - 6 = k^2 + k - 6 = (k + 3)(k - 2) det P = k ( k + 1 ) − 6 = k 2 + k − 6 = ( k + 3 ) ( k − 2 ) . This is 0 0 0 when k = − 3 k = -3 k = − 3 or k = 2 k = 2 k = 2 .
(b)
P − 1 = 1 ( k + 3 ) ( k − 2 ) ( k + 1 − 2 − 3 k ) , k ≠ − 3 , k ≠ 2 P^{-1} = \frac{1}{(k + 3)(k - 2)}\begin{pmatrix} k + 1 & -2 \\ -3 & k \end{pmatrix}, \qquad k \ne -3,\ k \ne 2 P − 1 = ( k + 3 ) ( k − 2 ) 1 ( k + 1 − 3 − 2 k ) , k = − 3 , k = 2 (c) For k = 3 k = 3 k = 3 : ( k + 3 ) ( k − 2 ) = 6 × 1 = 6 (k + 3)(k - 2) = 6 \times 1 = 6 ( k + 3 ) ( k − 2 ) = 6 × 1 = 6 , so
P − 1 = 1 6 ( 4 − 2 − 3 3 ) P^{-1} = \frac{1}{6}\begin{pmatrix} 4 & -2 \\ -3 & 3 \end{pmatrix} P − 1 = 6 1 ( 4 − 3 − 2 3 ) Check: P = ( 3 2 3 4 ) P = \begin{pmatrix} 3 & 2 \\ 3 & 4 \end{pmatrix} P = ( 3 3 2 4 ) , and 1 6 ( 3 2 3 4 ) ( 4 − 2 − 3 3 ) = 1 6 ( 6 0 0 6 ) = I \dfrac{1}{6}\begin{pmatrix} 3 & 2 \\ 3 & 4 \end{pmatrix}\begin{pmatrix} 4 & -2 \\ -3 & 3 \end{pmatrix} = \dfrac{1}{6}\begin{pmatrix} 6 & 0 \\ 0 & 6 \end{pmatrix} = I 6 1 ( 3 3 2 4 ) ( 4 − 3 − 2 3 ) = 6 1 ( 6 0 0 6 ) = I ✓.
9. (Challenge) Let A = ( 2 0 1 1 ) A = \begin{pmatrix} 2 & 0 \\ 1 & 1 \end{pmatrix} A = ( 2 1 0 1 ) .
(a) Show that A 2 = 3 A − 2 I A^2 = 3A - 2I A 2 = 3 A − 2 I .
(b) Multiply both sides of this equation by A − 1 A^{-1} A − 1 to show that A − 1 = 1 2 ( 3 I − A ) A^{-1} = \dfrac{1}{2}(3I - A) A − 1 = 2 1 ( 3 I − A ) .
(c) Use (b) to find A − 1 A^{-1} A − 1 , and check it with the 2 × 2 2 \times 2 2 × 2 inverse formula.
Solution (a)
A 2 = ( 2 0 1 1 ) ( 2 0 1 1 ) = ( 4 0 3 1 ) , 3 A − 2 I = ( 6 − 2 0 3 3 − 2 ) = ( 4 0 3 1 ) A^2 = \begin{pmatrix} 2 & 0 \\ 1 & 1 \end{pmatrix}\begin{pmatrix} 2 & 0 \\ 1 & 1 \end{pmatrix} = \begin{pmatrix} 4 & 0 \\ 3 & 1 \end{pmatrix}, \qquad 3A - 2I = \begin{pmatrix} 6 - 2 & 0 \\ 3 & 3 - 2 \end{pmatrix} = \begin{pmatrix} 4 & 0 \\ 3 & 1 \end{pmatrix} A 2 = ( 2 1 0 1 ) ( 2 1 0 1 ) = ( 4 3 0 1 ) , 3 A − 2 I = ( 6 − 2 3 0 3 − 2 ) = ( 4 3 0 1 ) They’re equal. ✓
(b) det A = 2 ≠ 0 \det A = 2 \ne 0 det A = 2 = 0 , so A − 1 A^{-1} A − 1 exists. Multiply A 2 = 3 A − 2 I A^2 = 3A - 2I A 2 = 3 A − 2 I on the left by A − 1 A^{-1} A − 1 :
A − 1 A A = 3 A − 1 A − 2 A − 1 I ⇒ A = 3 I − 2 A − 1 A^{-1}AA = 3A^{-1}A - 2A^{-1}I \quad\Rightarrow\quad A = 3I - 2A^{-1} A − 1 AA = 3 A − 1 A − 2 A − 1 I ⇒ A = 3 I − 2 A − 1 Rearrange: 2 A − 1 = 3 I − A 2A^{-1} = 3I - A 2 A − 1 = 3 I − A , so A − 1 = 1 2 ( 3 I − A ) A^{-1} = \dfrac{1}{2}(3I - A) A − 1 = 2 1 ( 3 I − A ) .
(c)
A − 1 = 1 2 ( 3 − 2 0 − 1 3 − 1 ) = 1 2 ( 1 0 − 1 2 ) A^{-1} = \frac{1}{2}\begin{pmatrix} 3 - 2 & 0 \\ -1 & 3 - 1 \end{pmatrix} = \frac{1}{2}\begin{pmatrix} 1 & 0 \\ -1 & 2 \end{pmatrix} A − 1 = 2 1 ( 3 − 2 − 1 0 3 − 1 ) = 2 1 ( 1 − 1 0 2 ) Formula: 1 2 ( 1 0 − 1 2 ) \dfrac{1}{2}\begin{pmatrix} 1 & 0 \\ -1 & 2 \end{pmatrix} 2 1 ( 1 − 1 0 2 ) , the same. ✓