Class 12 Maths, Worked in Full Past papersGet updates
Chapter 3 · Matrices

Example 17: Verify (A+B)C=AC+BC(A+B)C=AC+BC

ExamplesProperties of matrix multiplication: the distributive law · Section 3.4.6
The question

If

A=[067−6087−80],A = \begin{bmatrix} 0 & 6 & 7 \\ -6 & 0 & 8 \\ 7 & -8 & 0 \end{bmatrix}, B=[011102120],B = \begin{bmatrix} 0 & 1 & 1 \\ 1 & 0 & 2 \\ 1 & 2 & 0 \end{bmatrix}, C=[2−23].C = \begin{bmatrix} 2 \\ -2 \\ 3 \end{bmatrix}.

Calculate AC, BC and (A + B)C. Also, verify that (A + B)C = AC + BC

Exam answer A+B=[078−50108−60]A + B = \begin{bmatrix} 0 & 7 & 8 \\ -5 & 0 & 10 \\ 8 & -6 & 0 \end{bmatrix} (A+B)C=[0⋅2+7⋅(−2)+8⋅3(−5)⋅2+0⋅(−2)+10⋅38⋅2+(−6)⋅(−2)+0⋅3]=[102028]\begin{aligned} &(A + B)C \\ &= \begin{bmatrix} 0{\cdot}2 + 7{\cdot}(-2) + 8{\cdot}3 \\ (-5){\cdot}2 + 0{\cdot}(-2) + 10{\cdot}3 \\ 8{\cdot}2 + (-6){\cdot}(-2) + 0{\cdot}3 \end{bmatrix} \\ &= \begin{bmatrix} 10 \\ 20 \\ 28 \end{bmatrix} \end{aligned} AC=[0⋅2+6⋅(−2)+7⋅3(−6)⋅2+0⋅(−2)+8⋅37⋅2+(−8)⋅(−2)+0⋅3]=[91230]\begin{aligned} &AC \\ &= \begin{bmatrix} 0{\cdot}2 + 6{\cdot}(-2) + 7{\cdot}3 \\ (-6){\cdot}2 + 0{\cdot}(-2) + 8{\cdot}3 \\ 7{\cdot}2 + (-8){\cdot}(-2) + 0{\cdot}3 \end{bmatrix} \\ &= \begin{bmatrix} 9 \\ 12 \\ 30 \end{bmatrix} \end{aligned} BC=[0⋅2+1⋅(−2)+1⋅31⋅2+0⋅(−2)+2⋅31⋅2+2⋅(−2)+0⋅3]=[18−2]\begin{aligned} &BC \\ &= \begin{bmatrix} 0{\cdot}2 + 1{\cdot}(-2) + 1{\cdot}3 \\ 1{\cdot}2 + 0{\cdot}(-2) + 2{\cdot}3 \\ 1{\cdot}2 + 2{\cdot}(-2) + 0{\cdot}3 \end{bmatrix} \\ &= \begin{bmatrix} 1 \\ 8 \\ -2 \end{bmatrix} \end{aligned} AC+BC=[9+112+830−2]=[102028]AC + BC = \begin{bmatrix} 9 + 1 \\ 12 + 8 \\ 30 - 2 \end{bmatrix} = \begin{bmatrix} 10 \\ 20 \\ 28 \end{bmatrix}

∴ (A+B)C=AC+BC\therefore\ (A + B)C = AC + BC⁠. Hence verified.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

The distributive law (A+B)C=AC+BC(A+B)C=AC+BC for matrices works for the same reason as (a+b)c=ac+bc(a+b)c=ac+bc for numbers. Each entry of (A+B)C(A+B)C is a row of A+BA+B times the column CC⁠; since every entry of that row is aij+bija_{ij}+b_{ij}⁠, the sum splits into "row of AA times CC" plus "row of BB times CC". We verify it here by computing both sides completely.

