Linear Algebra Quiz: Matrix Operations
13 questions · exam conditions
0:00
Matrix OperationsQuestion 1 of 13

Given matrices A=(102130)A = \begin{pmatrix} 1 & 0 & 2 \\ -1 & 3 & 0 \end{pmatrix} and B=(201142)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?

5-5
4-4
1010
33
← Back to quizzes

Linear Algebra Quiz

Linear Algebra Quiz: Matrix Operations

Practice Matrix Operations in Linear Algebra with focused quiz questions that help you check what you know, review explanations, and build confidence with test-style prompts.

What this quiz covers

This quiz focuses on Matrix Operations, giving you a quick way to practice the rules, question types, and explanations that matter most for Linear Algebra.

How to use this quiz

Try each quiz question before looking at the correct answer. Use the explanations to review missed ideas, then come back to similar questions until the pattern feels familiar.

All questions

Question 1

Given matrices A=(102130)A = \begin{pmatrix} 1 & 0 & 2 \\ -1 & 3 & 0 \end{pmatrix} and B=(201142)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?

  1. 5-5 (correct answer)
  2. 4-4
  3. 1010
  4. 33
Explanation: 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 [214]\begin{bmatrix} 2 \\ -1 \\ 4 \end{bmatrix}. The dot product is (1)(2)+(3)(1)+(0)(4)=23+0=5(-1)(2) + (3)(-1) + (0)(4) = -2 - 3 + 0 = -5.

Question 2

Let matrices AA and BB be defined as A=(4017)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 3XA=B3X - A = B holds, what is the matrix XX?

  1. (2/324/38/3)\begin{pmatrix} 2/3 & 2 \\ 4/3 & 8/3 \end{pmatrix} (correct answer)
  2. (2222)\begin{pmatrix} -2 & 2 \\ 2 & -2 \end{pmatrix}
  3. (6181224)\begin{pmatrix} 6 & 18 \\ 12 & 24 \end{pmatrix}
  4. (10/322/322/3)\begin{pmatrix} 10/3 & 2 \\ 2/3 & 22/3 \end{pmatrix}
Explanation: To solve for XX, first rearrange the equation: 3X=A+B3X = A + B. Then, substitute the given matrices: 3X=(4017)+(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}.

Question 3

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 = \begin{pmatrix} 100 & 30 \ 80 & 50 \end{pmatrix} \quad C = \begin{pmatrix} 200 & 75 \ 350 & 125 \end{pmatrix}

  1. P+CP + C
  2. CPC P
  3. PCP C (correct answer)
  4. PTCP^T C
Explanation: 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).

Question 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?

  1. ABA B (correct answer)
  2. BAB A
  3. ACA C
  4. CBC B
Explanation: 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:\nA) 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.\nB) 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.\nC) 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.\nD) 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.

Question 5

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 (AI)2(A-I)^2?

  1. A2IA^2 - I
  2. A22A+IA^2 - 2A + I (correct answer)
  3. A22AIA^2 - 2A - I
  4. A2A+IA^2 - A + I
Explanation: To expand (AI)2(A-I)^2, we write it as (AI)(AI)(A-I)(A-I) and use the distributive property for matrices: (AI)(AI)=A(AI)I(AI)=A2AIIA+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 A2AA+I=A22A+IA^2 - A - A + I = A^2 - 2A + I.

Question 6

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}?

  1. The sum P13+P31=7P_{13} + P_{31} = 7, computed by finding the specified entries of the matrix product MN
  2. The sum P13+P31=9P_{13} + P_{31} = 9, computed by finding the specified entries of the matrix product MN (correct answer)
  3. The sum P13+P31=5P_{13} + P_{31} = 5, computed by finding the specified entries of the matrix product MN
  4. The sum P13+P31=11P_{13} + P_{31} = 11, computed by finding the specified entries of the matrix product MN
Explanation: 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.

Question 7

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.

  1. RS=SRRS = SR, demonstrating that matrix multiplication is commutative for these specific matrices
  2. RSSRRS \neq SR, with RS=(5754)RS = \begin{pmatrix} 5 & 7 \\ 5 & 4 \end{pmatrix} and $$SR = \begin{pmatrix} 4 & 7 \ 5 & 5 \end{pmatrix} (correct answer)
  3. RSSRRS \neq SR, with RS=(5754)RS = \begin{pmatrix} 5 & 7 \\ 5 & 4 \end{pmatrix} and $$SR = \begin{pmatrix} 4 & 5 \ 7 & 5 \end{pmatrix}
  4. RS=SRRS = SR, with both products equal to $$ \begin{pmatrix} 5 & 7 \ 5 & 4 \end{pmatrix}
