3.18 min read
Matrix Basics
A matrix is a rectangular array of numbers arranged in rows and columns. An matrix has rows and columns. The entry in row and column is written .
Matrices are more than just arrays — they encode linear transformations. Every matrix defines a function from to . This is the central fact of Chapter 3.
The columns of a matrix are vectors in . We often write to emphasize the column structure.
Formal View
Definition 3.1 — Matrix
An matrix is a rectangular array where , , . The identity matrix has and for .
Why This Matters
Matrices are the fundamental data structure for encoding linear transformations and systems of equations.
- Adjacency matrices encode graphs: if there is an edge from node to node
- Covariance matrices in statistics encode relationships between variables
- In deep learning, weight matrices encode learned transformations between layers
Quiz
Question 1
A matrix has entry . This entry is in:
Common Mistakes
- Confusing rows and columns in the entry notation — first index is always the row.
- Writing the size as instead of (rows × columns).