Given, to find, and the plan
Given
AA and BB of order 3×33\times3⁠, and the column CC of order 3×13\times1⁠.
To find / verify
ACAC⁠, BCBC⁠, (A+B)C(A+B)C⁠, and that (A+B)C=AC+BC(A+B)C=AC+BC⁠.
Plan
Check all the orders. Find A+BA+B and then (A+B)C(A+B)C⁠. Find ACAC and BCBC and add them. Compare the two columns entry by entry, then see why the law holds in general.

Basics you need

1Adding matrices

For matrices of the same order, A+B=[aij+bij]A+B=[a_{ij}+b_{ij}]⁠. Basics: adding only like with like

2A square matrix times a column

A 3×33\times3 matrix times a 3×13\times1 column is a 3×13\times1 column. Entry ii of it is row ii of the matrix times the column. Basics: pair up, multiply, add

3The distributive law

A(B+C)=AB+ACA(B+C)=AB+AC and (A+B)C=AC+BC(A+B)C=AC+BC⁠, whenever both sides are defined (Section 3.4.6, stated without proof). Lesson: properties of the operations

Solution

  1. Check the orders

    AA and BB are both 3×33\times3⁠, so A+BA+B is defined and is 3×33\times3⁠. Then (A+B)C(A+B)C⁠, ACAC and BCBC are each (3×3)(3×1)(3\times3)(3\times1)⁠: inner sizes 3=33=3⁠, so each is defined and is a 3×13\times1 column. Finally AC+BCAC+BC adds two 3×13\times1 columns, which is defined and 3×13\times1⁠.

    The law is stated "whenever both sides of equality are defined". Here both sides are 3×13\times1 columns, so they can be compared.
    Sum needs equal orders; product needs columns of the first = rows of the second. Basics: rows, columns and the address
  2. Compute A+BA+B

    Add matching entries, sij=aij+bijs_{ij}=a_{ij}+b_{ij}⁠:

    s11=0+0=0s12=6+1=7s13=7+1=8s21=−6+1=−5s22=0+0=0s23=8+2=10s31=7+1=8s32=−8+2=−6s33=0+0=0\begin{aligned} s_{11} &= 0 + 0 = 0 & s_{12} &= 6 + 1 = 7\\ s_{13} &= 7 + 1 = 8 & s_{21} &= -6 + 1 = -5\\ s_{22} &= 0 + 0 = 0 & s_{23} &= 8 + 2 = 10\\ s_{31} &= 7 + 1 = 8 & s_{32} &= -8 + 2 = -6\\ s_{33} &= 0 + 0 = 0 \end{aligned} A+B=[078−50108−60]A+B = \begin{bmatrix} 0 & 7 & 8 \\ -5 & 0 & 10 \\ 8 & -6 & 0 \end{bmatrix}
    To use the left side (A+B)C(A+B)C we need the matrix A+BA+B itself. Each entry uses only the two entries in the same position.
    Section 3.4.1, addition of matrices. Lesson: addition and scalar multiplication
  3. Compute (A+B)C(A+B)C

    The column CC is (2,−2,3)(2,-2,3)⁠. Write (A+B)C=[ui1](A+B)C=[u_{i1}]⁠:

    u11=0⋅2+7⋅(−2)+8⋅3=0−14+24=10u21=(−5)⋅2+0⋅(−2)+10⋅3=−10+0+30=20u31=8⋅2+(−6)⋅(−2)+0⋅3=16+12+0=28\begin{aligned} u_{11} &= 0\cdot 2 + 7\cdot(-2) + 8\cdot 3\\ &= 0 - 14 + 24 = 10\\ u_{21} &= (-5)\cdot 2 + 0\cdot(-2) + 10\cdot 3\\ &= -10 + 0 + 30 = 20\\ u_{31} &= 8\cdot 2 + (-6)\cdot(-2) + 0\cdot 3\\ &= 16 + 12 + 0 = 28 \end{aligned} (A+B)C=[102028](A+B)C = \begin{bmatrix} 10 \\ 20 \\ 28 \end{bmatrix}
    The product has a single column because CC has a single column; each of its three entries is one row of A+BA+B times CC⁠.
    ui1=si1c11+si2c21+si3c31u_{i1}=s_{i1}c_{11}+s_{i2}c_{21}+s_{i3}c_{31}⁠. Basics: pair up, multiply, add
  4. Compute ACAC

    Write AC=[vi1]AC=[v_{i1}]⁠:

    v11=0⋅2+6⋅(−2)+7⋅3=0−12+21=9v21=(−6)⋅2+0⋅(−2)+8⋅3=−12+0+24=12v31=7⋅2+(−8)⋅(−2)+0⋅3=14+16+0=30\begin{aligned} v_{11} &= 0\cdot 2 + 6\cdot(-2) + 7\cdot 3\\ &= 0 - 12 + 21 = 9\\ v_{21} &= (-6)\cdot 2 + 0\cdot(-2) + 8\cdot 3\\ &= -12 + 0 + 24 = 12\\ v_{31} &= 7\cdot 2 + (-8)\cdot(-2) + 0\cdot 3\\ &= 14 + 16 + 0 = 30 \end{aligned} AC=[91230]AC = \begin{bmatrix} 9 \\ 12 \\ 30 \end{bmatrix}
    Watch the sign in v31v_{31}⁠: (−8)⋅(−2)=+16(-8)\cdot(-2)=+16⁠, since a product of two negatives is positive.
  5. Compute BCBC

    Write BC=[wi1]BC=[w_{i1}]⁠:

    w11=0⋅2+1⋅(−2)+1⋅3=0−2+3=1w21=1⋅2+0⋅(−2)+2⋅3=2+0+6=8w31=1⋅2+2⋅(−2)+0⋅3=2−4+0=−2\begin{aligned} w_{11} &= 0\cdot 2 + 1\cdot(-2) + 1\cdot 3\\ &= 0 - 2 + 3 = 1\\ w_{21} &= 1\cdot 2 + 0\cdot(-2) + 2\cdot 3\\ &= 2 + 0 + 6 = 8\\ w_{31} &= 1\cdot 2 + 2\cdot(-2) + 0\cdot 3\\ &= 2 - 4 + 0 = -2 \end{aligned} BC=[18−2]BC = \begin{bmatrix} 1 \\ 8 \\ -2 \end{bmatrix}
    Same column CC⁠, now with the rows of BB⁠.
  6. Add ACAC and BCBC⁠, and compare

    Both are 3×13\times1⁠. Adding matching entries, ti1=vi1+wi1t_{i1}=v_{i1}+w_{i1}⁠:

    t11=9+1=10t21=12+8=20t31=30+(−2)=28\begin{aligned} t_{11} &= 9 + 1 = 10\\ t_{21} &= 12 + 8 = 20\\ t_{31} &= 30 + (-2) = 28 \end{aligned} AC+BC=[102028]AC+BC = \begin{bmatrix} 10 \\ 20 \\ 28 \end{bmatrix}

    This is the same order as (A+B)C(A+B)C from Step 3, and the entries agree: 10=1010=10⁠, 20=2020=20⁠, 28=2828=28⁠. Hence (A+B)C=AC+BC(A+B)C=AC+BC.

    Equal order and all three corresponding entries equal is exactly the definition of equal matrices, so the law is verified for these matrices.
    Distributive law, Section 3.4.6, property 2 (ii). Lesson: properties of the operations
  7. Why it always works

    Take any A=[aij]A=[a_{ij}] and B=[bij]B=[b_{ij}] of order m×nm\times n and any C=[cjk]C=[c_{jk}] of order n×pn\times p⁠. Entry (i,k)(i,k) of (A+B)C(A+B)C is

    ∑j(aij+bij) cjk=∑jaijcjk+∑jbijcjk,\begin{aligned} &\textstyle\sum_{j}(a_{ij}+b_{ij})\,c_{jk}\\ &= \textstyle\sum_{j} a_{ij}c_{jk} + \sum_{j} b_{ij}c_{jk}, \end{aligned}

    which is entry (i,k)(i,k) of ACAC plus entry (i,k)(i,k) of BCBC⁠.

    The only fact used is the distributive law for numbers, (a+b)c=ac+bc(a+b)c=ac+bc⁠, applied to each term, followed by regrouping a finite sum. Since the matrices were arbitrary (of compatible orders), this proves (A+B)C=AC+BC(A+B)C=AC+BC in general. In row 1 here, the middle term (6+1)⋅(−2)(6+1)\cdot(-2) splits as 6⋅(−2)+1⋅(−2)6\cdot(-2)+1\cdot(-2)⁠, and likewise for the other terms, so the entry 10 splits as 9 (from AA⁠) plus 1 (from BB⁠).
