Example 1
Question: A factory produces three types of items: P, Q, and R. The sum of units of P and Q produced is 4 more than the units of R. Twice the units of P, plus the units of Q, minus the units of R equals 5. The units of Q added to twice the units of R is 3 more than the units of P. Let \( x \), \( y \), \( z \) denote the units of P, Q, R respectively. Express the system as a matrix equation \( AX = B \) and compute \( A^2 - 2I \).
Solution: Step 1: Form the equations from the given conditions. Condition 1: The sum of P and Q is 4 more than R, so \( x + y - z = 4 \). Condition 2: Twice P plus Q minus R equals 5, so \( 2x + y - z = 5 \). Condition 3: Q plus twice R is 3 more than P, so \( -x + y + 2z = 3 \). Step 2: Write the matrix equation \( AX = B \). The coefficient matrix is: \[A = \begin{bmatrix} 1 & 1 & -1 \\ 2 & 1 & -1 \\ -1 & 1 & 2 \end{bmatrix}\] Step 3: Compute \( A^2 = A \cdot A \). Row 1 of A times columns of A: Entry (1,1): \( (1)(1) + (1)(2) + (-1)(-1) = 1 + 2 + 1 = 4 \) Entry (1,2): \( (1)(1) + (1)(1) + (-1)(1) = 1 + 1 - 1 = 1 \) Entry (1,3): \( (1)(-1) + (1)(-1) + (-1)(2) = -1 - 1 - 2 = -4 \) Row 2 of A times columns of A: Entry (2,1): \( (2)(1) + (1)(2) + (-1)(-1) = 2 + 2 + 1 = 5 \) Entry (2,2): \( (2)(1) + (1)(1) + (-1)(1) = 2 + 1 - 1 = 2 \) Entry (2,3): \( (2)(-1) + (1)(-1) + (-1)(2) = -2 - 1 - 2 = -5 \) Row 3 of A times columns of A: Entry (3,1): \( (-1)(1) + (1)(2) + (2)(-1) = -1 + 2 - 2 = -1 \) Entry (3,2): \( (-1)(1) + (1)(1) + (2)(1) = -1 + 1 + 2 = 2 \) Entry (3,3): \( (-1)(-1) + (1)(-1) + (2)(2) = 1 - 1 + 4 = 4 \) So: \[A^2 = \begin{bmatrix} 4 & 1 & -4 \\ 5 & 2 & -5 \\ -1 & 2 & 4 \end{bmatrix}\] Step 4: Compute \( 2I \). \[2I = \begin{bmatrix} 2 & 0 & 0 \\ 0 & 2 & 0 \\ 0 & 0 & 2 \end{bmatrix}\] Step 5: Compute \( A^2 - 2I \). \[A^2 - 2I = \begin{bmatrix} 4-2 & 1-0 & -4-0 \\ 5-0 & 2-2 & -5-0 \\ -1-0 & 2-0 & 4-2 \end{bmatrix} = \begin{bmatrix} 2 & 1 & -4 \\ 5 & 0 & -5 \\ -1 & 2 & 2 \end{bmatrix}\]
Answer: \[A^2 - 2I = \begin{bmatrix} 2 & 1 & -4 \\ 5 & 0 & -5 \\ -1 & 2 & 2 \end{bmatrix}\]
Example 2
Question: A school tuck shop sells three items: sandwiches (s), juices (j), and cookies (c). The number of sandwiches sold exceeds the sum of juices and cookies by 2. Three times the sandwiches plus twice the juices plus the cookies total 18. The juices minus the cookies equals the sandwiches minus 1. Let \( x, y, z \) represent sandwiches, juices, and cookies respectively. Express the system in matrix form \( AX = B \) and find \( A^2 + 3I \).
Solution: Step 1: Form the equations. Condition 1: Sandwiches minus juices minus cookies equals 2, so \( x - y - z = 2 \). Condition 2: Three sandwiches plus twice the juices plus cookies equals 18, so \( 3x + 2y + z = 18 \). Condition 3: Juices minus cookies equals sandwiches minus 1, which gives \( -x + y - z = -1 \). Step 2: Write the coefficient matrix. \[A = \begin{bmatrix} 1 & -1 & -1 \\ 3 & 2 & 1 \\ -1 & 1 & -1 \end{bmatrix}\] Step 3: Compute \( A^2 = A \cdot A \). Row 1 of A times columns of A: Entry (1,1): \( (1)(1) + (-1)(3) + (-1)(-1) = 1 - 3 + 1 = -1 \) Entry (1,2): \( (1)(-1) + (-1)(2) + (-1)(1) = -1 - 2 - 1 = -4 \) Entry (1,3): \( (1)(-1) + (-1)(1) + (-1)(-1) = -1 - 1 + 1 = -1 \) Row 2 of A times columns of A: Entry (2,1): \( (3)(1) + (2)(3) + (1)(-1) = 3 + 6 - 1 = 8 \) Entry (2,2): \( (3)(-1) + (2)(2) + (1)(1) = -3 + 4 + 1 = 2 \) Entry (2,3): \( (3)(-1) + (2)(1) + (1)(-1) = -3 + 2 - 1 = -2 \) Row 3 of A times columns of A: Entry (3,1): \( (-1)(1) + (1)(3) + (-1)(-1) = -1 + 3 + 1 = 3 \) Entry (3,2): \( (-1)(-1) + (1)(2) + (-1)(1) = 1 + 2 - 1 = 2 \) Entry (3,3): \( (-1)(-1) + (1)(1) + (-1)(-1) = 1 + 1 + 1 = 3 \) So: \[A^2 = \begin{bmatrix} -1 & -4 & -1 \\ 8 & 2 & -2 \\ 3 & 2 & 3 \end{bmatrix}\] Step 4: Compute \( 3I \). \[3I = \begin{bmatrix} 3 & 0 & 0 \\ 0 & 3 & 0 \\ 0 & 0 & 3 \end{bmatrix}\] Step 5: Compute \( A^2 + 3I \). \[A^2 + 3I = \begin{bmatrix} -1+3 & -4+0 & -1+0 \\ 8+0 & 2+3 & -2+0 \\ 3+0 & 2+0 & 3+3 \end{bmatrix} = \begin{bmatrix} 2 & -4 & -1 \\ 8 & 5 & -2 \\ 3 & 2 & 6 \end{bmatrix}\]
Answer: \[A^2 + 3I = \begin{bmatrix} 2 & -4 & -1 \\ 8 & 5 & -2 \\ 3 & 2 & 6 \end{bmatrix}\]