SOLVER7 Study. Nothing Else.
Chapter 3 Examples Q16

If \( A=\left[ \begin{array}\text 1&1&-1\\ 2&0&3\\ 3&-1&2\end{array} \right],B \left[ \begin{array}\text 1&3\\ 0&2\\ -1&4\end{array} \right]and\ C \left[ \begin{array}\text 1&2&3&-4\\ 2&0&-2&1\end{array} \right],\) find A(BC), (AB)C and show that (AB)C = A(BC).

CBSE Class 12 Maths · Matrices

Solution

👶 Simple Explanation

Simple Explanation

Imagine you are folding laundry in two different ways, but you always end up with the same neat pile. Matrices are grids of numbers, and multiplying them is like following a special recipe. When three matrices are multiplied together, it does not matter if you combine the first two first or the last two first. The final result is always identical. This rule is called the associative property, and here we check it by computing both groupings and seeing that both give the same grid of numbers.

Answer: Both products are equal: \[A(BC) = (AB)C = \begin{bmatrix} 4 & 4 & 4 & -7 \\ 35 & -2 & -39 & 22 \\ 31 & 2 & -27 & 11 \end{bmatrix}.\] Hence \((AB)C = A(BC)\) is verified.

📖 Verifying Associativity of Matrix Multiplication: (AB)C = A(BC)

Detailed Explanation

Matrix multiplication is defined only when the number of columns of the first matrix equals the number of rows of the second matrix. Here \(A\) is a \(3 \times 3\) matrix, \(B\) is a \(3 \times 2\) matrix, and \(C\) is a \(2 \times 4\) matrix. So \(BC\) is a \(3 \times 4\) matrix, and \(A(BC)\) is a \(3 \times 4\) matrix. Also \(AB\) is a \(3 \times 2\) matrix, and \((AB)C\) is a \(3 \times 4\) matrix. Both products have the same order. The associative law of matrix multiplication states that \((AB)C = A(BC)\) whenever the products are defined. We verify this by computing both sides and showing they are equal. The \((i,j)\) entry of a product is obtained by taking the dot product of the \(i\)-th row of the left matrix with the \(j\)-th column of the right matrix.

Formula Used

If \(P = MN\), then the entry \(p_{ij} = \sum_{k} m_{ik} n_{kj}\). Associative law: \((AB)C = A(BC)\).

Solution

  1. Step 1: Write the matrices: The given matrices are \[A = \begin{bmatrix} 1 & 1 & -1 \\ 2 & 0 & 3 \\ 3 & -1 & 2 \end{bmatrix}, \quad B = \begin{bmatrix} 1 & 3 \\ 0 & 2 \\ -1 & 4 \end{bmatrix}, \quad C = \begin{bmatrix} 1 & 2 & 3 & -4 \\ 2 & 0 & -2 & 1 \end{bmatrix}.\] Here \(A\) is \(3 \times 3\), \(B\) is \(3 \times 2\), \(C\) is \(2 \times 4\).
  2. Step 2: Compute BC (order 3 x 4): Multiply \(B\) (\(3 \times 2\)) by \(C\) (\(2 \times 4\)). Each entry is a row of \(B\) dotted with a column of \(C\). Row 1 of \(B\) is \((1, 3)\): entries are \(1(1)+3(2)=7\), \(1(2)+3(0)=2\), \(1(3)+3(-2)=-3\), \(1(-4)+3(1)=-1\). Row 2 is \((0,2)\): \(0+4=4\), \(0+0=0\), \(0-4=-4\), \(0+2=2\). Row 3 is \((-1,4)\): \(-1+8=7\), \(-2+0=-2\), \(-3-8=-11\), \(4+4=8\). So \[BC = \begin{bmatrix} 7 & 2 & -3 & -1 \\ 4 & 0 & -4 & 2 \\ 7 & -2 & -11 & 8 \end{bmatrix}.\]
  3. Step 3: Compute A(BC) (order 3 x 4): Multiply \(A\) (\(3 \times 3\)) by \(BC\) (\(3 \times 4\)). Row 1 of \(A\) is \((1,1,-1)\): column 1: \(7+4-7=4\); column 2: \(2+0-(-2)=4\); column 3: \(-3-4-(-11)=4\); column 4: \(-1+2-8=-7\). Row 2 is \((2,0,3)\): \(14+0+21=35\); \(4+0-6=-2\); \(-6+0-33=-39\); \(-2+0+24=22\). Row 3 is \((3,-1,2)\): \(21-4+14=31\); \(6-0-4=2\); \(-9+4-22=-27\); \(-3-2+16=11\). So \[A(BC) = \begin{bmatrix} 4 & 4 & 4 & -7 \\ 35 & -2 & -39 & 22 \\ 31 & 2 & -27 & 11 \end{bmatrix}.\]
  4. Step 4: Compute AB (order 3 x 2): Multiply \(A\) (\(3 \times 3\)) by \(B\) (\(3 \times 2\)). Row 1 of \(A\) is \((1,1,-1)\): column 1 of \(B\) is \((1,0,-1)\), giving \(1+0+1=2\); column 2 is \((3,2,4)\), giving \(3+2-4=1\). Row 2 is \((2,0,3)\): \(2+0-3=-1\); \(6+0+12=18\). Row 3 is \((3,-1,2)\): \(3-0-2=1\); \(9-2+8=15\). So \[AB = \begin{bmatrix} 2 & 1 \\ -1 & 18 \\ 1 & 15 \end{bmatrix}.\]
  5. Step 5: Compute (AB)C (order 3 x 4): Multiply \(AB\) (\(3 \times 2\)) by \(C\) (\(2 \times 4\)). Row 1 of \(AB\) is \((2,1)\): \(2(1)+1(2)=4\); \(2(2)+1(0)=4\); \(2(3)+1(-2)=4\); \(2(-4)+1(1)=-7\). Row 2 is \((-1,18)\): \(-1+36=35\); \(-2+0=-2\); \(-3-36=-39\); \(4+18=22\). Row 3 is \((1,15)\): \(1+30=31\); \(2+0=2\); \(3-30=-27\); \(-4+15=11\). So \[(AB)C = \begin{bmatrix} 4 & 4 & 4 & -7 \\ 35 & -2 & -39 & 22 \\ 31 & 2 & -27 & 11 \end{bmatrix}.\]
  6. Step 6: Compare and conclude: Comparing the results of Step 3 and Step 5, every corresponding entry is equal. Therefore \[(AB)C = A(BC),\] which verifies the associative law of matrix multiplication.