Result AC=[91230],  BC=[18−2],AC = \begin{bmatrix} 9 \\ 12 \\ 30 \end{bmatrix},\ \ BC = \begin{bmatrix} 1 \\ 8 \\ -2 \end{bmatrix}, (A+B)C=[102028](A+B)C = \begin{bmatrix} 10 \\ 20 \\ 28 \end{bmatrix}

and AC+BCAC+BC is the same column (10,20,28)(10,20,28)⁠, so (A+B)C=AC+BC(A+B)C=AC+BC⁠. This matches the textbook's solution.

Check it with numbers

Add the three entries of each column. ACAC⁠: 9+12+30=519+12+30=51⁠. BCBC⁠: 1+8−2=71+8-2=7⁠. (A+B)C(A+B)C⁠: 10+20+28=5810+20+28=58⁠, and indeed 51+7=5851+7=58⁠.

A second, independent route: a matrix times a column is a combination of the matrix's columns, with the entries of the column as weights. So (A+B)C(A+B)C is 2 times column 1 of A+BA+B⁠, minus 2 times column 2, plus 3 times column 3:

2 (0,−5,8)=(0,−10,16)−2 (7,0,−6)=(−14,0,12)3 (8,10,0)=(24,30,0)sum=(10,20,28).\begin{aligned} 2\,(0,-5,8) &= (0,-10,16)\\ -2\,(7,0,-6) &= (-14,0,12)\\ 3\,(8,10,0) &= (24,30,0)\\ \text{sum} &= (10,20,28). \end{aligned}

