Skip to content
Worked Examples · Example 16

Q.If A=[11−12033−12]A = \begin{bmatrix} 1 & 1 & -1 \\ 2 & 0 & 3 \\ 3 & -1 & 2 \end{bmatrix}, B=[1302−14]B = \begin{bmatrix} 1 & 3 \\ 0 & 2 \\ -1 & 4 \end{bmatrix} and C=[123−420−21]C = \begin{bmatrix} 1 & 2 & 3 & -4 \\ 2 & 0 & -2 & 1 \end{bmatrix}, find A(BC)A(BC), (AB)C(AB)C and show that (AB)C=A(BC)(AB)C = A(BC).

Uttarakhand UbseTextbookSubjective· 3mImportance★★★★★
33% · 60/182 Questions
✓ Free question

Matrix multiplication is associative: (AB)C=A(BC)(AB)C = A(BC) always holds when the products are defined. For these matrices, both sides equal a 3×43 \times 4 matrix, confirming the property.

The key idea here is that matrix multiplication is associative — but that's not just a rule to memorise; it follows from how multiplication is defined. When you multiply matrices, you're really composing linear transformations, and composition of functions is always associative. So (AB)C(AB)C and A(BC)A(BC) must give the same result, provided the dimensions allow both products.

Let's check the dimensions first. AA is 3×33 \times 3, BB is 3×23 \times 2, CC is 2×42 \times 4. For BCBC, we multiply a 3×23 \times 2 by a 2×42 \times 4 — the inner dimensions match (2), so BCBC is 3×43 \times 4. Then A(BC)A(BC) is 3×33 \times 3 times 3×43 \times 4, giving 3×43 \times 4. For (AB)C(AB)C, ABAB is 3×33 \times 3 times 3×23 \times 2, giving 3×23 \times 2; then multiplying by CC (2×42 \times 4) gives 3×43 \times 4. Both paths yield a 3×43 \times 4 matrix, so the product is defined both ways.

Now let's compute both sides step by step.

  1. Compute BCBC first.

    BB is 3×23 \times 2, CC is 2×42 \times 4. The (i,j)(i,j) entry of BCBC is the dot product of row ii of BB with column jj of CC.

    Row 1 of BB: [1,3][1, 3].

    Column 1 of CC: [12]\begin{bmatrix}1 \\ 2\end{bmatrix} → 1⋅1+3⋅2=1+6=71\cdot1 + 3\cdot2 = 1 + 6 = 7

    Column 2: [20]\begin{bmatrix}2 \\ 0\end{bmatrix} → 1⋅2+3⋅0=21\cdot2 + 3\cdot0 = 2

    Column 3: [3−2]\begin{bmatrix}3 \\ -2\end{bmatrix} → 1⋅3+3⋅(−2)=3−6=−31\cdot3 + 3\cdot(-2) = 3 - 6 = -3

    Column 4: [−41]\begin{bmatrix}-4 \\ 1\end{bmatrix} → 1⋅(−4)+3⋅1=−4+3=−11\cdot(-4) + 3\cdot1 = -4 + 3 = -1

    So first row of BCBC: [7,2,−3,−1][7, 2, -3, -1].

    Row 2 of BB: [0,2][0, 2].

    Column 1: 0⋅1+2⋅2=40\cdot1 + 2\cdot2 = 4

    Column 2: 0⋅2+2⋅0=00\cdot2 + 2\cdot0 = 0

    Column 3: 0⋅3+2⋅(−2)=−40\cdot3 + 2\cdot(-2) = -4

    Column 4: 0⋅(−4)+2⋅1=20\cdot(-4) + 2\cdot1 = 2

    Second row: [4,0,−4,2][4, 0, -4, 2].

    Row 3 of BB: [−1,4][-1, 4].

    Column 1: (−1)⋅1+4⋅2=−1+8=7(-1)\cdot1 + 4\cdot2 = -1 + 8 = 7

    Column 2: (−1)⋅2+4⋅0=−2(-1)\cdot2 + 4\cdot0 = -2

    Column 3: (−1)⋅3+4⋅(−2)=−3−8=−11(-1)\cdot3 + 4\cdot(-2) = -3 - 8 = -11

    Column 4: (−1)⋅(−4)+4⋅1=4+4=8(-1)\cdot(-4) + 4\cdot1 = 4 + 4 = 8

    Third row: [7,−2,−11,8][7, -2, -11, 8].

    So

