Matrix Basics and Addition
A matrix is a rectangular array of numbers organized in rows and columns. An matrix has rows and columns. They represent linear systems, transformations, and data.
| Operation | Rule | Condition |
|---|---|---|
| Addition | Add corresponding entries | Same shape () |
| Scalar Multiplication | Multiply every entry by a scalar | Any matrix |
Common pitfall: Never add matrices entry-by-entry if their shapes differ, and never multiply matrices entry-by-entry like addition. Matrix multiplication follows the strict row-times-column rule.
Matrix Multiplication
The product is defined only when the inner dimensions match: the number of columns of equals the number of rows of . An times an matrix yields an result.
Entry is the dot product of row of and column of :
Matrix multiplication is not commutative (), but it is associative (). The identity matrix has ones on the diagonal and satisfies . Square matrices with an inverse where are invertible (nonsingular).