Final Answer

Both products are equal: \[A(BC) = (AB)C = \begin{bmatrix} 4 & 4 & 4 & -7 \\ 35 & -2 & -39 & 22 \\ 31 & 2 & -27 & 11 \end{bmatrix}.\] Hence \((AB)C = A(BC)\) is verified.

Common Mistake

A common mistake is multiplying matrices in the wrong order or dotting rows with rows instead of rows with columns. Remember: the \((i,j)\) entry of a product uses the \(i\)-th row of the LEFT matrix and the \(j\)-th column of the RIGHT matrix. Also check that the orders are compatible before multiplying.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Identify the matrices and check dimension compatibility: The three given matrices are \[A = \begin{bmatrix} 1 & 1 & -1 \\ 2 & 0 & 3 \\ 3 & -1 & 2 \end{bmatrix}, \quad B = \begin{bmatrix} 1 & 3 \\ 0 & 2 \\ -1 & 4 \end{bmatrix}, \quad C = \begin{bmatrix} 1 & 2 & 3 & -4 \\ 2 & 0 & -2 & 1 \end{bmatrix}.\] Here \(A\) is \(3 \times 3\), \(B\) is \(3 \times 2\), and \(C\) is \(2 \times 4\). Since the columns of \(A\) match the rows of \(B\), and the columns of \(B\) match the rows of \(C\), all products \(AB\), \(BC\), \(A(BC)\), and \((AB)C\) are defined. — Reason: Confirming dimensions before multiplying prevents undefined-product errors.
  2. Step 2: Compute the product BC (order 3 × 4): Multiply \(B\) (\(3 \times 2\)) by \(C\) (\(2 \times 4\)). Each entry equals the dot product of a row of \(B\) with a column of \(C\). Row 1 of \(B\) is \((1, 3)\): \[1(1)+3(2)=7, \quad 1(2)+3(0)=2, \quad 1(3)+3(-2)=-3, \quad 1(-4)+3(1)=-1.\] Row 2 of \(B\) is \((0, 2)\): \[0(1)+2(2)=4, \quad 0(2)+2(0)=0, \quad 0(3)+2(-2)=-4, \quad 0(-4)+2(1)=2.\] Row 3 of \(B\) is \((-1, 4)\): \[(-1)(1)+4(2)=7, \quad (-1)(2)+4(0)=-2, \quad (-1)(3)+4(-2)=-11, \quad (-1)(-4)+4(1)=8.\] Therefore \[BC = \begin{bmatrix} 7 & 2 & -3 & -1 \\ 4 & 0 & -4 & 2 \\ 7 & -2 & -11 & 8 \end{bmatrix}.\] — Reason: We need \(BC\) so that we can later multiply \(A\) on the left to find \(A(BC)\).
  3. Step 3: Compute A(BC) (order 3 × 4): Now multiply \(A\) (\(3 \times 3\)) by \(BC\) (\(3 \times 4\)). Using the rows of \(A\) and columns of \(BC\): Row 1 of \(A\) is \((1, 1, -1)\): \[1(7)+1(4)+(-1)(7)=4, \quad 1(2)+1(0)+(-1)(-2)=4, \quad 1(-3)+1(-4)+(-1)(-11)=4, \quad 1(-1)+1(2)+(-1)(8)=-7.\] Row 2 of \(A\) is \((2, 0, 3)\): \[2(7)+0(4)+3(7)=35, \quad 2(2)+0(0)+3(-2)=-2, \quad 2(-3)+0(-4)+3(-11)=-39, \quad 2(-1)+0(2)+3(8)=22.\] Row 3 of \(A\) is \((3, -1, 2)\): \[3(7)+(-1)(4)+2(7)=31, \quad 3(2)+(-1)(0)+2(-2)=2, \quad 3(-3)+(-1)(-4)+2(-11)=-27, \quad 3(-1)+(-1)(2)+2(8)=11.\] Therefore \[A(BC) = \begin{bmatrix} 4 & 4 & 4 & -7 \\ 35 & -2 & -39 & 22 \\ 31 & 2 & -27 & 11 \end{bmatrix}.\] — Reason: This gives us the left-hand side of the associativity identity.
  4. Step 4: Compute the product AB (order 3 × 2): Multiply \(A\) (\(3 \times 3\)) by \(B\) (\(3 \times 2\)). Row 1 of \(A\) is \((1, 1, -1)\): \[1(1)+1(0)+(-1)(-1)=2, \quad 1(3)+1(2)+(-1)(4)=1.\] Row 2 of \(A\) is \((2, 0, 3)\): \[2(1)+0(0)+3(-1)=-1, \quad 2(3)+0(2)+3(4)=18.\] Row 3 of \(A\) is \((3, -1, 2)\): \[3(1)+(-1)(0)+2(-1)=1, \quad 3(3)+(-1)(2)+2(4)=15.\] Therefore \[AB = \begin{bmatrix} 2 & 1 \\ -1 & 18 \\ 1 & 15 \end{bmatrix}.\] — Reason: We need \(AB\) so that we can multiply \(C\) on the right to find \((AB)C\).
  5. Step 5: Compute (AB)C (order 3 × 4): Multiply \(AB\) (\(3 \times 2\)) by \(C\) (\(2 \times 4\)). Row 1 of \(AB\) is \((2, 1)\): \[2(1)+1(2)=4, \quad 2(2)+1(0)=4, \quad 2(3)+1(-2)=4, \quad 2(-4)+1(1)=-7.\] Row 2 of \(AB\) is \((-1, 18)\): \[(-1)(1)+18(2)=35, \quad (-1)(2)+18(0)=-2, \quad (-1)(3)+18(-2)=-39, \quad (-1)(-4)+18(1)=22.\] Row 3 of \(AB\) is \((1, 15)\): \[1(1)+15(2)=31, \quad 1(2)+15(0)=2, \quad 1(3)+15(-2)=-27, \quad 1(-4)+15(1)=11.\] Therefore \[(AB)C = \begin{bmatrix} 4 & 4 & 4 & -7 \\ 35 & -2 & -39 & 22 \\ 31 & 2 & -27 & 11 \end{bmatrix}.\] — Reason: This gives us the right-hand side of the associativity identity.
  6. Step 6: Compare A(BC) and (AB)C: From Step 3, \[A(BC) = \begin{bmatrix} 4 & 4 & 4 & -7 \\ 35 & -2 & -39 & 22 \\ 31 & 2 & -27 & 11 \end{bmatrix}.\] From Step 5, \[(AB)C = \begin{bmatrix} 4 & 4 & 4 & -7 \\ 35 & -2 & -39 & 22 \\ 31 & 2 & -27 & 11 \end{bmatrix}.\] Both matrices are identical entry-by-entry, confirming that \(A(BC) = (AB)C\). — Reason: Comparing the two results validates the associative property for this specific set of matrices.

