← Visualization Hub
Reading Companion

The Art of Linear Algebra

A guided walk through Kenji Hiranabe's graphic notes on Gilbert Strang's Linear Algebra for Everyone. One idea runs through all of it: matrix arithmetic is not rows-times-columns dot products — it is linear combinations of columns and sums of rank-1 pieces. Read this alongside the interactive sims in the hub.

Source: “The Art of Linear Algebra — Graphic Notes on Linear Algebra for Everyone” by Kenji Hiranabe, with the help of Gilbert Strang (MIT). Original paper & figures: github.com/kenjihiranabe/The-Art-of-Linear-Algebra. Book: math.mit.edu/everyone. This page is an original summary written for our course; all concepts and the graphic framing are due to the authors above. Please consult the source for the full artwork.

1Viewing a matrix — 4 ways

The same array of numbers, read at four zoom levels.

Before any multiplication, notice that an \(m\times n\) matrix \(A\) can be seen as four things at once. Which view you pick decides which formula feels natural.

1 matrix

A single object — a map that sends vectors to vectors.

\(m\cdot n\) numbers

Individual entries \(a_{ij}\). The bookkeeping view.

\(n\) columns

Each column is a vector in \(\mathbb R^m\). This is the view that makes \(A\mathbf x\) a linear combination.

\(m\) rows

Each row is a vector in \(\mathbb R^n\). This is the view behind the dot-product formula.

2Vector × Vector — 2 ways

The dot product, and its overlooked twin: the outer product.

Dot product \(\mathbf v\cdot\mathbf w\)

Row times column → a single number. Measures alignment; zero means perpendicular.

\(\mathbf v\cdot\mathbf w\) = scalar
$$\mathbf v^{\mathsf T}\mathbf w=\begin{bmatrix}a&b&c\end{bmatrix}\begin{bmatrix}x\\y\\z\end{bmatrix}=ax+by+cz$$

Outer product \(\mathbf v\,\mathbf w^{\mathsf T}\)

Column times row → a whole rank-1 matrix. This is the building block of every factorization further down.

\(\mathbf v\,\mathbf w^{\mathsf T}\) = rank-1 matrix
$$\mathbf v\,\mathbf w^{\mathsf T}=\begin{bmatrix}a\\b\\c\end{bmatrix}\begin{bmatrix}x&y&z\end{bmatrix}=\begin{bmatrix}ax&ay&az\\bx&by&bz\\cx&cy&cz\end{bmatrix}$$

Hiranabe's key remark: knowing the outer product (a column times a row) is what unlocks \(CR\), \(LU\), \(QR\), and the \(\mathrm{SVD}\) — each rebuilds a matrix as a sum of rank-1 pieces.

v × wᵀ = rank-1 matrix

3Matrix × Vector — 2 ways

The single most important re-framing in the whole subject.

Row way Mv1

Each output entry is a dot product of a row with \(\mathbf x\). How you first learn it. Setting the result to 0 — every row perpendicular to \(\mathbf x\) — defines the null space \(N(A)\).

Column way Mv2

\(A\mathbf x\) is a linear combination of the columns of \(A\), weighted by the entries of \(\mathbf x\). Every such output lives in the column space \(C(A)\).

