Example 1
Question: Use the product of matrices \[\begin{pmatrix} 1 & -1 & 2 \\ 0 & 2 & -3 \\ 3 & -2 & 4 \end{pmatrix} \begin{pmatrix} 2 & 0 & -1 \\ 9 & 2 & -3 \\ 6 & 1 & -2 \end{pmatrix}\] to solve the system of equations: \[x - y + 2z = 1\] \[2y - 3z = 1\] \[3x - 2y + 4z = 2\]
Solution: Step 1: Compute the product \(P = AB\) where \[A = \begin{pmatrix} 1 & -1 & 2 \\ 0 & 2 & -3 \\ 3 & -2 & 4 \end{pmatrix}, \quad B = \begin{pmatrix} 2 & 0 & -1 \\ 9 & 2 & -3 \\ 6 & 1 & -2 \end{pmatrix}\] Row 1 of A times columns of B: Entry \((1,1)\): \((1)(2) + (-1)(9) + (2)(6) = 2 - 9 + 12 = 5\) Entry \((1,2)\): \((1)(0) + (-1)(2) + (2)(1) = 0 - 2 + 2 = 0\) Entry \((1,3)\): \((1)(-1) + (-1)(-3) + (2)(-2) = -1 + 3 - 4 = -2\) Wait — let me recheck entry (1,1). We need \(AB = kI\) for a clean inverse. Let me recompute carefully. Entry \((1,1)\): \(1\cdot2 + (-1)\cdot9 + 2\cdot6 = 2 - 9 + 12 = 5\) This does not immediately give a multiple of I. Let me recompute all entries systematically. Row 1: \((1, -1, 2)\) Row 2: \((0, 2, -3)\) Row 3: \((3, -2, 4)\) Column 1 of B: \((2, 9, 6)^T\) Column 2 of B: \((0, 2, 1)^T\) Column 3 of B: \((-1,-3,-2)^T\) \(P_{11} = 1\cdot2 + (-1)\cdot9 + 2\cdot6 = 2-9+12 = 5\) \(P_{12} = 1\cdot0 + (-1)\cdot2 + 2\cdot1 = 0-2+2 = 0\) \(P_{13} = 1\cdot(-1)+(-1)\cdot(-3)+2\cdot(-2) = -1+3-4 = -2\) These entries do not form a scalar multiple of I, so let me use a verified pair. We instead verify: \(P_{21} = 0\cdot2+2\cdot9+(-3)\cdot6 = 0+18-18 = 0\) \(P_{22} = 0\cdot0+2\cdot2+(-3)\cdot1 = 0+4-3 = 1\) \(P_{23} = 0\cdot(-1)+2\cdot(-3)+(-3)\cdot(-2) = 0-6+6 = 0\) \(P_{31} = 3\cdot2+(-2)\cdot9+4\cdot6 = 6-18+24 = 12\) Since \(P_{11}=5\) and \(P_{31}=12\), this is not a scalar multiple of I. The correct product with the given B gives: \[AB = \begin{pmatrix} 5 & 0 & -2 \\ 0 & 1 & 0 \\ 12 & 0 & -5 \end{pmatrix}\] This is not \(kI\). Let me use the correct B that makes \(AB = I\). The actual inverse of A can be computed via cofactors. \(\det(A) = 1(2\cdot4 - (-3)(-2)) - (-1)(0\cdot4-(-3)\cdot3) + 2(0\cdot(-2)-2\cdot3)\) \(= 1(8-6)+1(0+9)+2(0-6)\) \(= 2 + 9 - 12 = -1\) So \(\det(A) = -1\). Cofactor matrix (each \(C_{ij} = (-1)^{i+j}M_{ij}\)): \(C_{11} = +(2\cdot4-(-3)(-2)) = 8-6 = 2\) \(C_{12} = -(0\cdot4-(-3)\cdot3) = -(0+9) = -9\) \(C_{13} = +(0\cdot(-2)-2\cdot3) = -6\) \(C_{21} = -((-1)\cdot4-2\cdot(-2)) = -(-4+4) = 0\) \(C_{22} = +(1\cdot4-2\cdot3) = 4-6 = -2\) \(C_{23} = -(1\cdot(-2)-(-1)\cdot3) = -(-2+3) = -1\) \(C_{31} = +((-1)(-3)-2\cdot2) = 3-4 = -1\) \(C_{32} = -(1\cdot(-3)-2\cdot0) = -(-3) = 3\) \(C_{33} = +(1\cdot2-(-1)\cdot0) = 2\) Adjoint (transpose of cofactor matrix): \[\text{adj}(A) = \begin{pmatrix} 2 & 0 & -1 \\ -9 & -2 & 3 \\ -6 & -1 & 2 \end{pmatrix}\] Now use the correct B: \[B = \begin{pmatrix} 2 & 0 & -1 \\ -9 & -2 & 3 \\ -6 & -1 & 2 \end{pmatrix}\] Verify \(AB\): Row 1 of A: \((1,-1,2)\) \(P_{11}=1\cdot2+(-1)(-9)+2(-6)=2+9-12=-1\) \(P_{12}=1\cdot0+(-1)(-2)+2(-1)=0+2-2=0\) \(P_{13}=1(-1)+(-1)(3)+2(2)=-1-3+4=0\) Row 2 of A: \((0,2,-3)\) \(P_{21}=0\cdot2+2(-9)+(-3)(-6)=0-18+18=0\) \(P_{22}=0\cdot0+2(-2)+(-3)(-1)=0-4+3=-1\) \(P_{23}=0(-1)+2(3)+(-3)(2)=0+6-6=0\) Row 3 of A: \((3,-2,4)\) \(P_{31}=3(2)+(-2)(-9)+4(-6)=6+18-24=0\) \(P_{32}=3(0)+(-2)(-2)+4(-1)=0+4-4=0\) \(P_{33}=3(-1)+(-2)(3)+4(2)=-3-6+8=-1\) So \[AB = \begin{pmatrix} -1 & 0 & 0 \\ 0 & -1 & 0 \\ 0 & 0 & -1 \end{pmatrix} = -I\] Therefore \(AB = -I\), which gives \(A^{-1} = -B\): \[A^{-1} = \begin{pmatrix} -2 & 0 & 1 \\ 9 & 2 & -3 \\ 6 & 1 & -2 \end{pmatrix}\] Step 2: Write the system in matrix form \(AX = C\) where \[C = \begin{pmatrix} 1 \\ 1 \\ 2 \end{pmatrix}\] Step 3: Solve \(X = A^{-1}C\): \[X = \begin{pmatrix} -2 & 0 & 1 \\ 9 & 2 & -3 \\ 6 & 1 & -2 \end{pmatrix} \begin{pmatrix} 1 \\ 1 \\ 2 \end{pmatrix}\] \(x = (-2)(1)+(0)(1)+(1)(2) = -2+0+2 = 0\) \(y = (9)(1)+(2)(1)+(-3)(2) = 9+2-6 = 5\) \(z = (6)(1)+(1)(1)+(-2)(2) = 6+1-4 = 3\) Step 4: Verify in the original equations. Equation 1: \(x - y + 2z = 0 - 5 + 6 = 1\) Correct. Equation 2: \(2y - 3z = 10 - 9 = 1\) Correct. Equation 3: \(3x - 2y + 4z = 0 - 10 + 12 = 2\) Correct.
Answer: \(x = 0,\; y = 5,\; z = 3\)
Example 2
Question: Use the product of matrices \[\begin{pmatrix} 2 & 1 & 1 \\ 1 & -1 & -1 \\ 1 & 1 & 2 \end{pmatrix} \begin{pmatrix} -1 & 1 & 0 \\ 3 & -3 & 3 \\ -2 & 1 & -3 \end{pmatrix}\] to solve the system of equations: \[2x + y + z = 5\] \[x - y - z = -3\] \[x + y + 2z = 8\]
Solution: Step 1: Let \[A = \begin{pmatrix} 2 & 1 & 1 \\ 1 & -1 & -1 \\ 1 & 1 & 2 \end{pmatrix}, \quad B = \begin{pmatrix} -1 & 1 & 0 \\ 3 & -3 & 3 \\ -2 & 1 & -3 \end{pmatrix}\] Compute \(AB\) entry by entry. Row 1 of A: \((2,1,1)\) \(P_{11}=2(-1)+1(3)+1(-2)=-2+3-2=-1\) \(P_{12}=2(1)+1(-3)+1(1)=2-3+1=0\) \(P_{13}=2(0)+1(3)+1(-3)=0+3-3=0\) Row 2 of A: \((1,-1,-1)\) \(P_{21}=1(-1)+(-1)(3)+(-1)(-2)=-1-3+2=-2\) Hmm, for \(AB = kI\) we need off-diagonal entries to be zero and diagonal entries equal. Let me recheck. \(P_{21}=1(-1)+(-1)(3)+(-1)(-2)=-1-3+2=-2\) This gives \(-2\) not 0. Let me recompute using the correct B that is the adjoint (scaled inverse). I will compute \(\det(A)\) first. \(\det(A) = 2[(-1)(2)-(- 1)(1)] - 1[(1)(2)-(-1)(1)] + 1[(1)(1)-(-1)(1)]\) \(= 2[-2+1] - 1[2+1] + 1[1+1]\) \(= 2(-1) - 1(3) + 1(2)\) \(= -2 - 3 + 2 = -3\) Now compute all cofactors: \(C_{11} = +((-1)(2)-(-1)(1)) = -2+1 = -1\) \(C_{12} = -((1)(2)-(-1)(1)) = -(2+1) = -3\) \(C_{13} = +((1)(1)-(-1)(1)) = 1+1 = 2\) \(C_{21} = -((1)(2)-(1)(1)) = -(2-1) = -1\) \(C_{22} = +((2)(2)-(1)(1)) = 4-1 = 3\) \(C_{23} = -((2)(1)-(1)(1)) = -(2-1) = -1\) \(C_{31} = +((1)(-1)-(1)(-1)) = -1+1 = 0\) \(C_{32} = -((2)(-1)-(1)(1)) = -(-2-1) = 3\) \(C_{33} = +((2)(-1)-(1)(1)) = -2-1 = -3\) Adjoint (transpose of cofactor matrix): \[\text{adj}(A) = \begin{pmatrix} -1 & -1 & 0 \\ -3 & 3 & 3 \\ 2 & -1 & -3 \end{pmatrix}\] Now compute \(AB\) with \[B = \begin{pmatrix} -1 & -1 & 0 \\ -3 & 3 & 3 \\ 2 & -1 & -3 \end{pmatrix}\] Row 1 of A: \((2,1,1)\) \(P_{11}=2(-1)+1(-3)+1(2)=-2-3+2=-3\) \(P_{12}=2(-1)+1(3)+1(-1)=-2+3-1=0\) \(P_{13}=2(0)+1(3)+1(-3)=0+3-3=0\) Row 2 of A: \((1,-1,-1)\) \(P_{21}=1(-1)+(-1)(-3)+(-1)(2)=-1+3-2=0\) \(P_{22}=1(-1)+(-1)(3)+(-1)(-1)=-1-3+1=-3\) \(P_{23}=1(0)+(-1)(3)+(-1)(-3)=0-3+3=0\) Row 3 of A: \((1,1,2)\) \(P_{31}=1(-1)+1(-3)+2(2)=-1-3+4=0\) \(P_{32}=1(-1)+1(3)+2(-1)=-1+3-2=0\) \(P_{33}=1(0)+1(3)+2(-3)=0+3-6=-3\) So \[AB = \begin{pmatrix} -3 & 0 & 0 \\ 0 & -3 & 0 \\ 0 & 0 & -3 \end{pmatrix} = -3I\] This confirms \(AB = -3I\), which equals \(\det(A) \cdot I\), as expected (since \(A \cdot \text{adj}(A) = \det(A) \cdot I\)). Therefore \(A^{-1} = \dfrac{1}{-3}B = -\dfrac{1}{3}B\): \[A^{-1} = \frac{1}{3}\begin{pmatrix} 1 & 1 & 0 \\ 3 & -3 & -3 \\ -2 & 1 & 3 \end{pmatrix}\] Step 2: Write the system as \(AX = C\) where \[C = \begin{pmatrix} 5 \\ -3 \\ 8 \end{pmatrix}\] Step 3: Solve \(X = A^{-1}C\): \[X = \frac{1}{3}\begin{pmatrix} 1 & 1 & 0 \\ 3 & -3 & -3 \\ -2 & 1 & 3 \end{pmatrix} \begin{pmatrix} 5 \\ -3 \\ 8 \end{pmatrix}\] Compute the matrix-vector product first: Row 1: \(1(5)+1(-3)+0(8)=5-3+0=2\) Row 2: \(3(5)+(-3)(-3)+(-3)(8)=15+9-24=0\) Row 3: \((-2)(5)+1(-3)+3(8)=-10-3+24=11\) Therefore: \[X = \frac{1}{3}\begin{pmatrix} 2 \\ 0 \\ 11 \end{pmatrix} = \begin{pmatrix} 2/3 \\ 0 \\ 11/3 \end{pmatrix}\] Step 4: Verify in the original equations. Equation 1: \(2(\tfrac{2}{3})+0+\tfrac{11}{3} = \tfrac{4}{3}+\tfrac{11}{3}=\tfrac{15}{3}=5\) Correct. Equation 2: \(\tfrac{2}{3}-0-\tfrac{11}{3}=\tfrac{2-11}{3}=\tfrac{-9}{3}=-3\) Correct. Equation 3: \(\tfrac{2}{3}+0+2\cdot\tfrac{11}{3}=\tfrac{2}{3}+\tfrac{22}{3}=\tfrac{24}{3}=8\) Correct.
Answer: \(x = \dfrac{2}{3},\; y = 0,\; z = \dfrac{11}{3}\)