Final Answer

Both products are equal: \[A(BC) = (AB)C = \begin{bmatrix} 4 & 4 & 4 & -7 \\ 35 & -2 & -39 & 22 \\ 31 & 2 & -27 & 11 \end{bmatrix}.\] Hence \((AB)C = A(BC)\) is verified.

Common Mistake

One common mistake: Students sometimes multiply the matrices in the wrong order (e.g., computing \(BA\) instead of \(AB\)) or forget that matrix multiplication is NOT commutative — only associativity holds, not commutativity, so always keep the left-to-right order of matrices fixed.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Given Matrices: \[A = \begin{bmatrix} 1 & 1 & -1 \\ 2 & 0 & 3 \\ 3 & -1 & 2 \end{bmatrix}, \quad B = \begin{bmatrix} 1 & 3 \\ 0 & 2 \\ -1 & 4 \end{bmatrix}, \quad C = \begin{bmatrix} 1 & 2 & 3 & -4 \\ 2 & 0 & -2 & 1 \end{bmatrix}\]
  2. Step 2: Compute BC (order 3 × 4): \[BC = \begin{bmatrix} 1 & 3 \\ 0 & 2 \\ -1 & 4 \end{bmatrix} \begin{bmatrix} 1 & 2 & 3 & -4 \\ 2 & 0 & -2 & 1 \end{bmatrix} = \begin{bmatrix} 7 & 2 & -3 & -1 \\ 4 & 0 & -4 & 2 \\ 7 & -2 & -11 & 8 \end{bmatrix}\]
  3. Step 3: Compute A(BC): \[A(BC) = \begin{bmatrix} 1 & 1 & -1 \\ 2 & 0 & 3 \\ 3 & -1 & 2 \end{bmatrix} \begin{bmatrix} 7 & 2 & -3 & -1 \\ 4 & 0 & -4 & 2 \\ 7 & -2 & -11 & 8 \end{bmatrix} = \begin{bmatrix} 4 & 4 & 4 & -7 \\ 35 & -2 & -39 & 22 \\ 31 & 2 & -27 & 11 \end{bmatrix}\]
  4. Step 4: Compute AB then (AB)C: \[AB = \begin{bmatrix} 1 & 1 & -1 \\ 2 & 0 & 3 \\ 3 & -1 & 2 \end{bmatrix} \begin{bmatrix} 1 & 3 \\ 0 & 2 \\ -1 & 4 \end{bmatrix} = \begin{bmatrix} 2 & 1 \\ -1 & 18 \\ 1 & 15 \end{bmatrix}\] then \[(AB)C = \begin{bmatrix} 2 & 1 \\ -1 & 18 \\ 1 & 15 \end{bmatrix} \begin{bmatrix} 1 & 2 & 3 & -4 \\ 2 & 0 & -2 & 1 \end{bmatrix} = \begin{bmatrix} 4 & 4 & 4 & -7 \\ 35 & -2 & -39 & 22 \\ 31 & 2 & -27 & 11 \end{bmatrix}\]

