Skip to content

Analytic Geometry Overview

Chapter 2 built vectors and the operations that combine them, and then stopped. It never asked how long a vector is, how far apart two of them are, or what angle they meet at — because none of those questions can be answered by addition and scalar multiplication alone. A vector space is a set with two operations; it has no ruler and no protractor.

Chapter 3 supplies both, from a single object.

Add one function to a vector space — an inner product ,\langle \cdot, \cdot \rangle that takes two vectors and returns a number, subject to three conditions — and every geometric quantity you have ever used follows without further input:

diagram Diagram mermaid

Read the arrows literally. Length is defined from the inner product, distance from length, angle from the inner product and two lengths. Nothing in this chapter is an extra axiom; it is all bookkeeping on one definition. That is why changing the inner product changes everything downstream at once — a fact §3.4 makes uncomfortable and §3.8 makes useful.

  • Why there is more than one notion of length, and why the choice is the difference between Lasso and Ridge.
  • What an inner product actually requires, and how to test a candidate — including a matrix that fails the test by exactly one entry.
  • How length, distance and angle are all consequences of one definition, plus the two inequalities that keep them honest.
  • What orthogonality buys: cheap coordinates, unique decompositions, stable algorithms.
  • The projection recipe of §3.8, which is the single most reused computation in the rest of the book.
  • Why rotations are exactly the orthogonal matrices of determinant +1+1, and why they stop commuting in three dimensions.
#pagethe big idea
3.1NormsThree properties define a ruler. The shape of the unit ball is what a regulariser optimises against.
3.2Inner ProductsBilinear, symmetric, positive definite. Every inner product on Rn\mathbb{R}^n is a symmetric positive definite matrix in disguise.
3.3Lengths and DistancesLength is x,x\sqrt{\langle x,x\rangle}; distance is the length of a difference. Cauchy-Schwarz is what makes the cosine a cosine.
3.4Angles and OrthogonalityCosine similarity, and the fact that two vectors can be perpendicular under one inner product and not another.
3.5Orthonormal BasisThe basis where coordinates are inner products and BB=I\mathbf{B}^\top\mathbf{B} = \mathbf{I}.
3.6Orthogonal ComplementEvery vector splits, uniquely and Pythagoreanly, into a part inside a subspace and a part perpendicular to it.
3.7Inner Product of FunctionsReplace the sum by an integral and functions become vectors. Fourier analysis is the ONB of that space.
3.8Orthogonal ProjectionsThe three-step recipe, the normal equation, the pseudo-inverse, and Gram-Schmidt as its constructive use.
3.9RotationsLength- and angle-preserving maps: R2\mathbb{R}^2, R3\mathbb{R}^3, Givens rotations, and the failure of commutativity.
Chapter 3 Exercises and SolutionsAll ten of the book’s exercises, worked by hand and checked in NumPy.
Chapter 3 Formula SheetEvery definition and result on one page, with a line on when each is the right tool.

Nine concept pages, about eight hours with the exercises.

  • Chapter 2 in full. This chapter never re-derives a subspace, a basis or a rank; §3.8 in particular assumes you can read B(BB)1B\mathbf{B}(\mathbf{B}^\top\mathbf{B})^{-1}\mathbf{B}^\top without flinching.
  • Chapter 0 if Σ\Sigma notation or NumPy indexing is rusty. §3.7 uses a definite integral, covered on the calculus refresher.

You do not need eigenvalues yet. §3.2 mentions that a symmetric positive definite matrix has positive eigenvalues, and the page says plainly that this is a forward reference to Chapter 4 rather than something you have to be able to compute now.

from Chapter 3used in
normsChapter 7 — regularised objectives; Chapter 9 — ridge and Lasso
inner productsChapter 12 — kernels; Chapter 6 — covariance as an inner product on centred data
angles, cosine similarityanywhere embeddings are compared
orthonormal basesChapter 4 — eigendecomposition and SVD produce them
orthogonal projectionsChapter 9 — least squares is a projection; Chapter 10 — PCA minimises projection error
orthogonal complementChapter 10 — the discarded directions; Chapter 9 — the residual space
affine projections (§3.8.4)Chapter 12 — the distance from a point to a separating hyperplane
rotationsChapter 4 — the U\mathbf{U} and V\mathbf{V} of an SVD are rotations

Two of those are worth naming now, because they are the reason this chapter is not optional. Least squares is a projection — §3.8.2 says so explicitly, and Chapter 9 does nothing but develop the consequence. PCA minimises the projection error of §3.8.2 — Chapter 10’s derivation begins from Equation 3.63 and never leaves it.

The book uses the dot product as its default inner product and says so. That default is so comfortable that it is easy to read the whole chapter as being about the dot product, and then to be surprised later when a covariance matrix, a kernel, or a Mahalanobis distance produces “wrong” angles.

Nothing is wrong. Two vectors are orthogonal with respect to an inner product, never in the abstract. §3.4 makes the point with a pair of vectors that are at ninety degrees under the dot product and at 109.47 degrees under a different one — same two arrows, same plane, different geometry.

pch.quizTag Before you start
  1. Which of these is defined in terms of the others, rather than being independent?

    pch.quizShowAnswer

    B — The norm is defined from the inner product, and the distance from the norm — The chapter's whole structure is one definition and its consequences: length is the square root of the inner product of a vector with itself, distance is the length of a difference, and the cosine of the angle is the inner product over the product of two lengths. The book notes that every inner product induces a norm, but not every norm comes from an inner product.

  2. The book says the projection error of Equation 3.63 reappears in a later chapter as an objective to minimise. Which one?

    pch.quizShowAnswer

    B — Chapter 10, dimensionality reduction — PCA — Section 3.8 says reconstruction errors are one possible approach to deriving PCA, and Chapter 10 takes exactly that route. Least squares in Chapter 9 uses the same projection from the other direction.

  3. Two vectors are orthogonal. What is missing from that statement?

    pch.quizShowAnswer

    B — Which inner product is being used; the same pair can be orthogonal under one and not another — Definition 3.7 defines orthogonality relative to an inner product, and Example 3.7 gives a pair that is orthogonal under the dot product and at about 109.5 degrees under another. The dot product being the usual default does not make it the only one.

Come back to this a day after reading a page rather than immediately — the deck is built for spacing, not for cramming.

92 due · 0/92 seen · 0 mature

____ — , since length is the square root of the inner product of a vector with itself.

0 graded this session
  • An inner product is the only thing this chapter adds to a vector space, and length, distance, angle, orthogonality and projection are all consequences of it.
  • Length is the square root of the inner product of a vector with itself; distance is the length of a difference; the cosine of the angle is the inner product divided by the two lengths.
  • Not every norm comes from an inner product — the Manhattan and maximum norms do not.
  • Orthogonality is relative to an inner product, never absolute; the same pair of vectors can be perpendicular under one and oblique under another.
  • The projection recipe of section 3.8 is the most reused computation in the book — least squares in Chapter 9 and PCA in Chapter 10 are both it.
  • Rotations are the orthogonal matrices of determinant plus one, and in three or more dimensions they do not commute.

Start with: Norms — the ruler has to come before anything you would measure with it.

pch.coffeeTagline

pch.coffeeCta

pch.feedbackHeading

pch.feedbackSubheading