Explanation: 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: $$ \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}

Question 8

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?

  1. BAB A
  2. AB+CA B + C
  3. CBTC B^T
  4. ACA C (correct answer)
Explanation: For matrix multiplication XYXY, the number of columns in XX must equal the number of rows in YY. Let's check each option:\nA) B2×3A3×2B_{2 \times 3} A_{3 \times 2}: Inner dimensions match (3=3). Defined.\nB) 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.\nC) BTB^T is 3×23 \times 2. C3×3B3×2TC_{3 \times 3} B^T_{3 \times 2}: Inner dimensions match (3=3). Defined.\nD) 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.

Question 9

Let A=(1235)A = \begin{pmatrix} 1 & -2 \\ 3 & 5 \end{pmatrix} and B=(0411)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?

  1. 6-6
  2. 1/3-1/3
  3. 55
  4. 66 (correct answer)
Explanation: The trace of a square matrix is the sum of its main diagonal elements. First, find the matrix A+kBA+kB: A+kB=(1235)+k(0411)=(1+0k2+4k3k5k)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)+(5k)(1) + (5-k). To have a trace of 0, we set this sum to 0: 1+5k=01 + 5 - k = 0, which simplifies to 6k=06 - k = 0. Solving for kk gives k=6k=6.

Question 10

Let P=(1201)P = \begin{pmatrix} 1 & 2 \\ 0 & -1 \end{pmatrix} and Q=(3120)Q = \begin{pmatrix} 3 & -1 \\ 2 & 0 \end{pmatrix}. Which matrix represents the commutator expression PQQPPQ - QP?

  1. (0000)\begin{pmatrix} 0 & 0 \\ 0 & 0 \end{pmatrix}
  2. (4844)\begin{pmatrix} -4 & 8 \\ 4 & 4 \end{pmatrix}
  3. (4844)\begin{pmatrix} 4 & -8 \\ -4 & -4 \end{pmatrix} (correct answer)
  4. (10604)\begin{pmatrix} 10 & 6 \\ 0 & 4 \end{pmatrix}
Explanation: First, calculate the product PQPQ: PQ=(1(3)+2(2)1(1)+2(0)0(3)+(1)(2)0(1)+(1)(0))=(7120)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: PQQP=(73172204)=(4844)PQ - QP = \begin{pmatrix} 7-3 & -1-7 \\ -2-2 & 0-4 \end{pmatrix} = \begin{pmatrix} 4 & -8 \\ -4 & -4 \end{pmatrix}.

Question 11

Consider the matrices A=(3612)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:

  1. (1001)\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}
  2. (0000)\begin{pmatrix} 0 & 0 \\ 0 & 0 \end{pmatrix} (correct answer)
  3. (1020510)\begin{pmatrix} 10 & -20 \\ 5 & -10 \end{pmatrix}
  4. (241200)\begin{pmatrix} 24 & 12 \\ 0 & 0 \end{pmatrix}
Explanation: To find the product ABAB, we perform matrix multiplication: AB=(3612)(4221)=((3)(4)+(6)(2)(3)(2)+(6)(1)(1)(4)+(2)(2)(1)(2)+(2)(1))=(1212664+42+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.

Question 12

If matrices AA, BB, and XX are all 2×22 \times 2 matrices that satisfy the equation 2(XA)=B2(X - A) = B, which of the following correctly expresses XX in terms of AA and BB?

  1. X=A+12BX = A + \frac{1}{2}B (correct answer)
  2. X=12BAX = \frac{1}{2}B - A
  3. X=12(A+B)X = \frac{1}{2}(A+B)
  4. X=A+2BX = A + 2B
Explanation: We solve the matrix equation for XX using algebraic properties that apply to matrices. First, distribute the scalar 2: 2X2A=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.

Question 13

If M=(2310)M = \begin{pmatrix} 2 & -3 \\ 1 & 0 \end{pmatrix}, what is the matrix M2M^2?

  1. (4910)\begin{pmatrix} 4 & 9 \\ 1 & 0 \end{pmatrix}
  2. (4620)\begin{pmatrix} 4 & -6 \\ 2 & 0 \end{pmatrix}
  3. (1623)\begin{pmatrix} 1 & -6 \\ 2 & -3 \end{pmatrix} (correct answer)
  4. (7623)\begin{pmatrix} 7 & -6 \\ 2 & -3 \end{pmatrix}
Explanation: The expression M2M^2 means the matrix product M×MM \times M. So, M2=(2310)(2310)=((2)(2)+(3)(1)(2)(3)+(3)(0)(1)(2)+(0)(1)(1)(3)+(0)(0))=(436+02+03+0)=(1623)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.