Skip to content

Linear Algebra Overview

Linear algebra is the first foundation because it is the only one every other chapter needs. The dependency graph makes that quantitative: Chapter 2 appears in the prerequisite set of all ten other chapters, and it is the only one that does.

The book opens it with a definition worth keeping: an algebra is “a set of objects and a set of rules to manipulate these objects”, and linear algebra is the algebra of vectors.

The chapter’s opening move is to generalise past arrows. A vector is any object that can be added to another of its kind and multiplied by a scalar, with the result still of the same kind. Anything satisfying those two closure properties qualifies, and the book lists four examples:

examplewhy it is a vector
geometric vectors — directed segmentsfamiliar from school; adding two arrows gives an arrow
polynomialsadding two polynomials gives a polynomial; scaling one gives one
audio signalsa series of numbers; sums and scalings are still audio signals
elements of Rn\mathbb{R}^ntuples of nn reals, added and scaled componentwise

Polynomials are the surprising entry, and the book says so: they are “rather unusual” instances, and “very different from geometric vectors” — geometric vectors are concrete drawings, polynomials are abstract concepts — and yet they are vectors in exactly the same sense.

The chapter focuses on Rn\mathbb{R}^n, for a specific reason: it “loosely corresponds to arrays of real numbers on a computer”, so algorithms formulated in Rn\mathbb{R}^n can be implemented directly. But the book adds a warning in the margin worth repeating: be careful to check whether array operations actually perform vector operations when you implement them. That is the @ versus * trap, flagged before the chapter even starts.

One idea recurs and gets sharper each time: closure — what is the set of everything my operations can produce? The book names it explicitly as “one major idea in mathematics”.

diagram Diagram mermaid

Read that as one question asked five ways. §2.1 asks it about a particular target vector; §2.4 names the sets that are closed; §2.5 asks which vectors enlarge the reach; §2.6 counts the minimum needed and calls the count the rank; §2.7 names the reachable set the image. It is the same question every time, and each section gives it a better name.

#pagethe big idea
2.1Systems of Linear EquationsWhen can we solve Ax=b\mathbf{A}\mathbf{x} = \mathbf{b}, and how many answers exist? Three outcomes, never two.
2.2MatricesThe grid that stores data and transforms it. Multiplication is composition, and the columns are the images of the basis vectors.
2.3Solving SystemsGaussian elimination pivot by pivot; particular plus general; the minus-1 trick; and why libraries do something else at scale.
2.4Vector SpacesGroups, the axioms, and subspaces — the sets that survive their own operations.
2.5Linear IndependenceWhen is a vector redundant? The trivial solution, and the pivot-column test.
2.6Basis and RankThe minimal set that builds everything, and the single most informative number about a matrix.
2.7Linear MappingsFunctions that are secretly matrices — once you fix a basis. Image, kernel, rank-nullity.
2.8Affine SpacesSubspaces slid off the origin: lines, planes, hyperplanes, and why a network layer is affine.
Chapter 2 Exercises and SolutionsThe book’s own end-of-chapter exercises, worked, with NumPy verification.
Chapter 2 Formula SheetEvery result on one page, with a line on when to use each.

Roughly eight hours for the eight concept pages if you do the exercises, which you should.

The book gives its own forward map (its Figure 2.2), and it is worth having before you start rather than after:

from Chapter 2used in
matrices, systemsChapter 5 — vector calculus needs matrix operations throughout
linear and affine mappingsChapter 3 — geometry; Chapter 12 — classification
basis, linear independenceChapter 10 — dimensionality reduction
projections (via §3.8, built on §2.6)Chapter 10 — PCA; Chapter 9 — least squares
vector spaces, subspaceseverywhere — data is assumed to live in one

Two of those deserve emphasis. Chapter 10 uses projections for PCA, and projections are built in §3.8 directly on this chapter’s notion of a subspace and its basis. Chapter 9 solves least-squares problems, which are systems of linear equations that have no exact solution — §2.1’s “no solution” case, turned into a method.

  • Chapter 0 if your notation or NumPy is rusty. §2.5 onwards leans on Σ manipulation, and every page verifies itself in NumPy.
  • Nothing else. This chapter starts from “what is a vector” and assumes no linear algebra at all.

You do not need calculus for Chapter 2.

pch.quizTag Before you start
  1. The book calls polynomials vectors. Why?

    pch.quizShowAnswer

    B — Because adding two polynomials gives a polynomial and scaling one gives a polynomial — the only two properties the definition demands — The definition asks only for closure under addition and scalar multiplication. The book notes polynomials are 'rather unusual' instances and 'very different from geometric vectors', and are vectors in exactly the same sense regardless.

  2. Which chapter does the dependency graph show as the only universal prerequisite?

    pch.quizShowAnswer

    B — Chapter 2, linear algebra — Chapter 2 appears in the transitive prerequisite set of all ten other chapters. Chapter 5 is next at six, then Chapters 3 and 7 at five each.

  3. The book focuses on R-n rather than on the abstract definition. What is the stated reason, and the stated caveat?

    pch.quizShowAnswer

    B — It corresponds loosely to arrays on a computer, so algorithms implement directly — but you must check that array operations really perform vector operations — That caveat is a margin note in the book and it is the at-versus-asterisk trap. An array operation that looks like a vector operation may not be one.

Come back to this a day after reading a page, not immediately.

110 due · 0/110 seen · 0 mature

____ — ; it always contains the zero vector, and the mapping is injective exactly when that is all it contains.

0 graded this session
  • Linear algebra is the algebra of vectors — a set of objects plus rules for manipulating them.
  • A vector is anything closed under addition and scalar multiplication, which admits geometric vectors, polynomials, audio signals and tuples of reals equally.
  • The chapter focuses on R-n because it corresponds to arrays on a computer, with the caveat that an array operation may not be the vector operation you meant.
  • Closure is the thread through all eight sections — reachability in §2.1, subspaces in §2.4, independence in §2.5, rank in §2.6, image in §2.7.
  • Chapter 2 is the only universal prerequisite in the book’s dependency graph.
  • Least squares in Chapter 9 is §2.1’s no-solution case turned into a method, and PCA in Chapter 10 is built on this chapter’s subspaces via §3.8’s projections.

Start with: Systems of Linear Equations — the problem linear algebra was invented for.

pch.coffeeTagline

pch.coffeeCta

pch.feedbackHeading

pch.feedbackSubheading