Answer: Both products are equal: \[A(BC) = (AB)C = \begin{bmatrix} 4 & 4 & 4 & -7 \\ 35 & -2 & -39 & 22 \\ 31 & 2 & -27 & 11 \end{bmatrix}.\] Hence \((AB)C = A(BC)\) is verified.

➕ More Examples

More Examples

Example 1

Question: Let \[P = \begin{bmatrix} 2 & 1 & 0 \\ 1 & -1 & 2 \\ 0 & 3 & 1 \end{bmatrix}, \quad Q = \begin{bmatrix} 1 & 2 \\ 0 & 1 \\ 3 & -1 \end{bmatrix}, \quad R = \begin{bmatrix} 1 & 0 & 2 & 1 \\ 3 & 1 & -1 & 0 \end{bmatrix}\] Find P(QR) and (PQ)R, and verify that P(QR) = (PQ)R.

Solution: Step 1: Check orders. P is 3×3, Q is 3×2, R is 2×4. So QR is 3×4, and P(QR) is 3×4. Also PQ is 3×2, and (PQ)R is 3×4. Both sides give a 3×4 matrix. Step 2: Compute QR (3×2 times 2×4 = 3×4). \[QR = \begin{bmatrix} 1 & 2 \\ 0 & 1 \\ 3 & -1 \end{bmatrix} \begin{bmatrix} 1 & 0 & 2 & 1 \\ 3 & 1 & -1 & 0 \end{bmatrix}\] Row 1 of QR: \( (1)(1)+(2)(3),\; (1)(0)+(2)(1),\; (1)(2)+(2)(-1),\; (1)(1)+(2)(0) \) = \( 7, 2, 0, 1 \) Row 2 of QR: \( (0)(1)+(1)(3),\; (0)(0)+(1)(1),\; (0)(2)+(1)(-1),\; (0)(1)+(1)(0) \) = \( 3, 1, -1, 0 \) Row 3 of QR: \( (3)(1)+(-1)(3),\; (3)(0)+(-1)(1),\; (3)(2)+(-1)(-1),\; (3)(1)+(-1)(0) \) = \( 0, -1, 7, 3 \) \[QR = \begin{bmatrix} 7 & 2 & 0 & 1 \\ 3 & 1 & -1 & 0 \\ 0 & -1 & 7 & 3 \end{bmatrix}\] Step 3: Compute P(QR) (3×3 times 3×4 = 3×4). \[P(QR) = \begin{bmatrix} 2 & 1 & 0 \\ 1 & -1 & 2 \\ 0 & 3 & 1 \end{bmatrix} \begin{bmatrix} 7 & 2 & 0 & 1 \\ 3 & 1 & -1 & 0 \\ 0 & -1 & 7 & 3 \end{bmatrix}\] Row 1: \( (2)(7)+(1)(3)+(0)(0),\; (2)(2)+(1)(1)+(0)(-1),\; (2)(0)+(1)(-1)+(0)(7),\; (2)(1)+(1)(0)+(0)(3) \) = \( 17,\; 5,\; -1,\; 2 \) Row 2: \( (1)(7)+(-1)(3)+(2)(0),\; (1)(2)+(-1)(1)+(2)(-1),\; (1)(0)+(-1)(-1)+(2)(7),\; (1)(1)+(-1)(0)+(2)(3) \) = \( 4,\; -1,\; 15,\; 7 \) Row 3: \( (0)(7)+(3)(3)+(1)(0),\; (0)(2)+(3)(1)+(1)(-1),\; (0)(0)+(3)(-1)+(1)(7),\; (0)(1)+(3)(0)+(1)(3) \) = \( 9,\; 2,\; 4,\; 3 \) \[P(QR) = \begin{bmatrix} 17 & 5 & -1 & 2 \\ 4 & -1 & 15 & 7 \\ 9 & 2 & 4 & 3 \end{bmatrix}\] Step 4: Compute PQ (3×3 times 3×2 = 3×2). \[PQ = \begin{bmatrix} 2 & 1 & 0 \\ 1 & -1 & 2 \\ 0 & 3 & 1 \end{bmatrix} \begin{bmatrix} 1 & 2 \\ 0 & 1 \\ 3 & -1 \end{bmatrix}\] Row 1: \( (2)(1)+(1)(0)+(0)(3),\; (2)(2)+(1)(1)+(0)(-1) \) = \( 2,\; 5 \) Row 2: \( (1)(1)+(-1)(0)+(2)(3),\; (1)(2)+(-1)(1)+(2)(-1) \) = \( 7,\; -1 \) Row 3: \( (0)(1)+(3)(0)+(1)(3),\; (0)(2)+(3)(1)+(1)(-1) \) = \( 3,\; 2 \) \[PQ = \begin{bmatrix} 2 & 5 \\ 7 & -1 \\ 3 & 2 \end{bmatrix}\] Step 5: Compute (PQ)R (3×2 times 2×4 = 3×4). \[(PQ)R = \begin{bmatrix} 2 & 5 \\ 7 & -1 \\ 3 & 2 \end{bmatrix} \begin{bmatrix} 1 & 0 & 2 & 1 \\ 3 & 1 & -1 & 0 \end{bmatrix}\] Row 1: \( (2)(1)+(5)(3),\; (2)(0)+(5)(1),\; (2)(2)+(5)(-1),\; (2)(1)+(5)(0) \) = \( 17,\; 5,\; -1,\; 2 \) Row 2: \( (7)(1)+(-1)(3),\; (7)(0)+(-1)(1),\; (7)(2)+(-1)(-1),\; (7)(1)+(-1)(0) \) = \( 4,\; -1,\; 15,\; 7 \) Row 3: \( (3)(1)+(2)(3),\; (3)(0)+(2)(1),\; (3)(2)+(2)(-1),\; (3)(1)+(2)(0) \) = \( 9,\; 2,\; 4,\; 3 \) \[(PQ)R = \begin{bmatrix} 17 & 5 & -1 & 2 \\ 4 & -1 & 15 & 7 \\ 9 & 2 & 4 & 3 \end{bmatrix}\] Since P(QR) = (PQ)R, the associativity of matrix multiplication is verified.

