ASCENTLEARNING
Join a weekly class
Skip to learning content
YEAR 11 · MATRICES AND TRANSFORMATIONS · 20 MIN

Matrix multiplication and non-commutativity

Multiply compatible matrices by row-column dot products and understand why the order of multiplication matters.

In this lesson

Before you start
  • Matrix order
  • Scalar products of coordinate pairs
01 / LEARN

Understand the idea.

Check dimensions before calculating

For A of order m×n and B of order n×p, each row of A and column of B have the same length. Thus A⁢B exists and has order m×p.

To find entry (i,j), pair every entry of row i with the corresponding entry of column j, multiply the pairs, and add the products. Repeat for each output position; matching-position multiplication is a different operation.

Order is part of the operation

Reversing the factors changes which rows meet which columns. Consequently, A⁢B and B⁢A can differ, or one may be undefined. Never swap factors merely to simplify arithmetic; order is part of the calculation.

Associativity allows (A⁢B)⁢C=A⁢(B⁢C) for compatible matrices without changing their order. One unequal entry disproves A⁢B=B⁢A; to establish equality of two particular products, every corresponding entry must agree.

02 / WORKED EXAMPLES

See the method in action.

EXAMPLE 01

A rectangular product

Calculate (12−1034)(211−230).

Worked solution

  1. 1

    Check the product dimensions.

    (2×3)⁢(3×2)→2×2

    The inner dimensions agree, and the outer dimensions give the result size.

  2. 2

    Calculate the first output row.

    c11=1⁢(2)+2⁢(1)+(−1)⁢(3)=1c12=1⁢(1)+2⁢(−2)+(−1)⁢(0)=−3

    Use row 1 of the left matrix with each column of the right matrix.

  3. 3

    Calculate the second output row.

    c21=0⁢(2)+3⁢(1)+4⁢(3)=15c22=0⁢(1)+3⁢(−2)+4⁢(0)=−6

    Use row 2 with the same two columns, preserving signs.

  4. 4

    Place the entries in the result.

    A⁢B=(1−315−6)

    Each calculated entry belongs in its indexed row and column.

Answer

(1−315−6).

EXAMPLE 02

Demonstrate non-commutativity

Let A=(1101), B=(2003). Compare A⁢B and B⁢A.

Worked solution

  1. 1

    Multiply in the stated order.

    A⁢B=(1⁢(2)+1⁢(0)1⁢(0)+1⁢(3)0⁢(2)+1⁢(0)0⁢(0)+1⁢(3))

    Rows now come from A and columns from B.

  2. 2

    Simplify the first product.

    A⁢B=(2303)

    Each row-column dot product supplies one entry.

  3. 3

    Reverse the factors and calculate.

    B⁢A=(2⁢(1)+0⁢(0)2⁢(1)+0⁢(1)0⁢(1)+3⁢(0)0⁢(1)+3⁢(1))=(2203)

    The reversed order uses rows of B and columns of A.

  4. 4

    Compare corresponding entries.

    (A⁢B)12=3≠2=(B⁢A)12,A⁢B≠B⁢A

    A single unequal corresponding entry rules out matrix equality.

Answer

A⁢B≠B⁢A.

03 / YOUR TURN

Try it yourself.

Check your understanding

If A is 2×3 and B is 3×4, what is the order of A⁢B?

Show answer & reasoning

2×4.

In (2×3)⁢(3×4) the shared inner dimension is 3, so multiplication is defined. The two row choices and four column choices give a 2×4 product.

Keep practising

6 worksheet questions · 12 marks

Read the questions online
  1. Find (21)(3−4).
    2 marks
  2. Find (1230)(2114).
    2 marks
  3. A is 3×2 and B is 2×5. State the order of A⁢B and explain whether B⁢A exists.
    2 marks
  4. Find (12)(34).
    2 marks
  5. For A=(0110), calculate A2.
    2 marks
  6. A shop sells 6 notebooks at 4 dollars each and 3 folders at 5 dollars each. Express the total as a row-column matrix product and evaluate it.
    2 marks
Read the worked solutions

Equivalent correct methods earn the corresponding marks. Include units where asked.

  1. Find (21)(3−4).
    2 marks

    The product is 2⁢(3)+1⁢(−4)=2.

    2.
  2. Find (1230)(2114).
    2 marks

    Rows dotted with columns give (2+2,1+8) and (6+0,3+0).

    (4963).
  3. A is 3×2 and B is 2×5. State the order of A⁢B and explain whether B⁢A exists.
    2 marks

    The A⁢B inner dimensions are both 2.

    For B⁢A the inner dimensions would be 5 and 3, which do not match.

    A⁢B is 3×5; B⁢A is not defined.
  4. Find (12)(34).
    2 marks

    A 2×1 by 1×2 product has order 2×2.

    Multiply each column-vector entry by the row.

    (3468).
  5. For A=(0110), calculate A2.
    2 marks

    Each output column is found by applying A twice.

    Direct multiplication gives diagonal entries 1 and off-diagonal entries 0.

    I=(1001).
  6. A shop sells 6 notebooks at 4 dollars each and 3 folders at 5 dollars each. Express the total as a row-column matrix product and evaluate it.
    2 marks

    Quantities form a row and prices form a column.

    6⁢(4)+3⁢(5)=39.

    (63)(45)=39 dollars.
Checking saved progress…
Curriculum reference & lesson scope

SACE Board of South Australia

Stage 1 Mathematics: matrices and transformations; original lessons follow the approved school-sized chapter structure.

Official curriculum source ↗

Save your next step.

Create a free account to save your learning progress. Lessons and downloads stay free, with or without an account.

Create free account