BC=[72−3−140−427−2−118]BC = \begin{bmatrix} 7 & 2 & -3 & -1 \\ 4 & 0 & -4 & 2 \\ 7 & -2 & -11 & 8 \end{bmatrix}

  1. Now compute A(BC)A(BC).

    AA is 3×33 \times 3, BCBC is 3×43 \times 4. Multiply row ii of AA by each column of BCBC.

    Row 1 of AA: [1,1,−1][1, 1, -1].

    Column 1 of BCBC: [747]\begin{bmatrix}7 \\ 4 \\ 7\end{bmatrix} → 1⋅7+1⋅4+(−1)⋅7=7+4−7=41\cdot7 + 1\cdot4 + (-1)\cdot7 = 7 + 4 - 7 = 4

    Column 2: [20−2]\begin{bmatrix}2 \\ 0 \\ -2\end{bmatrix} → 1⋅2+1⋅0+(−1)⋅(−2)=2+0+2=41\cdot2 + 1\cdot0 + (-1)\cdot(-2) = 2 + 0 + 2 = 4

    Column 3: [−3−4−11]\begin{bmatrix}-3 \\ -4 \\ -11\end{bmatrix} → 1⋅(−3)+1⋅(−4)+(−1)⋅(−11)=−3−4+11=41\cdot(-3) + 1\cdot(-4) + (-1)\cdot(-11) = -3 - 4 + 11 = 4

    Column 4: [−128]\begin{bmatrix}-1 \\ 2 \\ 8\end{bmatrix} → 1⋅(−1)+1⋅2+(−1)⋅8=−1+2−8=−71\cdot(-1) + 1\cdot2 + (-1)\cdot8 = -1 + 2 - 8 = -7

    First row of A(BC)A(BC): [4,4,4,−7][4, 4, 4, -7].

    Row 2 of AA: [2,0,3][2, 0, 3].

    Column 1: 2⋅7+0⋅4+3⋅7=14+0+21=352\cdot7 + 0\cdot4 + 3\cdot7 = 14 + 0 + 21 = 35

    Column 2: 2⋅2+0⋅0+3⋅(−2)=4+0−6=−22\cdot2 + 0\cdot0 + 3\cdot(-2) = 4 + 0 - 6 = -2

    Column 3: 2⋅(−3)+0⋅(−4)+3⋅(−11)=−6+0−33=−392\cdot(-3) + 0\cdot(-4) + 3\cdot(-11) = -6 + 0 - 33 = -39

    Column 4: 2⋅(−1)+0⋅2+3⋅8=−2+0+24=222\cdot(-1) + 0\cdot2 + 3\cdot8 = -2 + 0 + 24 = 22

    Second row: [35,−2,−39,22][35, -2, -39, 22].

    Row 3 of AA: [3,−1,2][3, -1, 2].

    Column 1: 3⋅7+(−1)⋅4+2⋅7=21−4+14=313\cdot7 + (-1)\cdot4 + 2\cdot7 = 21 - 4 + 14 = 31

    Column 2: 3⋅2+(−1)⋅0+2⋅(−2)=6+0−4=23\cdot2 + (-1)\cdot0 + 2\cdot(-2) = 6 + 0 - 4 = 2

    Column 3: 3⋅(−3)+(−1)⋅(−4)+2⋅(−11)=−9+4−22=−273\cdot(-3) + (-1)\cdot(-4) + 2\cdot(-11) = -9 + 4 - 22 = -27

    Column 4: 3⋅(−1)+(−1)⋅2+2⋅8=−3−2+16=113\cdot(-1) + (-1)\cdot2 + 2\cdot8 = -3 - 2 + 16 = 11

    Third row: [31,2,−27,11][31, 2, -27, 11].

    So

A(BC)=[444−735−2−3922312−2711]A(BC) = \begin{bmatrix} 4 & 4 & 4 & -7 \\ 35 & -2 & -39 & 22 \\ 31 & 2 & -27 & 11 \end{bmatrix}

  1. Now compute ABAB first.

    AA is 3×33 \times 3, BB is 3×23 \times 2. Multiply row ii of AA by each column of BB.

    Row 1 of AA: [1,1,−1][1, 1, -1].

    Column 1 of BB: [10−1]\begin{bmatrix}1 \\ 0 \\ -1\end{bmatrix} → 1⋅1+1⋅0+(−1)⋅(−1)=1+0+1=21\cdot1 + 1\cdot0 + (-1)\cdot(-1) = 1 + 0 + 1 = 2

    Column 2: [324]\begin{bmatrix}3 \\ 2 \\ 4\end{bmatrix} → 1⋅3+1⋅2+(−1)⋅4=3+2−4=11\cdot3 + 1\cdot2 + (-1)\cdot4 = 3 + 2 - 4 = 1

    First row of ABAB: [2,1][2, 1].

    Row 2 of AA: [2,0,3][2, 0, 3].

    Column 1: 2⋅1+0⋅0+3⋅(−1)=2+0−3=−12\cdot1 + 0\cdot0 + 3\cdot(-1) = 2 + 0 - 3 = -1

    Column 2: 2⋅3+0⋅2+3⋅4=6+0+12=182\cdot3 + 0\cdot2 + 3\cdot4 = 6 + 0 + 12 = 18

    Second row: [−1,18][-1, 18].

    Row 3 of AA: [3,−1,2][3, -1, 2].

    Column 1: 3⋅1+(−1)⋅0+2⋅(−1)=3+0−2=13\cdot1 + (-1)\cdot0 + 2\cdot(-1) = 3 + 0 - 2 = 1

    Column 2: 3⋅3+(−1)⋅2+2⋅4=9−2+8=153\cdot3 + (-1)\cdot2 + 2\cdot4 = 9 - 2 + 8 = 15

    Third row: [1,15][1, 15].

    So

