4.1 What is linear algebra?
Linear algebra is the mathematics of two operations on a collection of objects called vectors: you can add two vectors to get a vector, and you can multiply a vector by a number to get a vector. That is the whole definition. Anything else linear algebra studies — matrices, eigenvalues, inner products, the spectral theorem — is built on those two operations.
The reason this minimal-looking structure is so powerful is that an enormous range of physical and mathematical objects satisfy these two rules:
- Position vectors in space. Add two displacements; scale by a constant. The result is another displacement.
- Forces on a body. Add two forces (parallelogram law); scale by a number.
- Solutions of a linear differential equation. Add two solutions of , get another solution. Scale by a constant, get another. This is the superposition principle that makes Fourier analysis work.
- Probability distributions over a finite set, signal samples, the components of a quantum state, the modes of a cavity, RGB colours, deep-learning gradients.
Anything you can add and scale is, at root, a vector. Linear algebra is the unified language for all of it.
This first lesson skips the algebra and shows the geometric picture that everything else in the chapter will live inside.
Vectors as arrows; matrices as transformations
A two-dimensional vector is a column of two numbers, or equivalently an arrow from the origin to the point in the plane. Adding two vectors corresponds to stacking arrows tip-to-tail; scaling stretches an arrow without rotating it. That is the entire content of “vectors form a vector space.”
A matrix is the next concept. A matrix
is a rule for sending one vector to another. The recipe is matrix–vector multiplication: given an input , the output is
We will work through this formula carefully in 4.2. For now, take the geometric view: a matrix is a transformation of the plane that respects addition and scaling. If you input you get ; if you input you get . That linearity property is so restrictive that the matrix’s behaviour is completely determined by what it does to just two vectors — the standard basis and — because every other vector is .
The picture
The pale grid is the original plane; the blue grid is its image under A. The two coloured arrows are the images of the standard basis vectors: A e₁ is the first column of A, A e₂ is the second. Every vector v = (x, y) ends up at x · A e₁ + y · A e₂ — multiplying by A means "express v in the e₁, e₂ basis, then walk the columns." The determinant counts oriented area: positive det preserves orientation, negative det flips it, zero det collapses the plane onto a line or a point.
The interactive shows a unit grid (faint, in the original plane) being mapped to a parallelogram grid (blue) by a matrix . Pick a preset or slide the four matrix entries directly. Things to absorb:
-
The two coloured arrows are the columns of . Specifically, is the first column and is the second column . Every other vector’s image is determined by these two: . The columns of a matrix are where it sends the basis vectors.
-
The grid stays parallel. A linear transformation always maps the unit grid to a parallelogram grid; parallel lines stay parallel, ratios of parallel lengths are preserved. What changes is the angle between the grid lines (set by the relationship of the two columns) and the area of each cell (set by the determinant).
-
The determinant is the area factor. Each cell of the original unit grid has area 1; each cell of the transformed grid has area . The sign of tells you whether the transformation preserves orientation (positive) or flips it (negative, like a mirror reflection). When the plane collapses onto a single line or a point — the matrix has destroyed a dimension’s worth of information.
-
Named transformations have geometric meaning. Rotation rotates the grid rigidly. Scaling stretches axes by different amounts. Shear tilts vertical lines while keeping horizontals fixed. Reflection mirrors across an axis. Projection flattens onto a line. Every matrix is some combination of these basic moves, in the precise sense that any matrix can be factored as rotation × scaling × rotation — the singular-value decomposition, which we will not develop here but which is worth knowing exists.
Why this matters beyond pictures
The geometric picture in two dimensions generalises directly to higher dimensions, even when “picture” stops being literally possible. A matrix is a linear transformation of 3-D space; an matrix is a linear transformation of -dimensional space; an infinite-dimensional linear operator (the time-evolution operator of a quantum state, the Laplacian acting on functions in a cavity) is a linear transformation of an infinite-dimensional function space.
The structure carries over: the operator has columns (in some basis), an “area” generalisation (a determinant or a related volume form), eigenvalues (directions only stretched, not rotated), and a notion of singularity (loss of information). Every one of those concepts appears repeatedly across Sound, Hearing, and Cavitation, because every linear PDE on the bookshelf is a linear operator whose eigenvalue structure determines its physics.
The next lesson defines the operations carefully — what matrix–vector multiplication does, how matrices compose, what the inverse means.