Row Meets Column
Matrix multiplication is not entrywise — it is the algebra of chained dependencies, and it works row-by-column:
Entry of the product is the dot product of row of with column of : multiply matching components, add them up.
Dimension rule: — the inner dimensions must match and then disappear:
Why business loves it. Suppose holds units sold (products by branches) and each product has a price and a unit cost in matrix (values by products). Then delivers revenue and cost per branch in one stroke. Every 'multiply quantities by rates, then total' calculation — payroll, input requirements, portfolio returns — is a matrix product.
The famous warning: order matters.
may have different dimensions, or not exist at all, or exist and simply differ. Chains read like processes: raw materials → components → products composes in one direction only.
Other habits to unlearn: does not force or ; and you cannot cancel — does not imply unless is invertible (a determinant question, next lesson).
The identity matrix (ones on the diagonal, zeros elsewhere) is the neutral element: — the matrix world's multiply-by-one.
Tip: Before multiplying anything, write the dimensions side by side: . Inner numbers must match; outer numbers announce the answer's shape. Ten seconds of dimension checking catches most errors before they exist.
Common pitfall: Assuming . Matrix multiplication is order-sensitive because it chains dependencies — applying "prices after quantities" is not "quantities after prices." Commuting matrices are the exception, never the rule.