AB=[21−118115]AB = \begin{bmatrix} 2 & 1 \\ -1 & 18 \\ 1 & 15 \end{bmatrix}

  1. Now compute (AB)C(AB)C.

    ABAB is 3×23 \times 2, CC is 2×42 \times 4. Multiply row ii of ABAB by each column of CC.

    Row 1 of ABAB: [2,1][2, 1].

    Column 1 of CC: [12]\begin{bmatrix}1 \\ 2\end{bmatrix} → 2⋅1+1⋅2=2+2=42\cdot1 + 1\cdot2 = 2 + 2 = 4

    Column 2: [20]\begin{bmatrix}2 \\ 0\end{bmatrix} → 2⋅2+1⋅0=42\cdot2 + 1\cdot0 = 4

    Column 3: [3−2]\begin{bmatrix}3 \\ -2\end{bmatrix} → 2⋅3+1⋅(−2)=6−2=42\cdot3 + 1\cdot(-2) = 6 - 2 = 4

    Column 4: [−41]\begin{bmatrix}-4 \\ 1\end{bmatrix} → 2⋅(−4)+1⋅1=−8+1=−72\cdot(-4) + 1\cdot1 = -8 + 1 = -7

    First row: [4,4,4,−7][4, 4, 4, -7].

    Row 2 of ABAB: [−1,18][-1, 18].

    Column 1: (−1)⋅1+18⋅2=−1+36=35(-1)\cdot1 + 18\cdot2 = -1 + 36 = 35

    Column 2: (−1)⋅2+18⋅0=−2(-1)\cdot2 + 18\cdot0 = -2

    Column 3: (−1)⋅3+18⋅(−2)=−3−36=−39(-1)\cdot3 + 18\cdot(-2) = -3 - 36 = -39

    Column 4: (−1)⋅(−4)+18⋅1=4+18=22(-1)\cdot(-4) + 18\cdot1 = 4 + 18 = 22

    Second row: [35,−2,−39,22][35, -2, -39, 22].

    Row 3 of ABAB: [1,15][1, 15].

    Column 1: 1⋅1+15⋅2=1+30=311\cdot1 + 15\cdot2 = 1 + 30 = 31

    Column 2: 1⋅2+15⋅0=21\cdot2 + 15\cdot0 = 2

    Column 3: 1⋅3+15⋅(−2)=3−30=−271\cdot3 + 15\cdot(-2) = 3 - 30 = -27

    Column 4: 1⋅(−4)+15⋅1=−4+15=111\cdot(-4) + 15\cdot1 = -4 + 15 = 11

    Third row: [31,2,−27,11][31, 2, -27, 11].

    So

(AB)C=[444−735−2−3922312−2711](AB)C = \begin{bmatrix} 4 & 4 & 4 & -7 \\ 35 & -2 & -39 & 22 \\ 31 & 2 & -27 & 11 \end{bmatrix}

  1. Compare the two results. A(BC)A(BC) and (AB)C(AB)C are identical matrices — every entry matches exactly. This confirms the associative property of matrix multiplication for these specific matrices.
Watch out

A common mistake is to assume that because matrix multiplication is not commutative (AB≠BAAB \neq BA in general), it might not be associative either. That's wrong — associativity always holds when the products are defined. Don't confuse commutativity with associativity.

Tip

You could have saved time by noticing that both products must be equal by the associative law, so computing just one side would suffice. But the problem explicitly asks you to compute both and show they're equal, so the full work is needed.

✓Final answer

Both A(BC)A(BC) and (AB)C(AB)C equal [444−735−2−3922312−2711]\begin{bmatrix} 4 & 4 & 4 & -7 \\ 35 & -2 & -39 & 22 \\ 31 & 2 & -27 & 11 \end{bmatrix}, confirming that (AB)C=A(BC)(AB)C = A(BC).

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.