A matrix is a rectangular array of numbers arranged in rows and columns. An matrix has rows and columns.
Matrix arithmetic
- Sum ( same size):
- Scalar:
- Product (cols = rows ):
Important properties
- Multiplication is associative: .
- Multiplication is not commutative: in general.
- The identity matrix satisfies .
- The transpose: .
Key insight: Every matrix represents a linear map between vector spaces.
Common pitfall: Matrix multiplication is not commutative: in general, because transformations compose in order — rotate-then-reflect differs from reflect-then-rotate. Never swap factors casually.