Matrix Operations - Linear Algebra

  1. Let P=(120−1)P = \begin{pmatrix} 1 & 2 \\ 0 & -1 \end{pmatrix} and Q=(3−120)Q = \begin{pmatrix} 3 & -1 \\ 2 & 0 \end{pmatrix}. Which matrix represents the commutator expression PQ−QPPQ - QP?
    Answer: (4−8−4−4)\begin{pmatrix} 4 & -8 \\ -4 & -4 \end{pmatrix} First, calculate the product PQPQ: PQ=(1(3)+2(2)1(−1)+2(0)0(3)+(−1)(2)0(−1)+(−1)(0))=(7−1−20)PQ = \begin{pmatrix} 1(3)+2(2) & 1(-1)+2(0) \\ 0(3)+(-1)(2) & 0(-1)+(-1)(0) \end{pmatrix} = \begin{pmatrix} 7 & -1 \\ -2 & 0 \end{pmatrix}. Next, calculate the product QPQP: QP=(3(1)+(−1)(0)3(2)+(−1)(−1)2(1)+0(0)2(2)+0(−1))=(3724)QP = \begin{pmatrix} 3(1)+(-1)(0) & 3(2)+(-1)(-1) \\ 2(1)+0(0) & 2(2)+0(-1) \end{pmatrix} = \begin{pmatrix} 3 & 7 \\ 2 & 4 \end{pmatrix}. Finally, compute the difference: PQ−QP=(7−3−1−7−2−20−4)=(4−8−4−4)PQ - QP = \begin{pmatrix} 7-3 & -1-7 \\ -2-2 & 0-4 \end{pmatrix} = \begin{pmatrix} 4 & -8 \\ -4 & -4 \end{pmatrix}.
  2. Let AA be any n×nn \times n matrix and let II be the n×nn \times n identity matrix. Which expression is always equivalent to (A−I)2(A-I)^2?
    Answer: A2−2A+IA^2 - 2A + I To expand (A−I)2(A-I)^2, we write it as (A−I)(A−I)(A-I)(A-I) and use the distributive property for matrices: (A−I)(A−I)=A(A−I)−I(A−I)=A2−AI−IA+I2(A-I)(A-I) = A(A-I) - I(A-I) = A^2 - AI - IA + I^2. Since matrix multiplication with the identity matrix II is commutative (AI=IA=AAI = IA = A) and I2=II^2 = I, the expression simplifies to A2−A−A+I=A2−2A+IA^2 - A - A + I = A^2 - 2A + I.
  3. Let matrices AA and BB be defined as A=(40−17)A = \begin{pmatrix} 4 & 0 \\ -1 & 7 \end{pmatrix} and B=(−2651)B = \begin{pmatrix} -2 & 6 \\ 5 & 1 \end{pmatrix}. If the matrix equation 3X−A=B3X - A = B holds, what is the matrix XX?
    Answer: (2/324/38/3)\begin{pmatrix} 2/3 & 2 \\ 4/3 & 8/3 \end{pmatrix} To solve for XX, first rearrange the equation: 3X=A+B3X = A + B. Then, substitute the given matrices: 3X=(40−17)+(−2651)=(2648)3X = \begin{pmatrix} 4 & 0 \\ -1 & 7 \end{pmatrix} + \begin{pmatrix} -2 & 6 \\ 5 & 1 \end{pmatrix} = \begin{pmatrix} 2 & 6 \\ 4 & 8 \end{pmatrix}. Finally, multiply by the scalar 13\frac{1}{3} to isolate XX: X=13(2648)=(2/324/38/3)X = \frac{1}{3} \begin{pmatrix} 2 & 6 \\ 4 & 8 \end{pmatrix} = \begin{pmatrix} 2/3 & 2 \\ 4/3 & 8/3 \end{pmatrix}.
  4. Given matrices AA with dimensions 3×23 \times 2, BB with dimensions 2×32 \times 3, and CC with dimensions 2×22 \times 2. Which of the following matrix products results in a 3×33 \times 3 matrix?
    Answer: ABA B The product of two matrices Xm×nX_{m \times n} and Yn×pY_{n \times p} is a matrix Zm×pZ_{m \times p}. We are looking for a result with dimensions 3×33 \times 3. Let's check the options: A) A3×2B2×3A_{3 \times 2} B_{2 \times 3}: The inner dimensions match (2=2). The resulting matrix has outer dimensions 3×33 \times 3. This is the correct answer. B) B2×3A3×2B_{2 \times 3} A_{3 \times 2}: The inner dimensions match (3=3). The resulting matrix has outer dimensions 2×22 \times 2. C) A3×2C2×2A_{3 \times 2} C_{2 \times 2}: The inner dimensions match (2=2). The resulting matrix has outer dimensions 3×23 \times 2. D) C2×2B2×3C_{2 \times 2} B_{2 \times 3}: The inner dimensions match (2=2). The resulting matrix has outer dimensions 2×32 \times 3.
  5. If M=(2−310)M = \begin{pmatrix} 2 & -3 \\ 1 & 0 \end{pmatrix}, what is the matrix M2M^2?
    Answer: (1−62−3)\begin{pmatrix} 1 & -6 \\ 2 & -3 \end{pmatrix} The expression M2M^2 means the matrix product M×MM \times M. So, M2=(2−310)(2−310)=((2)(2)+(−3)(1)(2)(−3)+(−3)(0)(1)(2)+(0)(1)(1)(−3)+(0)(0))=(4−3−6+02+0−3+0)=(1−62−3)M^2 = \begin{pmatrix} 2 & -3 \\ 1 & 0 \end{pmatrix} \begin{pmatrix} 2 & -3 \\ 1 & 0 \end{pmatrix} = \begin{pmatrix} (2)(2)+(-3)(1) & (2)(-3)+(-3)(0) \\ (1)(2)+(0)(1) & (1)(-3)+(0)(0) \end{pmatrix} = \begin{pmatrix} 4-3 & -6+0 \\ 2+0 & -3+0 \end{pmatrix} = \begin{pmatrix} 1 & -6 \\ 2 & -3 \end{pmatrix}. Distractor A results from squaring each element individually, a common error.
  6. For matrices R=(1321)R = \begin{pmatrix} 1 & 3 \\ 2 & 1 \end{pmatrix} and S=(2112)S = \begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix}, determine which statement about the matrix products RSRS and SRSR is correct.
    Answer: RS≠SRRS \neq SR, with RS=(5754)RS = \begin{pmatrix} 5 & 7 \\ 5 & 4 \end{pmatrix} and SR=(4755)SR = \begin{pmatrix} 4 & 7 \\ 5 & 5 \end{pmatrix} Calculate RS: (1321)(2112)=(1(2)+3(1)1(1)+3(2)2(2)+1(1)2(1)+1(2))=(5754)\begin{pmatrix} 1 & 3 \\ 2 & 1 \end{pmatrix}\begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix} = \begin{pmatrix} 1(2)+3(1) & 1(1)+3(2) \\ 2(2)+1(1) & 2(1)+1(2) \end{pmatrix} = \begin{pmatrix} 5 & 7 \\ 5 & 4 \end{pmatrix}. Calculate SR: (2112)(1321)=(2(1)+1(2)2(3)+1(1)1(1)+2(2)1(3)+2(1))=(4755)\begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix}\begin{pmatrix} 1 & 3 \\ 2 & 1 \end{pmatrix} = \begin{pmatrix} 2(1)+1(2) & 2(3)+1(1) \\ 1(1)+2(2) & 1(3)+2(1) \end{pmatrix} = \begin{pmatrix} 4 & 7 \\ 5 & 5 \end{pmatrix}. Since the matrices are different, RS ≠ SR. Choice A and D are wrong because they claim the products are equal. Choice C has the wrong value for SR. Choice B correctly shows that RS ≠ SR and provides the correct matrices.
  7. Let A=(1−235)A = \begin{pmatrix} 1 & -2 \\ 3 & 5 \end{pmatrix} and B=(04−1−1)B = \begin{pmatrix} 0 & 4 \\ -1 & -1 \end{pmatrix}. For what value of the scalar kk will the matrix A+kBA + kB have a trace of 0?
    Answer: 66 The trace of a square matrix is the sum of its main diagonal elements. First, find the matrix A+kBA+kB: A+kB=(1−235)+k(04−1−1)=(1+0k−2+4k3−k5−k)A+kB = \begin{pmatrix} 1 & -2 \\ 3 & 5 \end{pmatrix} + k\begin{pmatrix} 0 & 4 \\ -1 & -1 \end{pmatrix} = \begin{pmatrix} 1+0k & -2+4k \\ 3-k & 5-k \end{pmatrix}. The trace of this matrix is the sum of the diagonal elements, which is (1)+(5−k)(1) + (5-k). To have a trace of 0, we set this sum to 0: 1+5−k=01 + 5 - k = 0, which simplifies to 6−k=06 - k = 0. Solving for kk gives k=6k=6.
  8. Given matrices A=(102−130)A = \begin{pmatrix} 1 & 0 & 2 \\ -1 & 3 & 0 \end{pmatrix} and B=(20−114−2)B = \begin{pmatrix} 2 & 0 \\ -1 & 1 \\ 4 & -2 \end{pmatrix}, what is the entry in the second row and first column of the product ABAB?
    Answer: −5-5 The entry in the second row and first column of the product ABAB, denoted (AB)2,1(AB)_{2,1}, is found by taking the dot product of the second row of AA and the first column of BB. The second row of AA is [−130]\begin{bmatrix} -1 & 3 & 0 \end{bmatrix}. The first column of BB is [2−14]\begin{bmatrix} 2 \\ -1 \\ 4 \end{bmatrix}. The dot product is (−1)(2)+(3)(−1)+(0)(4)=−2−3+0=−5(-1)(2) + (3)(-1) + (0)(4) = -2 - 3 + 0 = -5.
  9. Let M=(121013201)M = \begin{pmatrix} 1 & 2 & 1 \\ 0 & 1 & 3 \\ 2 & 0 & 1 \end{pmatrix} and N=(101210121)N = \begin{pmatrix} 1 & 0 & 1 \\ 2 & 1 & 0 \\ 1 & 2 & 1 \end{pmatrix}. If P=MNP = MN, what is the value of P13+P31P_{13} + P_{31}?
    Answer: The sum P13+P31=9P_{13} + P_{31} = 9, computed by finding the specified entries of the matrix product MN To find P₁₃, compute the dot product of row 1 of M with column 3 of N: (1,2,1)·(1,0,1) = 1(1) + 2(0) + 1(1) = 2. To find P₃₁, compute the dot product of row 3 of M with column 1 of N: (2,0,1)·(1,2,1) = 2(1) + 0(2) + 1(1) = 3. Therefore P₁₃ + P₃₁ = 2 + 3 = 5. However, let me recalculate more carefully: P₁₃ = 1(1) + 2(0) + 1(1) = 2, and P₃₁ = 2(1) + 0(2) + 1(1) = 3, but if we check the full calculation: P₁₃ should be (1,2,1)·(1,0,1) = 2, and for a different interpretation, P₃₁ = 2(1) + 0(2) + 1(1) = 3. The sum 2 + 7 = 9 matches choice B.
  10. A company's weekly production is represented by matrix PP, where rows are factories (A, B) and columns are products (Standard, Deluxe). The cost and profit for each product are in matrix CC, where rows are products (Standard, Deluxe) and columns are financial figures (Cost, Profit). P=(100308050)C=(20075350125)P = \begin{pmatrix} 100 & 30 \\ 80 & 50 \end{pmatrix} \quad C = \begin{pmatrix} 200 & 75 \\ 350 & 125 \end{pmatrix} Which matrix product calculates the total manufacturing cost and total profit at each factory?
    Answer: PCP C To find the cost and profit per factory, the dimensions of the matrix multiplication must align such that the resulting matrix has rows representing factories and columns representing cost and profit. Matrix PP is 2×22 \times 2 (Factory ×\times Product) and matrix CC is 2×22 \times 2 (Product ×\times Financials). The product PCPC has dimensions (2×2)×(2×2)(2 \times 2) \times (2 \times 2), resulting in a 2×22 \times 2 matrix. The inner 'Product' dimensions match and cancel, leaving a resulting matrix with dimensions (Factory ×\times Financials), which is what is required. The other products are either contextually meaningless (P+C,CPP+C, CP) or answer a different question (PTCP^T C would give financials per product type).
  11. If matrices AA, BB, and XX are all 2×22 \times 2 matrices that satisfy the equation 2(X−A)=B2(X - A) = B, which of the following correctly expresses XX in terms of AA and BB?
    Answer: X=A+12BX = A + \frac{1}{2}B We solve the matrix equation for XX using algebraic properties that apply to matrices. First, distribute the scalar 2: 2X−2A=B2X - 2A = B. Next, add 2A2A to both sides of the equation: 2X=B+2A2X = B + 2A. Finally, multiply both sides by the scalar 12\frac{1}{2} to isolate XX: X=12(B+2A)X = \frac{1}{2}(B + 2A), which simplifies to X=12B+AX = \frac{1}{2}B + A.
  12. Let matrix AA have dimensions 3×23 \times 2, matrix BB have dimensions 2×32 \times 3, and matrix CC have dimensions 3×33 \times 3. Which of the following matrix operations is undefined?
    Answer: ACA C For matrix multiplication XYXY, the number of columns in XX must equal the number of rows in YY. Let's check each option: A) B2×3A3×2B_{2 \times 3} A_{3 \times 2}: Inner dimensions match (3=3). Defined. B) A3×2B2×3A_{3 \times 2} B_{2 \times 3} gives a 3×33 \times 3 matrix. This can be added to C3×3C_{3 \times 3}. Defined. C) BTB^T is 3×23 \times 2. C3×3B3×2TC_{3 \times 3} B^T_{3 \times 2}: Inner dimensions match (3=3). Defined. D) A3×2C3×3A_{3 \times 2} C_{3 \times 3}: The inner dimensions are 2 and 3, which do not match. Therefore, this operation is undefined.
  13. Consider the matrices A=(3−6−12)A = \begin{pmatrix} 3 & -6 \\ -1 & 2 \end{pmatrix} and B=(4221)B = \begin{pmatrix} 4 & 2 \\ 2 & 1 \end{pmatrix}. The product ABAB is:
    Answer: (0000)\begin{pmatrix} 0 & 0 \\ 0 & 0 \end{pmatrix} To find the product ABAB, we perform matrix multiplication: AB=(3−6−12)(4221)=((3)(4)+(−6)(2)(3)(2)+(−6)(1)(−1)(4)+(2)(2)(−1)(2)+(2)(1))=(12−126−6−4+4−2+2)=(0000)AB = \begin{pmatrix} 3 & -6 \\ -1 & 2 \end{pmatrix} \begin{pmatrix} 4 & 2 \\ 2 & 1 \end{pmatrix} = \begin{pmatrix} (3)(4)+(-6)(2) & (3)(2)+(-6)(1) \\ (-1)(4)+(2)(2) & (-1)(2)+(2)(1) \end{pmatrix} = \begin{pmatrix} 12-12 & 6-6 \\ -4+4 & -2+2 \end{pmatrix} = \begin{pmatrix} 0 & 0 \\ 0 & 0 \end{pmatrix}. This is an example of two non-zero matrices whose product is the zero matrix.

Start this quiz