4.5.7 · D3Linear Algebra (Full)

Worked examples — Matrix multiplication — definition, associativity, non-commutativity

2,724 words12 min readBack to topic

Symbols we will use (built from zero)

Everything else is earned as it appears.


The scenario matrix

Every product falls into one of these cells. The examples below are labelled with the cell(s) they cover, so you can check the whole grid is filled.

Cell Situation What could trip you up Example
A Square × square (both ) mechanics of row·column E1
B Rectangular, shapes align 3-term sum; result shape E2
C Shapes don't align product is undefined E3
D Multiply by identity changes nothing E4
E Zero matrix / zero divisors with E5
F Order matters: geometry of composition E6
G Associativity bracketing is free; cost differs E7
H Inverse of a product order reverses E8
I Word problem (real world) reading a chain as a matrix E9
J Exam twist: binomial trap E10

Sign cases (positive, negative, zero entries) appear throughout — E1, E2 and E6 all carry negatives so no sign is left unshown.


Worked examples

E1 — Cell A: square × square, the plain mechanics

E2 — Cell B: rectangular, three-term dot products, signs

E3 — Cell C: shapes refuse to align (the undefined case)

E4 — Cell D: the identity changes nothing

E5 — Cell E: zero divisors, with neither matrix zero

E6 — Cell F: order matters (geometry)

E7 — Cell G: associativity is free (but the cost isn't)

E8 — Cell H: inverse of a product reverses order

E9 — Cell I: a real-world word problem

E10 — Cell J: the exam twist,



Active recall

Row of against column of gives which entry?
, the dot product .
is , is — is defined, and what shape?
Yes, inner dims ; result is .
is , is — is defined?
No; columns of () ≠ rows of ().
Can a nonzero matrix square to the zero matrix ?
Yes — e.g. (zero divisors).
To undo "apply then ", which inverse acts first?
: .
Why is in general?
The cross terms are , which only merge to if commute.
In the supply-chain problem, which product gives materials-per-product?
— do products→parts first (), then parts→materials ().

Connections

Concept Map

Row dots Column rule

Shapes must align

Each entry is a dot product

Undefined if inner dims differ

Order counts AB not BA

Inverse reverses B inv A inv

Brackets free ABC

Zero divisors AB can be zero