The same column as in Step 3.

Common mistakes
  1. Writing CA+CBCA+CB for the right side. CC stays on the right: (A+B)C=AC+BC(A+B)C=AC+BC⁠. Here CACA is not even defined (3×13\times1 times 3×33\times3⁠).
  2. Sign slips with −2-2⁠. (−8)⋅(−2)=16(-8)\cdot(-2)=16 and (−6)⋅(−2)=12(-6)\cdot(-2)=12 are positive.
  3. Verifying with one entry. All three entries must agree.
What to take away
  1. Matrix multiplication distributes over addition from both sides, A(B+C)=AB+ACA(B+C)=AB+AC and (A+B)C=AC+BC(A+B)C=AC+BC⁠, but the factor must stay on the same side.
  2. The law lets you choose: one product (A+B)C(A+B)C or two products and a sum. Here the first needs 3 row-times-column sums, the second needs 6.
  3. The proof is the number rule (a+b)c=ac+bc(a+b)c=ac+bc applied inside every entry.

Every fact used, and where it comes from

FactUsed inSource
Orders for sums and productsStep 1Sections 3.4.1 and 3.4.5 (Lesson: matrix multiplication)
A+B=[aij+bij]A+B=[a_{ij}+b_{ij}]Steps 2 and 6Section 3.4.1 (Lesson: addition)
cik=∑jaijbjkc_{ik}=\sum_j a_{ij}b_{jk}Steps 3 to 5Section 3.4.5, definition of the product
(A+B)C=AC+BC(A+B)C=AC+BCSteps 6 and 7Section 3.4.6, property 2 (ii) (Lesson: properties)
(a+b)c=ac+bc(a+b)c=ac+bc for numbersStep 7Arithmetic of real numbers
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →