Scalars, Vectors & Matrices
The three fundamental objects of linear algebra. Every equation, every transformation, every algorithm in this subject is built from scalars, vectors, and matrices. Let us meet them one by one.
Scalars
A scalar is just a single number. It has magnitude only — no direction. Temperature, mass, speed: all scalars. The name comes from "scale" because scalars scale other objects up or down.
Vectors
An ordered list of numbers — components that describe direction and magnitude. In 2D, a vector has two entries. In 3D, three. In machine learning, vectors can have millions.
Vector Operations
Two fundamental operations define vector algebra: addition (component by component) and scalar multiplication (stretch or shrink by a number).
Matrices
A rectangular array of numbers with m rows and n columns. Far more than a table — matrices represent transformations, systems of equations, and datasets.
Matrix Elements
We identify each entry by its row and column. The element a_ij sits in row i, column j. Dimensions are always written as rows × columns.
The Identity Matrix
Ones on the diagonal, zeros everywhere else. Multiplying by the identity changes nothing — like multiplying a number by 1.
Special Matrices
Several matrix types appear constantly in science and engineering.
- Zero matrix — all entries are zero
- Diagonal — nonzero only on the main diagonal
- Symmetric — equals its own transpose
- Identity — the "do nothing" transformation
Matrix Operations
Matrices can be added element by element (same dimensions required) and scaled by a constant. These mirror the operations we saw for vectors.
The Transpose
Flip a matrix over its diagonal — rows become columns, columns become rows. If A is m×n, then A^T is n×m.
Why These Matter
Scalars, vectors, and matrices are the language of engineering. Every advanced topic is built from them.
- Signals are vectors
- Datasets are matrices
- Forces are vectors
- Transformations are matrices
- Weights in neural nets are scalars in matrices
What you learned
Scalars are single numbers. Vectors are ordered lists with direction and magnitude. Matrices are rectangular arrays that encode transformations and data. Together, they form the alphabet of linear algebra.