Matrix Basics
A matrix is a rectangular array of numbers arranged in rows and columns. An matrix has rows and columns.
Every matrix represents a linear map between vector spaces. Transformations compose in order, so matrix multiplication depends strictly on factor sequence.
| Operation | Condition | Definition |
|---|---|---|
| Sum | Same size | |
| Scalar | Any size | |
| Product | Cols = Rows |
Rules and Pitfalls
Matrix arithmetic follows strict algebraic laws. The identity matrix acts as a neutral element such that .
The transpose operation flips a matrix across its main diagonal, defined by . Multiplication is associative, meaning .
| Property | Rule |
|---|---|
| Associativity | |
| Commutativity | in general |
Common pitfall: Matrix multiplication is not commutative (). Rotate-then-reflect differs from reflect-then-rotate. Never swap factors casually.