Row Meets Column
Matrix multiplication is the algebra of chained dependencies. It is not entrywise; it works row-by-column.
Entry is the dot product of row of and column of : multiply matching components and add them.
Dimension rule: . Inner dimensions must match and disappear.
| Action | Rule | Result |
|---|---|---|
| Inner Check | Must be equal | |
| Outer Shape | Final size |
Tip: Always write dimensions side by side. Ten seconds of checking catches most errors.
Business Value & Warnings
Why business loves it: If holds units sold and holds prices and costs, delivers revenue and cost per branch in one stroke.
| Property | Standard Algebra | Matrix Algebra |
|---|---|---|
| Commutative | ||
| Zero Product | can happen | |
| Cancellation | Needs inverse |
The identity matrix has ones on the diagonal and zeros elsewhere: .
Common pitfall: Assuming . Matrix multiplication chains processes, so order is always critical.