same \(A\mathbf x\), two readings
$$\begin{aligned} \text{row way:}&\quad (A\mathbf x)_i=(\text{row } i)\cdot\mathbf x &&\rightarrow\ \text{dot products}\\[4pt] \text{column way:}&\quad A\mathbf x=x_1\,\textcolor{#5cd2ff}{\mathbf a_1}+x_2\,\textcolor{#ff8aa6}{\mathbf a_2}+x_3\,\textcolor{#7ee787}{\mathbf a_3} &&\rightarrow\ \text{combine columns} \end{aligned}$$

Once \(A\mathbf x\) = combination of columns becomes automatic, the four fundamental subspaces stop being definitions to memorize and become obvious.

▶ Sim: From Wheels to Motion — Ax as a column combination

4The four fundamental subspaces

Everything a matrix can and cannot do, in four spaces.

A row vector times a matrix (\(\mathbf y^{\mathsf T}A\)) mirrors the column story: outputs fill the row space \(C(A^{\mathsf T})\); the solutions of \(\mathbf y^{\mathsf T}A=\mathbf 0\) form the left-null space \(N(A^{\mathsf T})\). The four fit together as two perpendicular pairs:

$$\begin{aligned} \text{in } \mathbb R^{n}\ \text{(inputs):}&\quad \textcolor{#7ee787}{\text{row space } C(A^{\mathsf T})}\ \perp\ \textcolor{#ff8aa6}{\text{null space } N(A)}\\[4pt] \text{in } \mathbb R^{m}\ \text{(outputs):}&\quad \textcolor{#5cd2ff}{\text{column space } C(A)}\ \perp\ \text{left-null space } N(A^{\mathsf T}) \end{aligned}$$

The rank \(r\) is the shared dimension of the row and column spaces — they are always equal, a fact the \(A = CR\) factorization makes visible.

Robotics: for a Jacobian \(J\), the column space is the set of end-effector velocities you can actually produce; the null space is joint motions that produce no end-effector motion (self-motion). A singularity is the rank dropping — a subspace collapsing.
▶ Sim: The Four Fundamental Subspaces in 3D

5Matrix × Matrix — 4 ways

"Matrix × Vector" extended one step. Same four viewpoints.

The product \(AB = C\) can be computed four equivalent ways — and the fourth is the one that matters most for factorizations:

WayReading
rows × colsEach \(c_{ij}\) is a dot product (row \(i\) of \(A\)) · (column \(j\) of \(B\)) — the schoolbook rule.
A × cols of BEach column of \(C\) is \(A\) times a column of \(B\) (a combination of \(A\)'s columns).
rows of A × BEach row of \(C\) is a row of \(A\) times \(B\) (a combination of \(B\)'s rows).
Σ cols × rowsSum of rank-1 matrices: column \(k\) of \(A\) times row \(k\) of \(B\), added up. The factorization view.
the rank-1 sum view — each term has rank 1 (\(A\) is \(m\times n\), \(B\) is \(n\times p\))
$$AB=\textcolor{#5cd2ff}{\mathbf a_1}\textcolor{#ff8aa6}{\mathbf b_1^{\mathsf T}}+\textcolor{#5cd2ff}{\mathbf a_2}\textcolor{#ff8aa6}{\mathbf b_2^{\mathsf T}}+\cdots+\textcolor{#5cd2ff}{\mathbf a_n}\textcolor{#ff8aa6}{\mathbf b_n^{\mathsf T}}$$

6Practical patterns

Four recurring shapes that make the factorizations feel inevitable.

Scale the columns P1

Multiplying by a diagonal on the right scales each column of a matrix. A column operation.

Scale the rows P2

Multiplying by a diagonal on the left scales each row. A row operation.

Eigen-recurrence P3

The shape \(X\Lambda X^{-1}\) that appears when you solve \(\dfrac{d\mathbf u}{dt}=A\mathbf u\) or \(\mathbf u_{n+1}=A\mathbf u_n\): decompose the start into eigenvectors, evolve each, recombine.

Three-matrix sandwich P4

A diagonal in the middle: \(X\Lambda X^{-1}\) and \(U\Sigma V^{\mathsf T}\) both expand into a sum of rank-1 terms weighted by eigen/singular values.

Robotics / dynamics: pattern P3 is exactly how a linear state-space system \(\dot{\mathbf x}=A\mathbf x\) is solved — the eigenvalues set the modes, the eigenvectors set their shapes. Continue to the Differential Equations for Robotics course for this.

7The five factorizations

The spine of the book. Each writes A as a product — and as a sum of rank-1 pieces.

FactorizationWhat it reveals
\(A = CR\)Rank. \(C\) keeps the independent columns; \(R\) is the row-reduced echelon form with its zero rows dropped. Proves column rank = row rank.
\(A = LU\)Elimination. Gaussian elimination as lower-triangular × upper-triangular. Peel off one rank-1 layer per pivot.
\(A = QR\)Orthogonalization. Gram–Schmidt turns the columns of \(A\) into orthonormal columns \(Q\), keeping \(C(A)=C(Q)\); \(R\) is triangular.
\(S = Q\Lambda Q^{\mathsf T}\)Spectral theorem. A symmetric \(S\) has real eigenvalues (in \(\Lambda\)) and orthonormal eigenvectors (in \(Q\)). Sum of rank-1 projections.
\(A = U\Sigma V^{\mathsf T}\)SVD. Every matrix, rectangular included: rotate (\(V^{\mathsf T}\)), stretch by singular values (\(\Sigma\)), rotate (\(U\)).

The last two share pattern P4 — a diagonal sandwiched between orthogonal matrices — and both expand as

biggest singular value first
$$A=\sigma_1\,\textcolor{#5cd2ff}{\mathbf u_1}\textcolor{#ff8aa6}{\mathbf v_1^{\mathsf T}}+\sigma_2\,\textcolor{#5cd2ff}{\mathbf u_2}\textcolor{#ff8aa6}{\mathbf v_2^{\mathsf T}}+\cdots$$

The SVD is the natural capstone: \(\sigma_1,\sigma_2,\dots\) are the semi-axes of the ellipse the unit sphere becomes under \(A\). For a robot Jacobian that ellipse is the manipulability ellipsoid, and \(|\det A|=\sigma_1\sigma_2\cdots\) is its volume (up to the constant volume of the unit ball) — connecting SVD straight back to the determinant.

▶ Sim: SVD & the Manipulability Ellipse — rotate · stretch · rotate ▶ Step 16: explore symmetric and positive definite matrices

8Where each idea lives in the course

Read a concept here, then go move it in the matching simulation.

Column space, span — where a robot can be
Step 1
Independent columns — real degrees of freedom (\(A = CR\))
Step 2
Four fundamental subspaces — \(C(A),\ N(A),\ C(A^{\mathsf T}),\ N(A^{\mathsf T})\)
Step 4
Determinant — signed area, orientation, singularity
Step 8
Determinant in 3D — signed volume, triple product
Step 9
Determinant properties — multilinear, swap, \(\det(AB)=\det(A)\det(B)\)
Step 10
SVD — rotate–stretch–rotate, singular values, manipulability
Step 11
Symmetric and positive definite — orthogonal eigen-directions and quadratic energy
Step 16
Matrix as a map — \(A\mathbf x\) as a column combination
Step 17