Answer: \[P(QR) = (PQ)R = \begin{bmatrix} 17 & 5 & -1 & 2 \\ 4 & -1 & 15 & 7 \\ 9 & 2 & 4 & 3 \end{bmatrix}\]

Example 2

Question: Given \[A = \begin{bmatrix} 0 & 1 & 2 \\ 1 & 2 & 0 \\ 2 & 0 & 1 \end{bmatrix}, \quad B = \begin{bmatrix} 2 & -1 \\ 1 & 0 \\ -1 & 3 \end{bmatrix}, \quad C = \begin{bmatrix} 0 & 1 & -1 & 2 \\ 1 & 2 & 0 & -1 \end{bmatrix}\] Compute A(BC) and (AB)C and verify that they are equal.

Solution: Step 1: Check orders. A is 3×3, B is 3×2, C is 2×4. So BC is 3×4, A(BC) is 3×4. Also AB is 3×2, (AB)C is 3×4. Both sides are 3×4. Step 2: Compute BC (3×2 times 2×4 = 3×4). \[BC = \begin{bmatrix} 2 & -1 \\ 1 & 0 \\ -1 & 3 \end{bmatrix} \begin{bmatrix} 0 & 1 & -1 & 2 \\ 1 & 2 & 0 & -1 \end{bmatrix}\] Row 1: \( (2)(0)+(-1)(1),\; (2)(1)+(-1)(2),\; (2)(-1)+(-1)(0),\; (2)(2)+(-1)(-1) \) = \( -1,\; 0,\; -2,\; 5 \) Row 2: \( (1)(0)+(0)(1),\; (1)(1)+(0)(2),\; (1)(-1)+(0)(0),\; (1)(2)+(0)(-1) \) = \( 0,\; 1,\; -1,\; 2 \) Row 3: \( (-1)(0)+(3)(1),\; (-1)(1)+(3)(2),\; (-1)(-1)+(3)(0),\; (-1)(2)+(3)(-1) \) = \( 3,\; 5,\; 1,\; -5 \) \[BC = \begin{bmatrix} -1 & 0 & -2 & 5 \\ 0 & 1 & -1 & 2 \\ 3 & 5 & 1 & -5 \end{bmatrix}\] Step 3: Compute A(BC) (3×3 times 3×4 = 3×4). \[A(BC) = \begin{bmatrix} 0 & 1 & 2 \\ 1 & 2 & 0 \\ 2 & 0 & 1 \end{bmatrix} \begin{bmatrix} -1 & 0 & -2 & 5 \\ 0 & 1 & -1 & 2 \\ 3 & 5 & 1 & -5 \end{bmatrix}\] Row 1: \( (0)(-1)+(1)(0)+(2)(3),\; (0)(0)+(1)(1)+(2)(5),\; (0)(-2)+(1)(-1)+(2)(1),\; (0)(5)+(1)(2)+(2)(-5) \) = \( 6,\; 11,\; 1,\; -8 \) Row 2: \( (1)(-1)+(2)(0)+(0)(3),\; (1)(0)+(2)(1)+(0)(5),\; (1)(-2)+(2)(-1)+(0)(1),\; (1)(5)+(2)(2)+(0)(-5) \) = \( -1,\; 2,\; -4,\; 9 \) Row 3: \( (2)(-1)+(0)(0)+(1)(3),\; (2)(0)+(0)(1)+(1)(5),\; (2)(-2)+(0)(-1)+(1)(1),\; (2)(5)+(0)(2)+(1)(-5) \) = \( 1,\; 5,\; -3,\; 5 \) \[A(BC) = \begin{bmatrix} 6 & 11 & 1 & -8 \\ -1 & 2 & -4 & 9 \\ 1 & 5 & -3 & 5 \end{bmatrix}\] Step 4: Compute AB (3×3 times 3×2 = 3×2). \[AB = \begin{bmatrix} 0 & 1 & 2 \\ 1 & 2 & 0 \\ 2 & 0 & 1 \end{bmatrix} \begin{bmatrix} 2 & -1 \\ 1 & 0 \\ -1 & 3 \end{bmatrix}\] Row 1: \( (0)(2)+(1)(1)+(2)(-1),\; (0)(-1)+(1)(0)+(2)(3) \) = \( -1,\; 6 \) Row 2: \( (1)(2)+(2)(1)+(0)(-1),\; (1)(-1)+(2)(0)+(0)(3) \) = \( 4,\; -1 \) Row 3: \( (2)(2)+(0)(1)+(1)(-1),\; (2)(-1)+(0)(0)+(1)(3) \) = \( 3,\; 1 \) \[AB = \begin{bmatrix} -1 & 6 \\ 4 & -1 \\ 3 & 1 \end{bmatrix}\] Step 5: Compute (AB)C (3×2 times 2×4 = 3×4). \[(AB)C = \begin{bmatrix} -1 & 6 \\ 4 & -1 \\ 3 & 1 \end{bmatrix} \begin{bmatrix} 0 & 1 & -1 & 2 \\ 1 & 2 & 0 & -1 \end{bmatrix}\] Row 1: \( (-1)(0)+(6)(1),\; (-1)(1)+(6)(2),\; (-1)(-1)+(6)(0),\; (-1)(2)+(6)(-1) \) = \( 6,\; 11,\; 1,\; -8 \) Row 2: \( (4)(0)+(-1)(1),\; (4)(1)+(-1)(2),\; (4)(-1)+(-1)(0),\; (4)(2)+(-1)(-1) \) = \( -1,\; 2,\; -4,\; 9 \) Row 3: \( (3)(0)+(1)(1),\; (3)(1)+(1)(2),\; (3)(-1)+(1)(0),\; (3)(2)+(1)(-1) \) = \( 1,\; 5,\; -3,\; 5 \) \[(AB)C = \begin{bmatrix} 6 & 11 & 1 & -8 \\ -1 & 2 & -4 & 9 \\ 1 & 5 & -3 & 5 \end{bmatrix}\] Since A(BC) = (AB)C, the associativity of matrix multiplication is verified.

