The geometry that inner products unlock: orthogonality, projection, and least squares
A vector space, by itself, has no concept of length or angle. Inner products supply both — and with them come orthogonal projections, the Gram–Schmidt process, least squares, and the bridge to Fourier analysis.
Up to this point in a linear algebra course, the only operations available in a vector space are addition and scalar multiplication. There is no notion of "length," no notion of "angle," and no way to say whether two vectors are "perpendicular." All of that changes with a single additional structure: the inner product.
1 The definition
(symmetry)
(linearity)
, with equality iff (positive definiteness)
The standard inner product on , , is the most familiar — but it is far from the only one.
2 Length and angle
An inner product immediately yields:
When , we have , and the vectors are orthogonal.
This inequality is what makes the definition of legitimate: it guarantees .
3 Gram–Schmidt orthonormalization
Given any basis, the Gram–Schmidt process produces an orthonormal one — a basis whose vectors are mutually perpendicular and each of unit length.
At each step, the idea is the same: strip away the components along directions already chosen. What remains is necessarily orthogonal to all of them.
4 Orthogonal projection: finding the closest point
One of the most powerful applications of inner products is orthogonal projection.
Given a subspace and a vector , the orthogonal projection onto is the point in closest to .
5 Least squares
Suppose you have experimental data and want to fit a line . When , there is generally no line passing through all points — the system is overdetermined.
The least-squares solution is the one that minimizes . Geometrically, it projects onto the column space of and then solves the consistent system.
6 The bridge to Fourier analysis
Equip with the inner product . The functions , suitably normalized, form an orthonormal system.
Projecting a function onto these basis functions gives the Fourier expansion:
Fourier series is orthogonal projection in an infinite-dimensional inner product space. The same principle that finds the best-fit line through three data points also decomposes a sound wave into its constituent frequencies.
7 The takeaway
An inner product gives a vector space geometry: length, angle, and orthogonality. With these come the Gram–Schmidt process, orthogonal projection, least squares, and Fourier analysis — all manifestations of a single idea. Whether you are fitting a regression line to data or decomposing a function into harmonics, you are projecting onto a subspace in an inner product space. One structure, one principle, and an extraordinary range of applications.
Mathematics "between the lines" — exploring the intuition textbooks leave out, written in LaTeX on Folio.