Answer: \[A(BC) = (AB)C = \begin{bmatrix} 6 & 11 & 1 & -8 \\ -1 & 2 & -4 & 9 \\ 1 & 5 & -3 & 5 \end{bmatrix}\]

🎯 Try a Similar Question

Try a Similar Question

Question: Let \[P = \begin{bmatrix} 2 & 1 & 0 \\ 1 & -1 & 2 \\ 3 & 0 & 1 \end{bmatrix}, \quad Q = \begin{bmatrix} 1 & 2 \\ 0 & 1 \\ 2 & -1 \end{bmatrix}, \quad R = \begin{bmatrix} 1 & 0 & -1 & 2 \\ 3 & 1 & 0 & -1 \end{bmatrix}.\] Find P(QR) and (PQ)R, and verify that (PQ)R = P(QR).

Solution

  1. Step 1: Identify matrix orders: P is of order \(3 \times 3\), Q is of order \(3 \times 2\), and R is of order \(2 \times 4\). Since the number of columns of P equals the number of rows of Q, and the number of columns of Q equals the number of rows of R, all products are defined. The final result will be of order \(3 \times 4\).
  2. Step 2: Compute PQ: We compute \(PQ\) where P is \(3 \times 3\) and Q is \(3 \times 2\), giving a \(3 \times 2\) matrix. Row 1 of P times columns of Q: \[(2)(1)+(1)(0)+(0)(2) = 2\] \[(2)(2)+(1)(1)+(0)(-1) = 5\] Row 2 of P times columns of Q: \[(1)(1)+(-1)(0)+(2)(2) = 5\] \[(1)(2)+(-1)(1)+(2)(-1) = -1\] Row 3 of P times columns of Q: \[(3)(1)+(0)(0)+(1)(2) = 5\] \[(3)(2)+(0)(1)+(1)(-1) = 5\] So \[PQ = \begin{bmatrix} 2 & 5 \\ 5 & -1 \\ 5 & 5 \end{bmatrix}.\]
  3. Step 3: Compute (PQ)R: Now compute \((PQ)R\) where PQ is \(3 \times 2\) and R is \(2 \times 4\), giving a \(3 \times 4\) matrix. Row 1 of PQ times columns of R: \[(2)(1)+(5)(3)=17\] \[(2)(0)+(5)(1)=5\] \[(2)(-1)+(5)(0)=-2\] \[(2)(2)+(5)(-1)=-1\] Row 2 of PQ times columns of R: \[(5)(1)+(-1)(3)=2\] \[(5)(0)+(-1)(1)=-1\] \[(5)(-1)+(-1)(0)=-5\] \[(5)(2)+(-1)(-1)=11\] Row 3 of PQ times columns of R: \[(5)(1)+(5)(3)=20\] \[(5)(0)+(5)(1)=5\] \[(5)(-1)+(5)(0)=-5\] \[(5)(2)+(5)(-1)=5\] So \[(PQ)R = \begin{bmatrix} 17 & 5 & -2 & -1 \\ 2 & -1 & -5 & 11 \\ 20 & 5 & -5 & 5 \end{bmatrix}.\]
  4. Step 4: Compute QR: Now compute \(QR\) where Q is \(3 \times 2\) and R is \(2 \times 4\), giving a \(3 \times 4\) matrix. Row 1 of Q times columns of R: \[(1)(1)+(2)(3)=7\] \[(1)(0)+(2)(1)=2\] \[(1)(-1)+(2)(0)=-1\] \[(1)(2)+(2)(-1)=0\] Row 2 of Q times columns of R: \[(0)(1)+(1)(3)=3\] \[(0)(0)+(1)(1)=1\] \[(0)(-1)+(1)(0)=0\] \[(0)(2)+(1)(-1)=-1\] Row 3 of Q times columns of R: \[(2)(1)+(-1)(3)=-1\] \[(2)(0)+(-1)(1)=-1\] \[(2)(-1)+(-1)(0)=-2\] \[(2)(2)+(-1)(-1)=5\] So \[QR = \begin{bmatrix} 7 & 2 & -1 & 0 \\ 3 & 1 & 0 & -1 \\ -1 & -1 & -2 & 5 \end{bmatrix}.\]
  5. Step 5: Compute P(QR): Now compute \(P(QR)\) where P is \(3 \times 3\) and QR is \(3 \times 4\), giving a \(3 \times 4\) matrix. Row 1 of P: \((2, 1, 0)\) times columns of QR: \[(2)(7)+(1)(3)+(0)(-1)=17\] \[(2)(2)+(1)(1)+(0)(-1)=5\] \[(2)(-1)+(1)(0)+(0)(-2)=-2\] \[(2)(0)+(1)(-1)+(0)(5)=-1\] Row 2 of P: \((1, -1, 2)\) times columns of QR: \[(1)(7)+(-1)(3)+(2)(-1)=2\] \[(1)(2)+(-1)(1)+(2)(-1)=-1\] \[(1)(-1)+(-1)(0)+(2)(-2)=-5\] \[(1)(0)+(-1)(-1)+(2)(5)=11\] Row 3 of P: \((3, 0, 1)\) times columns of QR: \[(3)(7)+(0)(3)+(1)(-1)=20\] \[(3)(2)+(0)(1)+(1)(-1)=5\] \[(3)(-1)+(0)(0)+(1)(-2)=-5\] \[(3)(0)+(0)(-1)+(1)(5)=5\] So \[P(QR) = \begin{bmatrix} 17 & 5 & -2 & -1 \\ 2 & -1 & -5 & 11 \\ 20 & 5 & -5 & 5 \end{bmatrix}.\]
  6. Step 6: Verify associativity: Comparing the two results: \[(PQ)R = \begin{bmatrix} 17 & 5 & -2 & -1 \\ 2 & -1 & -5 & 11 \\ 20 & 5 & -5 & 5 \end{bmatrix} = P(QR).\] Hence, \((PQ)R = P(QR)\) is verified, confirming that matrix multiplication is associative.

Answer: Both products are equal: \[(PQ)R = P(QR) = \begin{bmatrix} 17 & 5 & -2 & -1 \\ 2 & -1 & -5 & 11 \\ 20 & 5 & -5 & 5 \end{bmatrix}.\] Hence \((PQ)R = P(QR)\) is verified.

Everything you get with Solver7

More questions in Matrices

Chapter 3 Examples Q1 65/1/1 2023 / Section A Q1 65/2/1 2024 / Section A Q1 65/3/1 2023 / Section A Q1 65/3/1 2024 / Section A Q1 65/4/1 2023 / Section A Q1 65/5/1 2026 / Section A Q1 Chapter 3 Examples Q2 65(B) 2026 / Section A Q2 65/1/1 2024 / Section A Q2 65/1/1 2026 / Section A Q2 65/3/1 2026 / Section A Q2 65/4/1 2023 / Section A Q2 65/4/1 2026 / Section A Q2 65/5/1 2026 / Section A Q2 Chapter 3 Examples Q3 65(B) 2026 / Section A Q3 65/1/1 2026 / Section A Q3 65/3/1 2023 / Section A Q3 65/3/1 2026 / Section A Q3 65/4/1 2023 / Section A Q3 Chapter 3 Examples Q4 65/1/1 2023 / Section A Q4 65/3/1 2023 / Section A Q4 65/3/1 2026 / Section A Q4 65/4/1 2023 / Section A Q4 65/5/1 2026 / Section A Q4 Chapter 3 Examples Q5 65/1/1 2024 / Section A Q5 65/3/1 2026 / Section A Q5 65/4/2 2024 / Section A Q5 Chapter 3 Examples Q6 65/1/1 2026 / Section A Q6 65/2/3 2026 / Section A Q6 Chapter 3 Examples Q7 65/2/3 2026 / Section A Q7 Chapter 3 Examples Q8 65/2/3 2026 / Section A Q8 Chapter 3 Examples Q9 65/2/3 2026 / Section A Q9 Chapter 3 Examples Q10 65/4/2 2024 / Section A Q10 Chapter 3 Examples Q11(i) 65/4/2 2024 / Section A Q11 Chapter 3 Examples Q11(ii) 65/2/1 2024 / Section A Q12 65/3/1 2024 / Section A Q12 65/4/2 2024 / Section A Q12 Chapter 3 Examples Q11(iii) Chapter 3 Examples Q12 65/1/1 2023 / Section A Q14 Chapter 3 Examples Q13 65/2/2 2023 / Section A Q15 Chapter 3 Examples Q14 65/2/2 2023 / Section A Q16 Chapter 3 Examples Q15 65/2/1 2024 / Section A Q17 65/1/1 2024 / Section A Q18 65/3/1 2024 / Section A Q18 Chapter 3 Examples Q17